MongoDB by Ciro Santilli 40 Updated 2025-07-16
List databases:
echo 'show dbs' | mongo
Delete database:
use mydb
db.dropDatabase()
or:
echo 'db.dropDatabase()' | mongo mydb
View collections within a database:
echo 'db.getCollectionNames()' | mongo mydb
Show all data from one of the collections: stackoverflow.com/questions/24985684/mongodb-show-all-contents-from-all-collections
echo 'db.collectionName.find()' | mongo mydb
SQL example by Ciro Santilli 40 Updated 2025-07-16
We have some runnable SQL examples with assertion under the sequelize/raw directory.
These examples are written in the Sequelize library using raw queries.
Sequelize is used minimally, just to feed raw queries in transparently to any underlying database, and get minimally parsed results out for us, which we then assert with standard JavaScript. The queries themselves are all written by hand.
By default the examples run on SQLite. Just like the examples from sequelize example, you can set the database at runtime as:
Here we list only examples which we believe are standard SQL, and should therefore work across different SQL implementations:
This is one of the main reasons why Ciro Santilli invested in OurBigBook.com.
Ciro believes that the only thing students must be forced to learn is to speak read and write English and that a teacher's main job after that is to help students find their next big goals and also ties into the backward design philosophy.
Everything else, the student must choose.
This idea is generally known as self-directed learning.
This is most notable in University entry examinations of poor countries, where students often have to waste one extra year of their lives to go through preparation for the useless university entry exams. And then, surprise surprise, if they actually get in, they find that this is not what they really wanted to do, and they just go through to the end miserably because they understandably they don't want to risk another year of their lives.
Ciro saw this first hand École Polytechnique which was way freer than his university in Brazil.
Video 1.
The Purpose of Education by Noam Chomsky (2012)
Source.
  • 0:00 discusses Education as a system of indoctrination: indoctrination for people to comply with the Establishment and pass tests, vs the Age of Enlightenment in which education should help you achieve your own intellectual/life goals. He suggests without specific evidence that after the 60's there was explicit intervention in the US to increase the indoctrination aspect, of which debt is a part.
  • 15.45: assessment vs autonomy: exams are useless, except as a tool to help improve teaching and self assess. Tells anecdote about little girl who wanted to learn more about a subject, asked teacher how to learn more, teacher said you can't, you have to study for this useless national exam instead which will determine your future, and if I'm rehired or not.
Godfrey Hounsfield, 1979 Nobel Prize in Physiology and Medicine:[ref]
They tried hard to educate me but I responded only to physics and mathematics
Ring signature by Ciro Santilli 40 Updated 2025-07-16
Used for example:
MySQL by Ciro Santilli 40 Updated 2025-07-16
Create user for further logins without sudo askubuntu.com/questions/915585/how-to-login-mysql-shell-when-mysql-have-no-password/1325689#1325689:
sudo mysql -e "CREATE USER $USER"
Create test user with password:
sudo mysql -e 'CREATE USER user0 IDENTIFIED WITH mysql_native_password BY "a"'
sudo mysql -e 'GRANT ALL PRIVILEGES ON database_name.* TO "user0"'
and login as that user:
mysql -u user0 -p
Login with password given on the command line:
mysql -u user0 -pmypassword
The IDENTIFIED WITH mysql_native_password part is to overcome "Client does not support authentication protocol requested by server" when connecting from Node.js.
List users:
sudo mysql -e 'SELECT * FROM mysql.user'
View permissions for each user on each DB: serverfault.com/questions/263868/how-to-know-all-the-users-that-can-access-a-database-mysql
sudo mysql -e 'SELECT * FROM mysql.db'
List databases:
sudo mysql -e 'SHOW DATABASES'
Create database:
sudo mysql -e 'CREATE DATABASE mydb0'
Destroy database:
sudo mysql -e 'DROP DATABASE mydb0'
Show tables in database:
sudo mysql -e 'SHOW TABLES' mydb0
or:
sudo mysql -e 'SHOW TABLES FROM mydb0'
Schuco Modell, often referred to simply as Schuco, is a brand associated with the production of high-quality model cars, toys, and collectibles. Founded in 1912 in Germany by Heinrich Müller and later associated with the Schuco name, the brand has a long history in the toy industry, particularly known for its wind-up toys and detailed die-cast models.
Tomica is a brand of miniature die-cast toy cars produced by the Japanese company Takara Tomy. Introduced in 1970, Tomica has become renowned for its detailed and high-quality representations of various vehicles, including cars, trucks, and construction equipment. The brand is particularly popular in Japan and has a strong following worldwide. Tomica models are known for their durability, accurate scaling, and a wide range of designs that often include real-life vehicles from various manufacturers.
"Faller" can refer to several things depending on the context: 1. **Faller (Model Railway)**: Faller is a well-known manufacturer of model railway products, particularly in Europe. The company specializes in creating buildings, figures, and scenery for model train layouts, offering a wide variety of kits and accessories that make it popular among hobbyists.
Trumpeter is a Chinese manufacturer known for producing scale model kits, particularly plastic models of military vehicles, aircraft, ships, and other subjects. Founded in 2000, the company has gained popularity among hobbyists and model enthusiasts for its detailed and accurate kits, often incorporating advanced engineering techniques and high-quality plastic materials. Trumpeter's product range includes both historical and contemporary subjects, appealing to a wide audience within the modeling community.
Marusan Shōten is a Japanese company primarily known for its production of food products, particularly soy-based items such as tofu, soy milk, and other plant-based foods. Founded in the early 20th century, the company has a long history in the food industry and has gained recognition for its commitment to high-quality, natural ingredients. Marusan Shōten is also notable for promoting a healthy lifestyle and sustainability through its product offerings.
Trimaster may refer to a few different things depending on the context. Here are a couple of possibilities: 1. **Trimaster (Military)**: In a military context, "Trimaster" can refer to a type of military vehicle or equipment designed for specific operational purposes, such as transportation or logistics. However, further context would be necessary to provide precise details.

