Skip to content

Instantly share code, notes, and snippets.

View cyberjoost's full-sized avatar

Joost Hoogendoorn cyberjoost

View GitHub Profile
@empireshades
empireshades / smokemtr.py
Created May 10, 2012 21:01
Script that runs an MTR (MattsTraceRoute) report against a given host, saves the output to log and also emails. This is meant to be called by smokeping (via pipe '|') after an alert is triggered. Tested on python2.6
#!/bin/env python
'''This is a script which runs an MTR (matt's traceroute)
against a target hosts - meant to be triggered by a
smokeping alert. Output is emailed and saved to log.'''
import argparse, datetime, subprocess, smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
@zziuni
zziuni / stuns
Created September 18, 2012 08:05
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
@nikcub
nikcub / README.md
Created October 4, 2012 13:06
Facebook PHP Source Code from August 2007
@willurd
willurd / web-servers.md
Last active April 20, 2025 00:42
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@rdoursenaud
rdoursenaud / shinken.conf
Last active November 14, 2015 09:32
Shinken nginx reverse proxy configuration
# Reverse proxy for Shinken 2.0.x on Debian Wheezy
# Place this file under /etc/nginx/sites-available
# Update your server_name
# Don't forget to enable the config and reload nginx
# Enjoy ^^
server {
# IPv4 support
listen 80;
# IPv6 support
listen [::]:80;
@oleganza
oleganza / gist:bd14f60643395706efaa
Last active August 29, 2015 14:02
Reply on Ghash

A reader asked me over email recently:

Have you posted anything or had any thoughts on Ghash.IO situation?

Nothing on this. I think it's just early volatility in bitcoin space. Some company (CEX) got serious about making a private mining farm and made a whopping share. Others will follow soon.

The dirty little secret of the blockchain is that it's not secure until increasing the hashrate by even 1% is an enormous economic feat. Currently it's not impossibly expensive to build your own farm with significant share - therefore the network is not very theoretically secure. Even if every existing pool had no more than 10%, you can't be sure that some guy does not unleash enormous hashing power at once and reverts some transactions.

When more companies start building private farms (and they will, it's the only cost-efficient way to mine; individual miners will soon disappear), you'll see more even distribution of the hashrate, but most importantly, the growth of hashrate will get slower. Because the slo

@Breefield
Breefield / wanelo.rb
Created June 17, 2014 19:59
Dump items from Svpply onto Wanelo.
#!/usr/bin/env ruby
require 'rubygems'
require 'json'
require 'pp'
require 'open-uri'
require 'cgi'
require 'httparty'
affiliate_id = 'olenaw-20'
@mubix
mubix / milkman.cpp
Last active May 7, 2017 19:42
Milkman
#ifndef UNICODE
#define UNICODE
#endif
#include <Windows.h>
#include <string.h>
#include <stdio.h>
#include <Psapi.h>
@ilyaevseev
ilyaevseev / smokeping_mtr.pl
Created September 1, 2014 09:42
MTR handler for SmokePing
#!/usr/bin/perl
# http://www.mail-archive.com/[email protected]/msg04048.html
# this script would be run when smokeping detects some loss. The
# smokeping trigger could look like:
#
# +highLossTwice
# type = loss
# pattern = >70%,>70%
@mathiasbynens
mathiasbynens / README.md
Last active March 4, 2025 11:35
Superfish certificate