Skip to content

Instantly share code, notes, and snippets.

View johannesboyne's full-sized avatar
👨‍💻
Building.

Johannes Boyne johannesboyne

👨‍💻
Building.
View GitHub Profile
import requests
# CONFIG
token = "" # Add your github token here
repo = "microsoft/fluentui" # the repo you want to check
location_check = None # "Germany" # if you want to check for a specific location
payload = {}
headers = {"Authorization": f"Bearer {token}"}
iteration_start = 0

Keybase proof

I hereby claim:

  • I am johannesboyne on github.
  • I am johannesboyne (https://keybase.io/johannesboyne) on keybase.
  • I have a public key whose fingerprint is 8232 52EF 83A3 5708 0E88 DF4F 4A30 E022 3F44 01C4

To claim this, I am signing this object:

#!/bin/bash
usb_modeswitch -v 12d1 -p 14db -V 12d1 -P 14db -M "55534243123456780000000000000a11062000000000000100000000000000"
$ docker run -it -p 9000:9000 johannesboyne/gofakes3
2020/02/01 20:51:06 locals3 db created or opened
2020/02/01 20:51:06 using port: 9000
2020/02/01 20:51:24 => /
2020/02/01 20:53:58 => /testbucket?list-type=2&prefix=&delimiter=%2F&encoding-type=url
2020/02/01 20:53:58 GET BUCKET
2020/02/01 20:53:58 bucketname: testbucket
2020/02/01 20:53:58 prefix :
2020/02/01 20:55:12 => /my-bucket
@johannesboyne
johannesboyne / linear_regression.go
Created January 28, 2017 12:34
Simple sample in Go, linear regression.
package main
import (
"bytes"
"encoding/csv"
"io/ioutil"
"log"
"math"
"strconv"
"time"
@johannesboyne
johannesboyne / runme.js
Created October 8, 2016 16:09
run this in your console, or in the Node.js repl
[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]](([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+
# $ iex -S mix --> 22 MB
KV.Registry.start_link(:kvname)
1..100_000
|> Enum.map(&(KV.Registry.create(:kvname, "list#{&1}")))
|> Enum.map(&(KV.Bucket.put(&1, "milk", :random.uniform)))
# --> 374 MB
1..100_000
|> Stream.map(&( KV.Registry.lookup(:kvname, "list#{&1}") ))
#!/bin/bash
aws s3 ls --region=<region> <bucket-and-path> \
| sed '1d;$d' \
| awk '{print "s3://<bucket-and-path>/"$4 }' \
| xargs -L 1 -I file aws s3 cp --region=<region> file - \
| awk '{print $5}'|sort|uniq -c
@johannesboyne
johannesboyne / keybase.md
Created February 5, 2016 09:11
keybase.md

Keybase proof

I hereby claim:

  • I am johannesboyne on github.
  • I am johannesboyne (https://keybase.io/johannesboyne) on keybase.
  • I have a public key ASAgzzv7BhAYq2jaO8oQhuHXuBffKqIlMbgV74CE0-hyewo

To claim this, I am signing this object: