Main public logs
Appearance
Combined display of all available logs of Squishu Wiki. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
- 18:19, 31 December 2025 Princesssquishuskush talk contribs created page Python - sqlite vs. mysql (Created page with "== General == * In Python, both MySQL and SQLite are accessed using modules that conform to the standard Python Database API Specification v2.0 (PEP 249), meaning the way you interact with them programmatically is very similar * sqlite3 module is built into the python standard library * mysql requires installing a separate Python connector (e.g., mysql-connector-python, PyMySQL) * For basic operations (connecting, creating cursors, executing queries, fetching results),...")
- 15:27, 29 December 2025 Princesssquishuskush talk contribs created page Docker service ps (Created page with "== General == * show a list of service replicas ** docker service ps service_name or service_id ** output shows *** one line for each replica/container *** the node in the swarm it's running on and whether it's a manager or worker *** desired state, which should be running *** current / observed state, which should be running")
- 15:24, 29 December 2025 Princesssquishuskush talk contribs created page Docker service ls (Created page with "== General == * list all services running on a swarm ** docker service ls *** output shows you how many replicas are running *** also shows the name, id, image name and ports")
- 15:18, 29 December 2025 Princesssquishuskush talk contribs created page Docker swarm - services (Created page with "== General == * services only apply to swarm mode * services let you specify the familliar options like: name, pors, attaching to networks, and imag3es but they add cloud native features like desired state and automatic reconciliation * There are two ways to create services ** with docker service create at the cli ** declaratively with a stack file == Create a service imperatively at the cli == * many of the arguments match those of docker container run * Example of...")
- 13:17, 29 December 2025 Princesssquishuskush talk contribs created page Docker node ls (Created page with "== General == * lists the nodes in the swarm * shows the container id, the hostname, and what it is in terms of manager / worker")
- 13:15, 29 December 2025 Princesssquishuskush talk contribs created page Docker swarm - initialize a swarm (Created page with "== General == * building or initializing a swarm * basic flow: initialize the first manager node, join additional manager nodes, join worker nodes == node modes == * docker nodes that are not part of a swarm are in single engine mode ** once they are added to a swarm they are automatically switched into swarm mode == docker swarm init == * running docker swarm init on a docker host in single engine mode will switch that node into swarm mode, create a new swarm, and ma...")
- 13:02, 29 December 2025 Princesssquishuskush talk contribs created page Docker swarm - general (Created page with "== General == * docker swarm is two things ** an enterprise secure cluster of docker hosts ** an engine for orchestrating microservices apps * define your apps in declarative manifest files * Swarm competes directly with kubernetes * https://labs.play-with-docker.com ** could do more than one node in a swarm here == nodes == * a node can be a physical box, vm, raspberry pi or cloud instance * the only requirement is that all nodes have docker installed * a node is conf...")
- 12:47, 29 December 2025 Princesssquishuskush talk contribs created page Docker swarm (Created page with "* docker swarm - general")
- 14:43, 27 December 2025 Princesssquishuskush talk contribs created page Docker container inspect container id (Created page with "== General == * View all the details of a container ** docker container inspect container_id * shows the virtual docker network the container is connected to * it's output as a large chunk of json")
- 14:39, 27 December 2025 Princesssquishuskush talk contribs created page Docker container logs container id (Created page with "== General == * docker collects log entries using output from the containerized app * shows you the commands that were run")
- 14:25, 27 December 2025 Princesssquishuskush talk contribs created page Docker container top container id (Created page with "== General == * list the process running in the container ** docker container top container_id * Output could just be /bin/sh")
- 14:22, 27 December 2025 Princesssquishuskush talk contribs created page Docker - Container ID (Created page with "== General == * Docker assigns a random ID to each container it creates and part of the ID is used for the hostname * On certain commands that use the host id, you only need to enter one or two characters, enough to identify it as unique")
- 14:20, 27 December 2025 Princesssquishuskush talk contribs created page Docker container ls (Created page with "== General == * See the details of all your containers ** docker container ls -a or docker container --all")
- 14:08, 27 December 2025 Princesssquishuskush talk contribs created page Docker - Images (Created page with "== General == * containers are started by using an image * the image contains all the content for the app, along with instructions re how to start it")
- 14:07, 27 December 2025 Princesssquishuskush talk contribs created page Docker run (Created page with "== General == * docker run is how you run containers * If you try to do docker run and you don't have the image locally it will put it from a registry")
- 17:37, 26 December 2025 Princesssquishuskush talk contribs created page Python - Regex (Created page with "== General == * all regex functions are in the re module * Four steps for python regex ** import the re model ** pass the regex string to re.compile() to get a pattern object ** pass the text string to the pattern object's search() method to get a match object ** call the match object's group() method to get the string of the matched text * An example of the 4 steps <pre> import re phone_num_pattern_obj = re.compile(r'\d{3}-\d{3}-\d{4}') match_obj = phone_num_pattern_obj...")
- 13:34, 26 December 2025 Princesssquishuskush talk contribs created page Docker - Hello World (Created page with "== General == * Have docker desktop running on the mac * I think you need to be logged in somehow to docker hub * docker run hello-world * It will display Hello from Docker in the cli and provide you with an explanation of how docker works == DIAMOL Book == * The guy who wrote Docker in a Month of Lunches has one ** clone his repo <pre> git clone https://github.com/sixeyed/diamol.git cd diamol docker run diamol/ch02-hello-diamol:2e </pre> * This is more than Hello World...")
- 13:01, 26 December 2025 Princesssquishuskush talk contribs created page Timeline (Created page with "== General == * Punk rock's timeline starts in the late 1960s with Proto-Punk (Stooges, MC5, the New York Dolls, and Velvet Underground), exploded into a cultural phenomenon in the mid-1970s (Ramones, Sex Pistols), diversified wildly in the 1980s (Hardcore, Post-Punk, New Wave), and reintegrated into mainstream music and pop culture in the 1990s/2000s, influencing countless genres while evolving continuously. * Glam rock's timeline is roughly 1970 to 1974, emerging from...")
- 12:42, 26 December 2025 Princesssquishuskush talk contribs created page Staring a working session (Created page with "== General == * MAC ** Stark docker desktop ** Open a terminal session")
- 12:40, 26 December 2025 Princesssquishuskush talk contribs created page Docker Cleanup Commands (Created page with "== General == * To remove all the containers ** docker container rm -f $(docker container ls -aq) * To reclaim disk space by removing all the images with a given reference ** docker image rm -f $(docker image ls -f reference='diamo/**' -q)")
- 12:36, 26 December 2025 Princesssquishuskush talk contribs created page Docker and the Shell (Created page with "== General == * Line breaks are different between Windows and the others ** Power shell uses a backtick ** Bash uses \")
- 12:34, 26 December 2025 Princesssquishuskush talk contribs created page Docker Desktop (Created page with "== General == * If it's running you will see the whale icon in the bottom menu bar * Docker Desktop alternatives ** You can install the Docker Engine and the Docker cli without the desktop if you want ** Rancher Desktop ** Colima ** OrbStack * Verify your install by running this at the cli ** docker version *** it will display versions for client and server (docker desktop) ** docker compose version")
- 09:50, 25 December 2025 Princesssquishuskush talk contribs created page Docker - Installing Docker Desktop (Created page with "== General == * https://www.docker.com/products/docker-desktop/ ** download docker-desktop ** Mac silicon ** Answer the questions ** Docker Login *** bb@me")
- 09:36, 25 December 2025 Princesssquishuskush talk contribs created page Starred repos (Created page with "== General == * You can star a repo in the top right * Starring is like liking a webpage, but it also bookmarks it * To see your bookmarks ** https://github.com/BlancaBasura?tab=stars")
- 09:30, 25 December 2025 Princesssquishuskush talk contribs created page Docker - General (Created page with "== General == * Documentation: https://docs.docker.com")
- 09:07, 21 December 2025 Princesssquishuskush talk contribs created page Git pull (Created page with "== General == * git pull is actually two commands in one ** git fetch ** git merge * you can't push your changes to the remote unless your local repo is in sync with the remote * If you push and it says local out of date, your push will fail ** do a git pull *** now you are update and hopefully there are no conflicts ** now do your push and it should work * git pull is more than just the mirror of git push == first part of git pull => git fetch == * your local repo retr...")
- 09:42, 20 December 2025 Princesssquishuskush talk contribs created page Local and remote repos in sync (Created page with "== General == * Being in sync involves two things ** pushing your local changes up to the remote in GH ** pulling any new changes down from the remote in GH to your local repo")
- 09:40, 20 December 2025 Princesssquishuskush talk contribs created page Git remote (Created page with "== Verify a successful git push == * git remote -v show origin ** push url: this is the directory you used in the git clone command that created the current repo ** HEAD branch: the current HEAD branch on the remote repo. If you were to change the branch in your direcotry, this would change ** Remote branches: list of all remote branches ** local branches: a list of local branches and what they merge to remotely *** master merges with remote master *** If you had ch...")
- 09:27, 20 December 2025 Princesssquishuskush talk contribs created page Git push (Created page with "== General == * git push is how you share/publish your changes * git push merges your changes with the repo you push to * it affects another repo beyond your local repo * you need the right permission to push * pushing requires a remote and a branch * most often you will do ** git push origin master **** the remote to push changes to *** master is the "main" branch **** the branch with the changes you want to push * origin/master ** another way of saying the branch maste...")
- 09:00, 19 December 2025 Princesssquishuskush talk contribs created page Git Hub and Git general (Created page with "== Get a GH Token == * You need a token to auth at the cli * log into GH, setting, developer setting, personal access tokens (PAT), generate new token * add a description under note * set an expiration period * check the repo box under select scopes * When it's done it will show you the token ** copy it and save it with your passwords ** if you lose it, come back here and delete it and make a new one ** this is what you'd do when it expires too")
- 08:39, 19 December 2025 Princesssquishuskush talk contribs created page Git add and git commit (Created page with "== General == * git add and git commit all in one ** git commit -a -m "blah" *** this only works after you have already added a file with git add blah * unclear if it means add or add all files == Edit a file after you have already done a git add == * You can totally edit the file again ** When you do a git status the file will be listed twice")
- 08:33, 19 December 2025 Princesssquishuskush talk contribs created page Git diff (Created page with "== General == * Review of sample output of git diff <pre> --- a/blah.sh --- b/blah.sh @@ -1 +1,2 @@ # Comment +a=1 </pre> * The first is the original file, the one in the git repo * The second file is the new file, the one in your working directory * The third line describes how to interpret the fourth and fifth lines * The last two lines are called the hunk ** the hunk shows one area of the two files that is different * the third line says: take the original file and...")
- 08:57, 18 December 2025 Princesssquishuskush talk contribs created page Lingo (Created page with "== Definitions == * HEAD ** the current branch * origin ** the original repo that you cloned from ** the remote named origin")
- 08:53, 18 December 2025 Princesssquishuskush talk contribs created page Git branch (Created page with "== Commands == * show both remote tracking branches and local branches ** git branch --all")
- 08:52, 18 December 2025 Princesssquishuskush talk contribs created page Git log (Created page with "== Commands == * display all commit log entries from ALL BRANCHES. Normally git log displays only the entries from the current branch ** git log --oneline --all * display the history in a simplified form ** git log --simplify-by-decoration --decorate --all --oneline")
- 08:39, 18 December 2025 Princesssquishuskush talk contribs created page Creating a new repo - git clone (Created page with "== General == * To create a repo on your box you have two options ** git init and create a local repo ** git clone and bring down a repo to your local box * Clones have a special reference to the original repo ** The original repo is called the remote ** From your clone you can push/send and pull/receive changes to/from the remote * git clone handles the linking back to the original for you * Syntax ** git clone <source URL or local directory for repo> <directory to clon...")
- 07:57, 16 December 2025 Princesssquishuskush talk contribs created page Viewing Repo Information (Created page with "== git log == * shows all the commits made to the repo * to see the files that are part of a commit ** git log --stat == git ls-files == * List the file in your repo ** git ls-files *** if you have committed all your files, the output should look just like ls")
- 07:53, 16 December 2025 Princesssquishuskush talk contribs created page Creating a new local repo - git init (Created page with "== General == * Type git init in any directory and it will create a git repo ** This doesn't start any server ** The repo is local to your computer ** You won't see a git process running ** This creates a hidden directory: .git * Validate this command ** git status *** Should show you info about the initial commit == Create or Edit a File and add it - git add == * Create your file * To introduce a new file to a repo, git add it ** git add blah.txt * Validate ** git sta...")
- 08:44, 6 December 2025 Princesssquishuskush talk contribs created page Python - Cheat Sheet (Created page with "== General == * xxx == Print == * print("Hello Douches") == Input Statements == * input("What's your name") == Comments == * Use a #blah")
- 10:09, 24 August 2025 Princesssquishuskush talk contribs created page Dialog (Created page with "== General == * dialog lets you present various graphical boxes * dialog returns when the user made some input and the result can be found either from the exit status or if text was entered, by retrieving it from the standard error stream == Hello World == * dialog --msgbox "Hello Douches" 9 18 ** 9 18 refer to text height and width == types of dialogs == * --checklist * --infobox * --inputbox * --menu * --msgbox * --radiolist * --textbox * --yesno * Each of these hav...")
- 09:49, 24 August 2025 Princesssquishuskush talk contribs created page Debugging scripts (Created page with "== General == * You can invoke the shell with cli options or you can use set options in the shell for debugging ** the set options look lame, here are the cli options * sh -n <script name> ** checks for syntax errors only, does not execute the commands in the script * sh -v <script name> ** echoes commands before running them * sh -x <script name> ** echoes commands after processing on the cli * you can find the program state wherever it exits by trapping the EXIT signa...")
- 09:42, 24 August 2025 Princesssquishuskush talk contribs created page Here documents (Created page with "== General == * a here document starts with the leader << followed by a special sequence of characters that are repeated at the end of the doc * use case: output large amounts of text from inside a script and avoiding using an echo statement for each line <pre> cat << !BLAH! hello Bob love mom !BLAH! </pre> * This preserves the new lines")
- 19:20, 23 August 2025 Princesssquishuskush talk contribs created page Command execution (Created page with "== General == * capture the result of a command's execution for use in the script * execute a command and put the output of the command into a variable * The current syntax for this ** $(command) * The older syntax for this ** `command` * the result of the $(command) is just the output from the command ** This is the string output, not the return status == Examples == * echo The current directory is $PWD ** Since PWD is a shell ENV, you don't need the special syntax * e...")
- 19:04, 23 August 2025 Princesssquishuskush talk contribs created page Regex (Created page with "== General == * xxx == Characters == * ^ ** beginning of the line * $ ** end of line * . ** any single character * [ ] ** range of characters * to use any of these special characters as normal characters, preface them with a \. ** \$ == Special match patterns == * [:alnum:] * [:alpha:] * [:asccii:] * [:blank:] * [:cntrl:] * [:digit:] * [:graph:] * [:lower:] * [:print:] * [:punct:] * [:space:] * [:upper:] * [:xdigit:] == Extended regex characters == * ? ** match is o...")
- 12:38, 23 August 2025 Princesssquishuskush talk contribs created page Find (Created page with "== General == * searches for files * do it as root == Syntax == * find [path] [options] [tests] [actions] == Path == * path ** can use absolute or relative paths ** can supply multiple paths like this *** find /var/home Search in the current directory: use a dot: . == options == * -depth ** ??? * -follow ** follow symlinks * -maxdepths N ** Search at most N levels of directory when searching * -mount or -xdev ** don't search directories on other systems == tests =...")
- 12:20, 23 August 2025 Princesssquishuskush talk contribs created page Set and unset (Created page with "== General == xxx == set == == unset == * removes variables / functions from the environment ** Ex: unset blah * blah= ** this sets blah to null and that is different")
- 14:40, 27 July 2025 Princesssquishuskush talk contribs created page BASH TABLE TOPICS (Created page with "== Easy == * write a script called bash.sh, add the shebang, make it executable * write a script that outputs you are a douche twice using both echo and printf * write a script that adds two integers * write a script that prints the current month only == Medium == * write a script that shifts thru the positional params and prints them out")
- 14:34, 27 July 2025 Princesssquishuskush talk contribs created page Shift (Created page with "== General == * shift movs all params down by one such that $2 becomes $1, $3 becomes $2, etc. * As you use shift, $*, $@, and $# are modified in line with the new numbering * It's often used to scan thru params * Scan thru all positional params like this, after each is echoed it's discarded and it's on to the next param <pre> while [ "$1" != ""]; do echo "$1" shift done </pre>")
- 14:27, 27 July 2025 Princesssquishuskush talk contribs created page Return (Created page with "== General == * return takes a single number as a param that is available to the script calling the function * if no param is used, it defaults to returning the exit code of the last command")
- 14:22, 27 July 2025 Princesssquishuskush talk contribs created page Math (Created page with "== general == * floating math is not supported because all math in the shell is performed as integers")