This file contains 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 | |
# -*- coding: utf-8 -*- | |
# Licensed under the MIT License (Expat) @ https://www.tldrlegal.com/l/mit | |
""" | |
A one-function module to clean up files in folders. | |
Args: | |
-q, --quiet Suppresses output to stdout. |
This file contains 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
$workon_home_env__var_name = "WORKON_HOME" | |
$venv_file_name = ".venv" | |
$workon_home = $null | |
# Test if env-var exists | |
if(!(Test-Path Env:\$workon_home_env__var_name)) { | |
$Host.UI.WriteErrorLine("You must set the environment variable '" + $workon_home_env__var_name + "'. It must point to your virtual environment folder.") | |
Exit | |
} |
This file contains 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 | |
This file contains 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 | |
This file contains 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 <jonas.groeger@gmail.com>' | |
def jsonify(cls): | |
def to_json(obj, **kargs): | |
return json.dumps(obj, default=lambda o: o.__dict__, **kargs) |
This file contains 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 <jonas.groeger@gmail.com> | |
# 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 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 <jonas.groeger@gmail.com> # | |
# # |
This file contains 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 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 <remco@dutchcoders.io> | |
# Jonas Gröger <jonas.groeger@gmail.com> | |
# | |
if (( ! $+commands[curl] )); then | |
return 1 |
This file contains 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'] |