Skip to content

Instantly share code, notes, and snippets.

View sander's full-sized avatar

Sander Dijkhuis sander

View GitHub Profile
sander@lampje:~/gnome-shell/source/gnome-shell$ src/gnome-shell -r
Windowmanager waarschuwing:Log level 16: invalid (NULL) pointer instance
Windowmanager waarschuwing:Log level 8: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
Windowmanager waarschuwing:Log level 16: invalid (NULL) pointer instance
Windowmanager waarschuwing:Log level 8: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
Windowmanager waarschuwing:Log level 16: invalid (NULL) pointer instance
Windowmanager waarschuwing:Log level 8: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
JS ERROR: !!! WARNING: 'assignment to undeclared variable iconPath'
JS ERROR: !!! WARNING: file '/home/sander/gnome-shell/source/gnome-shell/js/ui/genericDisplay.js' line 89 exception 0 number 156
JS ERROR: !!! Exception was: Error: Argument 'text' (type utf8) may not be null
commit b0d60af3d39f0259fb433daca7db9b8222cb83f3
Author: Sander Dijkhuis <sander.dijkhuis@gmail.com>
Date: Thu Jun 25 22:44:10 2009 +0200
Add PolicyKit deps for Ubuntu to gnome-shell-build-setup.sh
This is needed to be able to build GConf.
diff --git a/tools/build/gnome-shell-build-setup.sh b/tools/build/gnome-shell-bu
index 86634ad..d3a03ca 100755
@sander
sander / appointmentForm.js
Created August 27, 2011 01:33
Old jQuery implementation of Pleft (2009)
// Copyright 2009 Sander Dijkhuis <sander@pleft.com>
// AppForm assumes exactly one form#appointment exists on the page.
var AppForm = {
init: function() {
AppForm.form = $('form#create');
AppForm.form.submit(function() { return false; });
AppForm.errors = {
[couchdb]
database_dir = /Users/sander/Library/Hoodie/Apps/projectname
index_dir = /Users/sander/Library/Hoodie/Apps/projectname
uri_file = /Users/sander/Library/Hoodie/Apps/projectname/couch.uri
[httpd]
port = 6010
[log]
file = /Users/sander/Library/Hoodie/Apps/projectname/couch.log
@sander
sander / gist:5574315
Created May 14, 2013 07:38
Log of node-openvg-canvas crash
==== Stack trace ============================================
Security context: 0x29f09619 <JS Object>#0#
1: /* anonymous */ [/home/pi/node-openvg-canvas/lib/text/freetype.js:26] (this=0x51f76009 <an Object>#1#,exports=0x51f76009 <an Object>#1#,require=0x51f777d1 <JS Function require>#2#,module=0x51f75fe1 <a Module>#3#,__filename=0x51f75701 <String[48]: /home/pi/node-openvg-canvas/lib/text/freetype.js>,__dirname=0x51f77d75 <String[36]: /home/pi/node-openvg-canvas/lib/text>)
3: _compile [module.js:456] (this=0x51f75fe1 <a Module>#3#,content=0x51f772d5 <Very long string[1235]>#4#,filename=0x51f75701 <String[48]: /home/pi/node-openvg-canvas/lib/text/freetype.js>)
4: .js [module.js:474] (this=0x51f0c691 <an Object>#5#,module=0x51f75fe1 <a Module>#3#,filename=0x51f75701 <String[48]: /home/pi/node-openvg-canvas/lib/text/freetype.js>)
5: load [module.js:356] (this=0x51f75fe1 <a Module>#3#,filename=0x51f75701 <String[48]: /home/pi/node-openvg-canvas/lib/text/freetype.js>)
6: _load [module.js:312]
echo 'install 8192cu /sbin/modprobe --ignore-install 8192cu; /bin/echo "0df6 0077" >| /sys/bus/usb/drivers/rtl8192cu/new_id' | sudo tee /etc/modprobe.d/8192cu.conf
sudo echo "8192cu" >> /etc/modules
@sander
sander / __fonts.css.sass
Created May 6, 2014 21:42
Hosting web fonts in a subdirectory in Rails
// app/stylesheets/__fonts.css.sass
// Example, where fira-sans is a subdirectory of app/assets/fonts:
@font-face
font-family: 'Fira Sans'
src: asset_url('fira-sans/eot/FiraSans-Light.eot')
src: local('Fira Sans Light'), asset_url('fira-sans/eot/FiraSans-Light.eot') format('embedded-opentype'), asset_url('fira-sans/woff/FiraSans-Light.woff') format('woff'), asset_url('fira-sans/ttf/FiraSans-Light.ttf') format('truetype')
font-weight: 300
font-style: normal
@sander
sander / ms-settings.php
Created July 29, 2014 23:24
Fixing some strange issues with WordPress Multisite since 3.9?
<?php
/**
* Used to set up and fix common variables and include
* the Multisite procedural and class library.
*
* Allows for some configuration in wp-config.php (see ms-default-constants.php)
*
* @package WordPress
* @subpackage Multisite
* @since 3.0.0
@sander
sander / mail-settings.php
Last active August 29, 2015 14:04
WordPress plugin to change the default From address multisite mails
<?php
// Plugin Name: Server settings
// Author: Sander Dijkhuis
add_filter( 'wp_mail_from', function() { return 'from.address@example.com' } );
add_filter( 'wp_mail_from_name', function() { return 'From Name'; } );
@sander
sander / theme-switcher.php
Last active October 4, 2019 11:55
WordPress plugin to change themes based on signed in user level
<?php
// Plugin Name: Theme switcher
// Author: Sander Dijkhuis
require_once(ABSPATH . WPINC . '/pluggable.php');
function theme_switcher_callback() {
return 'alternative-theme-name';
}