Skip to content

Instantly share code, notes, and snippets.

View markasoftware's full-sized avatar
👽
secret alien technology

Mark Polyakov markasoftware

👽
secret alien technology
View GitHub Profile
@markasoftware
markasoftware / shadowsocks-qr-gen.bash
Last active March 4, 2018 11:59
Shadowsocks QR Code Generator
#!/bin/bash
# Make sure you have qrencode installed. Apart from that, you only need coreutils
read -p 'Algorithm? ' ss_algo
read -p 'Password? ' ss_pass
read -p 'Host? ' ss_host
read -p 'Port? ' ss_port
read -p 'Friendly name (optional)? ' ss_friend
read -p 'Output file name (in pwd)? ' ss_out

Keybase proof

I hereby claim:

  • I am markasoftware on github.
  • I am markasoftware (https://keybase.io/markasoftware) on keybase.
  • I have a public key whose fingerprint is 746D B423 EA4B D304 A6E6 B7B3 F061 6A79 7F40 F901

To claim this, I am signing this object:

@markasoftware
markasoftware / analyze.bash
Created April 20, 2017 17:17
Old Clash of Code bot
#!/bin/bash
code_size () {
sed -r 's/\\n/T/g;s/\\\"/S/g;s/\\u[0-9]{4}/K/g' <<< $1 | wc -m;
}
# authenticate
bash check-block.bash
bash authenticate.bash
source user-info.conf
javascript:void((()=>{g=+prompt('Gravity Level:', '2.0');j=+prompt('Jumping force:', '2.0');k=0;v=0;u=0;function b(){scrollBy(0,v);if(k){v-=j}else{v+=g};requestAnimationFrame(b)};b();window.onkeydown=e=>e.keyCode===32?k=1:0;window.onkeyup=e=>e.keyCode===32?k=0:0})());