Skip to content

Instantly share code, notes, and snippets.

View cryptopatrick's full-sized avatar
:octocat:

CryptoPatrick cryptopatrick

:octocat:
View GitHub Profile
@cryptopatrick
cryptopatrick / unfollow.js
Created September 4, 2020 13:27 — forked from JamieMason/unfollow.js.md
Unfollow everyone on twitter.com
// Unfollow everyone on twitter.com, by Jamie Mason (https://twitter.com/fold_left)
// https://gist.github.com/JamieMason/7580315
//
// 1. Go to https://twitter.com/YOUR_USER_NAME/following
// 2. Open the Developer Console. (COMMAND+ALT+I on Mac)
// 3. Paste this into the Developer Console and run it
//
// Last Updated: 09 April 2020
(() => {
const $followButtons = '[data-testid$="-unfollow"]';
@cryptopatrick
cryptopatrick / sha1.js
Last active August 29, 2019 09:46
SHA-1 Javascript
/**
* Secure Hash Algorithm (SHA1)
* https://gist.github.com/cryptopatrick/ec9b25e9651b161f313e8c99088dd731
**/
function rotate_left(n,s) {
var t4 = ( n<<s ) | (n>>>(32-s));
return t4;
}
function lsb_hex(val) {

Keybase proof

I hereby claim:

  • I am cryptopatrick on github.
  • I am cryptopatrick (https://keybase.io/cryptopatrick) on keybase.
  • I have a public key whose fingerprint is 3811 5033 D8F9 FBBF 8333 FCB6 0FC4 8F85 906C FAE8

To claim this, I am signing this object: