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
const applicationMachine = Machine({ | |
id: 'application', | |
initial: 'Unlocked', | |
states: { | |
Unlocked: { | |
on: { Confirmed: 'Decision'}, | |
}, | |
Decision: { | |
on: { | |
No: 'Rejected', |
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
hello | |
world |
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
(def set-schema-registry-haproxy-events-to-critical | |
(where (and (service schema-registry-500-error-service-name) | |
(not= metric nil) | |
(>= metric schema-registry-500-error-threshold) | |
(state "ok")) | |
(with :state "critical" reinject))) |
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
#!/bin/bash | |
# | |
# reload haproxy, but avoid losing existing connections | |
# | |
# briefly reject connection (SYN) TCP packets during port switch, so that | |
# connections are retried | |
# | |
# see: | |
# https://medium.com/@Drew_Stokes/actual-zero-downtime-with-haproxy-18318578fde6 | |
# http://engineeringblog.yelp.com/2015/04/true-zero-downtime-haproxy-reloads.html |
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
import ApplicationAdapter from './application'; | |
export default ApplicationAdapter.extend({ | |
urlForUpdateRecord: function(store, type, snapshot) { | |
let delta = snapshot.get('rotation_delta') | |
if(delta != 0){ | |
return 'http://localhost:3000/images/' + snapshot.get('id') + '/rotate'; | |
} | |
return this._super(store,type,snapshot); |
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
App.derpyodo = Ember.Component.extend({ | |
loading: true, | |
willInsertElement: function(){ | |
var user_id = this.get('user-id'); | |
var self = this; | |
Ember.$.ajax({ | |
url: 'http://localhost:3000/v2/accounts/%@'.fmt(user_id), | |
}).then(function(resolve) { | |
self.set('amount', amount); | |
}); |
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
times in msec | |
clock self+sourced self: sourced script | |
clock elapsed: other lines | |
000.006 000.006: --- VIM STARTING --- | |
000.074 000.068: Allocated generic buffers | |
000.345 000.271: locale set | |
000.348 000.003: clipboard setup |
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 ApplicationController < ActionController::Base | |
before_filter :set_real_user | |
def set_real_user | |
@current_user = current_user | |
@current_user = current_user.primary_account if current_user | |
end | |
end |
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
D/dalvikvm( 2254): GC_CONCURRENT freed 378K, 10% free 5586K/6168K, paused 2ms+0ms, total 5ms | |
D/dalvikvm( 2254): GC_CONCURRENT freed 1587K, 27% free 4939K/6744K, paused 1ms+0ms, total 4ms | |
D/dalvikvm( 2254): GC_CONCURRENT freed 378K, 22% free 5304K/6744K, paused 2ms+2ms, total 7ms | |
D/dalvikvm( 2254): GC_CONCURRENT freed 464K, 17% free 5660K/6744K, paused 2ms+0ms, total 5ms | |
D/dalvikvm( 2254): GC_CONCURRENT freed 557K, 13% free 6044K/6876K, paused 2ms+0ms, total 5ms | |
D/dalvikvm( 2254): GC_CONCURRENT freed 749K, 14% free 6364K/7324K, paused 2ms+0ms, total 6ms | |
D/Utils ( 2254): titles size : 11 | |
D/Utils ( 2254): plots size : 11 | |
D/Utils ( 2254): urls size : 12 | |
D/Utils ( 2254): dates size : 11 |
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 Mongey on github. | |
* I am mongeyc (https://keybase.io/mongeyc) on keybase. | |
* I have a public key whose fingerprint is 8745 6FE7 BFC2 5F2B 3655 5ABC E508 B991 5096 CBB4 | |
To claim this, I am signing this object: |
NewerOlder