As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
| server{ | |
| listen 80; | |
| server_name aroound.com; | |
| return 301 http://www.aroound.com$request_uri; | |
| } | |
| server { | |
| listen 80 default_server; | |
| server_name www.aroound.com; | |
| server_tokens off; |
| # Create a new user on linux first | |
| >> adduser aditya | |
| # Change the password | |
| >> passwd aditya | |
| # Login as root and go into psql | |
| >> su - root | |
| # Login as postgres user |
| # add user to linux and create home directory (remember to change SHELL in /etc/passwd) | |
| useradd -m USER | |
| # set password | |
| passwd USER | |
| # add to extra groups, no change on primary | |
| usermod -a -G GROUP1,GROUP2 USER | |
| # list groups a user belongs to |
| # install these libs | |
| sudo yum install python34-devel | |
| # install postgresql devel | |
| sudo yum install postgresql-devel | |
| # or with version | |
| sudo yum install postgresql93-devel |
| <?php | |
| // (string) $message - message to be passed to Slack | |
| // (string) $room - room in which to write the message, too | |
| // (string) $icon - You can set up custom emoji icons to use with each message | |
| public static function slack($message, $room = "engineering", $icon = ":longbox:") { | |
| $room = ($room) ? $room : "engineering"; | |
| $data = "payload=" . json_encode(array( | |
| "channel" => "#{$room}", | |
| "text" => $message, |
| /* Mobile */ | |
| @media only screen and (max-width: 767px) { | |
| [class*="mobile hidden"], | |
| [class*="tablet only"]:not(.mobile), | |
| [class*="computer only"]:not(.mobile), | |
| [class*="large screen only"]:not(.mobile), | |
| [class*="widescreen only"]:not(.mobile), | |
| [class*="or lower hidden"] { | |
| display: none !important; | |
| } |
| "gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory" CentOS's and Fedora +22 workaround | |
| Install `redhat-rpm-config` | |
| $ sudo dnf install redhat-rpm-config |
| sudo apt-get update | |
| sudo apt-get install \ | |
| python-dev \ | |
| python-pip \ | |
| python-virtualenv | |
| virtualenv findbots | |
| source findbots/bin/activate | |
| curl -O http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz |