This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bad | |
cannot | |
can't | |
critical | |
declined | |
denied | |
doesn't | |
end of | |
error | |
fail |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Vimrc | |
" | Action | Emacs | Vim | | |
" |--------------------------------:|:--------------:|:------------------------| | |
" |undo (nano: M-U) | C-_ | u | | |
" |redo (nano: M-E) | C-_ (note) | C-r | | |
" |save (nano: C-x) | C-x C-s | :w | | |
" |quit (abort) (nano: C-x) | C-x C-c | :q! | | |
" |search (nano: C-/) | C-s | / | | |
" |replace (nano: C-/) | Esc % (dialog) | :%s/paittern/pattern/g | | |
" |insert | i (or) I | | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Kevin Faulkner | |
email = [email protected] | |
signingkey = C5D5F4BED24A4A02 | |
[gpg] | |
program = gpg2 | |
[color] | |
diff = auto | |
status = auto | |
branch = auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# | order | file | Note | | |
# |---------|:-------------------:|-------------------------------------------| | |
# | && | AND upon successful exit (0) will execute next command | | |
# | || | OR upon failure exit (non-zero) will execute next command | | |
# | for loop| for x in {1..9}; do echo "$(cat ${x})" ; done | | |
# | while | while : ; do ls -l ./file/to/watch ; done | | |
# | if | if [[ $(grep "ok") =~ $(curl web/status) ]]; then print ok ; fi | | |
# | elif | if [[ $? == '0' ]] then ; elif [[ $? >= '1' ]] ; else ; fi | | |
# | IFS | internal field seperator: IFS=, grep 'value' -B2 /tmp/file.csv | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# TMUX | |
# | default | Function | Tmux | | |
# |----------|:------------------------------------:| -----------------------:| | |
# | ^A " | window list, where am I | ^b s | | |
# | ^A A | Rename | ^b , | | |
# | ^A c | create | ^b n | | |
# | ^A k | kill | ^b & | | |
# | ^A d | detach | ^b D | | |
# | ^A space | next window | ^b n | | |
# | ^A p | previous window | ^b p | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN CERTIFICATE----- | |
MIICXjCCAgSgAwIBAgIJAK/1fDyA5yWzMAoGCCqGSM49BAMCMIGJMQswCQYDVQQG | |
EwJVUzELMAkGA1UECAwCTkMxDTALBgNVBAcMBE5vbmUxETAPBgNVBAoMCExhenlU | |
cmVlMRAwDgYDVQQLDAdIb21lTGFiMRQwEgYDVQQDDAtsYXp5dHJlZS51czEjMCEG | |
CSqGSIb3DQEJARYUa29uZG9yNmNAbGF6eXRyZWUudXMwHhcNMTgwNDA5MDQzODM3 | |
WhcNMjQwNDA4MDQzODM3WjCBiTELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAk5DMQ0w | |
CwYDVQQHDAROb25lMREwDwYDVQQKDAhMYXp5VHJlZTEQMA4GA1UECwwHSG9tZUxh | |
YjEUMBIGA1UEAwwLbGF6eXRyZWUudXMxIzAhBgkqhkiG9w0BCQEWFGtvbmRvcjZj | |
QGxhenl0cmVlLnVzMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEXcuj9TBmjieO | |
cYqzCuv/ub88YE+AK4cmDOsIVFDL+lPsx2t0HEC1Q8+VoRB3BnvC5vsN2nTVeG7Q |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Netmask Netmask (binary) CIDR Notes | |
_____________________________________________________________________________ | |
255.255.255.255 11111111.11111111.11111111.11111111 /32 Host (single addr) | |
255.255.255.254 11111111.11111111.11111111.11111110 /31 Unuseable | |
255.255.255.252 11111111.11111111.11111111.11111100 /30 2 useable | |
255.255.255.248 11111111.11111111.11111111.11111000 /29 6 useable | |
255.255.255.240 11111111.11111111.11111111.11110000 /28 14 useable | |
255.255.255.224 11111111.11111111.11111111.11100000 /27 30 useable | |
255.255.255.192 11111111.11111111.11111111.11000000 /26 62 useable | |
255.255.255.128 11111111.11111111.11111111.10000000 /25 126 useable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# TODO: add OSType() features | |
# influenced by: /usr/share/doc/libvirt-python/examples/domipaddrs.py | |
# http://muzso.hu/2010/10/29/python-script-to-list-libvirt-domains-with-their-descriptions | |
# {'vnet1': {'hwaddr': '52:54:00:01:7f:3f', 'addrs': [{'prefix': 24, 'type': 0, 'addr': '192.168.122.168'}]}} | |
# name, value {'hwaddr': '52:54:00:01:7f:3f', 'addrs': [{'prefix': 24, 'type': 0, 'addr': '192.168.122.168'}]} | |
# | |
import libvirt | |
import argparse | |
import json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import gnupg | |
# from dotenv import dotenv_values | |
import sh | |
import shlex | |
import os | |
from pprint import pprint | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sh | |
from sh import terraform, Command | |
go_getter = Command("go-getter") | |
from sh import ErrorReturnCode | |
import yaml | |
import logging | |
import re | |
import os |