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
{ | |
"defaultAction": "SCMP_ACT_ERRNO", | |
"architectures": [ | |
"SCMP_ARCH_X86_64", | |
"SCMP_ARCH_X86", | |
"SCMP_ARCH_X32" | |
], | |
"syscalls": [ | |
{ | |
"name": "accept", |
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/python3 | |
import requests | |
import json | |
requests.packages.urllib3.disable_warnings() | |
# Fill in {{variables}} below | |
COOKIE = '{{PASTE YOUR OWN COOKIE HERE}}' | |
REQUEST_URL = '/act/campus/ajax/index?uin={{QQ NUMBER}}&csrfCode={{CSRF CODE}}' # Get URL from Chrome inspector |
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/python3 | |
import sys | |
from tqdm import tqdm | |
from os.path import splitext, basename, dirname, abspath, join, getsize | |
def main(): | |
if len(sys.argv) < 2: | |
print('Usage: %s ...csv_files' % sys.argv[0]) | |
exit() |
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 | |
# random_delay_and_do | |
# DELAY={{seconds}} ./rdd.sh {{COMMAND}} will force delay setting to {{seconds}} | |
hours=3 | |
maxdelay=$(($hours*60*60)) | |
rand=$(($RANDOM*1234%maxdelay)) | |
delay=${DELAY:-$rand} | |
echo "sleeping $delay" |
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/python3 | |
import requests | |
import time | |
import json | |
INPUT_FILE = 'diff.csv' | |
OUTPUT_FILE = 'diff.out.csv' | |
THRESHOLD = 290 #times | |
THRESHOLD_TIME = 300.0 #sec |
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
# Put under /etc/ | |
# SOCKS5 proxy access control | |
# One IPv4 address per line | |
127.0.0.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
#!/usr/bin/python3 | |
import sys | |
import re | |
import operator | |
import json | |
from enum import Enum | |
class EventType(Enum): |
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
import { randomString } from './Helpers' | |
import BlobInflatorWorker from './BlobInflator.worker' | |
const worker = new BlobInflatorWorker() | |
const handlers = {} | |
worker.onmessage = function (e) { | |
if (!e.data.error) { | |
handlers[e.data.key].resolve(e.data.json) | |
} else { |
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
import json | |
import sys | |
import string | |
from fuzzywuzzy import process | |
from nltk import word_tokenize, pos_tag | |
from nltk.corpus import stopwords | |
from collections import Counter | |
TITLES_JSON = 'vast2017titles.json' | |
ARTICLE_JSON = 'ieeetvcg201801.json' |
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
create type coord as (x double precision, y double precision); | |
create type geocoord as (lat double precision, lon double precision); | |
create or replace function transform(x double precision, y double precision, out lat double precision, | |
out lon double precision) | |
language plpgsql as | |
$$ | |
declare | |
xy double precision; |