This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# show the branches in git | |
for ref in $(git for-each-ref --sort=-committerdate --format="%(refname)" refs/heads/ refs/remotes ); do git log -n1 $ref --pretty=format:"%cr%d% an%n" | cat ; done | awk '! a[$0]++' | head -10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Filtering a array by its keys using a callback. | |
* | |
* @param $array array The array to filter | |
* @param $callback Callback The filter callback, that will get the key as first argument. | |
* | |
* @return array The remaining key => value combinations from $array. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author Thomas Steiner (tomac@google.com) | |
* @license CC0 1.0 Universal (CC0 1.0) | |
* | |
* Provides a simple key-value storage API modeled closely after | |
* the localStorage API in Web browsers, but tailored to AdWords Scripts. | |
* AdWords Scripts, due to execution time limits published at | |
* https://developers.google.com/adwords/scripts/docs/limits, | |
* forces users to store the state of a given script using either labels | |
* (https://developers.google.com/adwords/scripts/docs/tips#labels), or |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function list { | |
for branch in `git branch --remote | awk '{print $1}'`; do | |
last=`git log $branch | grep Author | head -1 | awk '{print $NF}'` | |
echo $last $branch | |
done | |
} | |
list | sort |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################# | |
# CVE-XXXXX Wordpress and Drupal XML Blowup Attack DoS# | |
# Author: Nir Goldshlager - Salesforce.com Product Security Team# | |
# This is a Proof of Concept Exploit, Please use responsibly.# | |
################################################################################# | |
#!/usr/bin/env python | |
from __future__ import print_function | |
import threading | |
import time | |
import urllib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -ue | |
merge_shas="`git rev-list HEAD --merges --grep='^Merge pull request #[0-9]\{1,\} '`" | |
merges="`echo "$merge_shas" | wc -l | tr -d ' '`" | |
fast_forwards=0 | |
non_fast_forwards=0 | |
while read -r merge_sha; do | |
first_parent="`git rev-list -1 $merge_sha^1`" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
VER=0.0.2 | |
######################################################### | |
# redis server info script for CentminMod.com | |
# written by George Liu (eva2000) vbtechsupport.com | |
######################################################### | |
# redis password set by requirepass in /etc/redis.conf | |
REDISPASSWORD='' | |
SOCKET=n | |
TRINSICTIME=10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# diceware.sh -- Diceware Passphrase Generator | |
# | |
# Usage: ./diceware.sh [<num-words>] | |
# | |
# See http://www.diceware.com/ | |
roll_die() { | |
echo $((0x$(head -c5 /dev/urandom | xxd -ps) % 6 + 1)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Sometimes you need to move your existing git repository | |
# to a new remote repository (/new remote origin). | |
# Here are a simple and quick steps that does exactly this. | |
# | |
# Let's assume we call "old repo" the repository you wish | |
# to move, and "new repo" the one you wish to move to. | |
# | |
### Step 1. Make sure you have a local copy of all "old repo" | |
### branches and tags. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
list_of_sheets.xml | |
nodes.txt |