Skip to content

Instantly share code, notes, and snippets.

View ffr4nz's full-sized avatar
☠️
Doing stuff...

@ffranz ffr4nz

☠️
Doing stuff...
View GitHub Profile
@brianstorti
brianstorti / gist:4751983
Created February 11, 2013 02:07
Enable colors on "man" pages
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;38;5;74m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_so=$'\E[38;5;246m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_us=$'\E[04;38;5;146m'
export LESS_TERMCAP_ue=$'\E[0m'
@hackjoy
hackjoy / string_splitter.py
Created February 10, 2013 14:06
Split a string based on pre defined split characters
def split_string(source,splitlist):
output = []
atsplit = True
for char in source:
if char in splitlist:
atsplit = True
else:
if atsplit:
output.append(char)
atsplit = False
@thomasbhatia
thomasbhatia / scapy_layer-_gtp.py
Created December 5, 2012 11:33
Scapy layer: GTP
## This file is not now part of Scapy
## Look iniqua.com for more informations
## ffranz <[email protected]>
## This program is published under a GPLv2 license
import time
import logging
from scapy.packet import *
from scapy.fields import *