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
/* | |
Userscript to hide youtube's recommended channels from mainpage | |
root@psychip.net | |
march 2017 | |
updated 25 May 2017 | |
*/ | |
setTimeout(function() { | |
$(document).ready(function() { | |
$('span') |
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/sh | |
########################### | |
cd /c/dev/psy-blog.git | |
# pushing committed updates first | |
git push | |
# standard procedure | |
git add . | |
echo type message.. | |
read commitMessage | |
git commit -am "$commitMessage" |
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
## alsa configuration file for simultaneous playback | |
## from multiple audio sources | |
## confirmed on orange pi zero, raspberry pi B+ | |
## save to /etc/asound.conf | |
## http://psychip.net | |
pcm.!default { | |
type plug | |
slave.pcm "dmixer" |
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: | |
## >import.sh filename.csv table database | |
folder=__csv | |
mkdir $folder | |
split -l 10000 $1 $folder/part | |
cd $folder | |
psql -c "copy $2 FROM 'partaa' DELIMITER ',' CSV HEADER;" $3; |
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
/* Wireless Bathroom Scale | |
* Uses digispark pro (https://digistump.com) | |
* | |
* depends on hx711 and rcswitch libraries | |
* https://github.com/bogde/HX711 | |
* https://github.com/sui77/rc-switch | |
* | |
*/ | |
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
pm uninstall --user 0 miui.systemui.plugin | |
pm uninstall --user 0 com.miui.extraphoto | |
pm uninstall --user 0 com.miui.player | |
pm uninstall --user 0 com.miui.cleaner | |
pm uninstall --user 0 com.miui.notes | |
pm uninstall --user 0 com.miui.miwallpaper | |
pm uninstall --user 0 com.miui.analytics | |
pm uninstall --user 0 com.miui.yellowpage | |
pm uninstall --user 0 com.facebook.services | |
pm uninstall --user 0 com.facebook.katana |
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
/* Smart soap dispenser | |
Uses | |
+ digispark pro (https://digistump.com) | |
+ Sharp 0a41skf85 distance sensor | |
+ IRF540 mosfet module | |
+ dual water pump | |
Coded by PsyChip | |
root@psychip.net | |
Sep 2022 |
OlderNewer