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 python3 | |
import os, sys, shutil | |
infile = sys.argv[1] | |
outdir = sys.argv[2] | |
shutil.rmtree(outdir, ignore_errors=True) | |
os.mkdir(outdir) |
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 "os" | |
import "bufio" | |
import "strconv" | |
func main() { | |
f := bufio.NewWriter(os.Stdout) | |
defer f.Flush() | |
const MIN = 1 |
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
#include <stdio.h> | |
#define MIN 1 | |
#define MAX 1000001 | |
int main (int argc, char **argv) { | |
for (int secret = MIN; secret <= MAX-1; secret++) { | |
printf("%d", secret); | |
int min = MIN; | |
int max = MAX; |
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 | |
# HTTP Stochastic Sleeper | |
# | |
# Usage example: run this script with Python and visit the URL | |
# | |
# http://127.0.0.1:8080/httpss?sleep=500&size=1000 | |
# | |
# This will sleep 500 milliseconds and then return 1000 bytes. |
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
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user |