Skip to content

Instantly share code, notes, and snippets.

@darconeous
darconeous / Curve25519-Curve448-Terminology.md
Last active February 9, 2020 00:41
Curve25519/Curve448 Terminology

Curve25519/Curve448 Terminology

Curve25519: A well-known Montgomery curve designed for ECC at a 128-bit security level.

X25519: The name of the scalar-point multiplication function for points on Curve25519 when performing ECDH. It is also commonly used as a shorthand for ECDH-using-Curve25519.

EdDSA:

@rickscherer
rickscherer / download-tadpoles-media.js
Last active April 16, 2019 23:48 — forked from yongheng/download-tadpoles-media.js
Download Tadpoles Media
// 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 March 12, 2024 22:46
A Ruby script for collecting phone record statistics from a Facebook user data dump
#! /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 September 26, 2022 05:13
docker compose file for local server, plex, transmission, sonarr, radarr, ombi, netdata, nextcloud
version: '2.1'
services:
transmission:
container_name: transmission
image: dperson/transmission
restart: unless-stopped
depends_on:
- plex
network_mode: host
environment:
@dfontana
dfontana / CmderZSH.md
Last active March 12, 2023 21:45
My setup guide for installing Cgywin, Mintty, Cmder, and ZSH.

What's this?

Instructions to obtain ZSH on a windows environment, without the input funny business presented by some other attempted solutions.

The final result is ZSH running on a mintty terminal, emulated by cygwin, and being handled by the popular cmder.

Why is this here?

For the benefit of myself and others. I've already followed these instructions twice. It took me hours to figure all this out, maybe someone else can save a few.

What exactly is covered?

  • Installing and setting up cmder
@MightyPork
MightyPork / a.c
Last active January 13, 2017 05:28
mmm
#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 December 16, 2019 22:45
Download Tadpoles Media
// 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 October 19, 2016 17:08
RFDuino arduino sketch to reply to a web bluetooth request
/*
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 May 11, 2020 01:00
Nest Cam Enhancements
// ==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 January 5, 2020 02:35
WS2812 Driver under ChibiOS
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.