This file contains hidden or 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
import time | |
from wsgiref.handlers import format_date_time | |
# now | |
print format_date_time(time.time()) | |
# epoch seconds | |
print format_date_time(1514764800) |
This file contains hidden or 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
set -g mouse on | |
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'" | |
bind -n WheelDownPane select-pane -t= \; send-keys -M |
This file contains hidden or 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 -eu | |
# Install dependencies (Red Hat) | |
ISSUE=$(head -1 /etc/issue | awk '{print $1}') | |
if [[ $(head -1 /etc/issue) =~ ^Ubuntu ]]; then | |
sudo apt-get install -y build-essential libevent-dev libncurses5-dev | |
else | |
sudo yum install -y gcc libevent-devel ncurses-devel | |
fi | |
TMPDIR=`mktemp -d` |