Skip to content

Instantly share code, notes, and snippets.

View caffeinemonster's full-sized avatar

Tea caffeinemonster

  • hakology
  • Planet Earth
View GitHub Profile
@caffeinemonster
caffeinemonster / youtube-subscribers-python.py
Created October 3, 2018 01:05
Quick and dirty youtube subscriber grabber - using python and urllib2 without using youtube API
#!/usr/bin/python
import myglobals
import urllib2
def run():
print("Executing " + myglobals.sAppName)
print("Grabbing URL:" + myglobals.sURL)
response = urllib2.urlopen(myglobals.sURL)
sData = response.read()
# Hakology - AUTO YOUTUBE VIDEO DOWNLOADER SCRIPT
# Big shouts out to advancednewbie for sending in this idea.
# After submitting his initial code advancednewbie and i
# have worked for a few nights on this getting it sweet for you guys.
# Have fun hacking and enjoy the code.
#!/usr/bin/python
# YOU WILL NEED TO INSTALL
# youtube-dl curl python
# Notes :
# ensure your selected download directory exists
@caffeinemonster
caffeinemonster / gist:5962764
Created July 10, 2013 01:21
looks at apache log files for nmap scans then scans those ips back.
# fire all the lasers
# bash apache counter recon tool
echo 'Gathering logfile data \n'
cat /var/log/apache2/*.log | grep nmap | awk '{ print $2 }' > nmappers.txt
cat nmappers.txt
echo 'Filtering unique ips'
sort nmappers.txt | uniq > ips.txt
@caffeinemonster
caffeinemonster / gist:5953538
Last active December 19, 2015 12:18
PyGame - Tutorial Part 2 - Drawing objects to the screen.
# more at youtube.com/hakology or hakology.wordpress.com
import pygame
from pygame.locals import *
wWIDTH = 640 # game window width
wHEIGHT = 480 # game window height
loc = [0, 0] # location data
def main():
@caffeinemonster
caffeinemonster / gist:5897697
Created July 1, 2013 00:46
PyGame Tutorial Part 1
# more at youtube.com/hakology or hakology.wordpress.com
import pygame
from pygame.locals import *
wWIDTH = 640
wHEIGHT = 480
def main():
r = 1
while(1): # do for a while (game loop)
@caffeinemonster
caffeinemonster / gist:5609073
Created May 19, 2013 21:24
Bash curl script for time lapse video capture.
#!/bin/bash
dbooted=$(date +%Y%m%d-%H%M%S)
for (( ; ; ))
do
clear
#set sfilename = sysdate
sfilename='TLVC'$(date +%Y%m%d-%H%M%S)'.jpg'
#count images captured
iimages=$(ls *.jpg | wc -l)
surl='http://217.24.53.18/record/current.jpg'