Skip to content

Instantly share code, notes, and snippets.

//GeoSn0w's Reverse Engineering Tutorial
//Use the code as you want, WTFPL
#include <string.h>
#include <stdio.h>
#include <time.h>
int main(int argc, char *argv[]) {
if(argc==2) {
printf("Preparing to check access key: %s\n", argv[1]);
int hex = 0;
<div id="raw_include_README_md"></div>
<footer>
Theme available on <a href="https://GitHub.com/Naereen/Nginx-Fancyindex-Theme">GitHub</a> by <a href="https://GitHub.com/Naereen">Naereen</a>, © 2015-18, released under <a href="https://lbesson.mit-license.org/">the MIT License</a>.
</footer>
<script type="text/javascript" src="/Nginx-Fancyindex-Theme-light/addNginxFancyIndexForm.js"></script>
<script type="text/javascript" src="/Nginx-Fancyindex-Theme-light/showdown.min.js"></script>
<script type="text/javascript" defer>
var converter = new showdown.Converter();
$( "#raw_include_HEADER_md" ).load( "HEADER.md", function (){
var elem = document.querySelector("#raw_include_HEADER_md");
@Ttech
Ttech / lights.php
Created August 13, 2017 16:46
quickest automation page ever... and equally terrible
<?php
@$input = $_GET['light'];
@$command = $_GET['command'];
$c = 'off'; // 1 = on, 0 = off
switch($command){
case 'on':
$c = 'on';
break;
case 'off':
This is a fun little project you can probably complete in a single weekend (after all the parts arrive)!
All parts were purchased from either Adafruit, AliExpress, or Amazon, and I went with the cheapest parts available.
Your milage may vary, but if you want very reliable - just stick with all Adafruit parts!
Base:
Adafruit has some neat chips under the "Feather" label.
All of these parts should work with any Feather for the most part, with the exception of the SD Card Reader.
For my "mobile" station design I used an Adafruit Feather Huzzah!
For the "base" stations, I used the LoRA Feathers
@Ttech
Ttech / PythonChat.py
Created February 18, 2016 00:25
Basic Python Chat Client
import threading
import socket
import sys
from time import gmtime, strftime
from pprint import pprint
host = '' # server
port = 38002 # port
size = 1024 # packet size
s = None
@Ttech
Ttech / update-letsencrypt.sh
Created December 12, 2015 06:41
The first revision of my Automated LetsEncrypt updater for ZNC and Friends using the letsencrypt tool
#!/bin/bash
domain_list="domains.txt"
# format is:
# domain1.abc.com,abc.com
# domain2.xyz.com,test.xyz.com,xyz.com
LEBIN="letsencrypt"
LE="$LEBIN --text certonly --agree-tos --renew-by-default --standalone --standalone-supported-challenges tls-sni-01 "
#!/bin/bash
for c in `seq 1 200`;
do
echo -e "\u$RANDOM\b" | tr -d '\n'
done
#!/usr/bin/env python
import sys,urllib
from hashlib import sha256
from os.path import basename
from urlparse import urlparse
from random import randint
from wand.color import Color
from wand.image import Image
#!/usr/bin/env python
import sys,urllib
from hashlib import sha256
from os.path import basename
from urlparse import urlparse
from random import randint
from wand.color import Color
from wand.image import Image
@Ttech
Ttech / irc-ident.cron.sh
Last active December 18, 2015 10:19
An automated away to allow identd ports for IRC use.
#!/bin/bash
# IRC IDENTD ALLOW RULES
# Generated on the fly...
# crontab recommended:
# 30 1 * * * /usr/bin/irc-ident.cron.sh
# which wil run daily at 1 30 in the morning