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
# Disable terminal bell | |
xset -b | |
# Disable touchpad (see device number with 'xinput list') | |
TOUCHPADID=$(xinput list | grep -i TouchPad | awk -F= '{ print $2}' | awk '{print $1}') | |
xinput set-prop $TOUCHPADID "Device Enabled" 0 | |
# ufw: Allow all connections to port 3000 from within the local 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
'use strict'; | |
export const colors = { | |
'reset' : '\x1b[0m', | |
'hicolor' : '\x1b[1m', | |
'underline' : '\x1b[4m', | |
'inverse' : '\x1b[7m', | |
// foreground colors | |
'black' : '\x1b[30m', | |
'red' : '\x1b[31m', | |
'green' : '\x1b[32m', |
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 | |
# Taken from https://github.com/gavingmiller/dotfiles/blob/master/bin/colors.bash | |
# Description: Small cheat sheet script because my memory is cruddy. | |
# tputcolors 1 - 7 | |
# 1 red | |
# 2 green | |
# 3 yellow | |
# 4 blue |
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 | |
# Usage: dynv6.sh --token TOKEN --name NAME1,NAME2 | |
# Created by @ffflorian (https://github.com/ffflorian) | |
# Licensed under the MIT license. | |
SCRIPT_NAME="${0##*/}" | |
_print_usage() { | |
cat <<EOF |
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
/* | |
* Simple OpenPGP.js example with Promises for node.js | |
* See: https://github.com/openpgpjs/openpgpjs | |
*/ | |
'use strict'; | |
const fs = require('fs'); | |
const openpgp = require('openpgp'); | |
const keyFile = 'pubkey.asc'; |
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
/** | |
* Read Spiegel Online Plus Articles, hidden behind a rot(1) "encryption" | |
* and a blur filter. | |
* Just copy this and paste it into your browser's console (press F12) - | |
* or use the minified version, see comments below. | |
* Try it out on any article at http://www.spiegel.de/spiegelplus/. | |
* | |
* @ffflorian, 2016 | |
*/ |
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
# Create at /etc/systemd/system/ or ~/.config/systemd/user/ | |
# Enable with systemctl enable appname.service | |
# Start with systemctl start appname.service | |
[Unit] | |
Description=Appname | |
# wait for network | |
After=network.target | |
[Service] |
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 | |
# Print or browse a git repository's URL. | |
# @ffflorian, 2016 | |
# MIT License | |
set -e | |
SCRIPT_NAME="${0##*/}" | |
_print_usage() { |
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
# Wire build and installation for Debian x64 | |
# Created by @ffflorian (https://github.com/ffflorian) | |
# Licensed under the MIT license. | |
# Prerequisites: | |
# * You need npm, git, g++ and dpkg. | |
# * You need to clone https://github.com/wireapp/wire-desktop. | |
# Usage: Run it in the folder of the wire-desktop repo. |
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 | |
# Build script for https://github.com/wireapp/coax | |
set -e | |
RUSTUP_SCRIPT_REMOTE="https://sh.rustup.rs" | |
RUSTUP_SCRIPT_LOCAL="install_rust.sh" | |
COAX_REPO="https://github.com/wireapp/coax.git" |