Skip to content

Instantly share code, notes, and snippets.

View shrds's full-sized avatar

Shradha Khard shrds

  • Kansas City, Missouri
View GitHub Profile

Pry Cheat Sheet

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

@shrds
shrds / syncm.sh
Created April 25, 2018 13:39 — forked from cwsaylor/syncm.sh
Merge master into current branch
#!/bin/sh -x
CURRENT=`git branch | grep "*" | awk '{print $2}'`
git checkout master
git fetch
git merge origin/master
git checkout ${CURRENT}
git merge master ${CURRENT}
@shrds
shrds / xing_create_request_token.sh
Created March 1, 2018 18:38 — forked from JanAhrens/xing_create_request_token.sh
A cURL example to create an OAuth 1.0 request token for the XING API
CONSUMER_KEY="YOUR_CONSUMER_KEY"
CONSUMER_SECRET="YOUR_CONSUMER_SECRET"
curl --request POST --verbose \
"https://api.xing.com/v1/request_token" \
-d "oauth_callback=oob" \
-d "oauth_version=1.0" \
-d "oauth_signature_method=PLAINTEXT" \
-d "oauth_consumer_key=$CONSUMER_KEY" \
-d "oauth_signature=$CONSUMER_SECRET%26"