- debian with lxde? with xfce?
- install tlp https://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html
- check out thermald?
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
(function(weight) { | |
// how much water weighs per gallon | |
const WATER_WEIGHT_IN_POUNDS_PER_GALLON = 8.34; | |
// how much of the body is made of water | |
const WATER_PERCENTAGE_IN_BODY = 0.6; | |
function getGallonsOfWater(weight) { | |
return weight * WATER_PERCENTAGE_IN_BODY / WATER_WEIGHT_IN_POUNDS_PER_GALLON; | |
} |
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
for (const link of document.querySelectorAll('link[href^="/css/"]')) { link.setAttribute("href", link.getAttribute("href").replace(/\?.*$/, "") + `?cc=${Date.now()}`)} |
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
#!/bin/bash | |
SOURCE="$1" | |
TS_FILE=raw_timestamps | |
ffmpeg -i "$SOURCE" -filter:v "select='gt(scene,0.4)',showinfo" -f null - 2> $TS_FILE | |
TIMES=$(grep showinfo $TS_FILE | grep 'pts_time:[0-9.]*' -o | grep '[0-9]*\.[0-9]*' -o) | |
for ts in $TIMES | |
do | |
ffmpeg -ss "$ts" -i "$SOURCE" -vframes 1 -q:v 5 "t_${ts}.jpg" |
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 python | |
# -*- coding: utf-8 -*- | |
# ~~~~~ | |
# Telegram Bot API configs for stock_notifications.py | |
# ~~~~~ | |
token='' | |
chat='' |
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
setInterval(() => { | |
const here = Math.random() * 100; | |
if (85 < here && here < 90) { | |
return window.location.reload(); | |
} | |
const rando = () => ~~(Math.random() * 255); | |
const [r, g, b] = Array(3).fill('').map(rando); | |
const yiq = ((r * 299) + (g * 587) + (b * 114)) / 1000; | |
const color = [r, g, b].reduce((s, n) => s + n.toString(16), '#'); | |
const textColor = 128 < yiq ? 'black' : 'white'; |
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
copy(atob($0.style.backgroundImage.split(',')[1].replace(/"\)/, ''))) |
copied from: https://gist.github.com/docPhil99/d8667de1e8c5e96e2203f2bc0f28f89d
To capture using the iSight camera on a Mac, or infact any other webcam connected to the Mac, we can use FFmpeg. First get a list of the devices installed.
ffmpeg -f avfoundation -list_devices true -i ""
This will list the aviable video and audio devices.
The below will capture at 30fps and the set video size to a file.
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
#!/bin/bash | |
# usage: ./mkvjoin.sh "2020-04-03" | |
# then all recordings in the current dir with that file prefix (PREFIX*.mkv) | |
# will be ffmpeg'd into a single mkv stream without conversion so it's fast | |
# | |
# usage: ./mkvjoin.sh | |
# no arg will cause it to use today's date | |
# tested on macOS 10.15.3 (Catalina) heh | |
if [ -z "$1 " ] |
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
{ | |
"basics": { | |
"name": "Dillon Christensen", | |
"label": "Fullstack Javascript Developer", | |
"email": "j.dillon.christensen@gmail.com", | |
"phone": "(918) 896-7033", | |
"summary": "Product developer with experience across browsers, operating systems, devices, and architectural layers. Specializing in javascript development with React and RESTful APIs. Recognized for being a clear and effective communicator and mediating software disciplines and stakeholder concerns. Motivated by a love of learning which leads to new opportunities and challenges to learn from different projects and teams.", | |
"location": { | |
"postalCode": "OK 74008", | |
"city": "Bixby", |
NewerOlder