Skip to content

Instantly share code, notes, and snippets.

View automagicaly's full-sized avatar

Renan Lordello de Aguiar automagicaly

  • Amazon
  • São Paulo, Brazil
View GitHub Profile
@sminez
sminez / dots
Last active November 4, 2017 19:44
Dotfile manager script
#! /bin/bash
# ----------
# Initialise and manage your dotfiles using a ~/.dots repo
# restore using `git clone --bare <remote-repo>`
dot_dir=".dots"
dot_dot_file=".my-dots"
_dots="git --git-dir=$HOME/$dot_dir/ --work-tree=$HOME"
extra_args=""
add_remote=false
@mdonkers
mdonkers / server.py
Last active November 15, 2024 20:01
Simple Python 3 HTTP server for logging all GET and POST requests
#!/usr/bin/env python3
"""
License: MIT License
Copyright (c) 2023 Miel Donkers
Very simple HTTP server in python for logging requests
Usage::
./server.py [<port>]
"""
from http.server import BaseHTTPRequestHandler, HTTPServer
@pichi
pichi / fib.erl
Last active March 5, 2017 21:25
Big Fibonacci number generator in Erlang
%% Fibonacci number generator in Erlang
%% by Hynek Vychodil <[email protected]> 3-JAN-2014
%% Distributed under MIT license at the end of the source code.
-module(fib).
-export([fib/1]).
% NOTE: Native compilation (HiPE) doesn't improve efficiency due heavy integer
% bignum computations as observed in R16