This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git branch -r --merged origin/master | | |
grep origin | | |
grep -v '>' | | |
grep -v master | | |
xargs -L1 | | |
cut -d "/" -f 2 | | |
xargs git push origin --delete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am yob on github. | |
* I am jimhealy (https://keybase.io/jimhealy) on keybase. | |
* I have a public key whose fingerprint is CB6C A538 D085 4682 56D9 DFFA 359A 8D52 F03A D7E5 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
====================== | |
Version: Powershop (1.10.0) (Android; API Level: 19; Screen: Point(1080, 1776)) | |
Environment: Live | |
User Agent: Dalvik/1.6.0 (Linux; U; Android 4.4.4; Nexus 5 Build/KTU84P) | |
null | |
====================== | |
[E305] PIN required |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Run this to log the current state of the unicorn UNIX socket to disk. | |
# | |
# USAGE: | |
# | |
# ./bin/log-socket-data | |
# | |
require File.expand_path('../../config/boot', __FILE__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require: rubocop-rspec | |
# These are all the cops that are enabled in the default configuration. | |
AllCops: | |
RunRailsCops: true | |
AccessModifierIndentation: | |
Enabled: true | |
EnforcedStyle: indent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"bar_title": "something else", | |
"bar_id": 1, | |
"count": 2500 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type ( | |
record struct { | |
Count int64 | |
Id int64 | |
Title string | |
} | |
) | |
func (rec *record) UnmarshalJSON(b []byte) (err error) { | |
var obj map[string]interface{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# list projects | |
curl -A "<ourdomain.com>" -u "<apikey>:" "https://api.phraseapp.com/v2/projects" | jq . | |
# list locales in a project | |
curl -A "<ourdomain.com>" -u "<apikey>:" "https://api.phraseapp.com/v2/projects/<project-id>/locales" | jq . | |
# untranslated keys for a given locale | |
curl -A "<ourdomain.com>" -u "<apikey>:" "https://api.phraseapp.com/v2/projects/<project-id>/keys?locale_id=<locale-id>&q=translated:false" | jq . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PaypalController < ApplicationController | |
def callback | |
Delayed::Job.enqueue Jobs::VerifyPaypalIpn.new(request.raw_post) | |
ensure | |
# Always respond with HTTP 200, anything else encourages the API to retry | |
render nothing: true, status: 200, content_type: 'text/html' | |
end | |
end |
OlderNewer