Skip to content

Instantly share code, notes, and snippets.

View sixtyfive's full-sized avatar
🐯
Rawrrr.

J. R. Schmid sixtyfive

🐯
Rawrrr.
View GitHub Profile
@sixtyfive
sixtyfive / ara
Last active August 29, 2015 14:16
DMG Variant of the Arabic Keyboard Layout by the xkeyboard-config Project
[...]
partial alphanumeric_keys
xkb_symbols "dmg"
{
name[Group1] = "Arabic (digits, DMG)";
include "ara(qwerty_digits)"
// DMG reference can be found at http://en.wikipedia.org/wiki/DIN_31635
// Letters in common hijāʾī order as per http://en.wikipedia.org/wiki/Arabic_alphabet
key <AB02> { [ NoSymbol, NoSymbol, NoSymbol, U02BE ] }; // ʾ (yes, *this* is the *proper* hamza marker!)
[Script Info]
; Script generated by Aegisub 3.2.2
; http://www.aegisub.org/
Title: Default Aegisub file
ScriptType: v4.00+
WrapStyle: 0
ScaledBorderAndShadow: yes
YCbCr Matrix: TV.601
PlayResX: 1280
PlayResY: 720
jrs@t430:~$ diff /usr/bin/startxfce4 /opt/xfce/bin/startxfce4
27c27
< if test "x$OPT" == "x--help"
---
> if test "x$OPT" = "x--help"
40c40
< elif test "x$OPT" == "x--with-ck-launch"
---
> elif test "x$OPT" = "x--with-ck-launch"
69c69
Session4:
unix-user = '1000'
realname = 'J. R. Schmid'
seat = 'Seat1'
session-type = ''
active = TRUE
x11-display = ':0'
x11-display-device = '/dev/tty2'
display-device = '/dev/tty1'
remote-host-name = ''
@sixtyfive
sixtyfive / biber-output.log
Created February 5, 2015 13:09
Problems getting the Biber backend for BibLaTeX to work
$ biber thesis
INFO - This is Biber 1.9
INFO - Logfile is 'thesis.blg'
INFO - Reading 'thesis.bcf'
INFO - Using all citekeys in bib section 0
INFO - Processing section 0
INFO - Looking for bibtex format file 'sources' for section 0
@sixtyfive
sixtyfive / bibtex-compile-output.log
Created February 5, 2015 11:49
Problems integrating the mla13 style into a XeLaTeX document
$ bibtex thesis.aux
This is BibTeX, Version 0.99d (TeX Live 2015/dev/Debian)
The top-level auxiliary file: thesis.aux
I found no \citation commands---while reading file thesis.aux
I found no \bibdata command---while reading file thesis.aux
I found no \bibstyle command---while reading file thesis.aux
(There were 3 error messages)
@sixtyfive
sixtyfive / regex.rb
Last active August 29, 2015 14:14
RegEx for matching "www" and any subdomains following it but excluding the last dot. Expects a string containing subdomains without the domain itself!
/^www(?:$|\..+)(?<!\.)/
'ww' # Does not match: check!
'www' # Matches: check!
'www.' # Does not match: check!
'www.bjewoifcce' # Matches: check!
'www.bjewoifcce.ewoijewoi' # Matches: check!
'www.bjewoifcce.' # Does not match: check!
'www.bjewoifcce.ewoijewoi.' # Does not match: check!
@sixtyfive
sixtyfive / error.log
Last active August 29, 2015 14:14
GitLab error message when trying to destroy a group
Processing by Admin::GroupsController#destroy as HTML
Parameters: {"authenticity_token"=>"RqPrdnxhzXfWfcu+FrcnHUA4xAHW2AMgOZm9jLnm9Sw=", "id"=>"test1"}
*** #<Group id: 7, name: "test1", path: "test1", owner_id: nil, created_at: "2015-01-30 10:11:51", updated_at: "2015-01-30 10:11:51", type: "Group", description: "", avatar: nil>
*** #<ActiveRecord::Associations::CollectionProxy [#<GroupMember id: 10, access_level: 50, source_id: 7, source_type: "Namespace", user_id: 2, notification_level: 3, type: "GroupMember", created_at: "2015-01-30 10:11:51", update
d_at: "2015-01-30 10:11:51">]>
Completed 500 Internal Server Error in 58ms
NoMethodError (undefined method `name' for nil:NilClass):
app/controllers/admin/groups_controller.rb:51:in `destroy'
@sixtyfive
sixtyfive / question.rb
Created January 21, 2015 21:34
Thing with strings and Ruby
mystring = "something"
puts mystring
=> "something" # okay, so far so good
foobar = "test"
mystring = '#{foobar}' # note the single quotation marks!
puts mystring
=> "#{foobar}" # not what i want
@sixtyfive
sixtyfive / change_url_path_element.js
Last active August 29, 2015 14:13
JavaScript function for changing one path element in an URL
/*
* Example: changeURLPathElement(1, 'en', /^[a-z][a-z]$/i)
*/
function changeURLPathElement(element, value, validation_regexp) {
path = location.pathname.split('/');
if (path.length == 2) {
url = location.protocol+'//'+location.host+'/'+value+location.search;
} else if (path.length > 2 && validation_regexp.test(path[1])) {
path[1] = value;
url = location.protocol+'//'+location.host+path.join('/')+location.search;