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
| "statusline setup | |
| set statusline=%f "tail of the filename | |
| "display a warning if fileformat isnt unix | |
| set statusline+=%#warningmsg# | |
| set statusline+=%{&ff!='unix'?'['.&ff.']':''} | |
| set statusline+=%* | |
| "display a warning if file encoding isnt utf-8 | |
| set statusline+=%#warningmsg# |
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
| Source https://github.com/Lokaltog/vim-powerline | |
| let g:Powerline_symbols = 'fancy' |
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
| # Report that we can handle 256 colors | |
| set -g default-terminal "screen-256color" | |
| # act like GNU screen | |
| unbind C-b | |
| set -g prefix C-a | |
| # OhMyZsh ftw! | |
| set -g default-command /bin/zsh | |
| set -g default-shell /bin/zsh |
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
| #Tabs { min-width: 520px !important; } | |
| .Left, .speak { width: 100% !important; } | |
| #input { width: 440px !important; } | |
| #Wrapper { padding-left: 0 !important; padding-right: 0 !important; } | |
| .Left .col, .Full .col { padding: 5px 0 0 !important; background: #fff !important; } | |
| #todays_transcript { padding: 5px !important; } | |
| #Sidebar { right: 0 !important; } | |
| #SidebarTop, #search_form, #guest_access, #files, #room_locking { display: none !important; } |
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
| #!/bin/sh | |
| unset TMPDIR | |
| mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp | |
| mysql.server start | |
| mkdir -p ~/Library/LaunchAgents | |
| launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist | |
| cp "$(brew --prefix mysql)/homebrew.mxcl.mysql.plist" ~/Library/LaunchAgents/ | |
| launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist |
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
| #!/bin/sh | |
| # Check for symlink and create symbolic links | |
| command -v symlink >/dev/null 2>&1 || { curl https://raw.github.com/suderman/symlink/master/install.sh | sh; } | |
| cd ~/.dotfiles && symlink symlinks.yml | |
| # Now that SSH is all set up, update remote origins for password-less pushing | |
| if [ -f ~/.ssh/id_rsa ]; then | |
| echo "has ssh" |
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
| #!/bin/sh | |
| cd /tmp | |
| curl http://pypi.python.org/packages/source/C/Cheetah/Cheetah-2.4.4.tar.gz -o cheetah.tar.gz | |
| tar -zxvf cheetah.tar.gz | |
| cd Cheetah-2.4.4 | |
| sudo python setup.py install |
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
| # -- Add to top of config/environment.rb -- | |
| if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.3.7') | |
| module Rails | |
| class GemDependency | |
| def requirement | |
| r = super | |
| (r == Gem::Requirement.default) ? nil : r | |
| end | |
| end | |
| end |
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
| # FIND BIG FILES: | |
| git rev-list --all --objects | \ | |
| sed -n $(git rev-list --objects --all | \ | |
| cut -f1 -d' ' | \ | |
| git cat-file --batch-check | \ | |
| grep blob | \ | |
| sort -n -k 3 | \ | |
| tail -n100 | \ | |
| while read hash type size; do |
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
| # Login to shopify console and copy-paste the following script: | |
| order_count = ShopifyAPI::Order.count | |
| nb_pages = (order_count / 250.0).ceil | |
| # Looking for orders with only these products | |
| PRODUCT_IDS = [144760487, 144107049] | |
| # 10 minutes times 60 seconds per minute. | |
| CYCLE = 5 * 60 |