Skip to content

Instantly share code, notes, and snippets.

View rockpunk's full-sized avatar
🙀

steve layland rockpunk

🙀
  • san francisco bay area
  • 21:53 (UTC -08:00)
View GitHub Profile
@rockpunk
rockpunk / bug-bounty-01.json
Last active May 19, 2022 16:37
bug bounty files
{ "users": [
{"name":"billy o'connell", "email":"[email protected]", "age": 27, "earnings":"$37.95"},
{"name":"fanny smith", "email":"[email protected]", "age": 32, "earnings":"$1337.97"},
{"name":"ping sanchez", "email":"[email protected]", "age": 30, "earnings":"$500.07"},
{"name":"raj patel", "email":"[email protected]", "age": 27, "earnings":"$357.07"},
{"name":"manuel escobar", "email":"[email protected]", "earnings":"$519.25"},
{"name": "yoshi yoshimura", "email":"yoshi", "age":19, "earnings":"$514.24"},
{"name":"jackie bauer", "email":"[email protected]", "age": 27, "earnings":"$537.95"},
{"name":"jen o'reilly", "email":"[email protected]", "age": 35, "earnings":"$944.95"},
{"name":"yolanda macmahan", "email":"[email protected]", "age": 42, "earnings":"$40.07"}
@rockpunk
rockpunk / bug_bounty_earnings.json
Created May 3, 2022 18:51
bug bounty earnings
{ "users": [
{"name":"billy o'malley", "email":"[email protected]", "age": 27, "earnings":"$37.95"},
{"name":"francis smith", "email":"[email protected]", "age": 32, "earnings":"$1337.97"},
{"name":"ping liu", "email":"[email protected]", "age": 30, "earnings":"$500.07"},
{"name":"sudeep patel", "email":"[email protected]", "age": 27, "earnings":"$357.07"},
{"name":"manuel rodriguez", "email":"[email protected]", "earnings":"$519.25"},
{"name": "yoshi yoshida", "email":"yoshi", "age":19, "earnings":"$514.24"},
{"name":"jackie robinson", "email":"[email protected]", "age": 27, "earnings":"$537.95"},
{"name":"jen o'connor", "email":"[email protected]", "age": 35, "earnings":"$944.95"},
{"name":"yoyo ma", "email":"[email protected]", "age": 42, "earnings":"$40.07"}
@rockpunk
rockpunk / lang.scala
Last active March 28, 2020 01:32
generate a proto enum from JVM locales
import java.util.Locale
import java.io._
val w = new BufferedWriter(new FileWriter(new File("/tmp/test.proto")))
w.write("enum Language {\n")
("unknown" +: Locale.getISOLanguages).zipWithIndex.foreach { x=>
w.write(f" ${x._1.toUpperCase} = ${x._2}; // ${Locale.forLanguageTag(x._1).getDisplayLanguage}\n") }
w.write("}\n");
w.close
@rockpunk
rockpunk / git-select
Last active December 22, 2022 00:30
#!/usr/bin/env bash
# git select (branch select)
# a git command for checking out a branch or deleting a branch via
# a bash selection menu that uses up/down arrow keys
#
# usage:
# - git select
#
# set up:
@rockpunk
rockpunk / junk.php
Last active September 13, 2017 01:44
passing data between two interpreted languages
#!/usr/bin/env php
<?php
$n=10;
$meth=$argv[1];
if($argv[2]) {
$n=$argv[2];
}
chef_gem 'chef-rewind'
require 'chef/rewind'
include_recipe "postfix::server"
include_recipe "dovecot"
include_recipe "mysql::client"
include_recipe "mi-ssl"
pkgs = []
JobSummary.Status lastStatus = null;
while( loop ) {
Thread.sleep(POLL_INTERVAL);
JobSummary.Status status = client.showJobStatus(job);
switch( status ) {
case SUCCESS:
loop = false;
break;
case KILLED:
throw new Exception("TreasureData job was terminated. " + "(jobID="+jobId+")");