Skip to content

Instantly share code, notes, and snippets.

@RavenB
RavenB / ssl.rules
Created November 13, 2015 15:22 — forked from konklone/ssl.rules
nginx TLS / SSL configuration options for konklone.com
# Basically the nginx configuration I use at konklone.com.
# I check it using https://www.ssllabs.com/ssltest/analyze.html?d=konklone.com
#
# To provide feedback, please tweet at @konklone or email eric@konklone.com.
# Comments on gists don't notify the author.
#
# Thanks to WubTheCaptain (https://wubthecaptain.eu) for his help and ciphersuites.
# Thanks to Ilya Grigorik (https://www.igvita.com) for constant inspiration.
server {
@RavenB
RavenB / nginx.conf
Last active September 9, 2015 17:43 — forked from miguelramos/nginx.conf
Nginx Grav
server {
listen 80;
server_name *.grav.dev;
root /home/www/grav.dev;
index index.html index.htm index.php;
charset utf-8;
location /user {
rewrite ^/user/accounts/(.*)$ /error redirect;
@RavenB
RavenB / npm-upgrade-bleeding.sh
Last active September 5, 2015 14:03 — forked from othiym23/npm-upgrade-bleeding.sh
a safe way to upgrade all of your globally-installed npm packages
#!/bin/sh
set -e
set -x
for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f3)
do
npm -g install "$package"
done
@RavenB
RavenB / stuns
Last active August 30, 2015 22:31 — forked from zziuni/stuns
STUN server list
# source : http://code.google.com/p/natvpn/source/browse/trunk/stun_server_list
# A list of available STUN server.
stun.l.google.com:19302
stun1.l.google.com:19302
stun2.l.google.com:19302
stun3.l.google.com:19302
stun4.l.google.com:19302
stun01.sipphone.com
stun.ekiga.net
@RavenB
RavenB / dynmotd
Last active January 19, 2017 00:03 — forked from cha55son/dynmotd
RHEL (Centos/Fedora) dynamic motd
#!/bin/bash
# Installation:
#
# 1. vim /etc/ssh/sshd_config
# PrintMotd no
#
# 2. vim /etc/pam.d/login
# # session optional pam_motd.so
#
@RavenB
RavenB / install_sublime_text.sh
Last active August 29, 2015 14:26 — forked from simonewebdesign/install_sublime_text.sh
Install Sublime Text 3 on Linux via POSIX shell script - http://simonewebdesign.it/install-sublime-text-3-on-linux/
#!/bin/sh
# Sublime Text 3 install with Package Control (last update: 12 July 2015)
#
# No need to download this script, just run it on your terminal:
#
# $ curl -L git.io/sublimetext | sh
#
# When you need to update Sublime Text, run this script again.
@RavenB
RavenB / commafeed.service
Last active August 29, 2015 14:26 — forked from pgaubatz/commafeed.service
A systemd service definition file for CommaFeed
[Unit]
Description=A bloat-free feed reader
After=local-fs.target network.target
[Service]
User=www-data
Group=www-data
WorkingDirectory=/opt/commafeed
ExecStart=/usr/bin/java -Djava.net.preferIPv4Stack=true -server -jar commafeed.jar server config.yml
SyslogIdentifier=commafeed
@RavenB
RavenB / gist:eb39687792fbf7a0ef16
Last active August 29, 2015 14:25 — forked from JosephPecoraro/shell-execution.rb
Shell Execution in Ruby
# Ways to execute a shell script in Ruby
# Example Script - Joseph Pecoraro
cmd = "echo 'hi'" # Sample string that can be used
# 1. Kernel#` - commonly called backticks - `cmd`
# This is like many other languages, including bash, PHP, and Perl
# Returns the result of the shell command
# Docs: http://ruby-doc.org/core/classes/Kernel.html#M001111
@RavenB
RavenB / tmux.md
Last active August 29, 2015 14:25 — forked from andreyvit/tmux.md

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname