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
From a post by John Fairbairn on GoDiscussions.com: | |
For most practical purposes the necessary information can be reduced to an algorithm which I think goes back to a paper by Karl-Heinz Lenz in the Deutsche Go-Zeiting in the early 80s. My version of it (at your own peril) is: | |
1. Choose Attacker (= player with advantage; side with bigger eye or, if equal side with more exclusive liberties) and defender; small eyes count as equal irrespective of size) | |
2. Get number of Shared liberties S | |
3. From S, get Fail number F |
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
on adding folder items to this_folder after receiving added_items | |
tell application "Safari" | |
repeat with w in windows | |
if name of w is "Downloads" then | |
set isdocument to true | |
try | |
set d to document of w | |
set the result to d | |
on error | |
set isdocument to 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/bash | |
# great src url: http://igo-kisen.hp.infoseek.co.jp/topics.html | |
SGF_SRC_LISTUsers/adrian/Go/Games/TWIG/urls.txt | |
SCRATCH_DIRtmp/twig | |
DESTINATION_DIRUsers/adrian/Go/Games/TWIG | |
mkdir $SCRATCH_DIR | |
cd $SCRATCH_DIR |
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 | |
# This script is for Raspberry pi os (current as of 16 Dec 2020) | |
# Location for this script: ~/.lightdm-cleanup.sh | |
# | |
# Make sure the following user processes are terminated on logout. | |
# If not terminated cleanly then their services won't operate | |
# properly when user logs in again (without rebooting). | |
# | |
# shairport-sync: with pulseaudio backend can't run shairport-sync as service | |
# touchegg: gestures won't work after logout/login unless client is killed on logout |
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
[Desktop Entry] | |
Type=Application | |
Name=Shairport-sync autostart | |
Comment=must be run after login because of pulseaudio | |
NoDisplay=true | |
Exec=/usr/local/bin/shairport-sync |
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 | |
clear | |
for f in {1..7} | |
do | |
vcgencmd measure_temp | |
sysbench --test=cpu --cpu-max-prime=25000 --num-threads=4 run >/dev/null 2>&1 | |
done | |
vcgencmd measure_temp |
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 | |
clear | |
glxgears & | |
echo running a full day, ctrl+c to quit | |
stress-ng --cpu 0 --cpu-method fft |
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
@setxkbmap -option ctrl:nocaps |
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
Setting up the Compose key: In cmd line version of raspi-config, go to the configure_keyboard section. | |
See https://help.ubuntu.com/community/GtkComposeTable for how to use it. | |
Favs: | |
.= ⇒ • | |
.. ⇒ … | |
y= ⇒ ¥ | |
--- ⇒ — (em) | |
--. ⇒ – (en) | |
-> ⇒ → |
OlderNewer