Skip to content

Instantly share code, notes, and snippets.

View radiosilence's full-sized avatar
🔥

James Cleveland radiosilence

🔥
View GitHub Profile
results = ResultSet([put_backup.delay(f.name, path, location.id, backup.id)
for location
in plan_task.locations.all()])
results.join()
Mar 22 14:48:48 vala systemd-logind[362]: Lid closed.
Mar 22 14:48:48 vala systemd-logind[362]: Suspending...
Mar 22 14:48:48 vala systemd[1]: Starting Sleep.
Mar 22 14:48:48 vala systemd[1]: Reached target Sleep.
Mar 22 14:48:48 vala systemd[1]: Starting Suspend...
Mar 22 14:48:48 vala systemd-sleep[1797]: Suspending system...
Mar 22 14:48:48 vala kernel: PM: Syncing filesystems ... done.
Mar 22 14:48:48 vala kernel: PM: Preparing system for mem sleep
Mar 22 14:48:48 vala kernel: bbswitch: enabling discrete graphics
Mar 22 14:48:57 vala kernel: pci 0000:01:00.0: power state changed by ACPI to D0
ldconfig: File /usr/lib/libspeechd.so.2.4.0 is empty, not checked.
ldconfig: File /usr/lib/libphononexperimental.so.4 is empty, not checked.
ldconfig: File /usr/lib/libserf-1.so.0 is empty, not checked.
ldconfig: File /usr/lib/libphononexperimental.so.4.6.0 is empty, not checked.
ldconfig: File /usr/lib/libpr-downloader_shared.so is empty, not checked.
ldconfig: File /usr/lib/libserf-1.so.0.0.0 is empty, not checked.
ldconfig: File /usr/lib/libphonon.so.4.6.0 is empty, not checked.
ldconfig: File /usr/lib/libserf-1.so is empty, not checked.
ldconfig: File /usr/lib/libphonon.so.4 is empty, not checked.
ldconfig: File /usr/lib/libspeechd.so.2 is empty, not checked.
@radiosilence
radiosilence / gist:5094567
Created March 5, 2013 21:43
Patch to make i3bar have no borders
232c232
< values[3] = font.height + 6;
---
> values[3] = font.height + 4;
1263,1264c1263,1264
< walk->rect.w, font.height + 6,
< 1,
---
> walk->rect.w, font.height + 4,
> 0,
@radiosilence
radiosilence / gist:5024612
Last active December 14, 2015 03:59
xresources
!URxvt.font: -*-unifont-medium-*-*-*-16-*-*-*-*-*-*-*
!URxvt.boldFont: -*-unifont-medium-*-*-*-16-*-*-*-*-*-*-*
! Terminus
URxvt.font: -*-terminus-medium-*-*-*-16-*-*-*-*-*-iso10646-*
URxvt.boldFont: -*-terminus-medium-*-*-*-16-*-*-*-*-*-iso10646-*
! Tamsyn
!URxvt.font: -misc-tamsyn-medium-r-normal--14-*-*-100-*-*-iso8859-1
!URxvt.boldFont: -misc-tamsyn-bold-r-normal--14-*-*-100-*-*-iso8859-1
! Tamzen
!URxvt.font: -misc-tamzen-medium-r-normal--14-*-*-100-*-*-iso8859-1
Feb 05 19:20:00 carter xorg-launch-helper[450]: Starting Xorg server with: "/usr/bin/Xorg :0 -nolisten tcp -noreset vt1"
Feb 05 19:20:00 carter xorg-launch-helper[450]: X.Org X Server 1.13.2
Feb 05 19:20:00 carter xorg-launch-helper[450]: Release Date: 2013-01-24
Feb 05 19:20:00 carter xorg-launch-helper[450]: X Protocol Version 11, Revision 0
Feb 05 19:20:00 carter xorg-launch-helper[450]: Build Operating System: Linux 3.7.4-1-ARCH x86_64
Feb 05 19:20:00 carter xorg-launch-helper[450]: Current Operating System: Linux carter 3.7.6-1-ck #1 SMP PREEMPT Mon Feb 4 07:52:20 EST 2013 x86_64
Feb 05 19:20:00 carter xorg-launch-helper[450]: Kernel command line: root=/dev/sda5 ro quiet init=/bin/systemd console=tty2 initrd=/initramfs-linux-ck.img BOOT_IMAGE=/vmlinuz-linux-ck
Feb 05 19:20:00 carter xorg-launch-helper[450]: Build Date: 25 January 2013 09:33:50AM
Feb 05 19:20:00 carter xorg-launch-helper[450]: Current version of pixman: 0.28.2
Feb 05 19:20:00 carter xorg-launch-helper[450]: Before reporting problems, che
#!/bin/zsh
export DISPLAY=:0
dbus-launch systemd --user
@radiosilence
radiosilence / ssl.conf
Last active December 11, 2015 22:49
Secure and fast SSL configurations. Beats BEAST and also CRIME, rated A on SSLTest Can take off TLS 1.0 and RC4 when NSS/other browsers get TLS 1.1/1.2 support (not for a while yet, vote here to get it! https://bugzilla.mozilla.org/show_bug.cgi?id=480514 )
# Apache
SSLEngine on
SSLProtocol -ALL +TLSv1.2 +TLSv1.1 +TLSv1
SSLHonorCipherOrder On
SSLCipherSuite ECDHE-RSA-AES256-SHA384:AES256-GCM-SHA384:RC4-SHA:!ADH:!MD5:!aNULL:!EDH
SSLCompression Off
# Nginx
@radiosilence
radiosilence / gist:4537764
Created January 15, 2013 10:28
Why no mpd work?
~/.config/mpd % systemctl start mpd.service --user
Failed to issue method call: Unit mpd.service failed to load: No such file or directory. See system logs and 'systemctl status mpd.service' for details.
~/.config/mpd % ls /usr/lib/systemd/system | grep mpd.service
mpd.service
snmpd.service
Dec 28 10:24:43 jackson pulseaudio[12565]: [pulseaudio] module-jackdbus-detect.c: Unable to contact D-Bus session bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Dec 28 10:24:43 jackson pulseaudio[12565]: [pulseaudio] module.c: Failed to load module "module-jackdbus-detect" (argument: ""): initialization failed.
Dec 28 10:24:43 jackson dbus-daemon[289]: dbus[289]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service'
Dec 28 10:24:43 jackson dbus-daemon[289]: dbus[289]: [system] Activation via systemd failed for unit 'dbus-org.bluez.service': Unit dbus-org.bluez.service failed to load: No such file or directory. See system logs and 'systemctl status dbus-org.bluez.service' for details.
Dec 28 10:24:43 jackson dbus[289]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service'
Dec 28 10:24:43 jackson dbus[289]: [system] Activation via systemd failed for unit 'dbus-org.bluez.service': Unit