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 | |
| if [ $# -eq 0 ]; then | |
| echo "Usage (i.e.): manman curl -u" | |
| exit 3 | |
| fi | |
| if [ $# -eq 1 ]; then | |
| man "$1" | |
| exit 0 |
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 | |
| # This script executes arbitary commands on a remote server. | |
| # Example: ./remote ls -alf | |
| # If CMD is provided in the configuration section below | |
| # Example (RMT_CMD="ls"): ./remote -alf | |
| # If CMD is defined provided in the environment variables | |
| # Example: RMT_CMD=ls ./remote -alf |
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 | |
| set -euo pipefail | |
| # Disables Ubuntu shortcuts that clash with IntelliJ Idea (and probably other | |
| # Jetbrain products). | |
| # | |
| # Creates a backup file to restore the previous settings. To not have some | |
| # shortcuts disabled, comment them out in the `KEYS` array. | |
| # | |
| # Tested on : Ubuntu 15.10 |
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 python3 | |
| import argparse | |
| import getpass | |
| import os | |
| import time | |
| import sys | |
| KNOWN_CODENAMES = ['lucid', 'precise', 'trusty', 'utopic', 'vivid', 'wily'] |
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
| # | |
| # Defines transfer alias and provides easy command line file and folder sharing. | |
| # | |
| # Authors: | |
| # Remco Verhoef <[email protected]> | |
| # Jonas Gröger <[email protected]> | |
| # | |
| if (( ! $+commands[curl] )); then | |
| return 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
| \documentclass%% | |
| %--------------------------------------------------------------------------- | |
| [fontsize=12pt,%% Schriftgroesse | |
| %--------------------------------------------------------------------------- | |
| % Satzspiegel | |
| paper=a4,%% Papierformat | |
| enlargefirstpage=on,%% Erste Seite anders | |
| pagenumber=headright,%% Seitenzahl oben mittig | |
| %--------------------------------------------------------------------------- | |
| % Layout |
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 | |
| ################################################################################ | |
| # Description # | |
| # Script to disable the mouse acceleration on Ubuntu (and probably other # | |
| # distributions). # | |
| # # | |
| # Author # | |
| # Jonas Gröger <[email protected]> # | |
| # # |
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
| # ------------------------------------------------------------------------------ | |
| # Script: Clean-Temporary-Files.ps1 | |
| # Author: Jonas Gröger <[email protected]> | |
| # Date: 12.04.2014 | |
| # Keywords: LaTeX, Clean, Delete, Remove, Temporary, Files | |
| # Comments: Removes temporary files created by LaTeX etc. You can tweak it by | |
| # adding extensions or specific files. | |
| # ------------------------------------------------------------------------------ | |
| Param( |
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
| # coding=utf-8 | |
| import json | |
| __author__ = 'Jonas Gröger <[email protected]>' | |
| def jsonify(cls): | |
| def to_json(obj, **kargs): | |
| return json.dumps(obj, default=lambda o: o.__dict__, **kargs) |
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
| @echo off | |
| setlocal | |
| REM Generic .bat file to launch .ps1 files. | |
| REM Name the .bat file like the .ps1 file and you are done. | |
| set this_file_no_extension=%~n0 | |
| set ps1_file=%this_file_no_extension%.ps1 | |