Skip to content

Instantly share code, notes, and snippets.

View skplunkerin's full-sized avatar
🐰
Working W02K1N6 01110111 01101111 01110010 01101011 01101001 01101110 01100111

Skplunkerin skplunkerin

🐰
Working W02K1N6 01110111 01101111 01110010 01101011 01101001 01101110 01100111
View GitHub Profile
@skplunkerin
skplunkerin / auto-start ssh-agent
Created August 23, 2014 03:32
auto-start ssh-agent on login
############ FROM http://rocksolidwebdesign.com/notes-and-fixes/ubuntu-server-ssh-agent/ ###########
# Check to see if SSH Agent is already running
agent_pid="$(ps -ef | grep "ssh-agent" | grep -v "grep" | awk '{print($2)}')"
# If the agent is not running (pid is zero length string)
if [[ -z "$agent_pid" ]]; then
# Start up SSH Agent
# this seems to be the proper method as opposed to `exec ssh-agent bash`
eval "$(ssh-agent)"
@skplunkerin
skplunkerin / Gemfile.md
Last active July 30, 2019 13:40
rails quiet assets silent assets rails console rails server output
# Quiet Assets
group :development do
  gem 'webrick', '~> 1.3.1'
end
@skplunkerin
skplunkerin / mysql_columns.sql
Last active August 29, 2015 14:06
Grab Table Column Names
/* Slow Method */
SHOW COLUMNS FROM table_name;
/* Fast Method */
DESC table_name;
@skplunkerin
skplunkerin / mysql_insert.sql
Created September 24, 2014 11:23
Mysql Insert Statement
INSERT INTO table_name (column_name1, column_name2, etc)
VALUES
('value1','value2','etc');
@skplunkerin
skplunkerin / vimfile.rb
Created October 8, 2014 01:06
VIM format file
# http://stackoverflow.com/a/14114909/1180523
:filetype indent on
:set filetype=html # abbrev - :set ft=html
:set smartindent # abbrev - :set si
# Then gg=G
# In my experience this doesn't ALWAYS work (like it should)... but sometimes it does.
@skplunkerin
skplunkerin / init-chromebook.md
Last active November 26, 2016 06:53
chromebook dev setup using crouton recipe
@skplunkerin
skplunkerin / create_env_values.md
Last active August 29, 2015 14:10
rails ENV env, how do I setup rails env variables
@skplunkerin
skplunkerin / center_me.css
Last active June 20, 2016 15:52
css center
/* http://www.smashingmagazine.com/2013/08/09/absolute-horizontal-vertical-centering-css/ */
.Absolute-Center {
height: 500px;
margin: auto;
position: absolute;
top: 0; left: 0; bottom: 0; right: 0;
}
@skplunkerin
skplunkerin / truncate.md
Last active August 29, 2015 14:21
rails sqlite truncate single table
@skplunkerin
skplunkerin / readme.md
Last active June 29, 2017 15:16
local tunnel ip address chromebook network node npm share local url ip address with external world doctor octopus similar deal