Command Line
pry -r ./config/app_init_file.rb
- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb
- load your rails into a pry session
Debugger
#!/bin/bash | |
# Usage: vb-reset-host-version-guestproperty.sh myvmname | |
VMNAME=$1 | |
VBOXMANAGE="$(which vboxmanage)" | |
if [ -z "$VMNAME" ]; then | |
echo "Must provide name of VM." | |
exit 1 |
Command Line
pry -r ./config/app_init_file.rb
- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb
- load your rails into a pry sessionDebugger
#!/bin/bash | |
# For easily getting themes from: https://github.com/storm119/Tilix-Themes/blob/master/Themes.md | |
# This data was generated by running the following in the console on the above page: | |
# | |
# Javascript, chrome console: | |
# | |
# codes = document.getElementsByTagName("code") | |
# var builder = "" | |
# for (i = 0; i < codes.length; i++) { |
# the svn plugin has to be activated for this to work. | |
_fishy_collapsed_wd() { | |
echo $(pwd | perl -pe ' | |
BEGIN { | |
binmode STDIN, ":encoding(UTF-8)"; | |
binmode STDOUT, ":encoding(UTF-8)"; | |
}; s|^$ENV{HOME}|~|g; s|/([^/.])[^/]*(?=/)|/$1|g; s|/\.([^/])[^/]*(?=/)|/.$1|g | |
') | |
} |
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout some time, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# | |
# Please see https://i3wm.org/docs/userguide.html for a complete reference! |
" yank to clipboard | |
if has("clipboard") | |
set clipboard=unnamed " copy to the system clipboard | |
if has("unnamedplus") " X11 support | |
set clipboard+=unnamedplus | |
endif | |
endif | |
" Select your Leader key | |
let mapleader = "\<Space>" |
--- r8101_n.c 2013-10-22 11:46:05.822536955 -0700 | |
+++ r8101_n_new.c 2013-10-22 11:44:55.134534000 -0700 | |
@@ -1904,6 +1904,9 @@ | |
rtl8101_rx_hwaccel_skb(skb, tp->vlgrp, swab16(opts2 & 0xffff)); | |
ret = 0; | |
} | |
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0) | |
+ if (opts2 & RxVlanTag) | |
+ __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), swab16(opts2 & 0xffff)); | |
#else |
{ | |
"color_scheme": "Packages/Color Scheme - Default/Sunburst.tmTheme", | |
"font_size": 10, | |
"git_gutter_live_mode": false, | |
"highlight_line": true, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"tab_size": 2, |
#!/bin/bash | |
# http://stackoverflow.com/questions/85880/determine-if-a-function-exists-in-bash | |
function_exists() { | |
declare -f -F $1 > /dev/null | |
return $? | |
} | |
# function_exists function_name && echo Exists || echo No such function |
#!/bin/bash | |
SERVER_IP=<MY_SERVER_IP> | |
# copy cloud-config.yml to the server | |
scp cloud-config.yml core@$SERVER_IP:~/ | |
# validate cloud-config file | |
ssh core@$SERVER_IP "coreos-cloudinit -validate --from-file ~/cloud-config.yml" | |
if [[ $? == "0" ]]; then |