Skip to content

Instantly share code, notes, and snippets.

@fang64
fang64 / install_cura.sh
Last active November 28, 2021 22:40
Ultimaker Cura Installer for userspace within the user's home directory.
#!/bin/bash
# This script "installs cura" into your .local userspace in your account and creates a shortcut.
# It can also update the cura install as well
# This is confirmed to work on Ubuntu 20.04+
# This should work on any distribution that obeys XDG for it's shortcuts.
# Variables
currentReleaseURL="$(curl -fs https://github.com/Ultimaker/Cura/releases/latest | grep -Eo "https://[a-zA-Z0-9./?=_%:-]*")"
currentReleaseFile="$(curl -s https://api.github.com/repos/Ultimaker/Cura/releases/latest | grep "browser_download_url.*AppImage\"" | cut -d : -f 2,3 | tr -d \")"
@fang64
fang64 / strace-komorebi
Created July 29, 2020 01:49
strace output from komorebi on multiple monitors
This file has been truncated, but you can view the full file.
execve("./komorebi", ["./komorebi", "2"], 0x7ffcd3234888 /* 59 vars */) = 0
brk(NULL) = 0x555dbc27c000
arch_prctl(0x3001 /* ARCH_??? */, 0x7ffe26cc92f0) = -1 EINVAL (Invalid argument)
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=115398, ...}) = 0
mmap(NULL, 115398, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f10d8413000
close(3) = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libgee-0.8.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\337\0\0\0\0\0\0"..., 832) = 832
### Keybase proof
I hereby claim:
* I am fang64 on github.
* I am fang64 (https://keybase.io/fang64) on keybase.
* I have a public key ASB8C2qWVJlDvjmN7ZpN67-8qQaiatt6dBA2L-kaCLYU4go
To claim this, I am signing this object:
@fang64
fang64 / haproxy.cfg
Created November 2, 2016 07:41
haproxy configuration
global
maxconn 4096
user haproxy
group haproxy
log 127.0.0.1 local1 debug
defaults
log global
mode http
option httplog
@fang64
fang64 / octoprint.log
Created November 2, 2016 07:00
Forwarding IPv6 connection receiving a cookie error
2016-11-02 00:17:16,691 - octoprint.plugins.softwareupdate - INFO - Loaded version cache from disk
2016-11-02 00:17:19,844 - octoprint.util.pip - INFO - Found pip at /home/pi/oprint/bin/pip, version is 8.1.1
2016-11-02 00:17:20,100 - octoprint.plugin.core - INFO - Initialized 12 plugin implementation(s)
2016-11-02 00:17:20,334 - octoprint.plugin.core - INFO - 12 plugin(s) registered with the system:
| Announcement Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.2.16-py2.7.egg/octoprint/plugins/announcements
| Automatic Shutdown (0.1.0) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_automaticshutdown
| Autoscroll (0.0.2) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_autoscroll
| Cost Plugin (0.1.2) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_cost
| CuraEngine (<= 15.04) (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.2.16-py2.7.egg/octoprint/plugins/cura
| Discovery (bundled) = /home/pi/oprint/lib/python2.7/si
@fang64
fang64 / fang64_stdout.txt
Created October 5, 2016 20:53
stdout log from steam
Running Steam on ubuntu 16.04 64-bit
STEAM_RUNTIME is enabled automatically
/bin/bash: /datastore/home/fang64/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libtinfo.so.5: no version information available (required by /bin/bash)
grep: symbol lookup error: grep: undefined symbol: pcre_jit_stack_alloc
awk: /datastore/home/fang64/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libtinfo.so.5: no version information available (required by /lib/x86_64-linux-gnu/libreadline.so.6)
grep: symbol lookup error: grep: undefined symbol: pcre_jit_stack_alloc
grep: symbol lookup error: grep: undefined symbol: pcre_jit_stack_alloc
Installing breakpad exception handler for appid(steam)/version(1474415843)
Installing breakpad exception handler for appid(steam)/version(1474415843)
Gtk-Message: Failed to load module "gail"