This file contains hidden or 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
package main | |
import ( | |
"fmt" | |
"io" | |
"log" | |
"net/url" | |
"os" | |
"strings" |
This file contains hidden or 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
# Example: | |
# $ docker build -t masscan -f masscan.Dockerfile . | |
# $ docker run --rm -it --net=host masscan -p0-65535 192.168.0.0/16 --rate 1000000 | |
# --net=host is optional but I saw rate limit without it | |
# -v $(pwd):/opt if you want to feed result files back out | |
FROM alpine as builder | |
LABEL author "Peng Liu" | |
LABEL email "[email protected]" | |
ARG MASSCAN_GIT_URL=https://github.com/robertdavidgraham/masscan |
This file contains hidden or 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 | |
require 'twilio-php/Services/Twilio.php'; | |
include 'marg/marg.php'; | |
class Messenger { | |
private $AccountSid = "guff"; | |
private $AuthToken = "junk"; | |
private $ourNumber = "+440987654321"; | |
private $validSenders = array( | |
"+441234567890" => "Joe Eaves" |
This file contains hidden or 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
/* | |
Red 0 == Black 25 | |
Red 1 == Black 24 == R1 | |
Black 1 == Red 24 == B1 | |
Red 12 == Black 13 == R12 | |
Black 12 == Red 13 == B12 | |
*/ | |
// map a color place to a bpard position | |
var x = function(pos, color) { |
This file contains hidden or 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 | |
# Make the fifos | |
mgmtFifo="/tmp/.ftp.mgmt.fifo" | |
cmdFifo="/tmp/.ftp.cmd.fifo" | |
outFifo="/tmp/.ftp.out.fifo" | |
mkfifo "$mgmtFifo" | |
mkfifo "$cmdFifo" | |
mkfifo "$outFifo" |
This file contains hidden or 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 python | |
# sort.py: sorts images in to subfolders based on resolution | |
from PIL import Image | |
from os import path, mkdir | |
from shutil import move | |
from glob import glob | |
class ImageSorter: | |
imageFormats = ("jpg", "png") |