Skip to content

Instantly share code, notes, and snippets.

@habedi
habedi / config.json
Created April 8, 2016 08:11 — forked from hasherezade/12c8c50e996240aaa42d593701d3cae2.json
Cerber ransomware config (1 April 2016) - from the payload: 12c8c50e996240aaa42d593701d3cae2
{
"blacklist": {
"countries": [
"am",
"az",
"by",
"ge",
"kg",
"kz",
"md",
@habedi
habedi / .block
Created April 6, 2016 08:01 — forked from mbostock/.block
Hierarchical Edge Bundling
license: gpl-3.0
@habedi
habedi / _etc_init.d_autosshd
Created November 8, 2015 09:29 — forked from suma/_etc_init.d_autosshd
Autossh init script(Ubuntu) for reverse ssh tunneling
#! /bin/sh
### BEGIN INIT INFO
# Provides: autosshd
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: autosshd initscript
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.
@habedi
habedi / tornado_socket_server.py
Created October 20, 2015 06:52 — forked from robcowie/tornado_socket_server.py
Simple example of creating a socket server with Tornado
import errno
import functools
import socket
from tornado import ioloop, iostream
class Connection(object):
def __init__(self, connection):
self.stream = iostream.IOStream(connection)
self._read()
@habedi
habedi / php-json-echo-client.php
Created October 20, 2015 06:34 — forked from lunr/php-json-echo-client.php
Python: Multi-threaded JSON Echo Server
<?php
/**
*
* PHP JSON Echo Server client
*
*/
// python server socket
$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
socket_connect($socket, 'localhost', 5555);
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
Documented at
http://linux.die.net/man/5/fonts-conf
To check font mapping run the command at terminal
$ fc-match 'helvetica Neue'
@habedi
habedi / haproxy_eds.conf
Created October 12, 2015 09:48 — forked from tenfourty/haproxy_eds.conf
A sample configuration file for HAProxy that allows it to load balance ODBC and JDBC connections for Teiid.
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
maxconn 4096
chroot /var/lib/haproxy
user haproxy
group haproxy
daemon
#debug
#quiet
@habedi
habedi / stuns
Created October 12, 2015 07:58 — 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
@habedi
habedi / etc.init.openvpn.conf
Created October 12, 2015 07:41 — forked from jaytaylor/etc.init.openvpn.conf
Make OpenVPN run automatically as a service on Ubuntu. This includes an Upstart job and an expect script to automate OpenVPN private key password entry
# openvpn
#
description "OpenVPN - virtual private network daemon(s)"
author "Jay"
version "1.0.0"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
@habedi
habedi / pylint-recursive.py
Created October 11, 2015 08:27 — forked from gregorynicholas/pylint-recursive.py
Module that runs pylint on all python scripts found in a directory tree..
#! /usr/bin/env python
'''
Module that runs pylint on all python scripts found in a directory tree..
'''
import os
import re
import sys
total = 0.0