Skip to content

Instantly share code, notes, and snippets.

View gist:413b04e2584efb5767dc0a385556ff91
//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;
View gist:a7efc6315cedfb9fa2efeac668e686f5
<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 Aug 13, 2017
quickest automation page ever... and equally terrible
View lights.php
<?php
@$input = $_GET['light'];
@$command = $_GET['command'];
$c = 'off'; // 1 = on, 0 = off
switch($command){
case 'on':
$c = 'on';
break;
case 'off':
View Adafruit Feather Weather Station.txt
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 Feb 18, 2016
Basic Python Chat Client
View PythonChat.py
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 Dec 12, 2015
The first revision of my Automated LetsEncrypt updater for ZNC and Friends using the letsencrypt tool
View update-letsencrypt.sh
#!/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 "
View char.sh
#!/bin/bash
for c in `seq 1 200`;
do
echo -e "\u$RANDOM\b" | tr -d '\n'
done
View magic.py
#!/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
View magic.py
#!/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 Dec 18, 2015
An automated away to allow identd ports for IRC use.
View irc-ident.cron.sh
#!/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