(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
sudo apt-get install libssl-dev | |
sudo gem install fpm | |
wget ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.3-p392.tar.gz | |
tar -zxvf ruby-1.9.3-p392.tar.gz | |
cd src/ruby-1.9.3-p392 | |
time (./configure --prefix=/usr && make && make install DESTDIR=/tmp/installdir) | |
fpm -s dir -t deb -n ruby -v 1.9.3-p392 -C /tmp/installdir \ | |
-p ruby-VERSION_ARCH.deb -d "libstdc++6 (>= 4.4.3)" \ |
# | |
# Compilation of Yum Repositories for RHEL/Fedora | |
# | |
# | |
# Fedora | |
# | |
http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Fedora/x86_64/os, f15-x86_64, fedora-15 | |
http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Fedora/i386/os, f15-i386, fedora-15 | |
http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Fedora/source/SRPMS, f15-src, fedora-15 |
--- | |
#### | |
#### THIS IS OLD AND OUTDATED | |
#### LIKE, ANSIBLE 1.0 OLD. | |
#### | |
#### PROBABLY HIT UP https://docs.ansible.com MY DUDES | |
#### | |
#### IF IT BREAKS I'M JUST SOME GUY WITH | |
#### A DOG, OK, SORRY | |
#### |
-- a quick LUA access script for nginx to check IP addresses against an | |
-- `ip_blacklist` set in Redis, and if a match is found send a HTTP 403. | |
-- | |
-- allows for a common blacklist to be shared between a bunch of nginx | |
-- web servers using a remote redis instance. lookups are cached for a | |
-- configurable period of time. | |
-- | |
-- block an ip: | |
-- redis-cli SADD ip_blacklist 10.1.1.1 | |
-- remove an ip: |
<?php | |
/** | |
* Close the connection to the browser but continue processing the operation | |
* @param $body | |
*/ | |
public function closeConnection($body, $responseCode){ | |
// Cause we are clever and don't want the rest of the script to be bound by a timeout. | |
// Set to zero so no time limit is imposed from here on out. | |
set_time_limit(0); |
/etc/systemd/system/peervpn@.service /usr/local/sbin/peervpn-logfiltered.sh
Put these in place & do systemctl daemon-reload to allow for filtering that peervpn message from your log
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine | |
# This is how I upload my new Sol Trader builds (http://soltrader.net) | |
# Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash | |
S3KEY="my aws key" | |
S3SECRET="my aws secret" # pass these in | |
function putS3 | |
{ | |
path=$1 |
#!/usr/bin/env bash | |
# | |
# zfs-backup.sh | |
# | |
# Simple backup script utilizing rsync and ZFS snapshots. | |
# | |
# rsync must be installed both on the server and the client. | |
# ssh must be installed on the client. | |
# bash must be installed on the server. |
FROM node:onbuild | |
RUN npm run postinstall |