This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## Recursively build directory of symlinks | |
## Subdirectories also symlinked | |
## Desirable if you want to add files at root level | |
root=/some/directory | |
destination=. | |
for file in ${root}/*; do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+--[ECDSA 521]---+ | |
| ... . | | |
| ++ . . | | |
| . o... o . | | |
|. o o . . o . | | |
|o. . S . . . | | |
|.E. . .. | | |
| .o. | | |
| ..o.. | | |
| ooo.. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
grub_config="/boot/grub/grub.conf" | |
xen_serial=115200 | |
sudo -s | |
## Boot options are kvm (1), serial (2) and USB (3). Xen uses serial | |
sed -i -e 's/default=0/default=1/' ${grub_config} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## Install dependencies | |
apt-get install build-essential libssl-dev | |
## Checkout latest version, build, install | |
svn co https://github.com/eriklax/xva-img | |
cd xva-img | |
cmake . | |
sudo make install clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/tcsh | |
freebsd-update fetch | |
freebsd-update upgrade -r 10.1-RELEASE | |
echo "Rebooting for new kernel. Run freebsd-update install again after" | |
echo "You'll also want to upgrade ports/pkgng and confirm after this" | |
shutdown -r now |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
ifconfig ${1} | grep ether | cut -d ' ' -f2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
[ -x "$(command -v qemu-img)" ] && | |
qemu-img convert -f vpc -O raw ${1} ${1}.raw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
destination="/opt" | |
brew install cmake | |
cd ${destination}/src | |
git clone git@github.com:htacg/tidy-html5.git | |
cd tidy-htm5/build/cmake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/tcsh | |
## Their default script breaks. You can use pieces. | |
set origin = 'your_cloud_or_vps_vendor' | |
set plan = 'your_instance_plan_name' | |
set contact = 'your_email' | |
pkg update | |
pkg install -y curl dpkg expat fio ioping traceroute wget |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/tcsh | |
## Yes, it needs GCC | |
pkg install gcc gmake | |
## You'll want to mirror or find an alternative source, | |
## Google Code is not long for this world | |
fetch https://byte-unixbench.googlecode.com/files/UnixBench5.1.3.tgz | |
tar czvf UnixBench5.1.3.tgz | |
cd UnixBench |