Skip to content

Instantly share code, notes, and snippets.

@gistub
gistub / build-zsh.sh
Last active October 5, 2022 14:37
[Misc: Build ZSH from Source] #setup
#!/bin/sh
# Build Zsh from sources on Ubuntu.
# From http://zsh.sourceforge.net/Arc/git.html and sources INSTALL file.
# Some packages may be missing
# sudo apt-get install -y git-core gcc make autoconf yodl libncursesw5-dev texinfo
sudo apt-get build-dep zsh
git clone git://git.code.sf.net/p/zsh/code zsh
@gistub
gistub / zfs_snapshot.sh
Last active July 24, 2022 02:02 — forked from indication/zfs_snapshot.sh
[ZFS Snapshot with rotation]
#!/bin/sh
#
# zfs snapshot auto-rotation
#
# usage: zfs_snapshot.sh <mountpoint> <snapshot name> <number of keeping snapshots> [recursive]
#
# recursive option: Recursively create snapshot (zfs snapshot -r)
#
# for crontab
#
@gistub
gistub / latest-tmux-1.7.sh
Last active July 24, 2022 00:52 — forked from saiqulhaq/latest-tmux-1.7 on ubuntu12.04
[tmux: build from source] #setup
#!/bin/bash
sudo apt-get build-dep tmux
# git clone git://git.code.sf.net/p/tmux/tmux-code tmux
git clone https://github.com/tmux/tmux
cd tmux
./autogen.sh
./configure --prefix=/usr/local