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
| # make CTRL+a the 'prefix' ala screen. | |
| bind C-a send-prefix | |
| set -g prefix C-a | |
| # get rid of the tmux standard of CTRL+b | |
| unbind C-b | |
| set -s escape-time 1 | |
| set -g base-index 1 | |
| setw -g pane-base-index 1 | |
| # make it easy to reload the config (CTRL+r) |
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
| # make CTRL+a the 'prefix' ala screen. | |
| bind C-a send-prefix | |
| set -g prefix C-a | |
| # get rid of the tmux standard of CTRL+b | |
| unbind C-b | |
| set -s escape-time 1 | |
| set -g base-index 1 | |
| setw -g pane-base-index 1 | |
| # make it easy to reload the config (CTRL+r) |
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
| var heroesCount = {}; | |
| var rows = document.querySelector('.rgMasterTable ').children[2].children; | |
| for (let i = 0; i < rows.length; i++) { | |
| row = rows[i]; | |
| let heroName = row.children[4].innerText; | |
| heroesCount[heroName] = heroesCount[heroName] || 0; | |
| heroesCount[heroName] += 1; | |
| } |
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/bash | |
| RESTORE='\033[0m' | |
| RED='\033[00;31m' | |
| GREEN='\033[00;32m' | |
| YELLOW='\033[00;33m' | |
| BLUE='\033[00;34m' | |
| PURPLE='\033[00;35m' | |
| CYAN='\033[00;36m' | |
| LIGHTGRAY='\033[00;37m' |
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
| rm -rf ~/.ssh/id_rsa ~/.ssh/id_rsa.pub | |
| read -p "Enter github email : " email | |
| echo "Using email $email" | |
| ssh-keygen -t rsa -b 4096 -C "$email" | |
| ssh-add ~/.ssh/id_rsa | |
| pub=`cat ~/.ssh/id_rsa.pub` | |
| read -p "Enter github username: " githubuser | |
| echo "Using username $githubuser" | |
| read -s -p "Enter github password for user $githubuser: " githubpass | |
| curl -u "$githubuser:$githubpass" -X POST -d "{\"title\":\"`hostname`\",\"key\":\"$pub\"}" https://api.github.com/user/keys |
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
| from django import template | |
| import unicodedata | |
| register = template.Library() | |
| def stripaccents(value, arg=""): | |
| if type(value) == str: | |
| return value | |
| return ''.join((c for c in unicodedata.normalize('NFD', value) if unicodedata.category(c) != 'Mn')) |
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/bash | |
| sudo apt-get install -y git-core curl screen vim-nox zsh fonts-inconsolata tree mercurial git-core python-pip python-virtualenv | |
| # Ruby | |
| \curl -sSL https://get.rvm.io | bash -s stable --ruby | |
| gem install json jsonpretty ncurses-term meld rake | |
| #github key | |
| rm -rf ~/.ssh/id_rsa ~/.ssh/id_rsa.pub |