This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Created by Derrick Cohodas (dav-) | |
// Based on the Python example by StackExchange user wwnick from http://gis.stackexchange.com/a/415/41129 | |
// Requires the Mathjs library - http://mathjs.org/ | |
var math = require('mathjs') | |
/** | |
* Represents a coordinate with a distance | |
* @param {Number} lat Latitude |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Created by Derrick Cohodas (dav-) | |
// Based on the Python example by StackExchange user wwnick from http://gis.stackexchange.com/a/415/41129 | |
// Requires the Mathjs library - http://mathjs.org/ | |
var math = require('mathjs') | |
/** | |
* Represents a coordinate with a distance | |
* @param {Number} lat Latitude |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# creates a fwd-reverse loop of any gif | |
################################################################################ | |
function gifloop { | |
local -r original="${1:-UNSET}"; | |
local -r original_254="/tmp/${original/.gif/_254.gif}"; | |
local -r loop_unopt="/tmp/${original/.gif/_loop_unopt.gif}"; | |
local -r output="${original/.gif/_loop.gif}"; | |
if [[ "${orignal}" == "UNSET" ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# makes a 15 fps gif of a video file of *any length* so be sure you trim first | |
################################################################################ | |
function mkgif { | |
local -r _mov="${1}"; | |
local -r _gif="${2:-${$(basename ${_mov})%%.*}}.gif"; | |
palette="/tmp/palette.png" | |
filters="fps=15,scale=320:-1:flags=lanczos" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
############################################################################### | |
# you'll need to install pyzmq via `pip install pyzmq` | |
############################################################################### | |
import cmd | |
import sys | |
import zmq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name hCAPTCHA solver | |
// @namespace hCAPTCHA solver | |
// @version 1.0 | |
// @description Automatically solves hCAPTCHAs in browser | |
// @author Abdul Rehman Sheikh - engageub | |
// @licence MIT | |
// @match *://*/* | |
// @grant GM_xmlhttpRequest | |
// @grant GM_setValue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// taken from Patrick Brosset's entry located at | |
// https://devtoolstips.org/tips/en/download-all-images | |
// hosting here for postierity/to help ppl who might not have the google-fu | |
// to find it | |
$$('img').forEach(async (img) => { | |
try { | |
const src = img.src; | |
// Fetch the image as a blob. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From bf2afa54a7dec731832e487a546966be24ed74ae Mon Sep 17 00:00:00 2001 | |
From: Eric Wong <[email protected]> | |
Date: Thu, 16 Jun 2016 02:38:00 +0000 | |
Subject: coreaudio: fix device name truncation | |
Not tested by me. | |
Thanks to [email protected] on the sox-devel mailing list. | |
ref: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Hcaptcha Solver with Browser Trainer(Automatically solves Hcaptcha in browser) | |
// @namespace Hcaptcha Solver | |
// @version 10.0 | |
// @description Hcaptcha Solver in Browser | Automatically solves Hcaptcha in browser | |
// @author Md ubeadulla | |
// @match https://*.hcaptcha.com/*hcaptcha-challenge* | |
// @match https://*.hcaptcha.com/*checkbox* | |
// @grant GM_xmlhttpRequest | |
// @grant GM_setValue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# now if i could figure out how to get audio to output.... | |
# filters cobbled together from https://ffmpeg.org/ffmpeg-filters.html and | |
# https://amiaopensource.github.io/ffmpeg-artschool/scripts.html#audioviz | |
ffplay -f lavfi \ | |
'amovie=/path/to/some.mp3, | |
asplit=3[a1][a2][a3]; | |
[a1] | |
showcqt=fps=30:s=hd720 | |
[out1]; |
NewerOlder