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 / 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 / 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 / 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 / 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 / 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)"