Skip to content

Instantly share code, notes, and snippets.

@yegorius
yegorius / log.txt
Created July 28, 2019 13:32
settimed crash
─ settimed mojave-timed
Setting timed wallpaper: mojave-timed
Searching for wallpapers...
Filtering wallpapers by name...
Using: /usr/share/backgrounds/gnome/mojave-timed.xml
Using the GNOME Timed Wallpaper format
Initial static wallpaper event at 16:00
Window: 2m16s
Cooldown: 2m16s
Filename: /usr/share/backgrounds/gnome/mojave/mojave_dynamic-1500.jpg
@yegorius
yegorius / dmenu.sh
Created March 23, 2019 15:02
FZF dmenu
#!/usr/bin/env dash
TMPIN=$(mktemp -u)
mkfifo $TMPIN
STDOUT=$(readlink -f /proc/$$/fd/1)
termite --role=launcher --title=dmenu -e "dash -c \"fzf < $TMPIN > $STDOUT\"" 2>&- &
cat < /dev/stdin > $TMPIN
wait $!
rm $TMPIN
@yegorius
yegorius / PKGBUILD
Last active October 25, 2018 15:43
PKGBUILD for Station
pkgname=station
pkgver=1.26.0
pkgrel=1
pkgdesc='The one app to rule them all'
arch=('x86_64')
url='https://getstation.com/'
license=('MIT')
#depends=('gtk2' 'gconf' 'xdg-utils' 'libxtst' 'libxss' 'nss' 'alsa-lib' 'xdg-utils')
source=(
"https://github.com/getstation/desktop-app-releases/releases/download/${pkgver}/browserX-${pkgver}-x86_64.AppImage"

Keybase proof

I hereby claim:

  • I am yegorius on github.
  • I am yegorius (https://keybase.io/yegorius) on keybase.
  • I have a public key whose fingerprint is F01C 7BC7 4AF6 1661 BC71 5C77 86FA B62B C123 CCE9

To claim this, I am signing this object:

@yegorius
yegorius / OrangeElephant.java
Created October 4, 2013 17:21
Mix-in style multiple inheritance
public interface Elephant {
public int go();
public int poop();
}
public interface Orange {
public int pop();
public int ripe();
}
# Move node (with level column)
SET @entity_id := 2;
SET @new_parent_id :=0;
SELECT level FROM path WHERE entity_id = @new_parent_id LIMIT 1 INTO @new_par_lvl;
SELECT level FROM path WHERE entity_id = @entity_id LIMIT 1 INTO @entity_lvl;
CREATE TEMPORARY TABLE temp_ch SELECT entity_id, level - @entity_lvl AS level FROM path WHERE ancestor_id = @entity_id;
CREATE TEMPORARY TABLE temp_par SELECT ancestor_id FROM path WHERE entity_id = @entity_id;