Skip to content

Instantly share code, notes, and snippets.

@klinquist
klinquist / keybase.md
Created August 10, 2015 05:48
keybase.md

Keybase proof

I hereby claim:

  • I am klinquist on github.
  • I am klinquist (https://keybase.io/klinquist) on keybase.
  • I have a public key whose fingerprint is 63A1 35EE 2E01 5EFA 9194 BD36 213A 8E9D 7B28 C0D6

To claim this, I am signing this object:

// Place your settings in this file to overwrite the default settings
{
"editor.fontFamily": "Panic Sans",
"editor.fontSize":12,
// "editor.fontFamily": "Fira Code",
// "editor.fontSize": 12,
// "editor.fontLigatures": true,
"editor.minimap.enabled": false,
"workbench.editor.enablePreview": false,
[
{"key": "cmd+shift+alt+l", "command":"eslint.executeAutofix"},
{"key": "cmd+shift+l", "command":"HookyQR.beautify"},
{
"key": "cmd+shift+u",
"command": "workbench.action.git.sync"
},
{
"key": "shift+cmd+u",
"command": "git.push"
module.exports = {
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
},
"globals":{
@klinquist
klinquist / nginx.conf
Created May 31, 2018 05:02
NGINX reverse proxy config for Proscan
# IP address of the computer running Proscan. Assuming it's running on port 80
upstream scanner {
server 192.168.0.99;
}
server {
listen 80 default_server;
listen [::]:80 default_server;
for f in *.mp4
do
echo "file $f">>concatlist.txt
done
ffmpeg -f concat -i concatlist.txt -c copy output.mp4
rm concatlist.txt
const getEntryEveryMinutes = 5;
const randomNumber = (min, max) => {
return Math.floor(Math.random() * (max - min) + min);
};
const myArray = [];
setInterval(() => {
myArray.push(randomNumber(1,100));
if (myArray.length == 13) myArray.shift();
let total = 0;
for (let i = 0; i < myArray.length; i++){
definition(
name: "Turn Lights On When I&#39;m Home",
namespace: "",
author: "kris@linquist.net",
description: "Turns light(s) on when I arrive",
category: "Convenience",
iconUrl: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience.png",
iconX2Url: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience%402x.png",
iconX3Url: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience%402x.png")
@klinquist
klinquist / aprscounter.js
Created September 7, 2021 13:50
Count APRS radios in use by region
const aprs = require('aprs-parser');
const stream = new aprs.APRSISConnector;
stream.connect('W1ADV');
const geolib = require('geolib');
const stats = {
us: {},
eu: {},
jp: {}
};
# Invoked via Crontab:
# 59 18 * * THU /home/pi/recordPodcast.sh PollockPines 22
TODAY=`date +'%Y-%m-%d'`
HOMEPATH=/home/pi
REGION=$1
MEMORY=$2
SECONDS=90.0