Skip to content

Instantly share code, notes, and snippets.

Avatar

Maxim Velesyuk maximvl

View GitHub Profile
@bryanhunter
bryanhunter / build-erlang-17.0.sh
Last active Oct 26, 2019
Build Erlang 17.0 on a fresh Ubuntu box (tested on 12.04 and 14.04)
View build-erlang-17.0.sh
#!/bin/bash
# Pull this file down, make it executable and run it with sudo
# wget https://gist.githubusercontent.com/bryanhunter/10380945/raw/build-erlang-17.0.sh
# chmod u+x build-erlang-17.0.sh
# sudo ./build-erlang-17.0.sh
if [ $(id -u) != "0" ]; then
echo "You must be the superuser to run this script" >&2
exit 1
fi
@andelf
andelf / beam_decompile.erl
Created Mar 19, 2013
Erlang BEAM file decompile to .erl file
View beam_decompile.erl
#!/usr/bin/env escript
% -*- mode: erlang -*-
main([BeamFile]) ->
{ok,{_,[{abstract_code,{_,AC}}]}} = beam_lib:chunks(BeamFile,[abstract_code]),
io:fwrite("~s~n", [erl_prettypr:format(erl_syntax:form_list(AC))]).
@avar
avar / 30-income-calculon.pl
Last active Jul 22, 2020
Calculate your income in The Netherlands with and without a 30% ruling.
View 30-income-calculon.pl
# To check if this is up-to-date with the tax rates go to
# http://www.expatax.nl/tax-rates-2016.php and see if there's anything
# newer there.
#
# I make no guarantees that any of this is correct. I calculated this
# at the time and have been updating it when new tax rates come along
# because people keep finding this useful.
#
# There's also an interactive JS version of this created by
# @stevermeister at
You can’t perform that action at this time.