Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
"""
advanced-flood.py
@author: Randall Degges
@email: rdegges@gmail.com
@date: 11-20-09
This program floods the specified phone number and spoofs caller ID making it
@postmodern
postmodern / mysql_brute.rb
Created November 21, 2011 03:39
MySQL Bruteforcer

Configuration

  • mysql: 14.14 Distrib 5.5.14
  • host: 127.0.0.1
  • port: 3306
  • user: victim
  • password: 56789

Install

/usr/bin/check_remote
#!/bin/bash
# check_remote
SET="/etc/interop/backupapp/backupset.txt"
TMPSET="/tmp/set"
. /usr/bin/backupapp.h
START=$(date +%s)
@josed
josed / ebay-ad-josed.net.html
Created February 2, 2012 23:49
Sample eBay ad HTML template
<!-- Sample eBay ad HTML template
http://josed.net
-->
<div>
<table width="600" align="center" cellpadding="4" cellspacing="0" bgcolor="#FFFFCC">
<tr>
@duyamin
duyamin / gist:3834755
Created October 4, 2012 16:26 — forked from observerss/gist:3798922
Google Keyword Tool Scraper(casperjs version)
// requires
var utils = require('utils');
var casper = require('casper').create()
var casper = require('casper').create({
verbose: true,
logLevel: "debug"
});
// setup globals
var email = casper.cli.options['email'] || 'REPLACE THIS EMAIL';
@caniszczyk
caniszczyk / clone-all-twitter-github-repos.sh
Created October 9, 2012 04:25
Clone all repos from a GitHub organization
curl -s https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}'
@zed
zed / crop-resize.py
Created December 6, 2012 01:40
Resize the image to given size. Don't strech images, crop and center instead.
#!/usr/bin/env python
"""Resize the image to given size.
Don't strech images, crop and center instead.
"""
import os
import sys
from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter
from fractions import Fraction
from functools import partial
@mikeflynn
mikeflynn / gist:5887186
Last active July 10, 2022 23:26
Google Script: YouTube Channel Username to Channel ID
function ytChannelId(channelName) {
if(channelName) {
var name = getChannelFromUrl(channelName);
var url = "https://gdata.youtube.com/feeds/api/users/" + name + "?fields=id&alt=json";
var result = UrlFetchApp.fetch(url);
var data = Utilities.jsonParse(result.getContentText())
if(typeof data['entry'] !== 'undefined' && data['entry']['id']['$t'] !== 'undefined') {
var id = "UC" + data['entry']['id']['$t'].split('/').pop();
@jnaskali
jnaskali / firewall_block.reg
Last active May 18, 2024 06:40
Block/Unblock exe in Windows Firewall using right-click menu (updated thanks to ghjbnm's comment below)
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\exefile\shell\WindowsFirewall]
@=""
"MUIVerb"="Windows Firewall"
"icon"="%SystemRoot%\\system32\\FirewallControlPanel.dll,0"
"subcommands"=""
[HKEY_CLASSES_ROOT\exefile\shell\WindowsFirewall\Shell]
@=""
@pgericson
pgericson / gender_first_names.csv
Last active May 11, 2020 17:28
Approved first names in Denmark, M = Male, F = Female, U = Unisex, source: http://www.familiestyrelsen.dk/samliv/navne/soeginavnelister/godkendtefornavne/advanced/
Abiola U
Acelya U
Ada U
Adama U
Addis U
Addison U
Adi U
Adian U
Aezha U
Agne U