This setup switches to "powersave" if the battery is lower than 75% and to "performance" if it is above and charging.
Copy the files to
- /etc/systemd/system/watch-power-cpufreq.service
- /usr/local/bin/watch-power-cpufreq.sh
and then run
<html> | |
<head> | |
<style> | |
h1 { | |
position: absolute; | |
display: block; | |
top: 50%; | |
left: 50%; | |
transform: rotate(30deg); |
# Some more dependencies | |
git clone git@github.com:bootprint/customize.git | |
git clone git@github.com:bootprint/customize-engine-handlebars.git | |
git clone git@github.com:bootprint/customize-engine-less.git | |
git clone git@github.com:bootprint/customize-write-files.git | |
git clone git@github.com:bootprint/bootprint.git | |
# Clone the repos | |
git clone git@github.com:bootprint/bootprint-openapi.git | |
git clone git@github.com:bootprint/bootprint-json-schema.git |
This setup switches to "powersave" if the battery is lower than 75% and to "performance" if it is above and charging.
Copy the files to
and then run
var _ = require('lodash') | |
function regex (strings, ...args) { | |
return new RegExp(String.raw(strings, ...args.map(_.escapeRegExp))) | |
} | |
var needle = '1*' | |
console.log('21111112'.match(regex`2${needle}2`)) // falsy | |
console.log('2221*1*222'.match(regex`2(${needle})+2`)) // truthy |
import turtle | |
import time | |
my_window = turtle.Screen() | |
# my_window.screensize(1000,1000) | |
my_window.bgcolor("white") # creates a graphics window | |
# my_window.setworldcoordinates(0,0, 1000,1000) | |
my_window.delay(0) | |
my_window.tracer(100,200) | |
my_pen = turtle.Turtle() |
FROM traefik:camembert | |
ADD traefik.toml . | |
EXPOSE 80 | |
EXPOSE 8080 | |
EXPOSE 443 |
# Extract frames | |
ffmpeg -i filename.mov -ss 30 -to 65 -vsync 0 -q:v 2 out%03d.jpg | |
for i in out*.jpg ; do | |
echo $i $( convert $i -colorspace gray -statistic StandardDeviation 5X5 - | identify -verbose - | grep deviation ) ; | |
done | tee deviation.txt | |
mkdir good | |
cat deviation.txt | sort -n -t ":" -k 2 | tail -20 | cut -b -10 | xargs cp -t good |