This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/etc/X11/xorg.conf.d/10-evdev.conf | |
Section "InputClass" | |
Identifier "evdev keyboard catchall" | |
MatchIsKeyboard "on" | |
MatchDevicePath "/dev/input/event*" | |
Driver "evdev" | |
Option "Xkb_Layout" "us" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// require https://code.jquery.com/jquery-2.1.1.min.js | |
// require js/my_cool_script.js | |
var moo = function () { | |
window.console.log(jQuery); | |
} | |
moo(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Encoding=UTF-8 | |
Version=1.0 | |
Name=Chrome Apps Launcher | |
Comment=Unofficial desktop shortcut for Google Chrome's / Chromium's App Launcher | |
Exec=/usr/bin/chromium --show-app-list | |
Icon=/usr/share/icons/hicolor/256x256/apps/chromium.png | |
Terminal=false | |
Type=Application | |
Categories=Network; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set tabstop=4 softtabstop=0 noexpandtab shiftwidth=2 smarttab |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jshint esversion: 6 */ | |
// Meet the AwesomeClass | |
class AwesomeClass { | |
constructor(opts) { | |
} | |
static defaultOpts(opts, default_opts) { | |
var new_opts = default_opts; | |
if (opts) { | |
for (var property in default_opts) { | |
if (default_opts.hasOwnProperty(property)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
readonly LOG_FILE="/tmp/$(basename "$0").log" | |
info() { echo "[INFO] $@" | tee -a "$LOG_FILE" >&2 ; } | |
warning() { echo "[WARNING] $@" | tee -a "$LOG_FILE" >&2 ; } | |
error() { echo "[ERROR] $@" | tee -a "$LOG_FILE" >&2 ; } | |
fatal() { echo "[FATAL] $@" | tee -a "$LOG_FILE" >&2 ; exit 1 ; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
main() { | |
if [[ -z $1 ]]; | |
then | |
printf "Input file required\n" | |
exit 1 | |
else | |
local inputfile="$1" | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install tmux on Centos release 6.5 | |
# install deps | |
yum install gcc kernel-devel make ncurses-devel | |
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL | |
curl -OL https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz | |
tar -xf libevent-2.0.22-stable.tar.gz | |
cd libevent-2.0.22-stable | |
./configure --prefix=/usr/local |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
get_all_files() { | |
local argc=$# | |
local argv=($@) | |
for (( j=0; j<argc-1; j++ )); do | |
echo file $PWD/${argv[j]} | |
done | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage: | |
# ./reboot-telekom-speedport.bash "URL or IP of speedport" "password of speedport" | |
# Example: | |
# ./reboot-telekom-speedport.bash "http://192.168.2.1" "aBcDEf1337GHijk" | |
main() { | |
local speedport | |
local devpwd |