Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines in the history. See bash(1) for more options | |
# ... or force ignoredups and ignorespace | |
HISTCONTROL=ignoredups:ignorespace |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
The idea here is that if you know which migrations were in version 2.0.3
of your project and which were in version 2.0.4
then setA - setB
gives you the list of migrations you need to undo.
Django migrations give you a directed acyclic graph which describes how to get from the current database state to the target state. But there is no mechanism by which you can perform tasks like revert all the migrations that just ran in the last deployment
.
Here is a quick recipe for batching Django migrations to allow you to do things like that.
Before you tag your project you do:
/Applications/Native Instruments/Traktor 2/Traktor.app/Contents/Resources/qml
on Mac, on Windows look for qml
in directory where Traktor is installed (I don't have windows machine around)…# ... more above ... | |
# wsfl bash is not a login shell | |
if [ -d "$HOME/bin" ] ; then | |
PATH="$HOME/bin:$PATH" | |
fi | |
# ssh-agent configuration | |
if [ -z "$(pgrep ssh-agent)" ]; then | |
rm -rf /tmp/ssh-* |
#!/usr/bin/env bash | |
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/ | |
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c | |
# https://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver | |
# https://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception | |
# https://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal | |
# https://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04 | |
# Versions | |
CHROME_DRIVER_VERSION=`curl -sS https://chromedriver.storage.googleapis.com/LATEST_RELEASE` |
#!/usr/bin/env bash | |
# SOURCES: | |
# https://gist.github.com/pirafrank/18d62c062e2806c1d183 | |
# SEE THIS EXCELLENT SITE IF GIST FAILS: | |
# https://office-reset.com | |
# activate verbose standard output (stdout) | |
set -v |
directory: /mnt/chawley/Music | |
library: /home/chawley/musiclibrary.blb | |
import: | |
# write metadata to music files | |
write: yes | |
# move imported files from source to the music directory | |
move: yes | |
copy: no |
Nginx can be configured to route to a backend, based on the server's domain name, which is included in the SSL/TLS handshake (Server Name Indication, SNI).
This works for http upstream servers, but also for other protocols, that can be secured with TLS.
nginx -V
for the following:
...
TLS SNI support enabled
#NoEnv | |
#SingleInstance force | |
SendMode Input | |
DetectHiddenWindows, on | |
SetWinDelay, 0 | |
#`:: | |
terminal := WinExist("ahk_exe WindowsTerminal.exe") | |
if (terminal) | |
{ |