Skip to content

Instantly share code, notes, and snippets.

View floriandejonckheere's full-sized avatar

Florian Dejonckheere floriandejonckheere

View GitHub Profile
@floriandejonckheere
floriandejonckheere / gist:df20cae37c2bb0befa6f
Created January 12, 2016 14:47
MATE volume change increment
dconf key: /org/mate/settings-daemon/plugins/media-keys/volume-step
module ClassLevelInheritableAttributes
def self.included(base)
base.extend(ClassMethods)
end
module ClassMethods
def inheritable_attributes(*args)
@inheritable_attributes ||= [:inheritable_attributes]
@inheritable_attributes += args
args.each do |arg|
@floriandejonckheere
floriandejonckheere / mv-larger.rb
Last active January 8, 2016 14:41
Move all files from source directory to destination, overwriting files only if larger
#!/usr/bin/env ruby
require 'fileutils'
src = ARGV[-2]
dest = ARGV[-1]
unless src and dest and File.directory? src and File.directory? dest
puts "Usage: mv-larger [-v] [-d] SRC DEST"
exit false
@floriandejonckheere
floriandejonckheere / slideshow.html
Last active December 6, 2015 13:28
Pure CSS3 slideshow
<div class="slideshow">
<img src="slideshow-001.png" alt="Slideshow 1">
<img src="slideshow-002.png" alt="Slideshow 2">
</div>
@floriandejonckheere
floriandejonckheere / sensors3.conf
Last active December 31, 2015 14:40
Gigabyte GA-EP43-UD3L lm_sensors config
chip "it8718-*"
label in0 "VCore"
label in1 "VDDR"
label in2 "+3.3V" # VCC3
label in3 "+5V" # VCC
label in4 "+12V"
label in5 "-12V"
label in6 "-5V"
label in7 "5VSB" # VCCH
label in8 "VBat"
@floriandejonckheere
floriandejonckheere / mpv-rotate-left.desktop
Created October 4, 2015 21:32
Launch mpv in rotated mode
[Desktop Entry]
Type=Application
Name=mpv Media Player (rotate left)
Comment=Play movies and songs
Icon=mpv
TryExec=mpv
Exec=mpv --no-terminal --force-window --video-rotate=270 -- %U
Terminal=false
NoDisplay=true
Categories=AudioVideo;Audio;Video;Player;TV;
@floriandejonckheere
floriandejonckheere / 40_iso.cfg
Created September 29, 2015 07:50
GRUB entry for booting Arch Linux ISO
# This entry boots an Antergos (Arch) Linux ISO straight from disk.
# LVM is not supported because the lvm module is not loaded in Antergos initrd
menuentry "Antergos Minimal ISO 2015-09-13" {
insmod part_gpt
insmod lvm
insmod loopback
set root=(hd0,0)
set isofile=/antergos.iso
search --no-floppy --file ${isofile} --set
#!/usr/bin/bash
which socat &> /dev/null || { echo "Please install socat"; exit 1; }
(socat TCP-LISTEN:6600,fork TCP:${1:-mpdserver.local}:6600) &
@floriandejonckheere
floriandejonckheere / 99-android.rules
Created August 1, 2015 07:12
UDev Android rules
# Acer Liquid Z110
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", ATTR{idProduct}=="33f2", MODE="0660", GROUP="plugdev"
# Cowon Z2 Plenue
SUBSYSTEM=="usb", ATTR{idVendor}=="0e21", ATTR{idProduct}=="1102", MODE="0660", GROUP="plugdev"
@floriandejonckheere
floriandejonckheere / 50-synaptics.conf
Created July 25, 2015 09:32
X Server config for permanent ThinkPad trackpoint scrolling
# Example xorg.conf.d snippet that assigns the touchpad driver
# to all touchpads. See xorg.conf.d(5) for more information on
# InputClass.
# DO NOT EDIT THIS FILE, your distribution will likely overwrite
# it when updating. Copy (and rename) this file into
# /etc/X11/xorg.conf.d first.
# Additional options may be added in the form of
# Option "OptionName" "value"
#
Section "InputClass"