start new:
tmux
start new with session name:
tmux new -s myname
#!/bin/bash | |
MAX=20 # maximum numbe of loops | |
LOGFILE=~/tmp/start-and-move.log | |
rm -f $LOGFILE | |
log() { |
[Unit] | |
Description=My discord bot service | |
After=network.target | |
[Service] | |
ExecStart=/usr/bin/python3 mybot.py | |
WorkingDirectory=/home/user/bots/mybot | |
StandardOutput=inherit | |
StandardError=inherit | |
Restart=always |
-- [[ Cheatsheet for LUA from http://www.newthinktank.com/2015/06/learn-lua-one-video/]] | |
-- Prints to the screen (Can end with semicolon) | |
print("Hello World") | |
--[[ | |
Multiline comment | |
]] | |
-- Variable names can't start with a number, but can contain letters, numbers |
/* | |
Serve is a very simple static file server in go | |
Usage: | |
-p="8100": port to serve on | |
-d=".": the directory of static files to host | |
Navigating to http://localhost:8100 will display the index.html or directory | |
listing file. | |
*/ | |
package main |