Skip to content

Instantly share code, notes, and snippets.

View JayGoldberg's full-sized avatar

Jay Goldberg JayGoldberg

View GitHub Profile
@chmutoff
chmutoff / dimmer-modded-rocker.yaml
Last active November 19, 2024 14:48
ESPHOME config for MOES 2 Gang WiFi Dimmer
substitutions:
device_name: 2-gang-dimmer
device_description: MOES 2 Gang WiFi Dimmer
friendly_name: Living Room Dimmer
esphome:
name: ${device_name}
comment: ${device_description}
esp8266:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<title>base64 + lzma + iframe</title>
<style>iframe{position:absolute;top:0;left:0;height:100vh;width:100%;border:none}</style>
</head>
<body>
<iframe sandbox="allow-same-origin allow-downloads allow-scripts allow-forms allow-top-navigation allow-popups allow-modals allow-popups-to-escape-sandbox"></iframe>
@molomby
molomby / create-email-alias.sh
Created February 13, 2022 00:48
Forward Email API: Wrapper Script for Creating Aliases
#!/usr/bin/env bash
# Usage:
# create-email-alias.sh $URL_OR_DESC [$SLUG]
# Example:
# create-email-alias.sh "https://www.darwinsailingclub.com.au" dsc
# Results in:
# Email [email protected] -> [email protected], comment: "https://www.darwinsailingclub.com.au"
# Environment variables can be supplied at run time or set in ~/.forward-email
@jasonk
jasonk / Reolink API.md
Last active May 25, 2025 08:42
Simple Bash Examples for Reolink API
@userlandkernel
userlandkernel / altijd-bonusbox.py
Last active August 13, 2024 22:38
[WIP] Mijn bonusbox, altijd alles in de bonus
#!/usr/bin/env python3
"""
Project AlbertPWN
(c) 2021, Sem Voigtlander (@userlandkernel)
"""
import sys
import os
import struct
import time
import requests
@xpepper
xpepper / tempmail.sh
Last active February 1, 2025 00:36
A shell script to create a temporary disposable email via command line (install w3m, curl, jq)
#!/usr/bin/env sh
#
# by Siddharth Dushantha 2020
#
# Dependencies: jq, curl, w3m
#
version=1.1.9
# By default 'tmpmail' uses 'w3m' as it's web browser to render
@rashaabdulrazzak
rashaabdulrazzak / longfiletranscribe.js
Last active January 9, 2023 16:25
transcribe file located in cloud
// Imports the Google Cloud client library
const speech = require('@google-cloud/speech');
// Creates a client
const client = new speech.SpeechClient();
// const gcsUri = 'gs://my-bucket/audio.raw';
// const encoding = 'Encoding of the audio file, e.g. LINEAR16';
// const sampleRateHertz = 16000;
// const languageCode = 'BCP-47 language code, e.g. en-US';
@bng44270
bng44270 / webnotepad.js
Last active April 9, 2024 20:09
Create a local-storage browser-based notepad
/*
WebNotepad - create a local-storage browser-based notepad app
Usage:
1) Include webnotepad.js
2) Create DIV element
<div id="webnote"></div>
@tacck
tacck / FileListForGoogleShareDrive.js
Last active December 5, 2024 15:58
Show file list in Google Share Drive's folder. base on https://developers.google.com/drive/api/v3/quickstart/nodejs
'use strict'
if (process.argv.length != 4) {
console.log(`Usage: ${process.argv[1]} [Share Drive ID] [Parent Folder ID]`)
return 1
}
const shareDriveId = process.argv[2]
const parentFolderId = process.argv[3]
@matt17r
matt17r / (Sample) Map of Shared Drive.md
Last active December 5, 2024 15:57
Generate a tree view of Google Shared Drives in Markdown format