Skip to content

Instantly share code, notes, and snippets.

View aramboi's full-sized avatar
🖖
live long and prosper

Angel Ramboi aramboi

🖖
live long and prosper
View GitHub Profile
@aramboi
aramboi / keybase.md
Created December 18, 2015 11:13
keybase.md

Keybase proof

I hereby claim:

  • I am aramboi on github.
  • I am aramboi (https://keybase.io/aramboi) on keybase.
  • I have a public key ASCR_ywR3wAIOUUflIJvLT_w1zJjgGDOFt1AUkDWggEm2wo

To claim this, I am signing this object:

@aramboi
aramboi / simplescreenrecorder_steam_fix
Last active July 11, 2016 16:00
Steam fix for Simple Screen Recorder OpenGL recording
#!/bin/bash
if [ ! $1 ]
then
echo "usage: simplescreenrecorder_steam_fix <VERSION>"
echo "example: simplescreenrecorder_steam_fix 0.3.6"
exit 1;
fi
VERSION=$1
@aramboi
aramboi / bootstrap.sh
Created October 23, 2015 13:25
Odoo vagrant machine setup
#!/bin/bash
set -e
apt-get update
apt-get upgrade -y
apt-get install wkhtmltopdf xfonts-75dpi -y
wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-trusty-i386.deb
dpkg -i wkhtmltox-0.12.2.1_linux-trusty-i386.deb
@aramboi
aramboi / s3fs_install_ubuntu_14.04
Last active January 31, 2021 02:42
Install and setup FUSE and S3FS on Ubuntu 14.04
#!/bin/bash
FUSE_VER=2.9.3
S3FS_VER=1.77
sudo apt-get install -y build-essential libfuse-dev libcurl4-openssl-dev libxml2-dev mime-support automake libtool
wget http://downloads.sourceforge.net/project/fuse/fuse-2.X/${FUSE_VER}/fuse-${FUSE_VER}.tar.gz
tar xvfz fuse-${FUSE_VER}.tar.gz
cd fuse-${FUSE_VER}/
./configure
@aramboi
aramboi / ethiopian_mul.py
Created October 30, 2012 15:46
Alternate multiplications
def ethiopian_multiplication(a, b):
res = 0
while a != 1:
if a & 1:
res += b
b += b
a = a / 2
res += b
return res
@aramboi
aramboi / cloudsearch.py
Created September 18, 2012 09:00
Simple interface for rapid prototyping stuff on AWS CloudSearch using boto
# Simple interface for rapid prototyping stuff on AWS CloudSearch using boto
import time
import boto
class ProcessingException(Exception): pass
class CloudSearch(object):
def __init__(self, access_key_id, secret_access_key, domain):
conn = boto.connect_cloudsearch(access_key_id, secret_access_key)