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
#!/usr/bin/env zsh | |
wait_find_window_id() { | |
while true; do | |
window_id=$(wmctrl -l | grep "$1" | awk '{print $1}') | |
if [ -n "$window_id" ]; then | |
echo "$window_id" | |
return | |
fi |
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 | |
cd /home/pi/scripts/ | |
/bin/lxterminal -e 'tmux' & | |
sleep 8 | |
source ./windowfix.sh | |
window_name="tmux" | |
#resizing like this fails on cool retro term but we use geometry above |
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 | |
ZIMDIR=/hugedisk/kiwix/zims | |
LIBRARY_XML=/hugedisk/kiwix/library.xml | |
pkill kiwix-serve | |
touch $LIBRARY_XML | |
echo "Will scan zimdir: $ZIMDIR" | |
for f in "$ZIMDIR"/*.zim; do | |
if [[ -f "$f" ]]; then |
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
10000000 - 10010000 | |
c8c6a000 - c951b000 | |
c951c000 - cb572000 | |
cb57a000 - cb57b000 | |
cb57e000 - cb581000 | |
cb582000 - cb586000 | |
cb592000 - 100000000 | |
ffffffc002000000 - ffffffc0068d1000 | |
fffffffe00080000 - 0 | |
kernel args ranges: |
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
"xdotool keydown Control_L keydown Shift_L sleep 0.1 key c keyup Shift_L keyup Control_L" | |
release+m:0x40 + c | |
"xdotool keydown Control_L keydown Shift_L sleep 0.1 key x keyup Shift_L keyup Control_L" | |
release+m:0x40 + x | |
"xdotool keydown Control_L keydown Shift_L sleep 0.1 key v keyup Shift_L keyup Control_L" | |
release+m:0x40 + v |
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 | |
vv() { | |
if [ $# -eq 0 ]; then | |
echo "Usage: vv <file>" | |
echo "Will edit with current user or sudo if needed b ut using nvim config of this user" | |
return 1 | |
fi | |
vpath=$(which $EDITOR) |
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
#!/usr/bin/env zsh | |
# Use fzf and open file in text editor | |
vd() { | |
# folder, default to current directory | |
# depth, default to 1 | |
local dir=${1:-.} | |
local depth=${2:-1} | |
local selected_file |
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
globals: | |
- id: ready_to_open | |
type: bool | |
initial_value: 'false' | |
esphome: | |
name: entregas-lock | |
friendly_name: entregas-lock | |
on_boot: |
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
Account address,Show boosts,Notify on new posts,Languages | |
Seg@oldbytes.space,true,false, | |
ylegall@genart.social,true,false, | |
AutisticAdam@autistics.life,true,false, | |
johnmacintosh@swiss.social,true,false, | |
jcfischer@swiss.social,true,false, | |
chludens@hcommons.social,true,false, | |
shanselman@hachyderm.io,true,false, | |
spook@m68k.church,true,false, | |
Mecid@mastodon.social,true,false, |
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 | |
# RUN chromium in full screen with minimal SD-Card writes, runs OK on a Raspberry 3 with a webpage playing video | |
# ADD a ram disk in fstab with this line | |
# tmpfs /tmpcache tmpfs nodiratime,noatime,nosuid,nodev,size=256M 0 0 | |
# and that this script is called on startup for a minimalistic (no desktop setup) | |
# /etc/xdg/openbox/autostart |
NewerOlder