First we start by creating a wineprefix and installing our prerequisites from terminal:
WINEARCH=win32 WINEPREFIX=/home/$USER/GarminExpress winetricks dotnet452 vcrun2010 corefonts
WINEARCH=win32 WINEPREFIX=/home/$USER/GarminExpress winetricks win7
First we start by creating a wineprefix and installing our prerequisites from terminal:
WINEARCH=win32 WINEPREFIX=/home/$USER/GarminExpress winetricks dotnet452 vcrun2010 corefonts
WINEARCH=win32 WINEPREFIX=/home/$USER/GarminExpress winetricks win7
Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative
float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);
#!/usr/bin/env bash | |
set -euo pipefail | |
jpegoptim *.jpg | |
img2pdf --pagesize A4 --auto-orient --output output.pdf *.jpg | |
ocrmypdf --lang deu+eng output.pdf output.pdf | |
shrinkpdf.sh -r 300 -o smaller.pdf output.pdf |
DO $$ | |
DECLARE | |
r RECORD; | |
s RECORD; | |
BEGIN | |
-- Loop through all non-system schemas | |
FOR s IN (SELECT schema_name FROM information_schema.schemata | |
WHERE schema_name NOT IN ('pg_catalog', 'information_schema', 'public') | |
AND schema_name NOT LIKE 'pg_%') LOOP |
/// The base type acts as a stop token. | |
struct Base; | |
/// The wrapped type, defined in terms of the wrapped base `B` and the new value `T`. | |
/// You can stuff it with references and live without lifetime definitions on the type. | |
struct Wrapped<B, T>(B, T); | |
impl Base { | |
pub fn new(value: &str) -> Wrapped<Self, &str> { | |
Wrapped(Base, value) |
# Merge an orphan branch and overwrite our changes ("take theirs"). | |
git merge --allow-unrelated-histories -Xtheirs $ORPHAN_BRANCH | |
# List all files existing in branch "timeline" that do not exist in branch "$ORPHAN_BRANCH" | |
git diff-tree -r --diff-filter=D --name-only timeline $ORPHAN_BRANCH | |
# ... and delete them | |
git diff-tree -r --diff-filter=D --name-only timeline $ORPHAN_BRANCH | xargs -d '\n' git rm |
#!/usr/bin/env bash | |
# See https://gist.github.com/sunsided/af8a90b0700917b5f16cf6f4ebb49dcb | |
set -euo pipefail | |
# check if stdout is a terminal... | |
#if test -t 1; then | |
# see if it supports colors... | |
ncolors=$(tput colors) | |
if test -n "$ncolors" && test $ncolors -ge 8; then | |
bold="$(tput -T ansi bold)" |
# Added for AV Access KVM switch | |
# deactivate USB power management | |
# QinHeng Electronics WCH UART TO KB-MS_V1.7displ | |
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="1a86", ATTR{idProduct}=="e229" | |
# QinHeng Electronics CH340 serial converter | |
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="1a86", ATTR{idProduct}=="7523" | |
# C-Media Electronics, Inc. Audio Adapter (Unitek Y-247A) | |
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0d8c", ATTR{idProduct}=="0014" |
#!/usr/bin/env bash | |
set -euo pipefail | |
CACHE=$(realpath ~/.cache/trivy) | |
if [ $# -eq 0 ]; then | |
echo "Please specify a local repository to scan." | |
exit 1 | |
else | |
REPO=$(realpath $1) |
cargo crev trust --level low https://github.com/sunsided/crev-proofs |