Skip to content

Instantly share code, notes, and snippets.

@eclairevoyant
eclairevoyant / committer-progress.sh
Created June 22, 2024 15:18 — forked from lorenzleutgeb/committer-progress.sh
Nixpkgs Committer Progress
#! /usr/bin/env nix-shell
#! nix-shell -i bash -p bash gh
set -eu
# See <https://gist.github.com/lorenzleutgeb/239214f1d60b1cf8c79e7b0dc0483deb>.
# Will exit non-zero if not logged in.
gh auth status
if [ $# == 1 ]
@eclairevoyant
eclairevoyant / log.txt
Created December 18, 2023 17:14
overskride build error
Compiling overskride v0.5.6 (/build/overskride/src/overskride)
error: linking with `cc` failed: exit status: 1
|
= note: LC_ALL="C" PATH="/usr/lib64/rustlib/x86_64-unknown-linux-gnu/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" VSLANG="1033" "cc" "-m64" "/tmp/rustcwU7zKM/symbols.o" "/build/overskride/src/build/src/debug/deps/overskride-18395ed166f1b9e8.10i8nregvf4k8bx7.rcgu.o" "/build/overskride/src/build/src/debug/deps/overskride-18395ed166f1b9e8.1107dgm7a02ihtpe.rcgu.o" "/build/overskride/src/build/src/debug/deps/overskride-18395ed166f1b9e8.11h3n487pewxr1io.rcgu.o" "/build/overskride/src/build/src/debug/deps/overskride-18395ed166f1b9e8.11umma2k9sc7ol1n.rcgu.o" "/build/overskride/src/build/src/debug/deps/overskride-18395ed166f1b9e8.121nqvbdzrhad3br.rcgu.o" "/build/overskride/src/build/src/debug/deps/overskride-18395ed166f1b9e8.12m6046cnwqwwuqa.rcgu.o" "/build/overskride/src/build/src/debug/deps/overskride-18395ed166f1b9e8.13lk9p0dk9xcyj85.rcgu.
@eclairevoyant
eclairevoyant / trigger-screen-shot.py
Created April 22, 2023 11:24 — forked from danshick/trigger-screen-shot.py
Python script to trigger a screenshot via xdg-desktop-portal
#!/usr/bin/python3
# this used to live at https://gitlab.gnome.org/snippets/814
# but has since been deleted, the original author is unknown
# reuploading here for safe keeping
import dbus
import secrets
import re
@eclairevoyant
eclairevoyant / all-vietnamese-syllables.txt
Created May 25, 2018 01:31 — forked from hieuthi/all-vietnamese-syllables.txt
All possibly existent Vietnamese syllables, created by combine all onsets with all rimes. More information can be found at: http://hieuthi.com/blog/2017/03/21/all-vietnamese-syllables.html
a
ai
am
an
ang
anh
ao
au
ay
ba
post_install() {
cat <<EOF
==> Change your .emacs to make use of lyqi:
;; load lyqi
(require 'lyqi)
;; automatically use lyqi mode when editing .ly and .ily files
(add-to-list 'auto-mode-alist '("\\\\.ly$" . lyqi-mode))
(add-to-list 'auto-mode-alist '("\\\\.ily$" . lyqi-mode))
EOF
}
vals = [0, 1, 3, 0]
def xor(n):
return((n - (n & 3)) * (1 ^ (n & 1)) + vals[n & 3])
def getXor(l, r):
return(xor(l - 1) ^ xor(r))
if __name__ == "__main__":
print(getXor(3, 10)) # 8
@eclairevoyant
eclairevoyant / panel log
Created May 4, 2013 09:32
log with `PANEL_DEBUG=1 xfce4-panel`
xfce4-panel(main): version 4.10.0 on gtk+ 2.24.17 (2.24.15), glib 2.36.1 (2.34.3)
xfce4-panel(module-factory): reading /usr/share/xfce4/panel/plugins
xfce4-panel(module-factory): reading /usr/share/xfce4/panel-plugins
xfce4-panel(application): found window manager after 1 tries
xfce4-panel(base-window): 0x186e180: rgba colormap=0x1878230, compositing=true
xfce4-panel(base-window): 0x186e180: rgba colormap=0x1878230, compositing=true
xfce4-panel(display-layout): 0x186e180: display=:0.0{comp=true}, screen-0[0x1808400]=[1366,768] (LVDS1=[0,0;1366,768])
xfce4-panel(positioning): 0x186e180: screen=0x1808400, monitors=1, output-name=(null), span-monitors=false, base=0,0
xfce4-panel(positioning): 0x186e180: working-area: screen=0x1808400, x=0, y=0, w=1366, h=768
xfce4-panel(struts): 0x186e180: top=31, start_x=0, end_x=1365
@eclairevoyant
eclairevoyant / canorus build errors
Last active December 16, 2015 11:08
errors with make VERBOSE=1
Checked out revision 1358.
A canorus-svn/TODO
A canorus-svn/doc
A canorus-svn/doc/developersguide
A canorus-svn/doc/developersguide/canorus.Doxyfile
A canorus-svn/doc/developersguide/libraries
A canorus-svn/doc/developersguide/libraries/librarydiagram.png
A canorus-svn/doc/developersguide/libraries/librarydiagram.odg
A canorus-svn/doc/developersguide/libraries/ca_libs.txt
A canorus-svn/doc/developersguide/Makefile
In file included from /home/limao/makepkg/build/src/canorus/trunk/src/canorus.h:12:0,
from /home/limao/makepkg/build/src/canorus/trunk/src/core/settings.cpp:10:
/home/limao/makepkg/build/src/canorus/trunk/src/ui/settingsdialog.h:15:31: fatal error: ui_settingsdialog.h: No such file or directory
compilation terminated.
In file included from /home/limao/makepkg/build/src/canorus/trunk/src/canorus.h:12:0,
from /home/limao/makepkg/build/src/canorus/trunk/src/main.cpp:14:
/home/limao/makepkg/build/src/canorus/trunk/src/ui/settingsdialog.h:15:31: fatal error: ui_settingsdialog.h: No such file or directory
compilation terminated.
In file included from /home/limao/makepkg/build/src/canorus/trunk/src/canorus.h:12:0,
from /home/limao/makepkg/build/src/canorus/trunk/src/core/undocommand.cpp:10:
-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done