Skip to content

Instantly share code, notes, and snippets.

Aditya Tannu AdySan

Block or report user

Report or block AdySan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View download-tadpoles-media.js
// Step 1: Open https://www.tadpoles.com/parents and log in;
// Step 2: Select the 'all' tab (IMPORTANT STEP);
// Step 3: Select a month;
// Step 4: Open the JavaScript console in your browser (e.g., press
// Command + Alt + i in Google Chrome on a Mac, or press
// Ctrl + Shift + i in Google Chrome in Windows);
// Step 5: Copy this entire code snippet, paste it to the JavaScript console,
// and press Enter to run; all photos and videos will be downloaded
// to your default Downloads folder and they should have proper
// file names.
@dylanmckay
dylanmckay / facebook-contact-info-summary.rb
Last active Jul 11, 2019
A Ruby script for collecting phone record statistics from a Facebook user data dump
View facebook-contact-info-summary.rb
#! /usr/bin/env ruby
# NOTE: Requires Ruby 2.1 or greater.
# This script can be used to parse and dump the information from
# the 'html/contact_info.htm' file in a Facebook user data ZIP download.
#
# It prints all cell phone call + SMS message + MMS records, plus a summary of each.
#
# It also dumps all of the records into CSV files inside a 'CSV' folder, that is created
@tzapu
tzapu / docker-compose.yml
Last active Nov 15, 2019
docker compose file for local server, plex, transmission, sonarr, radarr, ombi, netdata, nextcloud
View docker-compose.yml
version: '2.1'
services:
transmission:
container_name: transmission
image: dperson/transmission
restart: unless-stopped
depends_on:
- plex
network_mode: host
environment:
View a.c
#define GPIO_RGB 5
// this is used in a lot of places because I was lazy to type the long thing.
// may be it's not even needed anymore, idk
#define FLASH_FN ICACHE_FLASH_ATTR
void FLASH_FN ioInit() {
// GPIO5 - RGB output
PIN_FUNC_SELECT(PERIPHS_IO_MUX_GPIO5_U, FUNC_GPIO5);
@yongheng
yongheng / download-tadpoles-media.js
Last active Feb 19, 2019
Download Tadpoles Media
View download-tadpoles-media.js
// Step 1: Open https://www.tadpoles.com/parents and log in;
// Step 2: Select the 'all' tab (IMPORTANT STEP);
// Step 3: Select a month;
// Step 4: Open the JavaScript console in your browser (e.g., press
// Command + Alt + i in Google Chrome on a Mac, or press
// Ctrl + Shift + i in Google Chrome in Windows);
// Step 5: Copy this entire code snippet, paste it to the JavaScript console,
// and press Enter to run; all photos and videos will be downloaded
// to your default Downloads folder and they should have proper
// file names.
@scottjenson
scottjenson / candy.ino
Created Oct 19, 2016
RFDuino arduino sketch to reply to a web bluetooth request
View candy.ino
/*
CandyMachine_rfduino.ino
Arduino sketch that turns the vending machine into an Eddystone-URL beacon
and also interfaces with the attached relay shield in order to dispense candy
*/
#include <SPI.h>
#include <EddystoneBeacon.h> // from BLEPeripheral by Sandeep Mistry
@jrr
jrr / smallcam.user.js
Last active Aug 19, 2018
Nest Cam Enhancements
View smallcam.user.js
// ==UserScript==
// @name Nest Cam Smallerizer
// @namespace https://github.com/jrr
// @version 0.2
// @description make camera more usable in small windows
// @author jrr
// @match https://home.nest.com/camera/*
// @match https://home.nest.com/home/*
// @grant none
// ==/UserScript==
@austinglaser
austinglaser / LICENSE
Last active Oct 30, 2018
WS2812 Driver under ChibiOS
View LICENSE
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
@rtfpessoa
rtfpessoa / handle-ctrl-c.py
Created Mar 19, 2016
Handle CTRL+C in Python
View handle-ctrl-c.py
#!/usr/bin/env python
import signal
import sys
def signal_handler(signal, frame):
sys.exit(0)
signal.signal(signal.SIGINT, signal_handler)
@chubin
chubin / Enable-wttr.in-for-PowerShell
Created Feb 22, 2016
How to enable wttr.in in a PowerShell console
View Enable-wttr.in-for-PowerShell
# To enable ANSI sequences in a PowerShell console run the following commands.
# After that you can use wttr.in in you PowerShell just lake that:
# (curl http://wttr.in/ -UserAgent "curl" ).Content
#
# More on it:
# http://stknohg.hatenablog.jp/entry/2016/02/22/195644 (jp)
#
Add-Type -MemberDefinition @"
[DllImport("kernel32.dll", SetLastError=true)]
You can’t perform that action at this time.