#This fork as moved to:
#https://github.com/jmack/random-imgur
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am jordanmack on github. | |
* I am jordanmack (https://keybase.io/jordanmack) on keybase. | |
* I have a public key ASBF5d6_IBpXhRdTO3g_fw0uskqryGnd98JANb8oG65waAo | |
To claim this, I am signing this object: |
This file contains 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/env bash | |
# Quit on any error. | |
set -e | |
# Require superuser. | |
if [[ $EUID > 0 ]]; then | |
echo "This script requires root or sudo." | |
exit 1 | |
fi |
This file contains 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/env python3 | |
import json | |
import math | |
import requests | |
DEFAULT = 15 | |
MODIFIER = 2 | |
try: |
This file contains 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
const reveal = function() | |
{ | |
jQuery("a.nsfwShow").click(); | |
jQuery("a.politicsShow").click(); | |
}; | |
reveal(); | |
setInterval(reveal, 500); | |
This file contains 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
javascript:(function()%7Bconst%20reveal%20%3D%20function()%7BjQuery(%22a.nsfwShow%22).click()%3BjQuery(%22a.politicsShow%22).click()%3B%7D%3Breveal()%3BsetInterval(reveal%2C%20500)%7D)() |
This file contains 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
// ==UserScript== | |
// @name Peepeth Enhancer | |
// @namespace https://github.com/jordanmack/PeepethEnhancer | |
// @version 0.3.0 | |
// @description Peepeth Enhancer is a collection of scripts that add several new features to Peepeth. | |
// @author Jordan Mack (jordanmack.info) | |
// @match https://peepeth.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains 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/env python3 | |
def format_binary(i): | |
s = bin(i) | |
s = s.replace("0b", "") | |
return s | |
def gray_code(n): | |
return n ^ (n >> 1) |