A Pen by Nicolas Carlo on CodePen.
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
# Install tmux on Centos release 6.5 | |
# install deps | |
yum install gcc kernel-devel make ncurses-devel | |
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL | |
curl -OL http://sourceforge.net/projects/levent/files/libevent-2.0.22-stable.tar.gz | |
tar -xvzf libevent-2.0.22-stable.tar.gz | |
cd libevent-2.0.22-stable | |
./configure --prefix=/usr/local |
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
First, get and extract the files: | |
$ wget http://iweb.dl.sourceforge.net/project/zsh/zsh/5.1/zsh-5.1.tar.gz | |
$ tar xzf zsh-5.1.tar.gz | |
$ cd zsh-5.1 | |
#Configure, make and install: | |
$ ./configure |
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
# confirm you can access the internet | |
if [[ ! $(curl -Is http://www.google.com/ | head -n 1) =~ "200 OK" ]]; then | |
echo "Your Internet seems broken. Press Ctrl-C to abort or enter to continue." | |
read | |
fi | |
# make 2 partitions on the disk. | |
parted -s /dev/sda mktable msdos | |
parted -s /dev/sda mkpart primary 0% 100m | |
parted -s /dev/sda mkpart primary 100m 100% |
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/bash -e | |
URL= #https://hooks.slack.com/services/<YOUR ID> from webhooks on https://myteam.slack.com/services | |
CHANNEL="#general" # name of channel | |
MESSAGE="Hello World" # message | |
NICK="troll" # bot name | |
# post message | |
curl -X POST \ | |
--data "payload={\"channel\": \"${CHANNEL}\", \"username\": \"${NICK}\", \"text\": \"${MESSAGE}\", \"icon_emoji\": \":troll:\"}" ${URL} |