Skip to content

Instantly share code, notes, and snippets.

@wd5gnr
wd5gnr / atodsim.txt
Last active June 11, 2021 17:19
Falstad Simulator with Arduino A2D Example
#if 0 // simulation documentation
WARNING WARNING WARNING WARNING
Using any of the simulator's Save/Export functions will _NOT_
save this soure code! Before exiting the simulator, you must
save this text file somewhere.
Note that the schematic is encoded in text below. If you change the
schematic, you'll need to update the import text below to "save" it
with this file. However, the code doesn't care about that at all. Use
@wd5gnr
wd5gnr / baloo-nice
Created November 28, 2020 04:22
A script to move baloo to a cgroup where you can limit its disk usage!
#!/bin/bash
#baloo-nice by Al Williams
RLIMIT=1048576 # bps limit (read)
WLIMIT=1048576 # bps limit (write)
DEVICES="8 252 253 259"
SEARCH=baloo
if [ ! -d /sys/fs/cgroup/blkio/baloo ]
then
@wd5gnr
wd5gnr / cdfunc.sh
Last active May 3, 2024 11:21
cdfunc.sh
# This function defines a 'cd' replacement function capable of keeping,
# displaying and accessing history of visited directories, up to 10 entries.
# To use it, uncomment it, source this file and try 'cd --'.
# acd_func 1.0.5, 10-nov-2004
# Petar Marinov, http:/geocities.com/h2428, this is public domain
xcd_func ()
{
local x2 the_new_dir adir index
@wd5gnr
wd5gnr / hidetab.css
Created July 28, 2020 15:44
Vivaldi Configurations
/*Vertical tab bar auto-hide*/
#tabs-container{
width: 5px !important;
}
#tabs-container:hover{
width: 220px !important;
}
/*Tab bar is an overlay instead of resizing the page*/
#main .inner {
position: relative;
@wd5gnr
wd5gnr / pic_16f886-2.log
Last active August 29, 2015 14:00
Pastebin for MINIPro
BULK_OUT(0.1):03639100010000000028000000400000c00fe00f40000000000000000000000000000000000000000000000000000000 # 0.0000000000000000
BULK_OUT(0.1):fe63910001 # 0.0020170211791992
BULK_IN(0.1): 0000bfbfbfbfbfbfbf00bfbfbfbfbfbfbfbfbfbfbfbfbfbfbfbfbfbfbfbfbfbf # 0.1331801414489746
BULK_OUT(0.1):0563910001000000 # 0.0018589496612549
BULK_IN(0.1): 040262203e0202 # 0.0306379795074463
BULK_OUT(0.1):fe63910001 # 0.0083658695220947
BULK_IN(0.1): 0000bfbfbfbfbfbfbf00bfbfbfbfbfbfbfbfbfbfbfbfbfbfbfbfbfbfbfbfbfbf # 0.0021290779113770
BULK_OUT(0.1):04639100 # 0.0017690658569336
BULK_OUT(0.1):03639100010000000028000000400000c00fe00f40000000000000000000000000000000000000000000000000000000 # 0.1330490112304688
BULK_OUT(0.1):fe63910001 # 0.0020220279693604