start new:
tmux
start new with session name:
tmux new -s myname
[Unit] | |
Description=Redis In-Memory Data Store | |
After=network.target | |
[Service] | |
User=redis | |
Group=redis | |
ExecStart=/usr/local/bin/redis-server /db/redis.conf | |
ExecStop=/usr/local/bin/redis-cli shutdown | |
Restart=always |
# Step 1 | |
# Open Automator | |
# | |
# Step 2 | |
# File - New - Service | |
# | |
# Set the top dropdown boxes to Service receives selected files or folders in Finder.app | |
# Double click or drag Run Shell Script from the left panel, and enter the following: | |
if [[ -d $1 ]]; then |
#!/usr/bin/env python | |
import os | |
import sys | |
import subprocess | |
#----------------------------------------------------------------------------- | |
def main(): | |
fileNames = sys.argv[1:] |
#!/usr/bin/python | |
#coding:utf-8 | |
import json, toml, hashlib | |
groups = { | |
'default': [], | |
'develop': [] | |
} |
#!/bin/sh | |
echo "What should the Application be called (no spaces allowed e.g. GCal)?" | |
read inputline | |
name="$inputline" | |
echo "What is the url (e.g. https://www.google.com/calendar/render)?" | |
read inputline | |
url="$inputline" |
#!/bin/bash | |
# generate new personal abcd519 ssh key | |
ssh-keygen -o -a 100 -t abcd519 -f ~/.ssh/id_abcd519 -C "@EMAIL_ADDRESS" | |
# generate new host cert authority (host_ca) abcd519 ssh key | |
# used for signing host keys and creating host certs | |
ssh-keygen -t abcd519 -f nelsestu_host_ca -C nelsestu.network | |
eval "$(ssh-agent -s)" |
Directories on host machine:
/data/certbot/letsencrypt
/data/certbot/www
Nginx server in docker container
docker run -d --name nginx \
import ctypes | |
import win32event, winerror | |
class ExitCodeProcess(ctypes.Structure): | |
_fields_ = [ | |
('hProcess', ctypes.c_void_p), # HANDLE | |
('lpExitCode', ctypes.POINTER(ctypes.c_ulong)) # LPDWORD | |
] |