Pinned article: Introduction to the OurBigBook Project

Welcome to the OurBigBook Project! Our goal is to create the perfect publishing platform for STEM subjects, and get university-level students to write the best free STEM tutorials ever.
Everyone is welcome to create an account and play with the site: ourbigbook.com/go/register. We belive that students themselves can write amazing tutorials, but teachers are welcome too. You can write about anything you want, it doesn't have to be STEM or even educational. Silly test content is very welcome and you won't be penalized in any way. Just keep it legal!
We have two killer features:
  1. topics: topics group articles by different users with the same title, e.g. here is the topic for the "Fundamental Theorem of Calculus" ourbigbook.com/go/topic/fundamental-theorem-of-calculus
    Articles of different users are sorted by upvote within each article page. This feature is a bit like:
    • a Wikipedia where each user can have their own version of each article
    • a Q&A website like Stack Overflow, where multiple people can give their views on a given topic, and the best ones are sorted by upvote. Except you don't need to wait for someone to ask first, and any topic goes, no matter how narrow or broad
    This feature makes it possible for readers to find better explanations of any topic created by other writers. And it allows writers to create an explanation in a place that readers might actually find it.
    Figure 1.
    Screenshot of the "Derivative" topic page
    . View it live at: ourbigbook.com/go/topic/derivative
  2. local editing: you can store all your personal knowledge base content locally in a plaintext markup format that can be edited locally and published either:
    This way you can be sure that even if OurBigBook.com were to go down one day (which we have no plans to do as it is quite cheap to host!), your content will still be perfectly readable as a static site.
    Figure 2.
    You can publish local OurBigBook lightweight markup files to either https://OurBigBook.com or as a static website
    .
    Figure 3.
    Visual Studio Code extension installation
    .
    Figure 4.
    Visual Studio Code extension tree navigation
    .
    Figure 5.
    Web editor
    . You can also edit articles on the Web editor without installing anything locally.
    Video 3.
    Edit locally and publish demo
    . Source. This shows editing OurBigBook Markup and publishing it using the Visual Studio Code extension.
    Video 4.
    OurBigBook Visual Studio Code extension editing and navigation demo
    . Source.
  3. https://raw.githubusercontent.com/ourbigbook/ourbigbook-media/master/feature/x/hilbert-space-arrow.png
  4. Infinitely deep tables of contents:
    Figure 6.
    Dynamic article tree with infinitely deep table of contents
    .
    Descendant pages can also show up as toplevel e.g.: ourbigbook.com/cirosantilli/chordate-subclade
All our software is open source and hosted at: github.com/ourbigbook/ourbigbook
Further documentation can be found at: docs.ourbigbook.com
Feel free to reach our to us for any help or suggestions: docs.ourbigbook.com/#contact