Skip to content

Instantly share code, notes, and snippets.

@meznak
meznak / keybase.md
Created October 6, 2014 03:59
keybase identity proof

Keybase proof

I hereby claim:

  • I am meznak on github.
  • I am nplamondon (https://keybase.io/nplamondon) on keybase.
  • I have a public key whose fingerprint is 292B 26AE F106 11DA D12F 24C3 56EC 4520 F266 09C1

To claim this, I am signing this object:

@meznak
meznak / xscreensaver.service
Created May 27, 2015 15:34
xscreensaver lock before suspend
[Unit]
Description=Lock X session using xscreensaver
Before=sleep.target
[Service]
Type=oneshot
ExecStart=/usr/bin/xscreensaver-command -lock
[Install]
WantedBy=sleep.target
2015-11-27T20:49:36.041Z 20432 TID-2qs6s INFO: [Sidetiq] Sidetiq v0.6.3 - Copyright (c) 2012-2013, Tobias Svensson <tob@tobiassvensson.co.uk>
2015-11-27T20:49:36.042Z 20432 TID-2qs6s INFO: [Sidetiq] Sidetiq is covered by the 3-clause BSD license.
2015-11-27T20:49:36.042Z 20432 TID-2qs6s INFO: [Sidetiq] See LICENSE and http://opensource.org/licenses/BSD-3-Clause for licensing details.
2015-11-27T20:49:36.042Z 20432 TID-2qs6s INFO: [Sidetiq] Sidetiq::Supervisor start
2015-11-27T20:49:36.050Z 20432 TID-kxs6s INFO: [Sidetiq] Sidetiq::Actor::Clock id: 35170800 initialize
2015-11-27T20:49:36.051Z 20432 TID-kxs6s DEBUG: [Sidetiq] Sidetiq::Clock looping ...
2015-11-27T20:49:36.059Z 20432 TID-kwq0c INFO: [Sidetiq] Sidetiq::Actor::Handler id: 35137760 initialize
2015-11-27T20:49:36.060Z 20432 TID-kwkus INFO: [Sidetiq] Sidetiq::Actor::Handler id: 35114720 initialize
2015-11-27T20:49:36.153Z 20432 TID-kxs6s DEBUG: [Sidetiq] Can't link Sidetiq::Actor::Clock. Sidekiq::Manager not running. Retrying in 5 seconds ...
2015-11-
/home/diaspora/.rvm/gems/ruby-2.1.5@diaspora/gems/unicorn-4.9.0/lib/unicorn/configurator.rb:91:in `block in reload': directory for pid=/run/diaspora/diaspora.pid not writable (ArgumentError)
from /home/diaspora/.rvm/gems/ruby-2.1.5@diaspora/gems/unicorn-4.9.0/lib/unicorn/configurator.rb:87:in `each'
from /home/diaspora/.rvm/gems/ruby-2.1.5@diaspora/gems/unicorn-4.9.0/lib/unicorn/configurator.rb:87:in `reload'
from /home/diaspora/.rvm/gems/ruby-2.1.5@diaspora/gems/unicorn-4.9.0/lib/unicorn/configurator.rb:68:in `initialize'
from /home/diaspora/.rvm/gems/ruby-2.1.5@diaspora/gems/unicorn-4.9.0/lib/unicorn/http_server.rb:100:in `new'
from /home/diaspora/.rvm/gems/ruby-2.1.5@diaspora/gems/unicorn-4.9.0/lib/unicorn/http_server.rb:100:in `initialize'
from /home/diaspora/.rvm/gems/ruby-2.1.5@diaspora/gems/unicorn-4.9.0/bin/unicorn:126:in `new'
from /home/diaspora/.rvm/gems/ruby-2.1.5@diaspora/gems/unicorn-4.9.0/bin/unicorn:126:in `<top (required)>'
from
@meznak
meznak / geoblock.sh
Last active May 18, 2017 17:13
Block entire countries' IP blocks automagically using ipsets.
#!/bin/bash
#####
# Block entire countries' IP blocks automagically using ipsets.
#
# CC BY NC SA 2017 Nate Plamondon
# Inspired by https://www.nyx.chiodo.ch/?p=91 which see for firewall setup.
#####
# number of times to retry each download
@meznak
meznak / splunkbase_skipper.js
Created March 28, 2018 01:11
Skip the obnoxious "agree" dialog when downloading from Splunkbase
// ==UserScript==
// @name Splunkbase download dialog skipper
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Skip the obnoxious "agree" dialog when downloading from Splunkbase
// @author Nate Plamondon
// @match https://splunkbase.splunk.com/app/*
// @grant GM_setValue
// @run-at document-body
// ==/UserScript==
@meznak
meznak / f5-dos.conf
Created April 12, 2019 16:37
F5 DOS config file for syslog-ng
#############################################################################
### F5 DOS
############################################################################
### Sources
# Multiple sources means using multiple threads, so split them up as much
# as possible!
# Don't specify an IP so we listen on all.
# Tuning: https://codeascraft.com/2012/08/13/performance-tuning-syslog-ng/
@meznak
meznak / infb.py
Created December 22, 2011 21:36 — forked from ruel/infb.py
A script to scrape information from your facebook friends.
#!/usr/bin/python
'''
InFB - Information Facebook
Usage: infb.py user@domain.tld password
infb.py
http://ruel.me
@meznak
meznak / chbs.sh
Last active October 13, 2020 17:04
CLI passphrase generator
#!/usr/bin/env bash
#####
# Passphrase generator a la Diceware and XKCD
#
# Usage:
# chbs.sh [word count] [phrase count]
#
# https://gist.github.com/meznak/f230e36d7d8f8cbbf62a9a80a9eff0d7
# https://xkcd.com/936/
@meznak
meznak / paloalto.conf
Created April 12, 2019 16:47
Palo Alto config for syslog-ng
### Palo Alto
#
#############################################################################
### Sources
#
# Don't specify an IP so we listen on all.
# Tuning: https://codeascraft.com/2012/08/13/performance-tuning-syslog-ng/
# log-fetch-limit = number of lines from source in a "chunk"
# log-iw-size = max-connections * log-fetch-limit
# log-fifo-size = log-iw-size * 20 (set globally above)