Skip to content

Instantly share code, notes, and snippets.

-af "lowpass=c=LFE:f=120,volume=1.6,pan=stereo|FL=0.5*FC+0.707*FL+0.707*BL+0.5*LFE|FR=0.5*FC+0.707*FR+0.707*BR+0.5*LFE"
@kickhad
kickhad / main.c
Created May 11, 2021 12:57
Adafruit Seesaw Soil Sensor Example : Thanks to MatD https://forums.adafruit.com/viewtopic.php?f=19&p=869210
/* Stemma I2C Soil sensor example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
@kickhad
kickhad / move-docker-ext4.bat
Created December 17, 2020 14:10
Move docker-desktop-data.vhdx to non-system partition
# Thank to efelippe https://github.com/docker/for-win/issues/7348#issuecomment-647160351
wsl --shutdown
wsl --export docker-desktop-data docker-desktop-data.tar
wsl --unregister docker-desktop-data
wsl --import docker-desktop-data X:\path\to X:\path\to\docker-desktop-data.tar --version 2
@kickhad
kickhad / arch_keyring_fix.sh
Created December 13, 2020 14:42
Fix keyring errors.
#!/usr/bin/env bash
# Thanks to G3NSVRV
# https://github.com/yuk7/ArchWSL/issues/91#issuecomment-506806989
sudo rm -R /etc/pacman.d/gnupg/
sudo rm -R /root/.gnupg/
sudo rm -R /var/cache/pacman/pkg/
sudo gpg --refresh-keys
sudo pacman-key --init
sudo pacman-key --populate archlinux
vcpkg_download_distfile(PKGCONFIG_ARCHIVE
URLS "https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-pkg-config-0.29.2-1-any.pkg.tar.xz"
SHA512 3b1b706a24d9aef7bbdf3ce4427aaa813ba6fbd292ed9dda181b4300e117c3d59a159ddcca8b013fd01ce76da2d95d590314ff9628c0d68a6966bac4842540f0
FILENAME mingw-w64-i686-pkg-config-${VERSION}-any.pkg.tar.xz
)
vcpkg_download_distfile(LIBWINPTHREAD_ARCHIVE
URLS "https://mirror.yandex.ru/mirrors/msys2/mingw/i686/mingw-w64-i686-libwinpthread-git-8.0.0.5906.c9a21571-1-any.pkg.tar.zst"
SHA512 2c3d9e6b2eee6a4c16fd69ddfadb6e2dc7f31156627d85845c523ac85e5c585d4cfa978659b1fe2ec823d44ef57bc2b92a6127618ff1a8d7505458b794f3f01c
FILENAME mingw-w64-i686-libwinpthread-${LIBWINPTHREAD_VERSION}-any.pkg.tar.zst
)
@kickhad
kickhad / Update Prusa Slicer
Created February 17, 2020 00:45
Update Prusa Slicer to Current version.
import os
from io import BytesIO
from distutils.dir_util import copy_tree
import tempfile
buffer = BytesIO()
# Configs
target_arch = 'win64'
repo = 'https://api.github.com/repos/prusa3d/PrusaSlicer/releases/latest'