Skip to content

Instantly share code, notes, and snippets.

View radiosilence's full-sized avatar
🔥

James Cleveland radiosilence

🔥
View GitHub Profile
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
@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
@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,
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.
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
results = ResultSet([put_backup.delay(f.name, path, location.id, backup.id)
for location
in plan_task.locations.all()])
results.join()
class Account(object):
address1 = '1 Potato Street'
billing_address1 = None
name = 'John Doe'
billing_name = 'Jane Doe'
@property
def billing(self):
account = self
class c:
import datetime
total = 900
blocks = [(datetime.datetime(*start), datetime.datetime(*end), q) for start, end, q in [
((2012,01,02,8,00), (2012,01,10,10,32), 3),
((2012,01,02,8,00), (2012,01,10,10,32), 3),
((2012,01,01,8,00), (2012,01,12,10,32), 1),
((2012,01,02,8,00), (2012,01,10,10,32), 3),
((2012,01,02,8,00), (2012,01,10,10,32), 3),
@radiosilence
radiosilence / gist:5635766
Last active December 17, 2015 15:59
A Debian init script for uWSGI
#!/usr/bin/env bash
### BEGIN INIT INFO
# Provides: uwsgi
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the uwsgi app server
# Description: starts uwsgi app server using start-stop-daemon
@radiosilence
radiosilence / gist:5714387
Last active December 1, 2023 15:17
Example uWSGi INI file with support for celery.
[uwsgi]
disable-logging = True
socket = /srv/qrs/test/wsgi.sock
chdir = /srv/qrs/test
chmod = 660
master = true
processes = 2
module = qrs.wsgi:application
virtualenv = /env/qrs/test
enable-threads = true