Skip to content

Instantly share code, notes, and snippets.

@cbuctok
cbuctok / build-zsh.sh
Created January 16, 2018 15:33
Build last stable version of ZSH from sources on Ubuntu, or any other version with small changes
#!/bin/bash
# Build Zsh from sources on Ubuntu.
# From http://zsh.sourceforge.net/Arc/git.html and sources INSTALL file.
# Make script gives up on any error
set -e
# Some packages may be missing
sudo apt-get install -y git-core gcc make autoconf yodl libncursesw5-dev texinfo checkinstall
@cbuctok
cbuctok / generate_random_thing.py
Last active October 12, 2016 14:18
Random py2
import string
from random import sample, choice
chars = string.letters + string.digits
print ''.join(choice(chars) for _ in range(4))