Skip to content

Instantly share code, notes, and snippets.

View ressy's full-sized avatar

Jesse Connell ressy

View GitHub Profile
@arigesher
arigesher / trigger_build.bash
Created May 22, 2019 18:42
CircleCI manual trigger
#!/bin/bash -e
# Usage:
#
# 1. set $CIRCLE_API_TOKEN
# 2. run `./trigger-build <account> <oroject> [<branch>]`
#
# For https://github.com/iambob/myfirstproject:
#
# trigger_build iambob myfirstproject
@mojaray2k
mojaray2k / instafeedjsaccess.md
Last active May 22, 2022 10:40
Getting Instagram Access Token for http://intafeedjs.com

#Use this URL to get your client authorized for Instafeed.JS plugin for Instagram.

  1. First login into your Instargam account
  2. Then go to https://www.instagram.com/developer/
  3. At the top click on the Button that says "Manage Clients".
  4. If you have not Register a new client.
  5. Fill out everything and where it says redirect url put this url: http://instafeedjs.com
  6. Then on the security tab make sure you uncheck "Disable implicit OAuth"
  7. Finally use this link to authoruize Instafeed. Where it says "[Client ID]" replace that including the brackets with your clientID from instagram:
  8. https://instagram.com/oauth/authorize/?client_id=[Client ID]&redirect_uri=http://instafeedjs.com&amp;response_type=token
@gvoysey
gvoysey / SMS-IP
Last active July 28, 2016 18:23
Texts you your IP address (useful for headless linux boxes, raspberry pis, etc)
#!/bin/bash
myIP=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/')
commandString="curl http://textbelt.com/text -d number=1111111111 -d \"message=$myIP\""
$(eval $commandString)
#call this script from /etc/rc.local with (eval "/path/to/thisscript"); get a text every time your machine reboots with the new IP.