Skip to content

Instantly share code, notes, and snippets.

View evanpurkhiser's full-sized avatar

Evan Purkhiser evanpurkhiser

View GitHub Profile
Section "InputClass"
Identifier "edev keyboard catchall"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "XkbOptions" "ctrl:nocaps"
EndSection
diff --git a/ldm.c b/ldm.c
index d4db0e5..b748a27 100644
--- a/ldm.c
+++ b/ldm.c
@@ -210,7 +210,7 @@ filesystem_quirks (char *fs)
{ "umsdos", QUIRK_OWNER_FIX | QUIRK_UTF8_FLAG },
{ "vfat", QUIRK_OWNER_FIX | QUIRK_UTF8_FLAG | QUIRK_MASK | QUIRK_FLUSH },
{ "exfat", QUIRK_OWNER_FIX },
- { "ntfs", QUIRK_OWNER_FIX | QUIRK_UTF8_FLAG },
+ { "ntfs", QUIRK_OWNER_FIX | QUIRK_UTF8_FLAG | QUIRK_MASK },
# Maintainer: Robin Hahling
pkgname=ldm-git
_pkgname=ldm
pkgver=20130902
pkgrel=1
pkgdesc="A lightweight device mounter"
arch=('i686' 'x86_64')
url="https://github.com/LemonBoy/ldm"
license=('MIT')
depends=('udev')
# Maintainer: OK100 <ok100 at lavabit dot com>
# Previous Maintainer: Valère Monseur <valere dot monseur at ymail dot com>
pkgname=compton-git
_gitname=compton
pkgver=2014.02.27.g8a5becf
pkgrel=1
pkgdesc="X Compositor (a fork of xcompmgr-dana)"
arch=(i686 x86_64)
url="https://github.com/chjj/compton"
diff --git a/lib/middleman-sprockets/environment.rb b/lib/middleman-sprockets/environment.rb
index ef05604..379c440 100644
--- a/lib/middleman-sprockets/environment.rb
+++ b/lib/middleman-sprockets/environment.rb
@@ -1,3 +1,6 @@
+# pathname used to check for absolute path of cache directory
+require 'pathname'
+
module Middleman
module Sprockets
@evanpurkhiser
evanpurkhiser / response.php
Created March 27, 2014 19:13
Add x-send-file support to Kohana 3.3's Response class.
<?php
class Response extends Kohana_Response {
/**
* Send a file using the X-Sendfile header. The server must support this
* header in order to send the file.
*
* [!!] Unlike Response::send_file, this method _does not_ stop execution
* and more processing may be done. However, the body will be discarded
# refind.conf
# Configuration file for the rEFInd boot menu
#
# Timeout in seconds for the main menu screen. Setting the timeout to 0
# disables automatic booting (i.e., no timeout).
#
timeout 20
# Screen saver timeout; the screen blanks after the specified number of
#!/usr/bin/env ruby
(1..50).each do |n|
print 'Fizz ' if (n % 3).zero?
print 'Buzz ' if (n % 5).zero?
next if (n % 3).zero? || (n % 5).zero?
print n, ' '
end
diff --git a/common/msg.c b/common/msg.c
index a8ff492..72a05af 100644
--- a/common/msg.c
+++ b/common/msg.c
@@ -20,6 +20,7 @@
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
+#include <ctype.h>
#include <unistd.h>
diff --git a/common/msg.c b/common/msg.c
index a8ff492..dc62a3d 100644
--- a/common/msg.c
+++ b/common/msg.c
@@ -20,6 +20,7 @@
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
+#include <ctype.h>
#include <unistd.h>