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 python | |
import socket | |
import threading | |
import select | |
import sys | |
terminateAll = False | |
class ClientThread(threading.Thread): |
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
#/bin/bash | |
curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose |
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
apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg2 \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - | |
if apt-key finger | grep -q "0EBF CD88"; then | |
add-apt-repository \ |
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
new-item alias:venv -value venv/Scripts/Activate.ps1 | |
new-item alias:l -value ls | |
function flaskd {flask run --debugger --reload} | |
Import-Module git-aliases -DisableNameChecking | |
Import-Module posh-git | |
Import-Module z | |
Clear-Host |
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
[flake8] | |
max_line_length = 88 | |
[mypy] | |
ignore_missing_imports = True | |
follow_imports = silent | |
disallow_untyped_calls = false | |
disallow_untyped_defs = true | |
[pydocstyle] |
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 for linting the current project. | |
:author: Stefan Lehmann <[email protected]> | |
:license: MIT, see license file or https://opensource.org/licenses/MIT | |
:created on 2018-06-28 15:10:47 | |
:last modified by: Stefan Lehmann | |
:last modified time: 2018-06-28 15:12:56 |
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
# Set aliases | |
aliases['l'] = ['dir'] | |
aliases['ls'] = ['dir'] | |
aliases['g'] = ['git'] | |
aliases['glog'] = ['git', 'log', '--decorate', '--oneline', '--graph'] | |
aliases['gst'] = ['git', 'status'] | |
aliases['gc'] = ['git', 'commit'] | |
aliases['ga'] = ['git', 'add'] | |
aliases['gau'] = ['git', 'add', '-u'] | |
aliases['gaa'] = ['git', 'add', '-A'] |
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
REM Powershell Script | |
pip list --outdated --format=freeze | %{$_.split('==')[0]} | %{pip install --upgrade $_} |
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
[mypy] | |
ignore_missing_imports = True | |
follow_imports = silent | |
disallow_untyped_calls = True | |
disallow_untyped_defs = True | |
disallow_incomplete_defs = True | |
disallow_untyped_decorators = True |
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
import click | |
import subprocess | |
click.echo('\n--- Running Mypy ---') | |
res = subprocess.call(['mypy', '.']) | |
if res == 0: | |
click.echo(click.style('OK', fg='green')) | |
click.echo('\n--- Running Flake8 ---') |
NewerOlder