Skip to content

Instantly share code, notes, and snippets.

@orschiro
orschiro / 50-touchpad.conf
Created April 9, 2015 08:22
X230 Touchpad Configuration
# Add the below configuration to /etc/X11/xorg.conf.d/50-touchpad.conf
Section "InputClass"
Identifier "touchpad"
MatchProduct "SynPS/2 Synaptics TouchPad"
# MatchTag "lenovo_x230_all"
Driver "synaptics"
# fix touchpad resolution
Option "VertResolution" "100"
Option "HorizResolution" "65"
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
@orschiro
orschiro / CopyQ - Save As.ini
Last active September 25, 2015 06:38 — forked from hluk/CopyQ - Save As.ini
CopyQ - Save Item/Clipboard To a File
[Command]
Command="
copyq:
var suffices = {
'image/svg': 'svg',
'image/png': 'png',
'image/jpeg': 'jpg',
'image/jpg': 'jpg',
'image/bmp': 'bmp',
'text/html': 'html',
@orschiro
orschiro / K99_chromium_exit
Last active October 6, 2015 18:05
Properly exit Chromium on Ubuntu shutdown or restart
# Installation
# 1. Create a script with the below content as /etc/rc6.d/K99_chromium_exit to run the script on shutdown
# 2. Create a script with the below content as /etc/rc0.d/K99_chromium_exit to run the script on restart
# 3. Make the script(s) executable: sudo chmod +x /etc/rc6.d/K99_chromium_exit
/usr/bin/pkill -15 -P 1 chromium-browser
@orschiro
orschiro / table.md
Created January 19, 2016 15:42
Sustainable Consumption Teaching Activities
Module name English translation Lecturer(s) Teaching institution Country Region Program (degree) Credits (ECTS) Language Consumption focus
Advanced Environmental and Natural Resource Economics Klaus Salhofer TU München Germany Europe Master in Consumer Affairs 6 English
Consumer Affairs Issues Jutta Roosen, Martina Reitmeier
Corporate Sustainability Frank Martin-Belz
@orschiro
orschiro / longtable.tex
Created January 25, 2016 14:14
Longtable example
\begin{sidewaysfigure}[htb]
\begin{longtable}{| p{.10\textwidth} | p{.10\textwidth} | p{0.40\textwidth}| p{0.40\textwidth}|}
\hline
Hypothese & Konstrukt & Operationalisierung der Frage(n) & Operationalisierung der Antwort \\ \hline
H1-1 & Vergütung Fixanteil & Um wie viel Prozent müsste der Grundpreis (€/Monat) des neuen Ladevertrags im Vergleich zu Ihrem Haushaltsstromtarif mindestens reduziert werden, dass Sie am Lademanagement teilnehmen würden? & gar nicht, mindestens 5 \% günstiger; ...; mehr als 30 \% günstiger \\ \hline
H1-2 & Ratenvergütung & Um wie viel Prozent müsste der Verbrauchspreis (€-Cent/kWh) des neuen Ladevertrags im Vergleich zu Ihrem Haushaltsstromtarif mindestens reduziert werden, dass Sie am Lademanagement teilnehmenwürden? & gar nicht, mindestens 5 \% günstiger; ...; mehr als 30 \% günstiger
@orschiro
orschiro / test.md
Created March 28, 2016 06:12
Embed test

Test

Test to embed this gist on Medium and Wordpress.com

@orschiro
orschiro / 0_reuse_code.js
Created March 28, 2016 06:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@orschiro
orschiro / publish-content-commons.md
Created March 28, 2016 06:46
Publishing content to the Commons

Publishing content to the Commons

I have finally found a good working way for me to publish all my creative content to the Commons.

  • For videos I use YouTube and their Creative Commons option
  • For entire photo albums I use Flickr
  • For single photos I use Wikimedia Commons
  • For audio files I use the Internet Archive
  • For text like this I use Github Gist
@orschiro
orschiro / snapcraft.yaml
Last active July 5, 2016 19:37
Snap Package Source File Vokoscreen 2.5.0
name: vokoscreen
version: "2.5.0"
summary: Vokoscreen Screencast
description: Snap package for Vokoscreen Screencast Software
https://gist.github.com/orschiro/489710764173788d07c00b5a84ddaafe
Currently, you have to manually replace all instances of
lrelease-qt5 with lrelease in parts/vokoscreen/src/vokoscreen.pro
confinement: strict
apps: