Skip to content

Instantly share code, notes, and snippets.

View sonOfRa's full-sized avatar

Simon Levermann sonOfRa

View GitHub Profile
Thread 1 "dolphin-emu" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51 }
(gdb) bt
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1 0x00007ffff049eaf7 in __GI_abort () at abort.c:90
#2 0x00007ffff04e3af7 in __libc_message (action=action@entry=do_abort,
fmt=fmt@entry=0x7ffff05f8e05 "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#3 0x00007ffff04eb538 in malloc_printerr (
str=str@entry=0x7ffff05f6fd8 "free(): invalid pointer") at malloc.c:5368
@sonOfRa
sonOfRa / LockGuard.java
Last active September 5, 2018 09:51
Scope-Based locking in Java
import java.util.concurrent.locks.Lock;
/**
* Lock Guarding class similar to C++ lock_guard. Acquires
* the lock on construction and releases it on close().
*/
public class LockGuard implements AutoCloseable {
private final Lock l;
public LockGuard(Lock l) {
[DEFAULT]
main-repo = gentoo
[gentoo]
location = /usr/portage
sync-type = git
sync-uri = https://github.com/gentoo/gentoo.git
auto-sync = yes
sync-user = simon:portage
"#<User:0x00005640ebddc2f0 @dn=\"uid=simon,ou=People,dc=ldap,dc=zarm,dc=uni-bremen,dc=de\", @cn=\"Simon Levermann\", @gidNumber=\"1\", @homeDirectory=\"/home/simon\", @loginShell=\"/bin/bash\", @uid=\"simon\", @uidNumber=\"9661\", @objectclasses=[\"top\", \"posixAccount\", \"inetOrgPerson\", \"person\", \"organizationalPerson\", \"sambaSamAccount\", \"shadowAccount\", \"krbPrincipalAux\", \"krbTicketPolicyAux\"], @gecos=\"1110\", @sn=\"Levermann\", @givenName=\"Simon\", @mail=\"[email protected]\", @description=\"zarm19\", @modifiersname=\"uid=simon,ou=People,dc=ldap,dc=zarm,dc=uni-bremen,dc=de\", @modifytimestamp=\"20180227143723Z\", @bindPassword=\"asdfasdfasdf\">"
"#<User:0x00005640ebddc2f0 @dn=\"uid=simon,ou=People,dc=ldap,dc=zarm,dc=uni-bremen,dc=de\", @cn=\"Simon Levermann\", @gidNumber=\"1\", @homeDirectory=\"/home/simon\", @loginShell=\"/bin/bash\", @uid=\"simon\", @uidNumber=\"9661\", @objectclasses=[\"top\", \"posixAccount\", \"inetOrgPerson\", \"person\", \"organizationalPerson\", \"sambaSam
[includeIf "gitdir:~/repos/uni/"]
path = ~/repos/uni/.gitconfig
[includeIf "gitdir:~/repos/private/"]
path = ~/repos/private/.gitconfig
[includeIf "gitdir:~/repos/zarm/"]
path = ~/repos/zarm/.gitconfig
simon@odin-linux  ~  g++ -Wall test.cpp
test.cpp: In function ‘int main(int, const char**)’:
test.cpp:4:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if (0)
^~
test.cpp:6:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
std::cout << "blah" << std::endl;
^~~
sudo emerge -c x11-proto/presentproto
Calculating dependencies... done!
x11-proto/presentproto-1.1-r1 pulled in by:
media-libs/mesa-17.3.9 requires >=x11-proto/presentproto-1.0:0/0=[abi_x86_32(-),abi_x86_64(-)]
>>> No packages selected for removal by depclean
Packages installed: 1396
Packages in world: 169
Packages in system: 43
[ebuild R *] sys-kernel/spl-9999::gentoo USE="-custom-cflags -debug" 0 KiB
[ebuild R ~] app-emulation/virtualbox-modules-5.2.12::gentoo USE="-pax_kernel" 0 KiB
[ebuild R *] sys-fs/zfs-kmod-9999::gentoo USE="rootfs -custom-cflags -debug" 0 KiB
[ebuild R ~] x11-drivers/nvidia-drivers-396.24:0/396::gentoo USE="X acpi driver gtk3 kms multilib tools uvm -compat -pax_kernel -static-libs -wayland" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild R ~] net-vpn/wireguard-0.0.20180531::gentoo USE="module tools -debug -module-src" 0 KiB
[blocks B ] sys-kernel/spl ("sys-kernel/spl" is blocking sys-fs/zfs-kmod-9999)
Total: 5 packages (5 reinstalls), Size of downloads: 0 KiB
Conflict: 1 block (1 unsatisfied)
#!/bin/bash
set -euxo pipefail
echo YOLO | gpg --disable-mdc --encrypt --recipient [email protected] > no-mdc.asc
if ! gpg -d no-mdc.asc | cat > test.data; then echo failed; fi
@sonOfRa
sonOfRa / $ emerge -pUNDv --with-bdeps=y @world;
Created April 27, 2018 10:05
$ emerge -pUNDv --with-bdeps=y @world;
$ emerge -pUNDv --with-bdeps=y @world
These are the packages that would be merged, in order:
Calculating dependencies ..... done!
[ebuild R ] dev-ruby/rdoc-4.3.0::gentoo USE="-doc {-test}" RUBY_TARGETS="ruby23 (-ruby22%)" 0 KiB
[ebuild R ] virtual/ruby-ffi-4::gentoo RUBY_TARGETS="ruby23 (-ruby24) (-ruby22%)" 0 KiB
[ebuild R ] dev-ruby/rb-inotify-0.9.10::gentoo USE="-doc {-test}" RUBY_TARGETS="ruby23 (-ruby24) (-ruby22%)" 0 KiB
[ebuild R ] dev-ruby/listen-1.3.1-r4:1::gentoo USE="{-test}" RUBY_TARGETS="ruby23 (-ruby24) (-ruby22%)" 0 KiB
[ebuild R ] dev-ruby/sass-3.4.24:3.4::gentoo USE="-doc {-test}" RUBY_TARGETS="ruby23 (-ruby24) (-ruby22%)" 0 KiB