Skip to content

Instantly share code, notes, and snippets.

@zenofile
zenofile / build.sh
Last active March 13, 2024 07:30
Building a static tmux binary with musl
#!/usr/bin/env bash
# vi: set ft=sh ts=4 sw=0 sts=-1 sr noet nosi tw=0 fdm=manual:
set -o errexit
declare -A version
version[musl]=1.2.4
version[libevent]=2.1.12
version[ncurses]=6.4
@kesonno
kesonno / Vagrantfile.rb
Created February 26, 2016 09:50
Ask for user input in Vagrantfile during provisioning phase
if Dir.glob("#{File.dirname(__FILE__)}/.vagrant/machines/#{VM_NAME}/*").empty? || ARGV[1] == '--provision'
print "Please insert your credentials\n"
print "Username: "
username = STDIN.gets.chomp
print "Password: "
password = STDIN.noecho(&:gets).chomp
print "\n"
config.vm.provision :shell, :path => "provision-vagrant.sh", :args => [username, password]
end