View Thumbs Migration
## mongo queries for updating the new thumbs location with the old thumbs data
```
# Timeline of data migration and dual-writing thumbs data
event 1 event 2
__________________________________________________________________
| region 1 | region 2 | region 3 |
View github-backups.go
// github-backups is a program for saving a local copy of all the repositories
// you've created or starred on GitHub.
//
// It expects the "API_TOKEN" environment variable to be set to a valid oauth2
// token so you can login using the github client. For convenience, you can use
// a `dotenv` file.
package main
import (
"context"
View curl times
==========curl-format.txt==========
n
time_namelookup: %{time_namelookup}n
time_connect: %{time_connect}n
time_appconnect: %{time_appconnect}n
time_pretransfer: %{time_pretransfer}n
time_redirect: %{time_redirect}n
time_starttransfer: %{time_starttransfer}n
----------n
time_total: %{time_total}n
View zshrc
export ZSH=/Users/apoorv/.oh-my-zsh
################ theme
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="robbyrussell"
#ZSH_THEME="agnoster"
#ZSH_THEME="powerlevel9k/powerlevel9k"
################ custom config
# so as not the show the hostname
View gitconfig
# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
[user]
name = toidiu
email = toidiu@protonmail.com
[alias]
br = branch
co = checkout
s = status
View bash_profile
source ~/.bashrc
export PATH=$PATH:~/bin
### brew install bash-completion
### brew tap homebrew/completions
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
View vimrc
set nocompatible
execute pathogen#infect()
syntax on
filetype plugin indent on
"Turn on smart indent
""set smartindent
set tabstop=2
set shiftwidth=2
View bashrc
### Aliases
### General
alias l="ls -al"
alias cc="clear"
alias xx="exit"
alias ..="cd ..;pwd;ls -a"
alias pp="pwd"
alias brc="vi ~/.bashrc"
alias sc="source ~/ENV_django/bin/activate"
View resHi AppleScreen
--This script only works on OS X 10.8; This is due to GUI changes from 10.7 to 10.8
--launches System Preferences to Displays pane
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.displays"
end tell
tell application "System Events"
View resMidHi AppleScreen
--This script only works on OS X 10.8; This is due to GUI changes from 10.7 to 10.8
--launches System Preferences to Displays pane
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.displays"
end tell
tell application "System Events"