I hereby claim:
- I am citruspi on github.
- I am citruspi (https://keybase.io/citruspi) on keybase.
- I have a public key ASAy5Tq_ddUJeEtkGAr3RRKm8GMp1agzTCwoQtk_rK1Bfwo
To claim this, I am signing this object:
$ docker run --rm -it python:alpine sh | |
Unable to find image 'python:alpine' locally | |
alpine: Pulling from library/python | |
aad63a933944: Already exists | |
f229563217f5: Pull complete | |
d999dd4b9386: Pull complete | |
d40444ccd481: Pull complete | |
d7d60c647873: Pull complete | |
Digest: sha256:9bb7c74b43a0eba7a7cbda466dafac5e082ad6549d343740ed253788547701e2 | |
Status: Downloaded newer image for python:alpine |
I hereby claim:
To claim this, I am signing this object:
import sys | |
from pymongo import MongoClient | |
from pymongo.database import Database as MongoDatabase | |
# https://stackoverflow.com/a/1094933 | |
def sizeof_fmt(num, suffix='B'): | |
for unit in ['','Ki','Mi','Gi','Ti','Pi','Ei','Zi']: | |
if abs(num) < 1024.0: | |
return "%3.1f%s%s" % (num, unit, suffix) |
log_level :info | |
log_location STDOUT | |
node_name 'mihirsingh' | |
client_key '/Users/citruspi/.chef/mihirsingh.pem' | |
validation_client_name 'chef-validator' | |
validation_key '/Users/citruspi/.chef/chef-validator.pem' | |
chef_server_url 'http://chef.app.hudl.com' | |
syntax_check_cache_path '/Users/citruspi/.chef/syntax_check_cache' | |
cookbook_path '/Users/citruspi/Code/cookbooks' |
if node['couchbase']['server']['package_file'] <= "3.0.0" | |
default['couchbase']['server']['package_file'] = "couchbase-server-#{node['couchbase']['server']['edition']}_#{node['couchbase']['server']['version']}_#{package_machine}.rpm" | |
else | |
default['couchbase']['server']['package_file'] = "couchbase-server-#{node['couchbase']['server']['edition']}-#{node['couchbase']['server']['version']}-centos6.#{package_machine}.rpm" | |
end |
from peewee import * | |
db = SqliteDatabase('data.db') | |
class Company(Model): | |
ticker = CharField(unique=True) | |
class Meta: |
I hereby claim:
To claim this, I am signing this object:
public class Stuff { | |
public static void main(String args[]) { | |
int x = 0; | |
for(int i=0; i<100; i++){ | |
x++; | |
} | |
System.out.println(x); |
sudo yum install lua lua-devel python-devel python-distribute git openssl-devel rsync gcc make screen | |
wget https://pypi.python.org/packages/source/p/pip/pip-1.3.1.tar.gz | |
tar -xzvf pip-1.3.tar.gz | |
cd pip-1.3 | |
python setup.py install --user | |
cd .. | |
~/.local/bin/pip install --user seesaw | |
git clone https://github.com/ArchiveTeam/greader-grab | |
cd greader-grab | |
./get-wget-lua.sh |