This file contains hidden or 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
| (require '[clj-yaml.core :as yaml]) | |
| (require '[clojure.string :as str]) | |
| (defn heading? [line] | |
| (re-matches #"[A-Z][A-Z0-9()\s]*[A-Z0-9)]" (str/trim line))) | |
| (defn parse-man-page [lines] | |
| (:data | |
| (reduce (fn [acc line] | |
| (if (heading? line) |
This file contains hidden or 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
| for i in $(docker images -q) | |
| do | |
| docker history $i | grep -q $IMG && echo $i | |
| done | sort -u |
This file contains hidden or 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
| ### Thanks, ingy.net for this one that has no special package requirements | |
| cat /dev/urandom | LC_CTYPE=C tr -cd a-zA-Z0-9+/ | fold -w12 | head -1 | |
| # or | |
| openssl rand -base64 12 |
This file contains hidden or 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
| Folders: | |
| ~/.vagrant.d/ | |
| ~/Dropbox* | |
| ~/Google\ Drive* | |
| ~/Library/Containers/com.docker.docker/data/database/ | |
| ~/Library/Ethereum/ | |
| ~/megasync/ | |
| Extensions: | |
| wab~,vmc,vhd,vhdx,vdi,vo1,vo2,vsv,vud,iso,dmg,sparseimage,sys,cab,exe,msi,dll,dl_,wim,ost,o,qtch,log,ithmb,vmdk,vmem,vmsd,vmsn,vmss,vmx,vmxf,menudata,appicon,appinfo,pva,pvs,pvi,pvm,fdd,hds,drk,mem,nvram,hdd,qcow2,swapfile,sav,box |
This file contains hidden or 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
| .*\\(?=[^\\]*$) |
This file contains hidden or 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
| SELECT pg_terminate_backend(pg_stat_activity.pid) FROM pg_stat_activity WHERE pid <> pg_backend_pid() AND pg_stat_activity.datname = 'TARGET_DB'; |
This file contains hidden or 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. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # If not running interactively, don't do anything | |
| case $- in | |
| *i*) ;; | |
| *) return;; | |
| esac |
This file contains hidden or 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
| timezone = 'US/Pacific' | |
| config.vm.provision "shell", :inline => | |
| "echo #{timezone} | sudo tee /etc/timezone && sudo dpkg-reconfigure --frontend noninteractive tzdata" |