This file contains 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
#define ADDRESS_U10_A 0x14 | |
#define ADDRESS_U10_A_CONTROL 0x15 | |
#define ADDRESS_U10_B 0x16 | |
#define ADDRESS_U10_B_CONTROL 0x17 | |
#define ADDRESS_U11_A 0x18 | |
#define ADDRESS_U11_A_CONTROL 0x19 | |
#define ADDRESS_U11_B 0x1A | |
#define ADDRESS_U11_B_CONTROL 0x1B |
This file contains 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
> git clone https://github.com/passthesecret/serverless.git | |
Cloning into 'serverless'... | |
remote: Enumerating objects: 75, done. | |
remote: Counting objects: 100% (75/75), done. | |
remote: Compressing objects: 100% (54/54), done. | |
remote: Total 75 (delta 29), reused 62 (delta 16), pack-reused 0 | |
Unpacking objects: 100% (75/75), done. | |
> cd serverless | |
> git checkout 4033970 | |
[ ... SNIP ... ] |
This file contains 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
venv () { | |
if ((${+VIRTUAL_ENV})); then | |
echo "Deactivating Virtual Environment: $VIRTUAL_ENV" | |
deactivate | |
else | |
VENV_PATH=${PWD:gs/\/home\/ckabalan\//\/home\/ckabalan\/.virtualenv\//} | |
ACTIVATE_PATH=$VENV_PATH/bin/activate | |
if [[ -e $ACTIVATE_PATH ]]; then | |
echo "Activating Virtual Environment: $VENV_PATH" | |
source $ACTIVATE_PATH |
This file contains 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
aws_all_div () { | |
COMMAND=`cat` | |
API_LIST=( | |
'profile_name_1 region_1' | |
'profile_name_2 region_1' | |
'profile_name_3 region_1' | |
'profile_name_1 region_2' | |
'profile_name_2 region_2' | |
'profile_name_3 region_2' | |
'profile_name_1 region_3' |
This file contains 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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\SOFTWARE\SimonTatham] | |
[HKEY_CURRENT_USER\SOFTWARE\SimonTatham\PuTTY] | |
[HKEY_CURRENT_USER\SOFTWARE\SimonTatham\PuTTY\Jumplist] | |
[HKEY_CURRENT_USER\SOFTWARE\SimonTatham\PuTTY\Sessions] |
This file contains 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
# Use SourceCodePro from https://nerdfonts.com/#downloads | |
TERM=xterm-256color | |
#POWERLEVEL9K_MODE='nerdfont-complete' | |
#POWERLEVEL9K_MODE='awesome-fontconfig' | |
POWERLEVEL9K_MODE='awesome-patched' | |
# Put icons here since they appear to get overwritten at some point... | |
# http://nerdfonts.com/#cheat-sheet | |
# https://github.com/bhilburn/powerlevel9k/blob/master/functions/icons.zsh |
This file contains 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
# ~/.bashrc Aliases | |
alias ll="LC_COLLATE=C.UTF-8 ls -alhF --group-directories-first" | |
alias loadkey='eval $(ssh-agent) && ssh-add' | |
# Tmux Tweaks | |
# Work with NeoVim (~/.bashrc) | |
export EDITOR='TERM=xterm-256color nvim' | |
export GIT_EDITOR='TERM=xterm-256color nvim' | |
export VISUAL='TERM=xterm-256color nvim' | |
alias tmux="tmux -2" |
This file contains 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
[push] | |
default = simple | |
[diff] | |
tool = vimdiff | |
[pager] | |
diff = false | |
[merge] | |
tool = vimdiff | |
[alias] | |
gr = log --graph --full-history --all --color --pretty=tformat:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s%x20%x1b[33m(%an)%x1b[0m" |
This file contains 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
# Bash History Replacement Script | |
# Author: Caesar Kabalan | |
# Last Modified: June 6th, 2017 | |
# Description: | |
# Modifies the default Bash Shell prompt to be in the format of: | |
# [CWD:COUNT:BRANCH:VENV] | |
# [USER:HOSTNAME] _ | |
# Where: | |
# CWD - Current working directory (green if last command returned 0, red otherwise) | |
# COUNT - Session command count |
This file contains 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
# /etc/profile.d/best_bash_history.sh | |
# Save 5,000 lines of history in memory | |
HISTSIZE=10000 | |
# Save 2,000,000 lines of history to disk (will have to grep ~/.bash_history for full listing) | |
HISTFILESIZE=2000000 | |
# Append to history instead of overwrite | |
shopt -s histappend | |
# Ignore redundant or space commands | |
HISTCONTROL=ignoreboth | |
# Ignore more |
NewerOlder