Skip to content

Instantly share code, notes, and snippets.

View Nuc1eoN's full-sized avatar
🏠
Working from home

Nuc1eoN

🏠
Working from home
View GitHub Profile
@Nuc1eoN
Nuc1eoN / gist:5103581
Last active December 14, 2015 14:49
xinitrc script
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
@Nuc1eoN
Nuc1eoN / Error output
Last active December 14, 2015 19:18
awk: Command line:2: { if ($3 == 0 || ($3 >= 1000 ^Unexpected newline or end of string
awk: Command line:2: { if ($3 == 0 || ($3 >= 1000
awk: Command line:2: ^ Unexpected newline or end of string
@Nuc1eoN
Nuc1eoN / .bashrc
Created March 16, 2013 11:42
mistake in PS1
PS1='\[\e[1;32m\]\u \[\e[1;34m\]\w \[\e[1;32m\]$ \[\e[0;92m\]'
@Nuc1eoN
Nuc1eoN / gist:5184569
Created March 18, 2013 02:25
lm_sensors.service fails?
sudo systemctl status lm_sensors.service
lm_sensors.service - Initialize hardware monitoring sensors
Loaded: loaded (/usr/lib/systemd/system/lm_sensors.service; enabled)
Active: active (exited) since Mo 2013-03-18 00:52:01 CET; 2h 31min ago
Process: 284 ExecStart=/usr/bin/sensors -s (code=exited, status=0/SUCCESS)
Process: 276 ExecStart=/sbin/modprobe -qab $BUS_MODULES $HWMON_MODULES (code=exited, status=1/FAILURE)
Mär 18 00:52:15 ArchLap modprobe[276]: modprobe: ERROR: missing parameters. See -h.
@Nuc1eoN
Nuc1eoN / journalctl
Created April 14, 2013 00:28
SLiM login fails
-- Reboot --
Apr 14 00:57:12 ArchLap systemd-journal[99]: Allowing runtime journal files to grow to 96.6M.
Apr 14 00:57:12 ArchLap kernel: Initializing cgroup subsys cpuset
Apr 14 00:57:12 ArchLap kernel: Initializing cgroup subsys cpu
Apr 14 00:57:12 ArchLap kernel: Linux version 3.8.6-1-ARCH (tobias@T-POWA-LX) (gcc version 4.8.0 (GCC) ) #1 SMP PREEMPT Sat Apr 6 07:2
Apr 14 00:57:12 ArchLap kernel: Command line: root=/dev/sda2 ro
Apr 14 00:57:12 ArchLap kernel: e820: BIOS-provided physical RAM map:
Apr 14 00:57:12 ArchLap kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009cfff] usable
Apr 14 00:57:12 ArchLap kernel: BIOS-e820: [mem 0x000000000009d000-0x000000000009ffff] reserved
Apr 14 00:57:12 ArchLap kernel: BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved
@Nuc1eoN
Nuc1eoN / jounalctl_weston-launch
Created April 19, 2013 00:28
weston-launch crashes
Apr 19 02:10:27 ArchLap weston-launch[6467]: pam_loginuid(login:session): set_loginuid failed
Apr 19 02:10:27 ArchLap weston-launch[6467]: pam_unix(login:session): session closed for user nuc
Apr 19 02:10:27 ArchLap systemd-coredump[6470]: Process 6468 (weston) dumped core.
@Nuc1eoN
Nuc1eoN / journal_xserver-crash
Last active December 16, 2015 11:18
xserver crash; Red markup marked as '*' at the begging of line
Apr 20 16:35:01 Archer slim[234]: (EE)
Apr 20 16:35:01 Archer slim[234]: (EE) Backtrace:
Apr 20 16:35:01 Archer slim[234]: (EE) 0: /usr/bin/X (xorg_backtrace+0x3d) [0x57f48d]
Apr 20 16:35:01 Archer slim[234]: (EE) 1: /usr/bin/X (0x400000+0x1831e9) [0x5831e9]
Apr 20 16:35:01 Archer slim[234]: (EE) 2: /usr/lib/libpthread.so.0 (0x7f3b4fdeb000+0xf0e0) [0x7f3b4fdfa0e0]
Apr 20 16:35:01 Archer slim[234]: (EE) 3: /usr/lib/libc.so.6 (0x7f3b4ec56000+0x8509b) [0x7f3b4ecdb09b]
Apr 20 16:35:01 Archer slim[234]: (EE) 4: /usr/lib/xorg/modules/dri/r600_dri.so (0x7f3b48a2a000+0x525c02) [0x7f3b48f4fc02]
Apr 20 16:35:01 Archer slim[234]: (EE) 5: /usr/lib/xorg/modules/dri/r600_dri.so (0x7f3b48a2a000+0x525ed7) [0x7f3b48f4fed7]
Apr 20 16:35:01 Archer slim[234]: (EE) 6: /usr/lib/xorg/modules/dri/r600_dri.so (0x7f3b48a2a000+0x538635) [0x7f3b48f62635]
Apr 20 16:35:01 Archer slim[234]: (EE) 7: /usr/lib/xorg/modules/dri/r600_dri.so (0x7f3b48a2a000+0x5371a5) [0x7f3b48f611a5]
[ 13.422]
X.Org X Server 1.14.1
Release Date: 2013-04-17
[ 13.422] X Protocol Version 11, Revision 0
[ 13.422] Build Operating System: Linux 3.8.7-1-ARCH x86_64
[ 13.422] Current Operating System: Linux Archer 3.8.7-1-ARCH #1 SMP PREEMPT Sat Apr 13 09:01:47 CEST 2013 x86_64
[ 13.422] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=bc91e003-ab75-4a99-80f7-d510ea5ad1fd ro
[ 13.422] Build Date: 17 April 2013 02:37:06PM
[ 13.422]
[ 13.422] Current version of pixman: 0.28.2
ffmpeg -i video.flv -vcodec copy out.h264
@Nuc1eoN
Nuc1eoN / ffmpeg output
Created April 26, 2013 23:45
video-only demux
ffmpeg -i REAL\ HUMANS\ -\ ECHTE\ MENSCHEN\ \(8\).flv -vcodec copy out.h264ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers
built on Apr 1 2013 09:33:17 with gcc 4.7.2 (GCC)
configuration: --prefix=/usr --disable-debug --disable-static --enable-avresample --enable-dxva2 --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-postproc --enable-runtime-cpudetect --enable-shared --enable-vdpau --enable-version3 --enable-x11grab
libavutil 52. 18.100 / 52. 18.100
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.104 / 54. 63.104
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 42.103 / 3. 42.