diff --git a/README.md b/README.md
index e43ddc5..77c8881 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,11 @@
-# Alfred-cheat ![GitHub All Releases](https://img.shields.io/github/downloads/wayneyaoo/alfred-cheat/total.svg)
+# Alfred-cheat ![GitHub All Releases](https://img.shields.io/github/downloads/wayneyaoo/alfred-cheat/total.svg)
**Start writing your very own cheat sheets in your way and make them searchable using Alfred!**
# Notice
-- If you have any question about the freshness of this project, checkout this [issue](https://github.com/wayneyaoo/alfred-cheat/issues/25).
+- Thanks to [@giovannicoppola](https://github.com/giovannicoppola) for porting a [python3 version dependency](https://github.com/NorthIsUp/alfred-workflow-py3) so that this workflow works on macOS >= 12.3 now where default Python version is Python3. Starting from alfred-cheat 1.2.1, the workflow requires Python3 to run, and any version lower than 1.2.1 requires python2. So depending on you macOS version, you migth want to figure out whether you need to install an extra python.
-- If you're on macOS Monterey 12.3, and it doesn't work, checkout this [issue](https://github.com/wayneyaoo/alfred-cheat/issues/26).
+- I'm fully switching to Linux DE for personal tasks and Windows for daily work hence won't be able to put a lot of effort on this workflow. It served me well for a long time. I'm still open to new Pull Request if you think new features should be added. But generally this workflow doesn't have a big scope and should always work.
# Demo
diff --git a/assets/cheatsheets/7z b/assets/cheatsheets/7z
deleted file mode 100644
index 12decb4..0000000
--- a/assets/cheatsheets/7z
+++ /dev/null
@@ -1,49 +0,0 @@
----
-tags: [ compression ]
----
-7z [Args] [archive.7z] [files / folders to archive]
-A file archiver with highest compression ratio
-
-Args:
-a add
-d delete
-e extract
-l list
-t test
-u update
-x extract with full paths
-
- DO NOT USE the 7-zip format for backup purpose on Linux/Unix.
- 7-zip does not store the owner/group of the file.
-
- On Linux/Unix, in order to backup directories you must use tar :
- - to backup a directory : tar cf - directory | 7z a -si directory.tar.7z
- - to restore your backup : 7z x -so directory.tar.7z | tar xf -
-
- If you want to send files and directories (not the owner of file) to others
- Unix/MacOS/Windows users, you can use the 7-zip format.
-
-Example 1: Quick and Easy - Add all files in dir1 to archive.7z with Default Settings.
-7z a archive.7z dir1
-
-Example 2: Add all files in dir1 to archive.7z with Max Compression
-7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on archive.7z dir1
-
- -t7z 7z archive
- -m0=lzma lzma method
- -mx=9 level of compression = 9 (ultra)
- -mfb=64 number of fast bytes for lzma = 64
- -md=32m dictionary size = 32 Mb
- -ms=on solid archive = on
-
-Example 3: Add (store) all files in dir1 to archive.7z with No Compression
-7z a -m0=copy archive.7z dir1
-
-7z exit codes:
-
- 0 normal (no errors or warnings)
- 1 warning (non-fatal errors)
- 2 fatal error
- 7 bad cli arguments
- 8 not enough memory for operation
- 255 process was interrupted
diff --git a/assets/cheatsheets/ab b/assets/cheatsheets/ab
deleted file mode 100644
index 304aaa2..0000000
--- a/assets/cheatsheets/ab
+++ /dev/null
@@ -1,5 +0,0 @@
-# To send 100 requests with a concurency of 50 requests to a URL:
-ab -n 100 -c 50
-
-# To send requests for 30 seconds with a concurency of 50 requests to a URL:
-ab -t 30 -c 50
diff --git a/assets/cheatsheets/acl b/assets/cheatsheets/acl
deleted file mode 100644
index edd70c9..0000000
--- a/assets/cheatsheets/acl
+++ /dev/null
@@ -1,29 +0,0 @@
-# Get ACL
-getfacl
-
-# Add or modify ACL on file
-setfacl -m u:username:rX
-setfacl -m g:groupname:rw
-setfacl -m o::-
-
-# or provide all permissions at once
-setfacl -m u::rwx,g:groupname:rX,o::-
-
-# Copy ACL from file-A to file-B
-getfacl file-A | setfacl -M - file-B
-
-# Apply ACL recursivelly to directory
-setfacl -R -m u:username:rX
-
-# Delete ACL
-setfacl -x u:username,g:groupname
-
-# Delete all ACL on file, including default
-setfacl -b
-
-# Same operations works for default ACLs
-setfacl -m d:u:username:rx
-setfacl -x d:u:username
-
-# Delete only default ACLs
-setfacl -k
diff --git a/assets/cheatsheets/ag b/assets/cheatsheets/ag
deleted file mode 100644
index 528dab0..0000000
--- a/assets/cheatsheets/ag
+++ /dev/null
@@ -1,11 +0,0 @@
-# To exclude a directory from a search:
-ag --ignore-dir=
-
-# To exclude a file from a search:
-ag --ignore=
-
-# To force colorization:
-ag --color | less -R
-
-# To search for in files whose names match :
-ag -G
diff --git a/assets/cheatsheets/alias b/assets/cheatsheets/alias
deleted file mode 100644
index 76eb813..0000000
--- a/assets/cheatsheets/alias
+++ /dev/null
@@ -1,8 +0,0 @@
-# To show a list of your current shell aliases:
-alias
-
-# To alias `ls -l` to `ll`:
-alias ll='ls -l'
-
-# To remove alias:
-unalias ll
diff --git a/assets/cheatsheets/ansi b/assets/cheatsheets/ansi
deleted file mode 100644
index bb5a8b0..0000000
--- a/assets/cheatsheets/ansi
+++ /dev/null
@@ -1,72 +0,0 @@
-# Reset
-Color_Off='\e[0m' # Text Reset
-
-# Regular Colors
-Black='\e[0;30m' # Black
-Red='\e[0;31m' # Red
-Green='\e[0;32m' # Green
-Yellow='\e[0;33m' # Yellow
-Blue='\e[0;34m' # Blue
-Purple='\e[0;35m' # Purple
-Cyan='\e[0;36m' # Cyan
-White='\e[0;37m' # White
-
-# Bold
-BBlack='\e[1;30m' # Black
-BRed='\e[1;31m' # Red
-BGreen='\e[1;32m' # Green
-BYellow='\e[1;33m' # Yellow
-BBlue='\e[1;34m' # Blue
-BPurple='\e[1;35m' # Purple
-BCyan='\e[1;36m' # Cyan
-BWhite='\e[1;37m' # White
-
-# Underline
-UBlack='\e[4;30m' # Black
-URed='\e[4;31m' # Red
-UGreen='\e[4;32m' # Green
-UYellow='\e[4;33m' # Yellow
-UBlue='\e[4;34m' # Blue
-UPurple='\e[4;35m' # Purple
-UCyan='\e[4;36m' # Cyan
-UWhite='\e[4;37m' # White
-
-# Background
-On_Black='\e[40m' # Black
-On_Red='\e[41m' # Red
-On_Green='\e[42m' # Green
-On_Yellow='\e[43m' # Yellow
-On_Blue='\e[44m' # Blue
-On_Purple='\e[45m' # Purple
-On_Cyan='\e[46m' # Cyan
-On_White='\e[47m' # White
-
-# High Intensity
-IBlack='\e[0;90m' # Black
-IRed='\e[0;91m' # Red
-IGreen='\e[0;92m' # Green
-IYellow='\e[0;93m' # Yellow
-IBlue='\e[0;94m' # Blue
-IPurple='\e[0;95m' # Purple
-ICyan='\e[0;96m' # Cyan
-IWhite='\e[0;97m' # White
-
-# Bold High Intensity
-BIBlack='\e[1;90m' # Black
-BIRed='\e[1;91m' # Red
-BIGreen='\e[1;92m' # Green
-BIYellow='\e[1;93m' # Yellow
-BIBlue='\e[1;94m' # Blue
-BIPurple='\e[1;95m' # Purple
-BICyan='\e[1;96m' # Cyan
-BIWhite='\e[1;97m' # White
-
-# High Intensity backgrounds
-On_IBlack='\e[0;100m' # Black
-On_IRed='\e[0;101m' # Red
-On_IGreen='\e[0;102m' # Green
-On_IYellow='\e[0;103m' # Yellow
-On_IBlue='\e[0;104m' # Blue
-On_IPurple='\e[0;105m' # Purple
-On_ICyan='\e[0;106m' # Cyan
-On_IWhite='\e[0;107m' # White
diff --git a/assets/cheatsheets/ansible b/assets/cheatsheets/ansible
deleted file mode 100644
index ab47fc4..0000000
--- a/assets/cheatsheets/ansible
+++ /dev/null
@@ -1,5 +0,0 @@
----
-tags: [ orchestration ]
----
-# To run a command on multiple instances at once - using `servers` group from `inventory.yml`:
-ansible -u ansible -i inventory.yml servers -m shell -a "ls /var"
diff --git a/assets/cheatsheets/ansible-galaxy b/assets/cheatsheets/ansible-galaxy
deleted file mode 100644
index d64ce4c..0000000
--- a/assets/cheatsheets/ansible-galaxy
+++ /dev/null
@@ -1,20 +0,0 @@
----
-tags: [ orchestration ]
----
-# To install a role:
-ansible-galaxy install .
-
-# To remove a role:
-ansible-galaxy remove .
-
-# To list installed roles:
-ansible-galaxy list
-
-# To search for a given role:
-ansible-galaxy search
-
-# To create a new role:
-ansible-galaxy init
-
-# To get the information for the role # or a collection if you replace `role` with `collection`:
-ansible-galaxy role info .
diff --git a/assets/cheatsheets/ansible-vault b/assets/cheatsheets/ansible-vault
deleted file mode 100644
index 8e3b3d2..0000000
--- a/assets/cheatsheets/ansible-vault
+++ /dev/null
@@ -1,5 +0,0 @@
----
-tags: [ orchestration ]
----
-# To enncrypt string using keyfile `backup_encryption_key`:
-ansible-vault encrypt_string 'SupersecretPa$$phrase' --name 'backup_encryption_key'
diff --git a/assets/cheatsheets/apk b/assets/cheatsheets/apk
deleted file mode 100644
index e9474ad..0000000
--- a/assets/cheatsheets/apk
+++ /dev/null
@@ -1,17 +0,0 @@
----
-tags: [ packaging ]
----
-# To install a package:
-apk add
-
-# To remove a package:
-apk del
-
-# To update repos:
-apk update
-
-# To upgrade all packages:
-apk upgrade
-
-# To find a package:
-apk search
diff --git a/assets/cheatsheets/apparmor b/assets/cheatsheets/apparmor
deleted file mode 100644
index 3a8cc9c..0000000
--- a/assets/cheatsheets/apparmor
+++ /dev/null
@@ -1,18 +0,0 @@
-# apparmor will protect a system by confining programs to a limited set of resources.
-
-# To activate a profile:
-sudo aa-enforce usr.bin.firefox
-# or
-export _PROFILE_='usr.bin.firefox' sudo $(rm /etc/apparmor.d/disable/$_PROFILE_ ; cat /etc/apparmor.d/$_PROFILE_ | apparmor_parser -a )
-
-# To disable a profile:
-sudo aa-disable usr.bin.firefox
-# or
-export _PROFILE_='usr.bin.firefox' sudo $(ln -s /etc/apparmor.d/$_PROFILE_ /etc/apparmor.d/disable/ && apparmor_parser -R /etc/apparmor.d/$_PROFILE_)
-
-# To list profiles loaded:
-sudo aa-status
-# or
-sudo apparmor_status
-
-# List of available profiles: /etc/apparmor.d/
diff --git a/assets/cheatsheets/apt b/assets/cheatsheets/apt
deleted file mode 100644
index 66f465a..0000000
--- a/assets/cheatsheets/apt
+++ /dev/null
@@ -1,36 +0,0 @@
----
-tags: [ packaging ]
----
-# To find packages matching :
-apt search
-
-# To show information on a package:
-apt show
-
-# To fetch package list:
-apt update
-
-# To download and install the updates and (UNLIKE apt-get) install new necessary packages:
-apt upgrade
-
-# To download and install the updates AND install new necessary packages
-# AND remove packages that stand in the way of the upgrade - use with caution!
-apt dist-upgrade
-
-# To perform a full system upgrade:
-apt update && apt upgrade # use dist-upgrade carefully if needed
-
-# To install package(s):
-apt install ...
-
-# To uninstall package(s):
-apt remove ...
-
-# To remove automatically all unused packages:
-apt autoremove
-
-# To list dependencies of a package:
-apt depends ...
-
-# To remove packages and delete their config files:
-apt purge ...
diff --git a/assets/cheatsheets/apt-cache b/assets/cheatsheets/apt-cache
deleted file mode 100644
index fe3cbee..0000000
--- a/assets/cheatsheets/apt-cache
+++ /dev/null
@@ -1,19 +0,0 @@
----
-tags: [ packaging ]
----
-# To find packages matching :
-apt-cache search
-
-# To display package records for the named package(s):
-apt-cache show ...
-
-# To display reverse dependencies of a package:
-apt-cache rdepends
-
-# To display package versions, reverse dependencies and forward dependencies of
-# a package
-apt-cache showpkg
-
-# To display package installation status and what version is available from
-# its repository
-apt-cache policy
diff --git a/assets/cheatsheets/apt-get b/assets/cheatsheets/apt-get
deleted file mode 100644
index 7473a7f..0000000
--- a/assets/cheatsheets/apt-get
+++ /dev/null
@@ -1,30 +0,0 @@
----
-tags: [ packaging ]
----
-# To fetch package list:
-apt-get update
-
-# To download and install package updates:
-apt-get upgrade
-
-# To download and install the updates AND install new necessary packages
-# AND remove any packages that stand in the way of the upgrade:
-apt-get dist-upgrade
-
-# Full command:
-apt-get update && apt-get dist-upgrade
-
-# To install a new package(s):
-apt-get install ...
-
-# To download a package without installing it. (The package will be downloaded in your current working dir)
-apt-get download
-
-# To change cache dir and archive dir (where .deb are stored):
-apt-get -o Dir::Cache="/path/to/destination/dir/" -o Dir::Cache::archives="./" install ...
-
-# To show apt-get installed packages:
-grep 'install ' /var/log/dpkg.log
-
-# To silently keep old configuration during batch updates:
-apt-get update -o DPkg::Options::='--force-confold' ...
diff --git a/assets/cheatsheets/aptitude b/assets/cheatsheets/aptitude
deleted file mode 100644
index 2297819..0000000
--- a/assets/cheatsheets/aptitude
+++ /dev/null
@@ -1,17 +0,0 @@
----
-tags: [ packaging ]
----
-# To find packages matching :
-aptitude search
-
-# To display package records for the named package(s):
-aptitude show ...
-
-# To install package(s):
-aptitude install ...
-
-# To remove package(s):
-aptitude remove ...
-
-# To remove unnecessary package:
-aptitude autoclean
diff --git a/assets/cheatsheets/aria2c b/assets/cheatsheets/aria2c
deleted file mode 100644
index 1a06c66..0000000
--- a/assets/cheatsheets/aria2c
+++ /dev/null
@@ -1,12 +0,0 @@
-# To download a file:
-# The url can be a http(s), ftp, .torrent file or even a magnet link
-aria2c
-
-# To prevent downloading the .torrent file:
-aria2c --follow-torrent=mem
-
-# Download 1 file at a time (-j)
-# continuing (-c) any partially downloaded ones
-# to the directory specified (-d)
-# reading urls from the file (-i)
-aria2c -j 1 -c -d ~/Downloads -i /path/to/file
diff --git a/assets/cheatsheets/asciiart b/assets/cheatsheets/asciiart
deleted file mode 100644
index 5656e3d..0000000
--- a/assets/cheatsheets/asciiart
+++ /dev/null
@@ -1,22 +0,0 @@
-# To show some text in ASCII Art:
-
-figlet Cheat
-# ____ _ _
-# / ___| |__ ___ __ _| |_
-#| | | '_ \ / _ \/ _` | __|
-#| |___| | | | __/ (_| | |_
-# \____|_| |_|\___|\__,_|\__|
-#
-
-
-# To have some text with color and other options:
-# Show with a border
-toilet -F border Cheat
-# Basic show (filled)
-toilet Cheat
-# mmm # m
-# m" " # mm mmm mmm mm#mm
-# # #" # #" # " # #
-# # # # #"""" m"""# #
-# "mmm" # # "#mm" "mm"# "mm
-#
diff --git a/assets/cheatsheets/asciidoctor b/assets/cheatsheets/asciidoctor
deleted file mode 100644
index 2ce15a2..0000000
--- a/assets/cheatsheets/asciidoctor
+++ /dev/null
@@ -1,128 +0,0 @@
-# headers
-= h1 header
-== h2 header
-
-
-# blocks
-[quote, Somebody, Who is somebody]
-____
-Quote something
-____
-//
-NOTE: Some note
-//
-[WARNING]
-====
-Some warning
-====
-
-# lists
-.Un-ordered list with a title
-* list item
-** sub-list item
-- hypen as sub-sub-list item
-+
-that continues at the next line
-- {blank}
-+
-----
-complex content of an item
-----
-
-[%reversed,start=4]
-.Ordered list; reversed, started at 4
-. ordered list item
-.. ordered list sub-item
-. another list item
-
-# separating adjacent lists (surrounded by blank lines)
-//-
-
-# checklist
-- [*] checked
-- [x] also checked
-- [ ] not checked
-
-Description list item:: definition
-[horizontal]
-Description list item #2:: definition
-
-
-# links
-Automatic link http://example.com or
-http://example.com[link with title and attributes,role=external,window=_blank]
-link:../README.adoc[Relative link to open the README file]
-
-
-# cross reference links
-[[an-anchor]]inline anchor, [#other-anchor]#applied to a phrase#
-Reference to <> or to <>
-
-
-# image
-image:image.png[Alt text, title="Inline image"]
-
-.Block image title
-[caption="Figure 1: ",link=http://example.com/image.png]
-image::image.jpg[Alt text, 300, 200]
-
-
-# code
-....
-literal block
-....
-
-:variable: 123
-.Source code title
-[source,asciidoc,subs="+quotes,attributes+",options="nowrap"]
-----
-:toc: right # <1>
-// with var substitution (attributes+)
-:variable: definition, the value is {variable}
-// with the markup substitution (+quotes)
-// no wrapping long lines (nowrap)
-----
-<1> Asciidoctor sytax for the table of content
-
-# include source code, stripping indentation
-[source,asciidoc,indent=0]
-----
-include::doc/document.adoc[lines=5..10]
-----
-
-# formatting
-*bold*, **un**constrained
-_italic_, __un__constrained
-`monospace`, ``un``constrained
-`[underline]#Underline text#`
-`[overline]#overline text#`
-`[line-through]#strikethrough#`
-`[blue line-through]*bold blue and line-through*.`
-
-# comment
-// text in the comment
-
-# horizontal rules (hr)
-'''
-
-Non-breaking space {nbsp}
-Break at the end of +
-line
-
-# tables
-.Table title
-[caption="Table 2: "]
-|===
-| Name | Description
-//
-| Asciidoctor
-| Awesome way to write documentation
-//
-2+| This cell spans 2 columns
-//
-.2+| This cell spans 2 rows
-//
-| Line at the side of the spanned rows
-| Another line
-//
-|===
diff --git a/assets/cheatsheets/asterisk b/assets/cheatsheets/asterisk
deleted file mode 100644
index df2c02b..0000000
--- a/assets/cheatsheets/asterisk
+++ /dev/null
@@ -1,17 +0,0 @@
-# To connect to a running Asterisk session:
-asterisk -rvvv
-
-# To issue a command to Asterisk from the shell:
-asterisk -rx ""
-
-# To originate an echo call from a SIP trunk on an Asterisk server, to a specified number:
-asterisk -rx "channel originate SIP// application echo"
-
-# To print out the details of SIP accounts:
-asterisk -rx "sip show peers"
-
-# To print out the passwords of SIP accounts:
-asterisk -rx "sip show users"
-
-# To print out the current active channels:
-asterisk -rx "core show channels"
diff --git a/assets/cheatsheets/at b/assets/cheatsheets/at
deleted file mode 100644
index 2827a45..0000000
--- a/assets/cheatsheets/at
+++ /dev/null
@@ -1,17 +0,0 @@
-# To schedule a one time task
-at {time}
-{command 0}
-{command 1}
-Ctrl-d
-
-# {time} can be either
-now | midnight | noon | teatime (4pm)
-HH:MM
-now + N {minutes | hours | days | weeks}
-MM/DD/YY
-
-# To list pending jobs
-atq
-
-# To remove a job (use id from atq)
-atrm {id}
diff --git a/assets/cheatsheets/awk b/assets/cheatsheets/awk
deleted file mode 100644
index 21ac8ba..0000000
--- a/assets/cheatsheets/awk
+++ /dev/null
@@ -1,17 +0,0 @@
-# To sum integers from a file or stdin, one integer per line:
-printf '1\n2\n3\n' | awk '{ sum += $1} END {print sum}'
-
-# To use a specific character as separator to sum integers from a file or stdin:
-printf '1:2:3' | awk -F ":" '{print $1+$2+$3}'
-
-# To print a multiplication table:
-seq 9 | sed 'H;g' | awk -v RS='' '{for(i=1;i<=NF;i++)printf("%dx%d=%d%s", i, NR, i*NR, i==NR?"\n":"\t")}'
-
-# To specify an output separator character:
-printf '1 2 3' | awk 'BEGIN {OFS=":"}; {print $1,$2,$3}'
-
-# To execute commands only on rows that satisfy a certain condtion
-printf "george jetson\nolive oyl\nbeetle bailey" | awk '$2=="bailey"{print $0}'
-#
-# To execute commands only on matching rows using regex
-printf "george jetson\nolive oyl\nbeetle bailey" | awk '/ley$/{print $0}'
diff --git a/assets/cheatsheets/bash b/assets/cheatsheets/bash
deleted file mode 100644
index 5097eac..0000000
--- a/assets/cheatsheets/bash
+++ /dev/null
@@ -1,27 +0,0 @@
-# To implement a for loop:
-for file in *;
-do
- echo $file found;
-done
-
-# To implement a case command:
-case "$1"
-in
- 0) echo "zero found";;
- 1) echo "one found";;
- 2) echo "two found";;
- 3*) echo "something beginning with 3 found";;
-esac
-
-# To turn on debugging:
-set -x
-
-# To turn off debugging:
-set +x
-
-# Retrieve N-th piped command exit status:
-printf 'foo' | fgrep 'foo' | sed 's/foo/bar/'
-echo ${PIPESTATUS[0]} # replace 0 with N
-
-# To create a lockfile:
-( set -o noclobber; echo > my.lock ) || echo 'Failed to create lock file'
diff --git a/assets/cheatsheets/bat b/assets/cheatsheets/bat
deleted file mode 100644
index 08f65ca..0000000
--- a/assets/cheatsheets/bat
+++ /dev/null
@@ -1,14 +0,0 @@
-# Display a single file on the terminal:
-bat
-
-# Display multiple files at once:
-bat
-
-# Show and highlight non-printable characters:
-bat -A
-
-# Display all supported languages:
-bat --list-languages
-
-# Set the language for syntax highlighting:
-bat --language >
diff --git a/assets/cheatsheets/black b/assets/cheatsheets/black
deleted file mode 100644
index 2b84cbd..0000000
--- a/assets/cheatsheets/black
+++ /dev/null
@@ -1,12 +0,0 @@
----
-syntax: bash
-tags: [ python, development ]
----
-# Formats the python code of the specified file or directory:
-black
-
-# Checks if the code is already well-formatted:
-black --check
-
-# Show the changes that would be applied to the code:
-black --diff
diff --git a/assets/cheatsheets/bower b/assets/cheatsheets/bower
deleted file mode 100644
index 29987af..0000000
--- a/assets/cheatsheets/bower
+++ /dev/null
@@ -1,29 +0,0 @@
----
-tags: [ packaging ]
----
-# To install a package:
-bower install
-
-# To install a package from github:
-bower install /
-
-# To install a specific package locally:
-bower install #
-
-# To install a package locally and save installed package into bower.json:
-bower install --save
-
-# To retrieve info of a particular package:
-bower info
-
-# To list local packages:
-bower list
-
-# To search for a package by name:
-bower search
-
-# To update a package to their newest version:
-bower update
-
-# To remove a local package:
-bower uninstall
diff --git a/assets/cheatsheets/brew b/assets/cheatsheets/brew
deleted file mode 100644
index 71a40f2..0000000
--- a/assets/cheatsheets/brew
+++ /dev/null
@@ -1,30 +0,0 @@
----
-syntax: bash
-tags: [ mac, deps ]
----
-# Update
-brew update
-
-# Upgrade everything
-brew upgrade
-
-# Upgrade specific formula
-brew upgrade
-
-# Install formula
-brew install
-
-# Install cask
-brew install --cask
-
-# Uninstall
-brew uninstall
-
-# List installed formulae
-brew list
-
-# Fix
-brew doctor
-
-# Clean up
-brew cleanup
diff --git a/assets/cheatsheets/bzip2 b/assets/cheatsheets/bzip2
deleted file mode 100644
index 867af21..0000000
--- a/assets/cheatsheets/bzip2
+++ /dev/null
@@ -1,14 +0,0 @@
----
-tags: [ compression ]
----
-# To compress a file (foo -> foo.bz2):
-bzip2 -z foo
-
-# To decompress a file (foo.bz2 -> foo)
-bzip2 -d foo.bz2
-
-# To compress foo to stdout:
-bzip2 -zc foo > foo.bz2
-
-# To decompress foo.bz2 to stdout:
-bzip2 -dc foo.bz2
diff --git a/assets/cheatsheets/cat b/assets/cheatsheets/cat
deleted file mode 100644
index b9834fe..0000000
--- a/assets/cheatsheets/cat
+++ /dev/null
@@ -1,8 +0,0 @@
-# To display the contents of a file:
-cat
-
-# To display file contents with line numbers
-cat -n
-
-# To display file contents with line numbers (blank lines excluded)
-cat -b
diff --git a/assets/cheatsheets/cd b/assets/cheatsheets/cd
deleted file mode 100644
index b6e928a..0000000
--- a/assets/cheatsheets/cd
+++ /dev/null
@@ -1,17 +0,0 @@
-# Go to the given directory:
-cd path/to/directory
-
-# Go to home directory of current user:
-cd
-
-# Go up to the parent of the current directory:
-cd ..
-
-# Go to the previously chosen directory:
-cd -
-
-# Go to a physical dir instead of default -L:
-cd -P path/to/dir
-
-# Some people alias cd="cd -P" and pwd="pwd -P"
-# So that `ls ..` and `cd ..; ls .` yield the same thing.
diff --git a/assets/cheatsheets/cheat b/assets/cheatsheets/cheat
deleted file mode 100644
index 0bfb78d..0000000
--- a/assets/cheatsheets/cheat
+++ /dev/null
@@ -1,14 +0,0 @@
-# To see example usage of a program:
-cheat
-
-# To edit a cheatsheet
-cheat -e
-
-# To list available cheatsheets
-cheat -l
-
-# To search available cheatsheets
-cheat -s
-
-# To get the current `cheat' version
-cheat -v
diff --git a/assets/cheatsheets/chmod b/assets/cheatsheets/chmod
deleted file mode 100644
index 3af8ad6..0000000
--- a/assets/cheatsheets/chmod
+++ /dev/null
@@ -1,40 +0,0 @@
-# Add execute for all (myscript.sh)
-chmod a+x myscript.sh
-
-# Set user to read/write/execute, group/global to read only (myscript.sh), symbolic mode
-chmod u=rwx, go=r myscript.sh
-
-# Remove write from user/group/global (myscript.sh), symbolic mode
-chmod a-w myscript.sh
-
-# Remove read/write/execute from user/group/global (myscript.sh), symbolic mode
-chmod = myscript.sh
-
-# Set user to read/write and group/global read (myscript.sh), octal notation
-chmod 644 myscript.sh
-
-# Set user to read/write/execute and group/global read/execute (myscript.sh), octal notation
-chmod 755 myscript.sh
-
-# Set user/group/global to read/write (myscript.sh), octal notation
-chmod 666 myscript.sh
-
-# Roles
-u - user (owner of the file)
-g - group (members of file's group)
-o - global (all users who are not owner and not part of group)
-a - all (all 3 roles above)
-
-# Numeric representations
-7 - full (rwx)
-6 - read and write (rw-)
-5 - read and execute (r-x)
-4 - read only (r--)
-3 - write and execute (-wx)
-2 - write only (-w-)
-1 - execute only (--x)
-0 - none (---)
-
-# Delete ACL number 0 (MacOS):
-# See: `man -M /usr/share/man chmod`
-/bin/chmod -a# 0 /path/to/file
diff --git a/assets/cheatsheets/chown b/assets/cheatsheets/chown
deleted file mode 100644
index e8dcffa..0000000
--- a/assets/cheatsheets/chown
+++ /dev/null
@@ -1,17 +0,0 @@
-# Change a file's owner:
-chown
-
-# Change a file's owner and group:
-chown :
-
-# Set user to match group value
-chown :
-
-# Set group to match user value
-chown :
-
-# Change a directory's owner recursively:
-chown -R
-
-# Change ownership to match another file:
-chown --reference=
diff --git a/assets/cheatsheets/comm b/assets/cheatsheets/comm
deleted file mode 100644
index e073479..0000000
--- a/assets/cheatsheets/comm
+++ /dev/null
@@ -1,8 +0,0 @@
-# Print lines appearing in both and :
-comm -12 <(sort file1.csv) <(sort file2.csv)
-
-# Print lines appearing only in :
-comm -23
-
-# For diffing CSVs from a database, consider:
-# https://aswinkarthik.github.io/csvdiff/
diff --git a/assets/cheatsheets/conda b/assets/cheatsheets/conda
deleted file mode 100644
index 6dfe283..0000000
--- a/assets/cheatsheets/conda
+++ /dev/null
@@ -1,22 +0,0 @@
----
-tags: [ packaging ]
----
-# To list environments
-conda env list
-
-# To initialise an environment
-conda create --name 'ENVNAME'
-
-# To initialise an environment with python
-conda create --name 'ENVNAME' python=3.10
-
-# To install from requirements.txt
-conda install --file requirements.txt
-
-# To activate a virtual environment
-conda activate 'ENVNAME'
-
-# To remove and environment
-conda env remove --name 'ENVNAME'
-# or
-conda env remove --prefix /path/to/env
diff --git a/assets/cheatsheets/convert b/assets/cheatsheets/convert
deleted file mode 100644
index 8c1dab1..0000000
--- a/assets/cheatsheets/convert
+++ /dev/null
@@ -1,27 +0,0 @@
-# To convert a file from jpg to pdf
-convert original.jpg converted.pdf
-
-# To resize an image to a fixed width and proportional height:
-convert original.jpg -resize 100x converted.jpg
-
-# To resize an image to a fixed height and proportional width:
-convert original.jpg -resize x100 converted.jpg
-
-# To resize an image to a fixed width and height:
-convert original.jpg -resize 100x100 converted.jpg
-
-# To resize an image and simultaneously change its file type:
-convert original.jpg -resize 100x converted.png
-
-# To resize all of the images within a directory:
-for file in `ls original/image/path/`;
- do new_path=${file%.*};
- new_file=`basename $new_path`;
- convert $file -resize 150 converted/image/path/$new_file.png;
-done
-
-# To convert an N page pdf to N images (will autonumber):
-convert -density 150 arch1.pdf -quality 80 'output.jpg'
-
-# To convert an N page pdf to N images with explicit filename formatting:
-convert -density 150 arch1.pdf -quality 80 'output-%d.jpg'
diff --git a/assets/cheatsheets/cp b/assets/cheatsheets/cp
deleted file mode 100644
index 93bb3dd..0000000
--- a/assets/cheatsheets/cp
+++ /dev/null
@@ -1,19 +0,0 @@
-# To copy a file:
-cp ~/Desktop/foo.txt ~/Downloads/foo.txt
-
-# To copy a directory:
-cp -r ~/Desktop/cruise_pics/ ~/Pictures/
-
-# To create a copy but ask to overwrite if the destination file already exists:
-cp -i ~/Desktop/foo.txt ~/Documents/foo.txt
-
-# To create a backup file with date:
-cp foo.txt{,."$(date +%Y%m%d-%H%M%S)"}
-
-# To copy a symlink that points to a directory (and is thus soft) and not
-# 'expand' the symlink (aka, preserve its nature as a symlink):
-# Note this does NOT work (note trailing '/'): cp -P /path/to/symlink-dir/
-cp -P
-
-# To copy sparsely:
-cp --sparse=always
diff --git a/assets/cheatsheets/cpan b/assets/cheatsheets/cpan
deleted file mode 100644
index 5280fa1..0000000
--- a/assets/cheatsheets/cpan
+++ /dev/null
@@ -1,42 +0,0 @@
----
-tags: [ perl ]
----
-# install one or more modules
-cpan [Another::Module]
-
-# force install a module
-cpan -fi
-
-# install a module in local::lib
-cpan -I
-
-# install a module while skipping all tests
-cpan -T
-
-# see a module changes, without installing it
-cpan -C
-
-# see a module's details, without installing it
-cpan -D
-
-# list close matches to a module's name
-cpan -x
-
-# download a distro, without installing it
-cpan -g
-
-# list all installed modules with their versions
-cpan -l
-
-# create a CPAN Autobundle
-cpan -a
-
-# install the module in the current distro directory
-cpan .
-
-# start the CPAN shell
-cpan
-cpan -s
-
-# read the complete cpan docs
-perldoc cpan
diff --git a/assets/cheatsheets/cpanm b/assets/cheatsheets/cpanm
deleted file mode 100644
index d73ea10..0000000
--- a/assets/cheatsheets/cpanm
+++ /dev/null
@@ -1,35 +0,0 @@
----
-tags: [ perl ]
----
-see https://github.com/miyagawa/cpanminus
-
-# install Some::Module
-cpanm
-
-# install from CPAN distribution path, like AUTHOR/Some-Module-1.00.tar.gz
-cpanm
-
-# install from URL
-cpanm
-
-# install from a local file
-cpanm
-
-# Configure interactively
-cpanm --interactive
-
-# install from local directory
-cpanm .
-
-# install all the deps for the current directory
-cpanm --installdeps .
-
-# install Some::Module and all non-core deps into extlib
-cpanm -L extlib
-
-# use the fast-syncing mirror
-cpanm --mirror
-
-# use only the HTTPS mirror
-cpanm --from https://some.mirror.host/
-
diff --git a/assets/cheatsheets/cpdf b/assets/cheatsheets/cpdf
deleted file mode 100644
index 61c7243..0000000
--- a/assets/cheatsheets/cpdf
+++ /dev/null
@@ -1,132 +0,0 @@
-# Read in.pdf, select pages 1, 2, 3 and 6, and write those pages to
-# out.pdf
-cpdf in.pdf 1-3,6 -o out.pdf
-
-# Select the even pages (2, 4, 6...) from in.pdf and write those pages
-# to out.pdf
-cpdf in.pdf even -o out.pdf
-
-# Using AND to perform several operations in order, here merging two
-# files together and adding a copyright stamp to every page.
-cpdf -merge in.pdf in2.pdf AND -add-text "Copyright 2014" -o out.pdf
-
-# Read control.txt and use its contents as the command line arguments
-# for cpdf.
-cpdf -control control.txt
-
-# Merge in.pdf and in2.pdf into one document, writing to out.pdf.
-cpdf -merge in.pdf in2.pdf -o out.pdf
-
-# Split in.pdf into ten-page chunks, writing them to Chunk001.pdf,
-# Chunk002.pdf etc
-cpdf -split in.pdf -o Chunk%%%.pdf -chunk 10
-
-# Split in.pdf on bookmark boundaries, writing each to a file whose
-# name is the bookmark label
-cpdf -split-bookmarks 0 in.pdf -o @N.pdf
-
-# Scale both the dimensions and contents of in.pdf by a factor of two
-# in x and y directions.
-cpdf -scale-page "2 2" in.pdf -o out.pdf
-
-# Scale the pages in in.pdf to fit the US Letter page size, writing to
-# out.pdf
-cpdf -scale-to-fit usletterportrait in.pdf -o out.pdf
-
-# Shift the contents of the page by 26 pts in the x direction, and 18
-# millimetres in the y direction, writing to out.pdf
-cpdf -shift "26pt 18mm" in.pdf -o out.pdf
-
-# Rotate the contents of the pages in in.pdf by ninety degrees and
-# write to out.pdf.
-cpdf -rotate-contents 90 in.pdf -o out.pdf
-
-# Crop the pages in in.pdf to a 600 pts by 400 pts rectangle.
-cpdf -crop "0 0 600pt 400pt" in.pdf -o out.pdf
-
-# Encrypt using 128bit PDF encryption using the owner password 'fred'
-# and the user password 'joe'
-cpdf -encrypt 128bit fred joe in.pdf -o out.pdf
-
-# Decrypt using the owner password, writing to out.pdf.
-cpdf -decrypt in.pdf owner=fred -o out.pdf
-
-# Compress the data streams in in.pdf, writing the result to out.pdf.
-cpdf -compress in.pdf -o out.pdf
-
-# Decompress the data streams in in.pdf, writing to out.pdf.
-cpdf -decompress in.pdf -o out.pdf
-
-# List the bookmarks in in.pdf. This would produce:
-cpdf -list-bookmarks in.pdf
-
-# Outputs:
-
-# Add bookmarks in the same form from a prepared file bookmarks.txt to
-# in.pdf, writing to out.pdf.
-cpdf -add-bookmarks bookmarks.txt in.pdf -o out.pdf
-
-# Use the Split style to build a presentation from the PDF in.pdf,
-# each slide staying 10 seconds on screen unless manually advanced.
-# The first page, being a title does not move on automatically, and
-# has no transition effect.
-cpdf -presentation in.pdf 2-end -trans Split -duration 10 -o out.pdf
-
-# Stamp the file watermark.pdf on to each page of in.pdf, writing the
-# result to out.pdf.
-cpdf -stamp-on watermark.pdf in.pdf -o out.pdf
-
-# Add a page number and date to all the pages in in.pdf using the
-# Courier font, writing to out.pdf
-cpdf -topleft 10 -font Courier -add-text "Page %Page\nDate %d-%m-%Y" in.pdf -o out.pdf
-
-# Two up impose the file in.pdf, writing to out.pdf
-cpdf -twoup-stack in.pdf -o out.pdf
-
-# Add extra blank pages after pages one, three and four of a document.
-cpdf -pad-after 1,3,4 in.pdf -o out.pdf
-
-# List the annotations in a file in.pdf to standard output.
-cpdf -list-annotations in.pdf
-
-# Might Produce:
-
-# -- # Annotation text content 1 # -- # -- # Annotation text content 2
-# --
-
-# Copy the annotations from from.pdf to in.pdf, writing to out.pdf.
-cpdf -copy-annotations from.pdf in.pdf -o out.pdf
-
-# Set the document title of in.pdf. writing to out.pdf.
-cpdf -set-title "The New Title" in.pdf -o out.pdf
-
-# Set the document in.pdf to open with the Acrobat Viewer's toolbar
-# hidden, writing to out.pdf.
-cpdf -hide-toolbar true in.pdf -o out.pdf
-
-# Set the metadata in a PDF in.pdf to the contents of the file
-# metadata.xml, and write the output to out.pdf.
-cpdf -set-metadata metadata.xml in.pdf -o out.pdf
-
-# Set the document in.pdf to open in Acrobat Viewer showing two
-# columns of pages, starting on the right, putting the result in
-# out.pdf.
-cpdf -set-page-layout TwoColumnRight in.pdf -o out.pdf
-
-# Set the document in.pdf to open in Acrobat Viewer in full screen
-# mode, putting the result in out.pdf.
-cpdf -set-page-mode FullScreen in.pdf -o out.pdf
-
-# Attach the file sheet.xls to in.pdf, writing to out.pdf.
-cpdf -attach-file sheet.xls in.pdf -o out.pdf
-
-# Remove any attachments from in.pdf, writing to out.pdf.
-cpdf -remove-files in.pdf -o out.pdf
-
-# Blacken all the text in in.pdf, writing to out.pdf.
-cpdf -blacktext in.pdf -o out.pdf
-
-# Make sure all lines in in.pdf are at least 2 pts wide, writing to
-# out.pdf.
-cpdf -thinlines 2pt in.pdf -o out.pdf
-
diff --git a/assets/cheatsheets/crontab b/assets/cheatsheets/crontab
deleted file mode 100644
index f58d170..0000000
--- a/assets/cheatsheets/crontab
+++ /dev/null
@@ -1,37 +0,0 @@
----
-tags: [ job, scheduler, periodic ]
----
-# set a shell
-SHELL=/bin/bash
-
-# set a PATH
-PATH=/usr/bin:/usr/sbin:/usr/local/bin
-
-# incorrect way of seeting PATH
-PATH=$PATH:/do/not/do/this
-
-# crontab format
-* * * * * command_to_execute
-- - - - -
-| | | | |
-| | | | +- day of week (0 - 7) (where sunday is 0 and 7)
-| | | +--- month (1 - 12)
-| | +----- day (1 - 31)
-| +------- hour (0 - 23)
-+--------- minute (0 - 59)
-
-# example entries
-# every 15 min
-*/15 * * * * /home/user/command.sh
-
-# every midnight
-0 0 * * * /home/user/command.sh
-
-# every Saturday at 8:05 AM
-5 8 * * 6 /home/user/command.sh
-
-# compute your crontab periodicity format online
-https://crontab.guru/
-
-# be careful with % sign (percent), it has special meaning, see https://crontab.guru/ for explanation
-% signs must be escaped such as \%
diff --git a/assets/cheatsheets/cryptsetup b/assets/cheatsheets/cryptsetup
deleted file mode 100644
index 1508512..0000000
--- a/assets/cheatsheets/cryptsetup
+++ /dev/null
@@ -1,8 +0,0 @@
-# To open an encrypted partition /dev/sdb1 (reachable at /dev/mapper/backup):
-cryptsetup open --type luks /dev/sdb1 backup
-
-# To open an encrypted partition /dev/sdb1 using a keyfile (reachable at /dev/mapper/hdd):
-cryptsetup open --type luks --key-file hdd.key /dev/sdb1 hdd
-
-# To close luks container at /dev/mapper/hdd:
-cryptsetup close hdd
diff --git a/assets/cheatsheets/csplit b/assets/cheatsheets/csplit
deleted file mode 100644
index a8e4840..0000000
--- a/assets/cheatsheets/csplit
+++ /dev/null
@@ -1,5 +0,0 @@
-# To split a file based on a pattern:
-csplit '/PATTERN/'
-
-# To use prefix/suffix to improve output file names:
-csplit -f 'prefix-' -b '%d.extension' '/PATTERN/' '{*}'
diff --git a/assets/cheatsheets/cups b/assets/cheatsheets/cups
deleted file mode 100644
index 64c35e5..0000000
--- a/assets/cheatsheets/cups
+++ /dev/null
@@ -1,21 +0,0 @@
-# To manage printers through CUPS:
-http://localhost:631 (in web browser)
-
-# To print a file:
-lp
-
-# To display the print queue:
-lpq
-
-# Remove a print job from the queue:
-lprm 545 #or:
-lprm -
-
-# To print log location:
-/var/log/cups
-
-# To reject new jobs:
-cupsreject
-
-# To accept new jobs:
-cupsaccept
diff --git a/assets/cheatsheets/curl b/assets/cheatsheets/curl
deleted file mode 100644
index 772de7f..0000000
--- a/assets/cheatsheets/curl
+++ /dev/null
@@ -1,41 +0,0 @@
-# To download a file:
-curl
-
-# To download and rename a file:
-curl -o
-
-# To download multiple files:
-curl -O -O
-
-# To download all sequentially numbered files (1-24):
-curl http://example.com/pic[1-24].jpg
-
-# To download a file and pass HTTP authentication:
-curl -u :
-
-# To download a file with a proxy:
-curl -x :
-
-# To download a file over FTP:
-curl -u : -O ftp://example.com/pub/file.zip
-
-# To get an FTP directory listing:
-curl ftp://username:password@example.com
-
-# To resume a previously failed download:
-curl -C - -o
-
-# To fetch only the HTTP headers from a response:
-curl -I
-
-# To fetch your external IP and network info as JSON:
-curl http://ifconfig.me/all.json
-
-# To limit the rate of a download:
-curl --limit-rate 1000B -O
-
-# To get your global IP:
-curl httpbin.org/ip
-
-# To get only the HTTP status code:
-curl -o /dev/null -w '%{http_code}\n' -s -I URL
diff --git a/assets/cheatsheets/cut b/assets/cheatsheets/cut
deleted file mode 100644
index 1e7939f..0000000
--- a/assets/cheatsheets/cut
+++ /dev/null
@@ -1,2 +0,0 @@
-# To cut out the third field of text or stdoutput that is delimited by a #:
-cut -d# -f3
diff --git a/assets/cheatsheets/date b/assets/cheatsheets/date
deleted file mode 100644
index 8c9c6d0..0000000
--- a/assets/cheatsheets/date
+++ /dev/null
@@ -1,52 +0,0 @@
----
-tags: [ date, time ]
----
-# To print Abbreviated weekday name:
-date +"%a"
-
-# To print Full month name:
-date +"%B"
-
-# To print ISO date (same as %Y-%m-%d):
-date +"%F"
-
-# To print Time (same as %H:%M:%S):
-date +"%T"
-
-# To print Sunday week number (00 to 53):
-date +"%U"
-
-# To print Monday week number (00 to 53):
-date +"%W"
-
-# To print Time (localized):
-date +"%X"
-
-# To print 4-digit year:
-date +"%Y"
-
-# To print Timezone name:
-date +"%Z"
-# To print the date in a format suitable for affixing to file names:
-date +"%Y%m%d_%H%M%S"
-
-# To convert a Unix timestamp to Date (Linux):
-date -d @1440359821
-
-# To convert a Unix timestamp to Date (OSX):
-date -r 1440359821
-
-# To show the current timezone:
-date +%Z
-
-# To show date in RFC format with TZ offset:
-date -R
-
-# To show date in UTC/GMT:
-date -u
-
-# To show date in CET:
-TZ=CET date
-
-# To show the time on the west coast of the US (use tzselect(1) to find TZ):
-TZ='America/Los_Angeles' date
diff --git a/assets/cheatsheets/dd b/assets/cheatsheets/dd
deleted file mode 100644
index 76099c5..0000000
--- a/assets/cheatsheets/dd
+++ /dev/null
@@ -1,28 +0,0 @@
-# Read from {/dev/urandom} 2*512 Bytes and put it into {/tmp/test.txt}
-# Note: At the first iteration, we read 512 Bytes.
-# Note: At the second iteration, we read 512 Bytes.
-dd if=/dev/urandom of=/tmp/test.txt count=2 bs=512
-
-# Watch the progress of 'dd'
-dd if=/dev/zero of=/dev/null bs=4KB &; export dd_pid=`pgrep '^dd'`; while [[ -d /proc/$dd_pid ]]; do kill -USR1 $dd_pid && sleep 1 && clear; done
-
-# Watch the progress of 'dd' with `pv` and `dialog` (apt-get install pv dialog)
-(pv -n /dev/zero | dd of=/dev/null bs=128M conv=notrunc,noerror) 2>&1 | dialog --gauge "Running dd command (cloning), please wait..." 10 70 0
-
-# Watch the progress of 'dd' with `pv` and `zenity` (apt-get install pv zenity)
-(pv -n /dev/zero | dd of=/dev/null bs=128M conv=notrunc,noerror) 2>&1 | zenity --title 'Running dd command (cloning), please wait...' --progress
-
-# Watch the progress of 'dd' with the built-in `progress` functionality
-# (introduced in coreutils v8.24)
-dd if=/dev/zero of=/dev/null bs=128M status=progress
-
-# DD with "graphical" return
-dcfldd if=/dev/zero of=/dev/null bs=500K
-
-# This will output the sound from your microphone port to the ssh target
-# computer's speaker port. The sound quality is very bad, so you will hear a
-# lot of hissing.
-dd if=/dev/dsp | ssh -c arcfour -C username@host dd of=/dev/dsp
-
-# Create a 1MB file with zero allocated blocks:
-dd if=/dev/zero of=foo1 seek=1 bs=1M count=0
diff --git a/assets/cheatsheets/deb b/assets/cheatsheets/deb
deleted file mode 100644
index 750614f..0000000
--- a/assets/cheatsheets/deb
+++ /dev/null
@@ -1,10 +0,0 @@
----
-tags: [ packaging ]
----
-# To extract the contents of a .deb file:
-ar vx foo.deb # -> data.tar.gz
-tar xf data.tar.gz
-
-# To install .deb file to a debian like system (e.g: Ubuntu):
-sudo dpkg -i foo.deb
-sudo apt-get install -f
diff --git a/assets/cheatsheets/df b/assets/cheatsheets/df
deleted file mode 100644
index 21e88bc..0000000
--- a/assets/cheatsheets/df
+++ /dev/null
@@ -1,5 +0,0 @@
-# To print free disk space in a human-readable format:
-df -h
-
-# To print the disk for a given path:
-df -d
diff --git a/assets/cheatsheets/dhclient b/assets/cheatsheets/dhclient
deleted file mode 100644
index a0e80e5..0000000
--- a/assets/cheatsheets/dhclient
+++ /dev/null
@@ -1,13 +0,0 @@
----
-tags: [ networking ]
----
-# To release the current IP address:
-sudo dhclient -r
-
-# To obtain a new IP address:
-sudo dhclient
-
-# Running the above in sequence is a common way of refreshing an IP.
-
-# To obtain a new IP address for a specific interface:
-sudo dhclient
diff --git a/assets/cheatsheets/diff b/assets/cheatsheets/diff
deleted file mode 100644
index 6527a52..0000000
--- a/assets/cheatsheets/diff
+++ /dev/null
@@ -1,26 +0,0 @@
-# To view the differences between two files:
-diff -u
-
-# To view the differences between two directories:
-diff -ur
-
-# To ignore whitespace:
-diff -ub
-
-# To ignore blank lines:
-diff -uB
-
-# To ignore the differences between uppercase and lowercase:
-diff -ui
-
-# To report whether the files differ:
-diff -q
-
-# To report whether the files are identical:
-diff -s
-
-# To diff the output of two commands or scripts:
-diff <(command1) <(command2)
-
-# To generate a patch file from two files:
-diff -Naur >
diff --git a/assets/cheatsheets/distcc b/assets/cheatsheets/distcc
deleted file mode 100644
index 2564761..0000000
--- a/assets/cheatsheets/distcc
+++ /dev/null
@@ -1,29 +0,0 @@
-# INSTALL
-# ==============================================================================
-# Edit /etc/default/distcc and set theses vars
-# STARTDISTCC="true"
-# ALLOWEDNETS="127.0.0.1 192.168.1.0/24"# Your computer and local computers
-# #LISTENER="127.0.0.1"# Comment it
-# ZEROCONF="true"# Auto configuration
-
-# REMEMBER 1:
-# Start/Restart your distccd servers before using one of these commands.
-# service distccd start
-
-# REMEMBER 2:
-# Do not forget to install on each machine DISTCC.
-# No need to install libs ! Only main host need libs !
-
-# USAGE
-# ==============================================================================
-
-# Run make with 4 thread (a cross network) in auto configuration.
-# Note: for gcc, Replace CXX by CC and g++ by gcc
-ZEROCONF='+zeroconf' make -j4 CXX='distcc g++'
-
-# Run make with 4 thread (a cross network) in static configuration (2 ip)
-# Note: for gcc, Replace CXX by CC and g++ by gcc
-DISTCC_HOSTS='127.0.0.1 192.168.1.69' make -j4 CXX='distcc g++'
-
-# Show hosts aviables
-ZEROCONF='+zeroconf' distcc --show-hosts
diff --git a/assets/cheatsheets/dnf b/assets/cheatsheets/dnf
deleted file mode 100644
index 524ea0e..0000000
--- a/assets/cheatsheets/dnf
+++ /dev/null
@@ -1,19 +0,0 @@
----
-tags: [ packaging ]
----
-# To install a package:
-dnf install
-
-# To find packages matching :
-dnf search
-
-# To find which package provides an executable:
-dnf provides
-
-# The following are available after installing "dnf-plugins-core"
-
-# To download a package:
-dnf download
-
-# To install the build dependencies for a SRPM or from a .spec file:
-dnf builddep
diff --git a/assets/cheatsheets/docker b/assets/cheatsheets/docker
deleted file mode 100644
index dcf831f..0000000
--- a/assets/cheatsheets/docker
+++ /dev/null
@@ -1,59 +0,0 @@
-# To start the docker daemon:
-docker -d
-
-# To build a docker image:
-docker build -t
-
-# To start a container with an interactive shell:
-docker run -ti /bin/bash
-
-# To "shell" into a running container (docker-1.3+):
-docker exec -ti bash
-
-# To inspect a running container:
-docker inspect (or )
-
-# To get the process ID for a container:
-docker inspect --format {{.State.Pid}}
-
-# To list (and pretty-print) the current mounted volumes for a container:
-docker inspect --format='{{json .Volumes}}' | python -mjson.tool
-
-# To copy files/folders between a container and your host:
-docker cp foo.txt mycontainer:/foo.txt
-
-# To list currently running containers:
-docker ps
-
-# To list all containers:
-docker ps -a
-
-# To remove all stopped containers:
-docker rm $(docker ps -qa)
-
-# To list all images:
-docker images
-
-# To remove all untagged images:
-docker rmi $(docker images | grep "^" | awk '{print $3}')
-
-# To remove all volumes not used by at least one container:
-docker volume prune
-
-# To save image as tar archive:
-docker save -o .tar
-
-# To restore image from a saved tar archive:
-docker load -i .tar
-
-# To remove an image image:
-docker image rm
-
-# To tag an image:
-docker image tag : :
-
-# To login into hub.docker.com:
-docker login
-
-# To push a docker image into dockerhub repository:
-docker push :
diff --git a/assets/cheatsheets/dpkg b/assets/cheatsheets/dpkg
deleted file mode 100644
index af5c312..0000000
--- a/assets/cheatsheets/dpkg
+++ /dev/null
@@ -1,14 +0,0 @@
----
-tags: [ packaging ]
----
-# To install or upgrade a package:
-dpkg -i
-
-# To remove a package (including configuration files):
-dpkg -P
-
-# To list all installed packages with versions and details:
-dpkg -l
-
-# To determine whether a Debian package is installed:
-dpkg -s | grep Status
diff --git a/assets/cheatsheets/du b/assets/cheatsheets/du
deleted file mode 100644
index d391127..0000000
--- a/assets/cheatsheets/du
+++ /dev/null
@@ -1,18 +0,0 @@
-# To sort directories/files by size:
-du -sk *| sort -rn
-
-# To show cumulative human-readable size:
-du -sh
-
-# To show cumulative human-readable size and dereference symlinks:
-du -shL
-
-# Show apparent size instead of disk usage (so sparse files will show greater
-# than zero):
-du -h --apparent-size
-
-# To sort directories/files by size (human-readable):
-du -sh * | sort -rh
-
-# To list the 20 largest files and folders under the current working directory:
-du -ma | sort -nr | head -n 20
diff --git a/assets/cheatsheets/dwm b/assets/cheatsheets/dwm
deleted file mode 100644
index ec89bb5..0000000
--- a/assets/cheatsheets/dwm
+++ /dev/null
@@ -1,79 +0,0 @@
-Basic
-=====
-# launch terminal.
-[Shift]+[Mod]+[Enter]
-
-# show/hide bar.
-[Mod]+[b]
-
-# dmenu for running programs like the x#www#browser.
-[Mod]+[p]
-
- # push acive window from stack to master, or pulls last used window from stack onto master.
-[Mod]+[Enter]
-
- # focus on next/previous window in current tag.
-[Mod] + [j / k]
-
- # increases / decreases master size.
-[Mod] + [h / l]
-
-
-Navigation
-==========
-# moves your focus to tag 2.
-[Mod]+[2]
-
-# move active window to the 2 tag.
-[Shift]+[Mod]+[2]
-
- # increases / decreases number of windows on master
-[Mod] + [i / d]
-
-# move focus between screens (multi monitor setup)
-[Mod] + [, / .]
-
-# move active window to different screen.
-[Shift]+[Mod]+[, / .]
-
-# view all windows on screen.
-[Mod]+[0]
-
-# make focused window appear on all tags.
-[Shift]+[Mod]+[0]
-
-# kill active window.
-[Shift]+[Mod]+[c]
-
-# quit dwm cleanly.
-[Shift]+[Mod]+[q]
-
-
-Layout
-======
-# tiled mode. []=
-[Mod]+[t]
-
-# floating mode. ><>
-[Mod]+[f]
-
-# monocle mode. [M] (single window fullscreen)
-[Mod]+[m]
-
-
-Floating
-========
-# to resize the floating window.
-[Mod]+[R M B]
-
-# to move the floating window around.
-[Mod]+[L M B]
-
-# toggles to the previous layout mode.
-[Mod]+[Space]
-
-# to make an individual window float.
-[Mod]+[Shift]+[Space]
-
-# to make an individual window un#float.
-[Mod]+[M M B]
diff --git a/assets/cheatsheets/ed b/assets/cheatsheets/ed
deleted file mode 100644
index a4635b8..0000000
--- a/assets/cheatsheets/ed
+++ /dev/null
@@ -1,86 +0,0 @@
----
-tags: [ ed ]
----
-
-# File and buffer management
-
-:e {file} load file to buffer
-:q quit
-:Q quit without saving changes
-:f {name} change buffer name
-:w write to file using current buffer name
-:w {file} write buffer to new file
-:wq write buffer to existing file and exit
-
-# Line-oriented addressing and movement
-# `ed' uses line addresses to move around and operate within a buffer
-# Move to or operate on single lines by entering the line number
-# Move to or operate on ranges of lines using comma-separated values
-# The active line is always set to the last number of the range entered
-
-. or p display current line
-n display current line with line number
-
-1,$ or , range indicating the entire buffer; displays final line
-
-3 or 3p move to line 3 of the buffer and display
-3n move to line 3 of the buffer and display with line number
-
-1,$p or ,p display entire buffer without line numbers
-1,$n or ,n display entire buffer with line numbers
-
-15,25p display lines 15 through 25 of the buffer
-15,25n display lines 15 through 25 of the buffer with line numbers
-
-# Line editing commands
-# All commands can be prefixed with line addresses/ranges
-
-i start editing by inserting new text before the current line
-a start editing by inserting new text after the current line
-c clear contents of current line and replace with new text
-. a period [.] enterd alone on a new line ends the active edit
-
-d delete current line
-1,3d delete lines 1 through 3
-
-u undo last edit
-
-r {file} read contents of {file} into buffer after current line
-r !{command} read output of {command} into buffer after current line
-
-# Example of a simple editing session
-
-e test.txt edit file "test.txt"
-45 `ed' returns character count as confirmation
-1,3n display lines 1 through 3 with line numbers
-1 This is line 1
-2 This is line 2
-3 This is line 3
-2c change line 2
-I am typing a new line 2
-. end active edit
-1,3n display lines 1 thorugh 3 with line numbers
-1 This is line 1
-2 I am typing a new line 2
-3 This is line 3
-wq write file "test.txt" and exit
-
-# Search
-# Accepts regexps in search strings
-
-g/foo/ search all lines for `foo' and display matching lines
-g/foo/n search all lines for `foo'; display with line numbers
-
-4,9/foo/ search lines 1 through 5 for `foo' and display matches
-4,9/foo/n search lines 1 through 5 for `foo'; display with line numbers
-
-# Replace
-# Accepts regexps in search and replace strings
-
-s/foo/bar replace first instance of `foo' with `bar' on the current line
-s/foo/bar/{n} replace {n}th instance of `foo' with `bar' on the current line
-s/foo/bar/g replace all instances of `foo' with `bar' on the current line
-
-1,4/foo/bar/g replace all instances of `foo' with `bar` in lines 1 through 4
-
-,s/foo/bar/g replace all instances of `foo' with `bar' in the entire buffer
diff --git a/assets/cheatsheets/emacs b/assets/cheatsheets/emacs
deleted file mode 100644
index 88f3f6e..0000000
--- a/assets/cheatsheets/emacs
+++ /dev/null
@@ -1,64 +0,0 @@
-# Running emacs
-
- GUI mode $ emacs
- Terminal mode $ emacs -nw
-
-# Basic usage
-
- Indent Select text then press TAB
- Cut C-w
- Copy M-w
- Paste ("yank") C-y
- Begin selection C-SPACE
- Search/Find C-s
- Replace M-% (M-SHIFT-5)
- Save C-x C-s
- Save as C-x C-w
- Load/Open C-x C-f
- Undo C-x u
- Highlight all text C-x h
- Directory listing C-x d
- Cancel a command C-g
- Font size bigger C-x C-+
- Font size smaller C-x C--
-
-# Buffers
-
- Split screen vertically C-x 2
- Split screen vertically with 5 row height C-u 5 C-x 2
- Split screen horizontally C-x 3
- Split screen horizontally with 24 column width C-u 24 C-x 3
- Revert to single screen C-x 1
- Hide the current screen C-x 0
- Move to the next screen C-x o
- Kill the current buffer C-x k
- Select a buffer C-x b
- Run command in the scratch buffer C-x C-e
-
-# Navigation ( backward / forward )
-
- Character-wise C-b , C-f
- Word-wise M-b , M-f
- Line-wise C-p , C-n
- Sentence-wise M-a , M-e
- Paragraph-wise M-{ , M-}
- Function-wise C-M-a , C-M-e
- Line beginning / end C-a , C-e
-
-# Other stuff
-
- Open a shell M-x eshell
- Goto a line number M-x goto-line
- Word wrap M-x toggle-word-wrap
- Spell checking M-x flyspell-mode
- Line numbers M-x linum-mode
- Toggle line wrap M-x visual-line-mode
- Compile some code M-x compile
- List packages M-x package-list-packages
-
-# Line numbers
-
- To add line numbers and enable moving to a line with C-l:
-
- (global-set-key "\C-l" 'goto-line)
- (add-hook 'find-file-hook (lambda () (linum-mode 1)))
diff --git a/assets/cheatsheets/ethtool b/assets/cheatsheets/ethtool
deleted file mode 100644
index 355e5c2..0000000
--- a/assets/cheatsheets/ethtool
+++ /dev/null
@@ -1,18 +0,0 @@
----
-syntax: bash
-tags: [networking]
----
-# To show statistics for the selected interface:
-ethtool -S
-
-# To show interface permanent address:
-ethotool -P
-
-# To set interface speed:
-ethtool -s [ speed %d ]
-
-# To set interface autonegotiation:
-ethtool -s [ autoneg on|off ]
-
-# To get interface errors:
-ethtool -S | grep error
diff --git a/assets/cheatsheets/export b/assets/cheatsheets/export
deleted file mode 100644
index 1b89678..0000000
--- a/assets/cheatsheets/export
+++ /dev/null
@@ -1,5 +0,0 @@
-# To show current shell attributes:
-export
-
-# To export an environment variable:
-export VARNAME="value"
diff --git a/assets/cheatsheets/ffmpeg b/assets/cheatsheets/ffmpeg
deleted file mode 100644
index 60d10ac..0000000
--- a/assets/cheatsheets/ffmpeg
+++ /dev/null
@@ -1,43 +0,0 @@
-# To print file metadata:
-ffmpeg -i
-
-# To convert all m4a files to mp3
-for f in *.m4a; do ffmpeg -i "$f" -acodec libmp3lame -vn -b:a 320k "${f%.m4a}.mp3"; done
-
-# To convert video from .foo to .bar
-# -g : GOP, for searchability
-ffmpeg -i input.foo -vcodec bar -acodec baz -b:v 21000k -b:a 320k -g 150 -threads 4 output.bar
-
-# To convert image sequence to video:
-ffmpeg -r 18 -pattern_type glob -i '*.png' -b:v 21000k -s hd1080 -vcodec vp9 -an -pix_fmt yuv420p -deinterlace output.ext
-
-# To combine video and audio into one file
-ffmpeg -i video.ext -i audio.ext -c:v copy -c:a copy output.ext
-
-# To add ass subtitle to the video
-ffmpeg -i input_video.mp4 -vf ass=sub.ass output_video_subtitles.mp4
-
-# To convert webm to mp4
-ffmpeg -i input_video.webm output_video.mp4
-
-# To convert mp4 to mov
-ffmpeg -i input_video.mp4 -acodec copy -vcodec copy -f mov output_video.mov
-
-# To convert mov to mp4
-ffmpeg -i input_video.mov -vcodec copy -acodec copy output_video.mp4
-
-# Listen to 10 seconds of audio from a video file
-#
-# -ss : start time
-# -t : seconds to cut
-# -autoexit : closes ffplay as soon as the audio finishes
-ffmpeg -ss 00:34:24.85 -t 10 -i path/to/file.mp4 -f mp3 pipe:play | ffplay -i pipe:play -autoexit
-
-# To combine audio and video from N files:
-# See also https://stackoverflow.com/questions/7333232/how-to-concatenate-two-mp4-files-using-ffmpeg
-cat mylist.txt
-file '/path/to/file1'
-file '/path/to/file2'
-file '/path/to/file3'
-
-ffmpeg -f concat -safe 0 -i mylist.txt -c copy output.mp4
diff --git a/assets/cheatsheets/find b/assets/cheatsheets/find
deleted file mode 100644
index 89259d3..0000000
--- a/assets/cheatsheets/find
+++ /dev/null
@@ -1,80 +0,0 @@
-# To find files following symlinks (otherwise the symlinks are not followed):
-find -L . -type f
-
-# To find files by case-insensitive extension (ex: .jpg, .JPG, .jpG):
-find . -iname "*.jpg"
-
-# To find directories:
-find . -type d
-
-# To find files:
-find . -type f
-
-# To find files by octal permission:
-find . -type f -perm 777
-
-# To find files with setuid bit set:
-find . -xdev \( -perm -4000 \) -type f -print0 | xargs -0 ls -l
-
-# To find files newer than 1 day old and copy elsewhere (remove -p flag in xargs to not be asked):
-find . -type f -ctime -1 -print0 | xargs -0 -p cp -t
-# or:
-find . -type f -ctime -1 -print0 | xargs -0 -p -J % cp %
-
-# To find files with extension '.txt' and remove them:
-find ./path/ -name '*.txt' -delete
-
-# To find files with tilde as postfix and remove them:
-find ./path/ -name '*~' -delete
-
-# To find files with extension '.txt' and dump their contents:
-find ./path/ -name '*.txt' -exec cat '{}' \;
-
-# To find files with extension '.txt' and look for a string into them:
-find ./path/ -name '*.txt' | xargs grep 'string'
-
-# To find files with size bigger than 5 Mebibyte and sort them by size:
-find . -size +5M -type f -print0 | xargs -0 ls -Ssh | sort -z
-
-# To find files bigger than 2 Megabyte and list them:
-find . -type f -size +200000000c -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
-
-# To find files modified more than 7 days ago and list file information:
-find . -type f -mtime +7d -ls
-
-# To find symlinks owned by a user and list file information:
-find . -type l -user -ls
-
-# To search for and delete empty directories:
-find . -type d -empty -exec rmdir {} \;
-
-# To search for directories named build at a max depth of 2 directories:
-find . -maxdepth 2 -name build -type d
-
-# To search all files who are not in .git directory:
-find . ! -iwholename '*.git*' -type f
-
-# To find all files that have the same node (hard link) as MY_FILE_HERE:
-find . -type f -samefile MY_FILE_HERE 2>/dev/null
-
-# To find all files in the current directory and modify their permissions:
-find . -type f -exec chmod 644 {} \;
-
-# To find all files changed in last 2 days:
-find . -type f -ctime -48h
-find . -type f -ctime -2
-# Or created in last 2 days:
-find . -type f -Btime -2
-# Or accessed in last 2 days:
-find . -type f -atime -2
-
-# To find and rename (imperfect) all files and dirs that have a comma in the
-# name (dry-run):
-find . -name '*,*' | while read f; do echo mv "$f" "${f//,/}"; done
-
-# To find all broken links. Note -L returns a file unless it is a broken link:
-find -L /usr/ports/packages -type l
-
-# To find and run multiple shell commands (without multiple execs):
-# See: https://stackoverflow.com/questions/5119946/find-exec-with-multiple-commands
-find . -type f -exec sh -c "echo '{}'; cat '{}';" \;
diff --git a/assets/cheatsheets/fkill b/assets/cheatsheets/fkill
deleted file mode 100644
index 84d964e..0000000
--- a/assets/cheatsheets/fkill
+++ /dev/null
@@ -1,11 +0,0 @@
-# To kill a process by pid
-fkill 1337
-
-# To kill processes by name (case insensitive)
-fkill safari
-
-# To kill a process listening on a port
-fkill :8080
-
-# To run the interactive interface
-fkill
diff --git a/assets/cheatsheets/for b/assets/cheatsheets/for
deleted file mode 100644
index e9309eb..0000000
--- a/assets/cheatsheets/for
+++ /dev/null
@@ -1,38 +0,0 @@
-# basic loop
-for i in 1 2 3 4 5 6 7 8 9 10
-do
- echo $i
-done
-
-# loop ls command results
-for var in `ls -alF`
-do
- echo $var
-done
-
-# loop over all the JPG files in the current directory
-for jpg_file in *.jpg
-do
- echo $jpg_file
-done
-
-# loop specified number of times
-for i in `seq 1 10`
-do
- echo $i
-done
-
-# same as above, but as one-liner
-for i in `seq 1 10`; do echo $i; done
-
-# loop specified number of times: the C/C++ style
-for ((i=1;i<=10;++i))
-do
- echo $i
-done
-
-# loop specified number of times: the brace expansion
-for i in {1..10}
-do
- echo $i
-done
diff --git a/assets/cheatsheets/fzf b/assets/cheatsheets/fzf
deleted file mode 100644
index d872599..0000000
--- a/assets/cheatsheets/fzf
+++ /dev/null
@@ -1,26 +0,0 @@
-# To fuzzy find files in current directory
-fzf
-
-# To fuzzy find a file and cat it
-cat $(fzf)
-
-# Case sensitive search
-fzf +i
-
-# Case insensitve search
-fzf -i
-
-# Select multiple files (TAB to select, Shift+TAB to un-select) to delete
-rm -rf $(fzf --multi)
-
-# Run a preview command with fzf, specifiy a command inside the double quotes.
-fzf --preview "file {}"
-
-# Find files from find command and preview it with fzf
-find . -type f -name "*.txt" | fzf --preview "head {}"
-
-# Display border around fzf output
-fzf --border sharp
-
-# Output only selected files and pipe it to a file
-find . -type f "*.txt" | fzf --multi > output.txt
diff --git a/assets/cheatsheets/gcc b/assets/cheatsheets/gcc
deleted file mode 100644
index b070c42..0000000
--- a/assets/cheatsheets/gcc
+++ /dev/null
@@ -1,21 +0,0 @@
-# To compile a file:
-gcc file.c
-
-# To compile a file with a custom output:
-gcc -o file file.c
-
-# debug symbols:
-gcc -g
-
-# debug with all symbols:
-gcc -ggdb3
-
-# To build for 64 bits:
-gcc -m64
-
-# Include the directory {/usr/include/myPersonnal/lib/} to the list of path for #include <....>
-# With this option, no warning / error will be reported for the files in {/usr/include/myPersonnal/lib/}
-gcc -isystem /usr/include/myPersonnal/lib/
-
-# To build a GUI for windows (Mingw) (Will disable the term/console):
-gcc -mwindows
diff --git a/assets/cheatsheets/gdb b/assets/cheatsheets/gdb
deleted file mode 100644
index f2267b0..0000000
--- a/assets/cheatsheets/gdb
+++ /dev/null
@@ -1,130 +0,0 @@
-# To start the debugger:
-gdb , gdb --args [...], gdb -p
-
-# To exit gdb (after program terminated):
-q, quit
-
-# To set a breakpoint at a function:
-b, break
-
-# To set a (conditional) breakpoint at a general location:
-b, break [if ]
- with as |:||*|-offset|+offset
-
-# To set a watchpoint, i.e., stop when expression changes its value:
-watch
-
-# To show all breakpoints and watchpoints:
-info breakpoints, info watchpoints
-
-# To delete all or given breakpoints and watchpoints:
-clear, delete
-delete
-clear
- with as |:||*|-offset|+offset
-
-# To disable a breakpoint:
-dis, disable
-
-# To run the program, optionally with arguments for the program:
-r, run []
-
-# To run the current line, stepping over any invocations:
-n, next
-
-# To run the current line, stepping into any invocations:
-s, step
-
-# To run until the next line below, i.e., without new loop iteration:
-u, until
-
-# Like run, but stop at the first machine instruction:
-starti
-
-# To step or go to next line by a machine instruction
-si, stepi
-ni, nexti
-
-# To run until given location is reached
-advance
- with as |:||*|-offset|+offset
-
-# To run until function ends, i.e., jump out of a function:
-fin, finish
-
-# To continue execution:
-c, continue
-
-# To print a stacktrace, optionally with local variables:
-bt, backtrace [full]
-
-# Move to stack frame of given number or a frame up or down:
-frame , up, down
-
-# To show summary info on selected frame:
-info frame
-
-# To print the arguments or local variables to the current function:
-info args, info locals
-
-# To print the registers:
-info registers
-
-# To print a list of all the threads:
-info threads
-
-# To print a list of all the loaded shared libraries:
-info sharedlibrary
-
-# To evaluate an expression and print the result:
-p length=strlen(string)
-
-# To print an array of given length:
-p *@
-
-# Examine content at address with a format and letter size:
-x/
- ------- ------ ------- -------
- a | Address b | 8 bits - byte
- i | Instruction h | 16 bits - halfword
- t | Binary w | 32 bits - word
- o | Octal g | 64 bits - giant
- h | Hex
- z | Hex, zero padded
- d | Decimal
- u | Unsigned decimal
- f | Float
- c | Char
- s | String
-
-# To list surrounding source code:
-l, list
-
-# Disassemble the current or given function:
-disas, disassemble [/m] []
- with /m to show mixed source
-
-# Disassemble the given address range:
-disas ,
-disas ,+
-
-# To specify a given register, program counter, frame pointer, stack pointer
-$reg, $pc, $fp, $sp
-
-# To enable pretty print of arrays and more:
-set pretty print on
-
-# To toggle TUI mode:
-C-x C-a, C-x a, C-x A
-
-# To use a TUI layout with only one window:
-C-x 1
-
-# To use a TUI layout with two windows:
-C-x 2
-
-# To change active window:
-C-x o
-
-# To Switch in and out of the TUI SingleKey mode:
-C-x s
diff --git a/assets/cheatsheets/gem b/assets/cheatsheets/gem
deleted file mode 100644
index cb271de..0000000
--- a/assets/cheatsheets/gem
+++ /dev/null
@@ -1,29 +0,0 @@
----
-tags: [ packaging, ruby ]
----
-# To search for a package:
-gem search
-
-# To install a package:
-gem install
-
-# To install a package in user space:
-gem install --user-install