Skip to content

Instantly share code, notes, and snippets.


orome orome

View GitHub Profile
orome / gpg_fix.txt
Created Jan 14, 2020 — forked from cezaraugusto/gpg_fix.txt
fixing `gpg failed to sign data` error on macOS
View gpg_fix.txt
For troubleshooting, two things to first try:
run `git config --global gpg.program gpg2`, to make sure git uses gpg2 and not gpg
run `echo "test" | gpg2 --clearsign`, to make sure gpg2 itself is working
If that all looks all right, one next thing to try:
run `brew install pinentry` to ensure you have a good tool installed for passphrase entry
If after that install and you re-try git commit and still get the "failed to sign the data" error:
run `gpgconf --kill gpg-agent` to kill any running agent that might be hung
orome /
Created May 28, 2017
Keybase Proof

Keybase proof

I hereby claim:

  • I am orome on github.
  • I am orome ( on keybase.
  • I have a public key ASAneDg0BZ7PtPrJtJJJ6fes75KJiKdkWhOp3tHpbMzioAo

To claim this, I am signing this object:

orome / AWS Route 53 Bug
Last active Feb 22, 2017
AWS Route 53 script nameserver setting bug
View AWS Route 53 Bug
from __future__ import (absolute_import, print_function, division, unicode_literals)
import boto.beanstalk
import boto.exception
import boto.ec2.elb
import boto.route53.connection
import boto.route53.record
orome / Segmented Plot
Last active Aug 29, 2015
Segmenting a wrapping matplotlib plot
View Segmented Plot
# See --
from __future__ import division
import ephem
import matplotlib
import matplotlib.pyplot
import numpy
def segment_plot(x, y, ax, color='b', lw=1, ls='-', lims=[0, 24], thresh=0.95):
orome / Error Log
Created Oct 23, 2014
Log of output from matplotlib 1.4.1 update attempt
View Error Log
/usr/local/bin/pip run on Wed Oct 22 21:49:40 2014
Getting page
URLs to search for versions for matplotlib in /Library/Python/2.7/site-packages:
Analyzing links from page
Skipping link (from; unknown archive format: .whl
Skipping link (from; unknown archive format: .whl
Skipping link (from; unknown archive format: .w
View SE MMA Performance Question
PDetect[sensloc_, srcloc_] := Exp[-EuclideanDistance[sensloc, srcloc]];
PDFSrcloc[srcloc_] :=
1/(2 \[Pi])
Exp[-(srcloc[[1]]^2 + srcloc[[2]]^2)/
PDFJointSrcSens[srcloc_, senslocs_, sensstates_] :=
If[Length[sensstates] > 0,
Times @@
View SE question 22716521 - R output
glm(formula = over50k ~ ., family = binomial, data = censusTrain)
Deviance Residuals:
Min 1Q Median 3Q Max
-5.1065 -0.5037 -0.1804 -0.0008 3.3383
Coefficients: (2 not defined because of singularities)
Estimate Std. Error z value Pr(>|z|)
(Intercept) -8.658e+00 1.379e+00 -6.279 3.41e-10 ***
View SE question 22716521 - Python output
Generalized Linear Model Regression Results
Dep. Variable: ['over50k[ <=50K]', 'over50k[ >50K]'] No. Observations: 19187
Model: GLM Df Residuals: 19090
Model Family: Binomial Df Model: 96
Link Function: logit Scale: 1.0
Method: IRLS Log-Likelihood: nan
Date: Fri, 28 Mar 2014 Deviance: nan
Time: 11:32:05 Pearson chi2: 4.75e+05
No. Iterations: 11
You can’t perform that action at this time.