Skip to content

Instantly share code, notes, and snippets.

@douglastenn-zz
douglastenn-zz / gist:41e01dd037225331dae1970c2699c437
Created May 20, 2019 03:37
Clone all repos by organization name
curl -s https://api.github.com/orgs/[ORGANIZATION_NAME]/repos\?per_page\=200 | perl -ne 'print "$1\n" if (/"ssh_url": "([^"]+)/)' | xargs -n 1 git clone
@douglastenn-zz
douglastenn-zz / iterm2.md
Created July 27, 2018 02:05 — forked from squarism/iterm2.md
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
Fullscreen + Enter
Previous Tab + Left Arrow
Next Tab + Right Arrow
Go to Tab + Number
Go to Window + Option + Number
Go to Split Pane by Direction + Option + Arrow
@douglastenn-zz
douglastenn-zz / pep8_all.sh
Created June 1, 2017 14:26
pep8 all files
for file in `flake8 . | cut -d: -f 1`; do autopep8 --in-place --aggressive --aggressive $file; done;
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then TERM=gnome-256color; fi
if tput setaf 1 &> /dev/null; then
tput sgr0
if [[ $(tput colors) -ge 256 ]] 2>/dev/null; then
BASE03=$(tput setaf 234)
BASE02=$(tput setaf 235)
BASE01=$(tput setaf 240)
BASE00=$(tput setaf 241)
BASE0=$(tput setaf 244)
BASE1=$(tput setaf 245)
create database zf2napratica;
create database zf2napratica_test;
GRANT ALL privileges ON zf2napratica.* TO zend@localhost IDENTIFIED BY 'zend';
GRANT ALL privileges ON zf2napratica_test.* TO zend@localhost IDENTIFIED BY 'zend';
use zf2napratica;
CREATE TABLE IF NOT EXISTS `users` (
`id` INT NOT NULL AUTO_INCREMENT ,