Magic words:
psql -U postgresIf run with -E flag, it will describe the underlaying queries of the \ commands (cool for learning!).
Most \d commands support additional param of __schema__.name__ and accept wildcards like *.*
| #!/bin/bash | |
| # vim: set sts=4 sw=4 et tw=0 : | |
| # | |
| # License: BSD | |
| AUTOMAGIC_MODE="false" | |
| : ${XWININFO:=$(type -P xwininfo)} | |
| [[ -z ${XWININFO} ]] && { echo "You need to install xwininfo"; exit 1; } | |
| : ${XPROP:=$(type -P xprop)} |
| #!/bin/bash | |
| while : | |
| do | |
| clear | |
| git --no-pager log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ci) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --all | |
| sleep 1 | |
| done |
| #!/bin/bash | |
| # Functions ============================================== | |
| # return 1 if global command line program installed, else 0 | |
| # example | |
| # echo "node: $(program_is_installed node)" | |
| function program_is_installed { | |
| # set to 1 initially | |
| local return_=1 |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """Encrypt/decrypt files with symmetric AES cipher-block chaining (CBC) mode. | |
| Usage: | |
| File Encryption: | |
| aescrypt.py [-f] infile [outfile] |
| /* | |
| Този скрипт е пълен с едни от най-забавните коментари на български. | |
| Разработен е от някой от разработчиците на Iliyan.com за Пощенска банка. | |
| Пазя го за да се смеем ако го променят в сайта. | |
| Оригинална локация: https://www.postbank.bg/Applications/Locations/_inc/js/locations.js | |
| */ |
| #!/bin/env/python | |
| # | |
| # Source: http://blog.webhose.io/2015/08/16/dead-simple-for-devs-python-crawler-script-for-extracting-structured-data-from-any-almost-website-into-csv/ | |
| import sys, thread, Queue, re, urllib2, urlparse, time, csv | |
| ### Set the site you want to crawl & the patterns of the fields you want to extract ### | |
| siteToCrawl = "http://www.amazon.com/" | |
| fields = {} | |
| fields["Title"] = '<title>(.*?)</title>' | |
| fields["Rating"] = 'title="(S+) out of 5 stars"' |
| #!/bin/bash | |
| ##################################################### | |
| # Name: Bash CheatSheet for Mac OSX | |
| # | |
| # A little overlook of the Bash basics | |
| # | |
| # Usage: | |
| # | |
| # Author: J. Le Coupanec | |
| # Date: 2014/11/04 |
Short version: Use Streisand. Use Tor. Use Signal.
This mini-rant came on the heels of an interesting twitter discussion: https://twitter.com/kennwhite/status/591074055018582016
Provider / "Secret" Key
| #!/usr/bin/env bash | |
| PECLVER="0.1.1" | |
| LIBSODIUMVER="1.0.2" | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "This script must be run as root" 1>&2 | |
| exit 1 | |
| fi |