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
""" | |
A small GUI tool to test async serial access withing a Qt application. | |
:author: Stefan Lehmann <[email protected] | |
:license: MIT license, see license.txt for details | |
:created on 2018-02-08 11:29:49 | |
:last modified by: Stefan Lehmann | |
:last modified time: 2018-02-28 14:12:53 |
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
# Provision script for a development environment on Debian including | |
# neovim, tmux, mc, Python3, git | |
# upgrade system | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
# install main packages | |
sudo apt-get install -y man wget curl python3 python3-pip tmux neovim htop mc zsh git ruby |
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 time | |
import subprocess | |
import webbrowser | |
subprocess.Popen(['mkdocs', 'serve']) | |
time.sleep(3) | |
webbrowser.open('http://localhost:8000') |
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
.PHONY: all check clean | |
objects = $(wildcard *.in) | |
outputs = $(objects:.in=.txt) | |
all: $(outputs) | |
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
Package: * | |
Pin: release a=stable | |
Pin-Priority: 700 | |
Package: * | |
Pin: release a=testing | |
Pin-Priority: 650 | |
Package: * | |
Pin: release a=unstable |
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
""" | |
Configuration example for ``ptpython``. | |
Copy this file to ~/.ptpython/config.py | |
""" | |
from __future__ import unicode_literals | |
from prompt_toolkit.filters import ViInsertMode | |
from prompt_toolkit.key_binding.input_processor import KeyPress | |
from prompt_toolkit.keys import Keys | |
from pygments.token import Token |
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
Shortcut Description | |
--------------------------------------------------------------- | |
C-o Drop to the console | |
Insert or C-t Select/deselect file | |
* Invert selection on files | |
+ Specify file selection options (including custom pattern) | |
- The same as above, but for deselecting | |
F5/F6 Copy/move selected files |
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
$PROMPT='{GREEN}{BLUE}{cwd_base} {gitstatus} > ' |
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
from flask import Flask, request, redirect, url_for | |
from flask_mongoengine import MongoEngine | |
from flask_admin import Admin | |
from flask_admin.base import expose | |
from flask_admin.contrib.mongoengine import ModelView | |
from flask_admin.helpers import get_form_data | |
from flask_admin.model.helpers import get_mdict_item_or_list | |
app = Flask(__name__) |
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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH=/root/.oh-my-zsh | |
# Set name of the theme to load. Optionally, if you set this to "random" | |
# it'll load a random theme each time that oh-my-zsh is loaded. | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
ZSH_THEME="agnoster" |