As configured in my dotfiles.
start new:
tmux
start new with session name:
<html><body><h1>It works!</h1> | |
<p>This is the default web page for this server.</p> | |
<p>The web server software is running but no content has been added, yet.</p> | |
</body></html> |
As configured in my dotfiles.
start new:
tmux
start new with session name:
if [ "$(whoami)" != "username" ]; then | |
echo "Script must be run as user: username" | |
exit 255 | |
fi |
#!/bin/bash | |
# bash generate random alphanumeric string | |
# | |
# bash generate random 32 character alphanumeric string (upper and lowercase) and | |
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
# bash generate random 32 character alphanumeric string (lowercase only) | |
cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1 |
server { | |
listen 127.0.0.1:9000; | |
location / { | |
proxy_pass http://unix:/var/run/docker.sock:/; | |
} | |
} |
{% macro render_pagination(pagination, endpoint) %} | |
<ul class="pagination"> | |
{% if pagination.has_prev %} | |
<li> | |
<a href="{{ url_for(endpoint, page=pagination.prev_num) }}" aria-label="Previous"> | |
<span aria-hidden="true">«</span> | |
</a> | |
</li> |
package main | |
import ( | |
"net/http" | |
"io" | |
) | |
func helloHandler(w http.ResponseWriter, r *http.Request) { | |
io.WriteString(w, "Hello world!") | |
} |
# Shell to use with Make | |
SHELL := /bin/bash | |
# Set important Paths | |
PROJECT := # Set to your project name | |
LOCALPATH := $(CURDIR)/$(PROJECT) | |
PYTHONPATH := $(LOCALPATH)/ | |
PYTHON_BIN := $(VIRTUAL_ENV)/bin | |
# Export targets not associated with files |