Skip to content

Instantly share code, notes, and snippets.

💭
http://orschi.ro

Or Schiro orschiro

💭
http://orschi.ro
Block or report user

Report or block orschiro

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@orschiro
orschiro / Image Clipboard Filer.md
Last active Jan 18, 2019
Python script that saves an image from clipboard to a file.
View Image Clipboard Filer.md

Introduction

Saves an image from clipboard to a file.

Dependencies:

  • python2
  • PyGTK

Installation

View .zshrc
#
# .zshrc
#
# Access custom aliases in the shell
[ -e "${HOME}/.zsh_aliases" ] && source "${HOME}/.zsh_aliases"
# Fix command not found after installation
# https://bbs.archlinux.org/viewtopic.php?id=175388
zstyle ':completion:*' rehash true
@orschiro
orschiro / tlp
Created Mar 25, 2015
X230 Linux Configuration
View tlp
# ------------------------------------------------------------------------------
# tlp - Parameters for power save
# Hint: some features are disabled by default, remove the leading # to enable
# them.
# Set to 0 to disable, 1 to enable TLP.
TLP_ENABLE=1
# Seconds laptop mode has to wait after the disk goes idle before doing a sync.
@orschiro
orschiro / 50-touchpad.conf
Created Apr 9, 2015
X230 Touchpad Configuration
View 50-touchpad.conf
# 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"
View gist:272c1f9fda4fe1440105
# ~/.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 Sep 25, 2015 — forked from hluk/CopyQ - Save As.ini
CopyQ - Save Item/Clipboard To a File
View CopyQ - Save As.ini
[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 / CopyQ - Snippets.ini
Created Sep 25, 2015 — forked from hluk/CopyQ - Snippets.ini
CopyQ - Dialog for Pasting Snippets
View CopyQ - Snippets.ini
[Command]
Command="
copyq:
var snippetsTabName = 'Snippets'
function newVarRe(content) {
return new RegExp('\\\\${' + content + '}', 'g')
}
function getText(item) {
@orschiro
orschiro / K99_chromium_exit
Last active Oct 6, 2015
Properly exit Chromium on Ubuntu shutdown or restart
View K99_chromium_exit
# 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 Jan 19, 2016
Sustainable Consumption Teaching Activities
View table.md
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 Jan 25, 2016
Longtable example
View longtable.tex
\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
You can’t perform that action at this time.