This file contains hidden or 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
#!/bin/bash | |
# Add this script to your crontab (crontab -e) | |
# */15 * * * * /path/to/check_adsense.sh | |
# don't forget to chmod 744 | |
result=$(cat /var/log/nginx/access.log | grep Mediapartners-Google) | |
if [ -n "$result" ]; then | |
python send.py | |
fi |
This file contains hidden or 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 themvffinman on github. | |
* I am themuffinman (https://keybase.io/themuffinman) on keybase. | |
* I have a public key whose fingerprint is CA98 2157 BC23 6E40 1410 7BD7 126D 9DE5 1754 D665 | |
To claim this, I am signing this object: |
This file contains hidden or 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
#This will edit all of your reddit comments to be blank and then delete them so the originals will be erased forever | |
# This gist is now deprecated, go here for the updated version: https://github.com/THEMVFFINMAN/Reddit-History-Eraser | |
This file contains hidden or 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
public BigInteger uniformNumber(BigInteger max) { | |
// Get the bit count of a number (rounding up) | |
double bit_count = BigInteger.Log(max, 2); | |
int length = (int)Math.Ceiling(bit_count); | |
// Grab some random int from the persisted random instance | |
int random_int = random.Next(); | |
// Generate some BigInt with at least bit_count above | |
BigInteger random_number = 0; |
This file contains hidden or 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
import praw, time | |
USERNAME = "blendt" | |
PASSWORD = "MYPASSWORD" | |
WAIT = 60 | |
WAITS = str(WAIT) | |
r = praw.Reddit("Comment Deleter") | |
r.login(USERNAME, PASSWORD) |
This file contains hidden or 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
def validateFile(): | |
if len(sys.argv) == 2: | |
filename = sys.argv[1] | |
if not os.path.isfile(filename): | |
print '[-] ' + filename + ' does not exist.' | |
exit(0) | |
if not os.access(filename, os.R_OK): | |
print '[-] ' + filename + ' access denied.' | |
exit(0) | |
print '[+] Reading Vulnerabilities From: ' + filename |
This file contains hidden or 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
import argparse, pxssh | |
class Client: | |
def __init__(self, host, user, password): | |
self.host = host | |
self.user = user | |
self.password = password | |
self.session = self.connect() |
This file contains hidden or 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
import ftplib | |
def anonLogin(hostname): | |
try: | |
ftp = ftplib.FTP(hostname) | |
ftp.login('anonymous', '[email protected]') | |
print '\n[*] ' + str(hostname) + ' FTP Anonymous Logon Succeeded.' | |
ftp.quit() |
This file contains hidden or 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
import pip | |
from subprocess import call | |
for dist in pip.get_installed_distributions(): | |
call("pip install --upgrade " + dist.project_name, shell=True) |
This file contains hidden or 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
import os | |
from _winreg import * | |
def returnDir(): | |
dirs=['C:\\Recycler\\','C:\\Recycled\\','C:\\$Recycle.Bin\\'] | |
for recycleDir in dirs: | |
if os.path.isdir(recycleDir): | |
return recycleDir |
OlderNewer