Skip to content

Instantly share code, notes, and snippets.

View radiosilence's full-sized avatar
🔥

James Cleveland radiosilence

🔥
View GitHub Profile
ul.nav-bar {
@include rounded($color8);
li, li.active, li.has-flyout, li:hover, li.active:hover,
li:last-child {
@include display-font;
background-color: transparent;
a, a:first-child {
font-size: 16px;
}
border: 0;
@radiosilence
radiosilence / gist:3946121
Created October 24, 2012 13:43
Outputs some files that WMs can import and colourify everything with.
import sys
import colorsys
from colorz import colorz
WALLPAPER = '/home/james/.wallpaper'
COLORS = '/home/james/.colors'
XRESOURCES = '/home/james/.Xresources'
cols = ''
xres = """
#!/bin/bash
ICONPATH=$HOME/.dzen
source ~/.colors
get_now_playing() {
local state
local updating
local update
local string
// views.py
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.shortcuts import render
from django.http import HttpResponseRedirect
from loisdesigns.forms import EnquiryForm
from django.http import Http404
from django.core.mail import send_mail
@radiosilence
radiosilence / gist:4040553
Created November 8, 2012 18:19
RequireJS with Zurb Foundation
requirejs.config({
shim: {
'foundation/jquery.foundation.topbar': {
deps: ['jquery'],
},
'foundation/jquery.cookie': {
deps: ['jquery']
},
'foundation/jquery.event.move': {
deps: ['jquery']
--- Mimeo.py.old 2012-11-22 13:05:48.340854666 +0000
+++ Mimeo.py 2012-11-22 13:06:13.363724740 +0000
@@ -1219,6 +1219,10 @@
try:
desktop.load()
+ # Skip this desktop if it has no Desktop Entry Group
+ if not DEG in desktop:
+ continue
+
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
@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
@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
#!/bin/zsh
export DISPLAY=:0
dbus-launch systemd --user