Skip to content

Instantly share code, notes, and snippets.

View levex's full-sized avatar
🌄
Chasing sunsets while working remotely

Levente Kurusa levex

🌄
Chasing sunsets while working remotely
View GitHub Profile
@levex
levex / ps-fax.txt
Last active August 7, 2018 08:56
debian 9.5 systemd post-bringup status
● rinit-debian95-bringup-vm1
State: running
Jobs: 0 queued
Failed: 0 units
Since: Sun 2018-07-29 17:56:34 CEST; 2min 49s ago
CGroup: /
├─user.slice
│ ├─user-115.slice
│ │ ├─user@115.service
│ │ │ ├─dbus.service
#!/bin/sh
file=$1
count=$2
#echo File is ${file}
#echo count is ${count}
/Library/TeX/texbin/detex ${file} | wc -w | xargs echo \"`date`\", >> ${count}
(gdb) lthread-bt 0x310bc8c0
#0 _lthread_yield_cb (lt=0x310bc8c0, f=0x7ffff3354883 <submitsc>, arg=0x9) at sched/sched.c:322
#1 0x00007ffff3354919 in threadswitch (sc=0x4020a250) at host/hostsyscallclient.c:73
#2 0x00007ffff33568e0 in host_syscall_SYS_clock_gettime (clk_id=0, tp=0x30eb99a0) at host/hostsyscalls.c:707
#3 0x00007ffff332bac3 in __filter_syscall2 (n=113, a1=0, a2=820746656) at ./src/internal/syscall.h:147
#4 0x00007ffff332be27 in __clock_gettime (clk=1808146450, ts=0x30eb99a0) at src/time/clock_gettime.c:55
#5 0x00007ffff36d85a8 in abs_prev ()
#6 0x0000000030eb99b0 in ?? ()
#7 0x00007ffff3356f2a in panic () at lkl/posix-host.c:57
#8 0x00007ffff2f9fa6c in new_host_task (task=<optimised out>) at arch/lkl/kernel/syscalls.c:62
@levex
levex / extract-vvar.c
Created May 6, 2018 11:23
Extract the vvar region from the running process
/*
*
* A tool to extract the vvar region from the current process (this executable).
* Author: Levente Kurusa <levex@linux.com>
* License: MIT License
*
* Compile:
* $ gcc extract-vvar.c -o extract-vvar
*
* Usage:
@levex
levex / extract-vdso.c
Last active May 5, 2018 23:32
Extract a sample vDSO shared object
/*
*
* A tool to extract the vDSO shared object from the current process (this executable).
* Author: Levente Kurusa <levex@linux.com>
* License: MIT License
*
* Compile:
* $ gcc extract-vdso.c -o extract-vdsoA
*
* Usage:
0xC6B36FaB73626D02a5e289e1086896B54e472094
@levex
levex / wl18xx_main.diff
Created July 5, 2017 14:47
Embedded shenanigans: fallback to default settings if no firmware is found in wl18xx
diff --git a/drivers/net/wireless/ti/wl18xx/main.c b/drivers/net/wireless/ti/wl18xx/main.c
index 717c4f5..16f2736 100644
--- a/drivers/net/wireless/ti/wl18xx/main.c
+++ b/drivers/net/wireless/ti/wl18xx/main.c
@@ -1369,7 +1369,7 @@ static int wl18xx_conf_init(struct wl1271 *wl, struct device *dev)
wl1271_error("configuration binary file size is wrong, expected %zu got %zu",
WL18XX_CONF_SIZE, fw->size);
ret = -EINVAL;
- goto out;
+ goto out_fallback;
@levex
levex / fossjam-bug-aggregators
Created October 9, 2016 23:52
FOSSJam Bug List
https://community.kde.org/KDE/Junior_Jobs
Contacts inside kdevelop & marble
https://kernel.org/
Lev can get some quick tasks from drivers/staging
There is also a bugzilla but it's generally not maintained.
https://fedoraproject.org/
There are quite a few translation tasks for internationals.
$ sudo reboot
Failed to start reboot.target: Access denied
Broadcast message from lkurusa@<blurb>.bos.redhat.com on pts/0 (Wed 2015-07-08 03:03:20 EDT):
The system is going down for reboot NOW!
$ <happily continue for eternity>
@levex
levex / keybase.md
Created April 17, 2015 16:27
keybase.md

Keybase proof

I hereby claim:

  • I am levex on github.
  • I am levex (https://keybase.io/levex) on keybase.
  • I have a public key whose fingerprint is C5F8 6386 CD17 FAE5 F457 C45F B06A 2B69 4EF5 D641

To claim this, I am signing this object: