Skip to content

Instantly share code, notes, and snippets.

@janglapuk
janglapuk / UseeTV-ZXV10-B700V5-lirc.conf
Created March 31, 2020 10:17
lircd config file for UseeTV STB ZXV10-B700V5 remote
# Please make this file available to others
# by sending it to <[email protected]>
#
# this config file was automatically generated
# using lirc-0.9.0(default) on Tue Mar 31 17:27:09 2020
#
# contributed by janglapuk
#
# brand: UseeTV STB ZXV10 B700V5
# model no. of remote control: N/A
@janglapuk
janglapuk / PKGBUILD_sendanywhere_8.11.7-257
Last active March 3, 2019 07:15
ArchLinux PKGBUILD: sendanywhere v8.11.7-257
pkgname=sendanywhere
pkgver=8.11.7
pkgrel=257
pkgdesc="Send Anywhere is a multi-platform file sharing service where users can directly share digital content in real time."
arch=('x86_64')
url="http://send-anywhere.com"
license=('custom:sendanywhere_eula')
options=('!strip' '!emptydirs')
depends=('nss' 'libxtst' 'libxss' 'gconf' 'gtk2' 'alsa-lib')
source=("${pkgname}-${pkgver}.deb::https://update.send-anywhere.com/linux_downloads/sendanywhere_latest_amd64.deb")
@janglapuk
janglapuk / vzdump-gdrive-backup.sh
Last active January 9, 2019 07:09
vzdump backup script to Google Drive
#!/bin/bash
if [ $# -ne 1 ];
then
echo "Usage: $0 <VMID>"
exit 1
fi
BACKUPDIR="/var/lib/vz/dump"
@janglapuk
janglapuk / autoreload.py
Created September 18, 2018 03:44
Simple Python autoreload script
import os, sys, subprocess, signal, binascii, time
"""
Usage:
$ python autoreload.py app.py
"""
last_crc32 = 0
terminate = False
var MD5 = function(string) {
function RotateLeft(lValue, iShiftBits) {
return (lValue << iShiftBits) | (lValue >>> (32 - iShiftBits));
}
function AddUnsigned(lX, lY) {
var lX4, lY4, lX8, lY8, lResult;
lX8 = (lX & 0x80000000);
lY8 = (lY & 0x80000000);
lX4 = (lX & 0x40000000);
@janglapuk
janglapuk / keybase.md
Created August 9, 2017 13:53
Just my Keybase proof

Keybase proof

I hereby claim:

  • I am janglapuk on github.
  • I am janglapuk (https://keybase.io/janglapuk) on keybase.
  • I have a public key ASDItTCf9BTuHgIpHT2ay4mBdzQ6P5lXM9U8Glwsp2l7QQo

To claim this, I am signing this object:

@janglapuk
janglapuk / ipcam-clock-set.pl
Created December 26, 2016 09:59 — forked from 667bdrm/ipcam-clock-set.pl
Simple clock synchronization for some chinese DVRs supporting CMS with json-like protocol. Includes some other API commands.
#!/usr/bin/perl
#
# Simple clock synchronization for some chinese HiSilicon based DVRs supporting CMS (Sofia software) with json-like protocol. Tested with:
#
# HJCCTV HJ-H4808BW (XiongMai, Hi3520, MBD6304T)
# http://www.aliexpress.com/item/Hybird-NVR-8chs-H-264DVR-8chs-onvif-2-3-Economical-DVR-8ch-Video-4-AUDIO-AND/1918734952.html
#
#
@janglapuk
janglapuk / jbme.html
Created December 19, 2016 06:32
@qwertyoruiopz's remote jailbreak for iOS 9.3.3 64-bit
<!--
This is licensed under the Anyone But Stefan Esser license.
---
PLZ NO RCE.
sorry 4 indentation but i was using nano lmao
@janglapuk
janglapuk / tcp_serial_redirect.py
Created September 21, 2016 06:23
Taken from https://github.com/pyserial/pyserial/tree/master/examples with a little modification to fit with OS X environment
#!/usr/bin/env python
#
# Redirect data from a TCP/IP connection to a serial port and vice versa.
#
# (C) 2002-2016 Chris Liechti <[email protected]>
#
# SPDX-License-Identifier: BSD-3-Clause
import sys
import socket
@janglapuk
janglapuk / adfly-skipper.user.js
Last active July 2, 2021 14:58
GreaseMonkey/TamperMonkey script for automating adf.ly 'Skip' button
// ==UserScript==
// @name adf.ly Auto Skip Ad
// @namespace http://github.com/janglapuk
// @version 0.5
// @description Let you ignore the bunch of ads :] (simple and optimized rev)
// @author janglapuk
// @match http://adf.ly/*
// @require http://code.jquery.com/jquery-3.2.1.slim.min.js
// @require https://gist.githubusercontent.com/raw/2625891/waitForKeyElements.js
// @updateURL https://gist.github.com/janglapuk/790470741a39a0f2301b27d234e6a9cc/raw/adfly-skipper.user.js