Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Kevin-Prichard's full-sized avatar

Kevin Prichard Kevin-Prichard

  • Data Metaphysics
  • San Francisco, CA
View GitHub Profile
@Kevin-Prichard
Kevin-Prichard / ya
Created January 29, 2024 23:37
Extract audio for on-the-go listening: #bash #TermUX #Android
#!/usr/bin/env bash
BASE=~/storage/change_me1
DEF_COLLEC_NAME=change_me2
IFS="?"
read -ra url <<< "$1"
if [ "$2" == "" ]; then
cd $BASE/$DEF_COLLEC_NAME
else
[[ ! -e $BASE/$2 ]] && mkdir $BASE/$2
@Kevin-Prichard
Kevin-Prichard / symlink-flatpak-app-to-gnome-shell.md
Created November 9, 2022 01:48
How can I symlink a Flatpak app to Gnome Shell Desktop
@Kevin-Prichard
Kevin-Prichard / json_data_dictionary.js
Created March 3, 2022 01:19
JSON data dictionary generator: read json file, collect the key paths, write out report
#!/usr/bin/env node
//var JSON = require('JSON');
var fs = require('fs');
var argv = require('yargs').argv;
var isObject = function(v) { return v && (typeof v==='object') && !('length' in v); };
var isArray = function(v) { return v && (typeof v==='object') && ('length' in v); };
var isPrimitive = function(v) { var res=(typeof v in {'boolean':true,'number':true,'string':true,'undefined':true}) || (v===null); return res;};
var keys = function(v) {keys=[]; for(var key in v){keys.push(key)} return keys};
@Kevin-Prichard
Kevin-Prichard / download_and_delete_slack_files.py
Created July 30, 2018 04:57
How to deal with: "Your file was uploaded — it’s safe and sound in Slack. Unfortunately your workspace doesn’t have any storage space left."
#!/usr/bin/env python2.7
import traceback
import requests
import shutil
import time
import json
import os
import re
#include <MPU9250_asukiaaa.h>
#include <FastLED.h>
#define LED_PIN 5
#define NUM_LEDS 144
#define BRIGHTNESS 64
#define LED_TYPE WS2811
#define COLOR_ORDER GRB
#define DEBUG 1
#define UPDATES_PER_SECOND 50
This file has been truncated, but you can view the full file.
M190 S50.000000
M109 S195.000000
;Sliced at: Mon 14-09-2015 12:16:28
;Basic settings: Layer height: 0.1 Walls: 0.8 Fill: 20
;Print time: 1 hour 45 minutes
;Filament used: 2.5m 7.0g
;Filament cost: None
;M190 S50 ;Uncomment to add your own bed temperature line
;M109 S195 ;Uncomment to add your own temperature line
G21 ;metric values
This file has been truncated, but you can view the full file.
M190 S50.000000
M109 S195.000000
;Sliced at: Mon 14-09-2015 12:14:56
;Basic settings: Layer height: 0.1 Walls: 0.8 Fill: 20
;Print time: 2 hours 2 minutes
;Filament used: 2.364m 7.0g
;Filament cost: None
;M190 S50 ;Uncomment to add your own bed temperature line
;M109 S195 ;Uncomment to add your own temperature line
G21 ;metric values
This file has been truncated, but you can view the full file.
M190 S50.000000
M109 S195.000000
;Sliced at: Mon 14-09-2015 12:12:50
;Basic settings: Layer height: 0.1 Walls: 0.8 Fill: 20
;Print time: 1 hour 53 minutes
;Filament used: 2.729m 8.0g
;Filament cost: None
;M190 S50 ;Uncomment to add your own bed temperature line
;M109 S195 ;Uncomment to add your own temperature line
G21 ;metric values
This file has been truncated, but you can view the full file.
M190 S50.000000
M109 S195.000000
;Sliced at: Mon 14-09-2015 12:17:46
;Basic settings: Layer height: 0.1 Walls: 0.8 Fill: 20
;Print time: 2 hours 8 minutes
;Filament used: 2.995m 8.0g
;Filament cost: None
;M190 S50 ;Uncomment to add your own bed temperature line
;M109 S195 ;Uncomment to add your own temperature line
G21 ;metric values