Skip to content

Instantly share code, notes, and snippets.

View karasz's full-sized avatar
📸
On fire

Nagy Károly Gábriel karasz

📸
On fire
View GitHub Profile

Keybase proof

I hereby claim:

  • I am karasz on github.
  • I am karasz (https://keybase.io/karasz) on keybase.
  • I have a public key ASC8WTxmIaYM_M00gekT0hMllUdHDXkp3AZWxzw59Uk4ywo

To claim this, I am signing this object:

Floating serenely through a peaceful abyss, a sigh escapes; content.
A siren wails, you're jolted from your respite
/dev/xsdb1 is at 100%
A cacophony of alerts screech from the phone.
Upset is the fragile balance, failure cascades.
Was only a matter of time.
Get some coffee.
All you ping seems to crumble, machine after machine fall; a massacre of uptime.
@karasz
karasz / tmux-cheatsheet.markdown
Last active August 27, 2015 14:08 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@karasz
karasz / nginx.conf
Last active August 29, 2015 14:17 — forked from plentz/nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
### Keybase proof
I hereby claim:
* I am karasz on github.
* I am karasz (https://keybase.io/karasz) on keybase.
* I have a public key whose fingerprint is 08BB 8DB3 579E 2A3C C6CD DA42 C6BA 1070 A8CB DA0C
To claim this, I am signing this object:
#!/bin/bash
###########################
####### LOAD CONFIG #######
###########################
while [ $# -gt 0 ]; do
case $1 in
-c)
CONFIG_FILE_PATH="$2"
#!/bin/bash
###########################
####### LOAD CONFIG #######
###########################
while [ $# -gt 0 ]; do
case $1 in
-c)
if [ -r "$2" ]; then
##############################
## POSTGRESQL BACKUP CONFIG ##
##############################
# Optional system user to run backups as. If the user the script is running as doesn't match this
# the script terminates. Leave blank to skip check.
BACKUP_USER=
# Optional hostname to adhere to pg_hba policies. Will default to "localhost" if none specified.
HOSTNAME=
#!/bin/bash
# Bash shell script for generating self-signed certs. Run this in a folder, as it
# generates a few files. Large portions of this script were taken from the
# following artcile:
#
# http://usrportage.de/archives/919-Batch-generating-SSL-certificates.html
#
# Additional alterations by: Brad Landers
# Date: 2012-01-27
hostssl replication replicator 5.6.7.8 md5