Skip to content

Commit

Permalink
feat: began adding tags to cheatsheets
Browse files Browse the repository at this point in the history
Began adding tags in frontmatter to some cheatsheets. More will follow.
  • Loading branch information
chrisallenlane committed Oct 17, 2019
1 parent ee20ca9 commit 3a5155c
Show file tree
Hide file tree
Showing 48 changed files with 144 additions and 0 deletions.
3 changes: 3 additions & 0 deletions 7z
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags: [ compression ]
---
7z
A file archiver with highest compression ratio

Expand Down
3 changes: 3 additions & 0 deletions apk
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags: [ packaging ]
---
# To install a package:
apk add <package>

Expand Down
3 changes: 3 additions & 0 deletions apt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags: [ packaging ]
---
# To find packages matching <phrase>:
apt search <phrase>

Expand Down
3 changes: 3 additions & 0 deletions apt-cache
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags: [ packaging ]
---
# To find packages matching <phrase>:
apt-cache search <phrase>

Expand Down
3 changes: 3 additions & 0 deletions apt-get
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags: [ packaging ]
---
# To fetch package list:
apt-get update

Expand Down
3 changes: 3 additions & 0 deletions aptitude
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags: [ packaging ]
---
# To find packages matching <phrase>:
aptitude search <phrase>

Expand Down
3 changes: 3 additions & 0 deletions bower
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags: [ packaging ]
---
# To install a package:
bower install <package>

Expand Down
3 changes: 3 additions & 0 deletions bzip2
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags: [ compression ]
---
# To compress a file (foo -> foo.bz2):
bzip2 -z foo

Expand Down
3 changes: 3 additions & 0 deletions deb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags: [ packaging ]
---
# To extract the contents of a .deb file:
ar vx foo.deb # -> data.tar.gz
tar xf data.tar.gz
Expand Down
3 changes: 3 additions & 0 deletions dhclient
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags: [ networking ]
---
# To release the current IP address:
sudo dhclient -r

Expand Down
3 changes: 3 additions & 0 deletions dnf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags: [ packaging ]
---
# To install a package:
dnf install <package>

Expand Down
3 changes: 3 additions & 0 deletions dpkg
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags: [ packaging ]
---
# To install or upgrade a package:
dpkg -i <deb-file>

Expand Down
3 changes: 3 additions & 0 deletions gzip
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags: [ compression ]
---
# To create a *.gz compressed file
gzip test.txt

Expand Down
3 changes: 3 additions & 0 deletions ip
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags [ networking ]
---
# To display all interfaces with addresses:
ip addr

Expand Down
3 changes: 3 additions & 0 deletions iptables
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags [ networking ]
---
# To show hit for rules with auto refresh:
watch --interval 0 'iptables -nvL | grep -v "0 0"'

Expand Down
3 changes: 3 additions & 0 deletions iwconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags [ networking ]
---
# To display wireless settings of the first wireless adapter:
iwconfig wlan0

Expand Down
3 changes: 3 additions & 0 deletions mysql
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags: [ database ]
---
# To connect to a database:
mysql -h <host> -u <username> -p

Expand Down
3 changes: 3 additions & 0 deletions mysqldump
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags: [ database ]
---
# To dump a database to a file (Note that your password will appear in your command history!):
mysqldump -u<username> -p<password> <database> > db.sql

Expand Down
3 changes: 3 additions & 0 deletions nc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags [ networking ]
---
# To open a TCP connection from <src-port> to <dest-port> of <dest-host>, with a timeout of <seconds>
nc -p <src-port> -w <seconds> <dest-host> <dest-port>

Expand Down
3 changes: 3 additions & 0 deletions ncat
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags [ networking ]
---
# Connect mode (ncat is client) | default port is 31337
ncat <host> [<port>]

Expand Down
3 changes: 3 additions & 0 deletions netstat
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags [ networking ]
---
# WARNING ! netstat is deprecated. Look below.

# To view which users/processes are listening to which ports:
Expand Down
3 changes: 3 additions & 0 deletions nmap
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags [ networking ]
---
# Single target scan:
nmap [target]

Expand Down
3 changes: 3 additions & 0 deletions nmcli
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags [ networking ]
---
# Connect to a wireless access point - Parameters:
# <wiface> -- the name of your wireless interface
# <ssid> -- the SSID of the access point
Expand Down
3 changes: 3 additions & 0 deletions npm
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags: [ packaging ]
---
# Every command shown here can be used with the `-g` switch for global scope

# To install a package in the current directory:
Expand Down
3 changes: 3 additions & 0 deletions pacman
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags: [ packaging ]
---
# To search for a package:
pacman -Ss <package>...

Expand Down
3 changes: 3 additions & 0 deletions ping
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags [ networking ]
---
# To ping <host> with 15 packets:
ping -c 15 <host>

Expand Down
3 changes: 3 additions & 0 deletions ping6
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
---
tags [ networking ]
---
# To Get all ipv6 neighbors via broadcast ping:
ping6 -I eth0 ff02::1
3 changes: 3 additions & 0 deletions pip
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags: [ packaging ]
---
# To search for a package:
pip search <package>

Expand Down
3 changes: 3 additions & 0 deletions pkgtools
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags: [ packaging ]
---
# To create a Slackware package from a structured directory and sub-tree:
cd <dir>
su - c 'makepkg --linkadd y --chown n $foo-1.0.3-x86_64-1_tag.tgz'
Expand Down
3 changes: 3 additions & 0 deletions psql
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags [ database ]
---
# psql is the PostgreSQL terminal interface. The following commands were tested on version 9.5.
# Connection options:
# -U username (if not specified current OS user is used).
Expand Down
3 changes: 3 additions & 0 deletions route
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags [ networking ]
---
# To display routing table IP addresses instead of host names:
route -n

Expand Down
3 changes: 3 additions & 0 deletions rpm
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags: [ packaging ]
---
# To install a package:
rpm -ivh <rpm>

Expand Down
3 changes: 3 additions & 0 deletions rpm2cpio
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags: [ packaging ]
---
# To list contents of an RPM:
rpm2cpio <rpm-file> | cpio -vt

Expand Down
3 changes: 3 additions & 0 deletions snap
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags: [ packaging ]
---
# To find <package>:
snap find <package>

Expand Down
3 changes: 3 additions & 0 deletions socat
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags [ networking ]
---
# socat connect to http-server (port 80 on 'butzel.info')
socat TCP4:butzel.info:80 -

Expand Down
3 changes: 3 additions & 0 deletions sockstat
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
---
tags [ networking ]
---
# To view which users/processes are listening to which ports:
sudo sockstat -l
3 changes: 3 additions & 0 deletions sport
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags [ packaging ]
---
# To sync to newest slackbuild.org tree:
sport r

Expand Down
3 changes: 3 additions & 0 deletions sqlite3
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags: [ database ]
---
# to create database and launch interactive shell:
sqlite3 <database>

Expand Down
3 changes: 3 additions & 0 deletions sqlmap
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags: [ database ]
---
# Test URL and POST data and return database banner (if possible)
./sqlmap.py --url="<url>" --data="<post-data>" --banner

Expand Down
3 changes: 3 additions & 0 deletions ss
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags [ networking ]
---
Args
-4/-6 list ipv4/ipv6 sockets
-n numeric addresses instead of hostnames
Expand Down
3 changes: 3 additions & 0 deletions ssh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags [ ssh ]
---
# To ssh via pem file (which normally needs 0600 permissions):
ssh -i <pemfile> <user>@<host>

Expand Down
3 changes: 3 additions & 0 deletions ssh-copy-id
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags [ ssh ]
---
# To copy a key to a remote host:
ssh-copy-id <user>@<host>

Expand Down
3 changes: 3 additions & 0 deletions ssh-keygen
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags [ ssh ]
---
# To generate an SSH key:
ssh-keygen -t rsa

Expand Down
3 changes: 3 additions & 0 deletions tar
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags: [ compression ]
---
# To extract an uncompressed archive:
tar -xvf /path/to/foo.tar

Expand Down
3 changes: 3 additions & 0 deletions unzip
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags: [ compression ]
---
# To extract an archive:
unzip <archive>

Expand Down
3 changes: 3 additions & 0 deletions urpm
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags: [ packaging ]
---
# To search (fuzzy) <package>:
urpmq -Y <package>

Expand Down
3 changes: 3 additions & 0 deletions yaourt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags: [ packaging ]
---
# All pacman commands are working the same way with yaourt.
# Just check the pacman cheatsheet.
# For instance, to install a package:
Expand Down
3 changes: 3 additions & 0 deletions yum
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
tags: [ packaging ]
---
# To install the latest version of a package:
yum install <package>

Expand Down

0 comments on commit 3a5155c

Please sign in to comment.