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
# | |
# getColeman.py - grab Dr. Rick Coleman's lecture slides for the day and combine into a PDF | |
# | |
# made by Dayton Hasty | |
# | |
# (you may need to pip install fpdf) | |
# | |
import os | |
import requests |
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
/* | |
* TimeSheet.cpp - fill out a time sheet from information collected with an IFTTT csv log | |
* | |
* (c)dayt0n 2018 | |
* | |
* build: g++ main.cpp -o timesheet -lcurl `Magick++-config --cxxflags --cppflags` `Magick++-config --ldflags --libs` -Wall -DNAME='"YOUR NAME"' -DSIG -std=c++11 | |
* | |
*/ | |
#include <string> |
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
# | |
# bfEnc.py - bruteforce iTunes backup encryption password with dictionary attack | |
# | |
# to use, plug in device with encryption turned on and let this program run | |
# | |
# (c)dayt0n 2018 | |
# | |
import os | |
import sys |
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
# bfrestrict.py - bruteforce iOS restrictions passcode | |
# | |
# if you don't have an unencrypted backup folder ready, just plug in the device and run this program | |
# | |
# Note: make sure you have libimobiledevice installed (we need idevicebackup2) if you plan to plug-and-play | |
# | |
# made by Dayton Hasty (c)2018 | |
import os | |
import sys | |
import hashlib |
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
@echo off | |
set argC=0 | |
for %%x in (%*) do Set /A argC+=1 | |
if not %argC% == 2 ( | |
echo Incorrect usage | |
echo usage: installDrivers.bat [USB location- F:, E:, etc] [exact driver directory] | |
goto endingtime | |
) |
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
# gcsize.py - increase or decrease dimensions of GCode in .gcode/.gco/.nc files for things like CNC routers | |
# | |
# written by dayt0n | |
import sys | |
import os | |
import re | |
if len(sys.argv) < 3: | |
print("Insufficient arguments\nusage: %s [GCode file] [output] [size multiplier]") % sys.argv[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
# printer_switch.py | |
# | |
# controls power for a 3D printer that is connected to a Raspberry Pi (optionally running Octoprint) | |
# | |
# Copyright 2016 by dayt0n | |
import RPi.GPIO as GPIO | |
import time | |
import os | |
import subprocess |
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
/* clypDownloader - downloads music from clyp.it | |
* | |
* compile with: gcc clypDownloader.c -o clypDownloader -lcurl | |
* | |
* made by dayt0n | |
*/ | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <stdlib.h> |
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
#include <stdio.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <string.h> | |
int main(int argc, char* argv[]) { | |
int time = 1; | |
if (argc > 2) { | |
printf("Too many arguments.\nusage: %s <end time in seconds>\n",argv[0]); | |
exit(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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#include <unistd.h> | |
int main(int argc, char* argv[]) { | |
srand(time(NULL)); | |
unsigned seed = rand() % 1024; | |
int r; | |
srand(seed); |
NewerOlder