Skip to content

Instantly share code, notes, and snippets.

View rmanalan's full-sized avatar
:octocat:

Rich Manalang rmanalan

:octocat:
View GitHub Profile
<atlassian-plugin key="{{key}}" name="{{name}}" plugins-version="2"
xmlns="https://ecosystem.atlassian.net/rest/atlassian-connect/1/installer/schema/atlassian-plugin">
<plugin-info>
<description>{{description}}</description>
<version>{{version}}</version>
<vendor name="{{vendorName}}" url="{{vendorUrl}}"/>
<permissions>
<permission>create_oauth_link</permission>
</permissions>
@rmanalan
rmanalan / raspi-gmail.py
Created October 16, 2012 05:37 — forked from ladyada/raspi-gmail.py
Raspberry Pi LED E-mail Notifier
cat <<! > raspi-gmail.py
#!/usr/bin/env python
import RPi.GPIO as GPIO, feedparser, time
DEBUG = 1
USERNAME = "username" # just the part before the @ sign, add yours here
PASSWORD = "password"
@rmanalan
rmanalan / dabblet.css
Created May 7, 2012 19:00
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow) no-repeat;
min-height: 100%;
@rmanalan
rmanalan / hack.sh
Created March 31, 2012 20:02 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@rmanalan
rmanalan / out.js
Created November 4, 2011 17:26
JIRA 5 Issue REST API
https://jira-instance.atlassian.com/<context optional>/rest/api/2/issue/XPR-614?fields=summary,description,project,reporter,assignee,status
{
"expand": "renderedFields,names,schema,editmeta",
"id": "19273",
"self": "https://extranet.atlassian.com/jira/rest/api/2/issue/XPR-614",
"key": "XPR-614",
"fields": {
"reporter": {
[WARNING] [talledLocalContainer] Oct 21, 2011 2:43:03 PM org.apache.catalina.core.ApplicationContext log
[WARNING] [talledLocalContainer] INFO: jruby 1.6.4 (ruby-1.8.7-p330) (2011-08-23 17ea768) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_26) [darwin-x86_64-java]
[WARNING] [talledLocalContainer] Oct 21, 2011 2:43:03 PM org.apache.catalina.core.ApplicationContext log
[WARNING] [talledLocalContainer] SEVERE: unable to create shared application instance
[WARNING] [talledLocalContainer] org.jruby.rack.RackInitializationException: no such file to load -- builtin/javasupport
[WARNING] [talledLocalContainer]
[WARNING] [talledLocalContainer] at org.jruby.rack.DefaultRackApplicationFactory.initializeRuntime(DefaultRackApplicationFactory.java:182)
[WARNING] [talledLocalContainer] at org.jruby.rack.DefaultRackApplicationFactory.newRuntime(DefaultRackApplicationFactory.java:189)
[WARNING] [talledLocalContainer] at org.jruby.rack.DefaultRackApplicationFactory.createApplication(DefaultRackApplicationFactory.java:196)
[WAR
@rmanalan
rmanalan / gist:958094
Created May 5, 2011 22:22
my6sense login error
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
@rmanalan
rmanalan / domready.js
Created February 24, 2011 17:08 — forked from ded/domready.js
function r(f){/in/(document.readyState)?setTimeout(r,9,f):f()}
@rmanalan
rmanalan / gitdeploy.md
Created December 9, 2010 20:13
My Git Deploy Workflow

My Git Deploy Workflow

I use this for static and simple [Sinatra][1] based sites -- great for prototyping simple apps. Credit goes to http://toroid.org/ams/git-website-howto for the original idea.

If you don't know what this is, here's an example of how I deploy my website/app to a server:

# create/update/delete files in my site
git add .
git commit -m "description of the changes I made"

git push

127.0.0.1 - - [03/Dec/2010 21:56:42] "GET /auth/twitter HTTP/1.1" 302 - 0.4494
MultiJson::DecodeError: #<RuntimeError: Did not recognize your engine specification. Please specify either a symbol or a class.>
/Users/rich/.rvm/gems/ree-1.8.7-2010.02/gems/multi_json-0.0.5/lib/multi_json.rb:66:in `decode'
/Users/rich/.rvm/gems/ree-1.8.7-2010.02/gems/oa-oauth-0.1.6/lib/omniauth/strategies/twitter.rb:43:in `user_hash'
/Users/rich/.rvm/gems/ree-1.8.7-2010.02/gems/oa-oauth-0.1.6/lib/omniauth/strategies/twitter.rb:30:in `user_info'
/Users/rich/.rvm/gems/ree-1.8.7-2010.02/gems/oa-oauth-0.1.6/lib/omniauth/strategies/twitter.rb:24:in `auth_hash'
/Users/rich/.rvm/gems/ree-1.8.7-2010.02/gems/oa-core-0.1.6/lib/omniauth/strategy.rb:42:in `callback_phase'
/Users/rich/.rvm/gems/ree-1.8.7-2010.02/gems/oa-oauth-0.1.6/lib/omniauth/strategies/oauth.rb:26:in `callback_phase'
/Users/rich/.rvm/gems/ree-1.8.7-2010.02/gems/oa-core-0.1.6/lib/omniauth/strategy.rb:27:in `call!'
/Users/rich/.rvm/gems/ree-1.8.7-2010.02/gems/oa-core-