Skip to content

Instantly share code, notes, and snippets.

Conor Mongey Mongey

Block or report user

Report or block Mongey

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View riemann.clj
(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)))
# reload haproxy, but avoid losing existing connections
# briefly reject connection (SYN) TCP packets during port switch, so that
# connections are retried
# see:
View images.js
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);
View ember.js
App.derpyodo = Ember.Component.extend({
loading: true,
willInsertElement: function(){
var user_id = this.get('user-id');
var self = this;
url: 'http://localhost:3000/v2/accounts/%@'.fmt(user_id),
}).then(function(resolve) {
self.set('amount', amount);
View gist:4665ca965374ac2b726d
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
View .rb
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
View gist:148207dc795c3017ff34
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
View gist:1825d9467a8f12b05ce3
### Keybase proof
I hereby claim:
* I am Mongey on github.
* I am 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:
View gist:7d2815a61ef9fa724e61
var id,max=0;var videos= _jsdata.videos; for(var i=0;i<videos.length;i++){if( parseInt(videos[i].votes,10) >max) {max= videos[i].votes; id = videos[i]; }}; console.log(id)
You can’t perform that action at this time.