Skip to content

Instantly share code, notes, and snippets.

View kabili207's full-sized avatar
💤

Amy Nagle kabili207

💤
  • 05:50 (UTC -05:00)
View GitHub Profile
@AndiceLabs
AndiceLabs / ge_ac.conf
Last active July 5, 2019 14:48
LIRC hardware configuration file for a Raspberry Pi and remote control definition for GE Air Conditioner Model AEL10AQH2
# Please make this file available to others
# by sending it to <[email protected]>
#
# this config file was automatically generated
# using lirc-0.9.0-pre1(default) on Wed Nov 8 22:02:12 2017
#
# contributed by Ron Battles ([email protected])
#
# brand: General Electric
# model no. of remote control: YK4EB1
@jwalanta
jwalanta / OpenWrt detect new device and send text message.md
Last active October 21, 2024 17:19
Detect new network devices connecting to OpenWrt and send text message
@zvodd
zvodd / mysqldump
Last active November 21, 2023 08:28
Git friendly MySQL Dump
With the default mysqldump format, each record dumped will generate an individual INSERT command in the dump file (i.e., the sql file), each on its own line. This is perfect for source control (e.g., svn, git, etc.) as it makes the diff and delta resolution much finer, and ultimately results in a more efficient source control process. However, for significantly sized tables, executing all those INSERT queries can potentially make restoration from the sql file prohibitively slow.
Using the --extended-insert option fixes the multiple INSERT problem by wrapping all the records into a single INSERT command on a single line in the dumped sql file. However, the source control process becomes very inefficient. The entire table contents is represented on a single line in the sql file, and if a single character changes anywhere in that table, source control will flag the entire line (i.e., the entire table) as the delta between versions. And, for large tables, this negates many of the benefits of using a formal sourc
@TuxSH
TuxSH / functions.cpp
Created October 30, 2015 22:09
Pokémon Battle Revolution basic encryption/decryption functions
#define _CRT_SECURE_NO_WARNINGS
#define _SCL_SECURE_NO_WARNINGS
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <algorithm>
#include <cstdint>
using namespace std;
@gythialy
gythialy / LicenseEngine.cs
Last active June 13, 2022 02:50
remove license validation of MarkdownPad 2 by Mono Cecil
public bool VerifyLicense(string licenseKey, string email)
{
if (string.IsNullOrEmpty(licenseKey) || string.IsNullOrEmpty(email))
{
return false;
}
try
{
this.License = this.Decrypt(licenseKey);
this.LicenseProcessed = true;
@russss
russss / paypal2ofx.py
Created August 7, 2011 22:15
Convert a paypal CSV export to an OFX file
import csv
import sys
from collections import namedtuple
rows = csv.reader(sys.stdin)
fields = [field.strip().lower().replace(' ', '_').replace('/', '_')
for field in rows.next() if field.strip() != '']
PaypalRecord = namedtuple('PaypalRecord', fields)