Skip to content

Instantly share code, notes, and snippets.

View Rovanion's full-sized avatar

Rovanion Luckey Rovanion

View GitHub Profile
@Rovanion
Rovanion / se
Created September 6, 2011 09:30
/usr/share/X11/xkb/symbols/se with Dvorak A5
// based on a keyboard map from an 'xkb/symbols/se' file
//
// $XKeyboardConfig$
// $XFree86: xc/programs/xkbcomp/symbols/se,v 1.5 2003/01/26 02:01:48 dawes Exp $
partial default alphanumeric_keys
xkb_symbols "basic" {
include "latin(type2)"
include "se(se)"
@Rovanion
Rovanion / noLicense.diff
Created September 22, 2012 19:58
Remove license check from Subsonic 4.7
diff --git a/subsonic-main/src/main/java/net/sourceforge/subsonic/service/SettingsService.java b/subsonic-main/src/main/java/net/sourceforge/subsonic/service/SettingsService.java
index f7031bf..39ee5b4 100644
--- a/subsonic-main/src/main/java/net/sourceforge/subsonic/service/SettingsService.java
+++ b/subsonic-main/src/main/java/net/sourceforge/subsonic/service/SettingsService.java
@@ -620,14 +620,11 @@ public class SettingsService {
}
public boolean isLicenseValid() {
- return isLicenseValid(getLicenseEmail(), getLicenseCode()) && licenseValidated;
+ return true;
@Rovanion
Rovanion / snapshot.sh
Last active December 17, 2015 00:29 — forked from anonymous/snapshot.sh
#!/bin/bash
LOGG=/home/fille/Loggar/snapshots.txt
touch $LOGG
exec >> $LOGG 2>&1
DATE=$(date +%Y%m%d)
echo ""
echo "Written by snapshot.sh"
echo "-------------------------"
@Rovanion
Rovanion / easylist.sty
Last active December 23, 2015 04:58
Small fix for easylist
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% %%
%% easylist.sty v.1.3 by Paul Isambert %%
%% See the documentation for a comment on the implementation. %%
%% %%
%% This set of macros is published under the LaTeX Project Public License. %%
%% %%
%% Comments, suggestions and bugs: %%
%% %%
%% [email protected] %%
\usepackage[utf8]{inputenc}
\usepackage[swedish]{babel}
\usepackage{url}
%\usepackage{fullpage}
%\topmargin = 1pt %20pt
%\headsep = 25pt %25pt
%\usepackage[top=85pt]{geometry}
\usepackage[colorlinks=true, linkcolor=black, urlcolor=blue]{hyperref}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
@Rovanion
Rovanion / test-clojar-projects.clj.bash
Last active March 7, 2017 10:40
Fetches all projects from clojure-toolbox.com and runs lein-master on them, define lein-master in your PATH for this to work.
#!/usr/bin/env bash
lst="$(curl -s http://www.clojure-toolbox.com/ \
| sed -n 's/.*href="\([^"]*\).*/\1/p' \
| grep -F 'https://github.com' | sort | uniq)"
dir="$PWD"
mkdir -p toolbox-projects
cd toolbox-projects
@Rovanion
Rovanion / fn-specs.clj
Created May 3, 2017 15:09
Useful function specs for Clojure Spec
(spec/fdef ::predicate
:args (spec/cat :arg any?)
:ret boolean?)
(spec/fdef ::nullary-fn
:args (spec/cat)
:ret any?)
(spec/fdef ::unary-fn
:args (spec/cat :first any?)
@Rovanion
Rovanion / key-count.dat
Last active June 1, 2017 09:48
The number of times different leiningen project map keywords are used
count name
14697 :description
12007 :url
136 :mailing-list
5 :mailing-lists
11641 :license
24 :licenses
1821 :min-lein-version
14154 :dependencies
2 :managed-dependencies
@Rovanion
Rovanion / assert.clj
Created June 30, 2017 08:08
Modified spec/assert for improved error reporting
(require '[clojure.spec.alpha :as spec])
;;; Spec does not report the name of the predicate when not wrapped in a spec.
(spec/assert number? nil)
;; Spec assertion failed val: nil fails predicate:
;; :clojure.spec.alpha/unknown :clojure.spec.alpha/failure
;; :assertion-failed
@Rovanion
Rovanion / cyd.liu.se
Created September 6, 2017 11:39
Nginx-conf for CYD
server {
listen 443;
server_name cyd.liu.se;
include includes/cyd.liu.se-commons;
include includes/security;
ssl_certificate /etc/ssl/certs/cyd.liu.se.crt;
ssl_certificate_key /etc/ssl/private/cyd.liu.se.key;
}