Skip to content

Instantly share code, notes, and snippets.

@noxan
noxan / setup.sh
Last active December 19, 2015 05:59
Script to setup a fresh installed debian based linux installation.
#!/bin/sh
#
# A simple sh script to setup a fresh installed debian based unix system.
# by <Richard Stromer> noxan@byteweaver.org
WORKSPACE_FOLDER=$HOME/workspace
DOTFILES_FOLDER=$WORKSPACE_FOLDER/dotfiles
echo "Installing default packages..."
echo "This may prompt for your password."
@noxan
noxan / namegenerator.py
Last active December 27, 2023 06:57
A simple python script to generate random names.
#!/usr/bin/python3
import random
import string
import sys
VOWELS = "aeiou"
CONSONANTS = "".join(set(string.ascii_lowercase) - set(VOWELS))
@noxan
noxan / factorial.erl
Created May 28, 2013 20:27
Some erlang learning stuff..
-module(factorial).
-export([factorial/1]).
factorial(N) -> factorial(N, 1).
factorial(0, Acc) -> Acc,
factorial(N, Acc) -> factorial(N-1, N*Acc).
@noxan
noxan / create_db.py
Created December 4, 2012 15:33
Ugly python script to create an even uglier oracle db :(
import random
import string
from datetime import date
from calendar import monthrange
firstnames = list()
lastnames = list()
def import_names():
@noxan
noxan / clear_folders.py
Created November 15, 2012 15:43
remove empty folders
import os
def removeEmptyFolders(path):
if not os.path.isdir(path):
return
# walk through folders
files = os.listdir(path)
if len(files):