Skip to content

Instantly share code, notes, and snippets.

View TheKojuEffect's full-sized avatar

Kapil Koju TheKojuEffect

View GitHub Profile
@TheKojuEffect
TheKojuEffect / postgresql_base58.sql
Last active January 14, 2016 06:07 — forked from micahwalter/base58.sql
base58.sql
CREATE FUNCTION base58_encode(num INT)
RETURNS VARCHAR(255) AS $encoded$
DECLARE
alphabet VARCHAR(255);
base_count INT DEFAULT 0;
encoded VARCHAR(255);
divisor DECIMAL(10, 4);
mod INT DEFAULT 0;
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh