Skip to content

Instantly share code, notes, and snippets.

View allanca's full-sized avatar

Allan Carroll allanca

  • LoanSnap
  • On the way from here to there
  • X @allanca
View GitHub Profile

Keybase proof

I hereby claim:

  • I am allanca on github.
  • I am allancarroll (https://keybase.io/allancarroll) on keybase.
  • I have a public key whose fingerprint is B12D 5AC8 ED0F 8680 8135 838F F48E 9A32 1C95 DC51

To claim this, I am signing this object:

@allanca
allanca / collab.py
Created May 5, 2016 17:29
List the collaborators to a repo in github
#!/usr/bin/env python
from pygithub3 import Github
gh = Github(login='', password='')
def get_collabs(repo):
collaborators = gh.repos.list_contributors(user=repo.split('/')[0], repo=repo.split('/')[1])
for collaborator in collaborators.iterator():

Keybase proof

I hereby claim:

  • I am allanca on github.
  • I am allancarroll (https://keybase.io/allancarroll) on keybase.
  • I have a public key whose fingerprint is EB1C C7A6 C733 2757 7F07 7B53 B8B7 6E7A 8EED 86F4

To claim this, I am signing this object:

Verifying that +allancarroll is my blockchain ID. https://onename.com/allancarroll
@allanca
allanca / hack.sh
Created April 1, 2012 05:56 — 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
#
@allanca
allanca / gist:703913
Created November 17, 2010 19:37
solr.log output
Nov 17, 2010 7:49:40 AM org.apache.solr.update.DirectUpdateHandler2 commit
INFO: start commit(optimize=false,waitFlush=true,waitSearcher=true,expungeDeletes=false)
Nov 17, 2010 7:49:40 AM org.apache.solr.core.SolrDeletionPolicy onCommit
INFO: SolrDeletionPolicy.onCommit: commits:num=2
commit{dir=/var/cache/chef/solr/data/index,segFN=segments_8d,version=1289922551847,generation=301,filenames=[_8x.fdx, _8w.frq, _8w.tii, _8x.fdt, _8w.tis, _8x.tii, segments_8d, _8x.fnm, _8w.fdt, _8w_1.del, _8x.nrm, _8x.tis, _8w.fdx, _8x.frq, _8w.fnm]
commit{dir=/var/cache/chef/solr/data/index,segFN=segments_8e,version=1289922551848,generation=302,filenames=[_8x.fdx, _8y.tis, _8w.frq, _8w.tii, _8y.frq, _8x.
fdt, _8w.tis, _8y.fdx, _8x.tii, _8y.tii, _8x_1.del, _8y.fdt, segments_8e, _8x.fnm, _8w.fdt, _8y.fnm, _8w_1.del, _8x.nrm, _8x.tis, _8w.fdx, _8x.frq, _8w.fnm, _8y.nrm]
Nov 17, 2010 7:49:40 AM org.apache.solr.core.SolrDeletionPolicy updateCommitsINFO: newest commit = 1289922551848
Nov 17, 2010 7:49:40 AM org.apache
@allanca
allanca / gist:703912
Created November 17, 2010 19:37
Typical server.log failure
merb : chef-server (api) : worker (port 4000) ~ Started request handling: Wed Nov 17 19:26:35 +0000 2010
merb : chef-server (api) : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"show", "id"=>"node", "q"=>"role:monitoring AND app_environment:production", "start"=>"0", "rows"=>"1000", "controller"=>"search", "sort"=>"X_CHEF_id_CHEF_X asc"}
merb : chef-server (api) : worker (port 4000) ~ Connection refused - connect(2) - (Errno::ECONNREFUSED)
/usr/lib/ruby/1.8/net/http.rb:560:in `initialize'
/usr/lib/ruby/1.8/net/http.rb:560:in `open'
/usr/lib/ruby/1.8/net/http.rb:560:in `connect'
/usr/lib/ruby/1.8/timeout.rb:53:in `timeout'
/usr/lib/ruby/1.8/timeout.rb:101:in `timeout'
/usr/lib/ruby/1.8/net/http.rb:560:in `connect'
/usr/lib/ruby/1.8/net/http.rb:553:in `do_start'