Skip to content

Instantly share code, notes, and snippets.

#/usr/bin/env sh
# Utility script for checking profile ban state en masse.
#
# Takes a newline-separated list of steamID64's on stdin, filters any with a ban
# state not equal to "1" and outputs the respective steamID64's on stdout.
# Runtime is asynchronous and is therefore not guaranteed to produce sequential
# output. The script will continue to send requests until EOF is reached
# regardless of curl or parsing errors. Neither consistency nor completeness is
# therefore guranteed.
@s1gtrap
s1gtrap / neo.rb
Created October 20, 2015 00:52
My take on Trustpilot's rabbithole
#!/usr/bin/env ruby
require 'digest'
phrase = 'poultryoutwitsants'
checksum = '4624d200580677270a54ccff86b9610e'
words = File.open('words', 'r').each_line
.map(&:chomp).uniq # Discard line-endings & duplicates
@s1gtrap
s1gtrap / yo.java
Last active November 4, 2015 04:12
LightRange[] defaultRanges = {
new LightRange({2,3}, 4.4, "something", 4),
new LightRange({4,6}, 4.8, "something", 7),
new LightRange({6,9}, 5.4, "something", 9)
};
defaultRanges.forEach(s -> {
s.intlist = config.get('intlist stuff').getIntList();
s.floatthing = (float)config.get('double stuff').getDouble();
s.stringy = config.get('strang').getString();
CC?=clang++
CFLAGS=-Wall -std=c++14
SOURCES=Source/Bootstrap/Injector.cpp Source/Bootstrap/Processtype.cpp Source/Bootstrap/Spawner.cpp Source/Main.cpp
OBJECTS=$(SOURCES:.cpp=.o)
Bootstrap: $(OBJECTS)
$(CC) $^ -o $@
$(OBJECTS): %.o: %.cpp