start new:
tmux
start new with session name:
tmux new -s myname
| #!/usr/bin/env bash | |
| # usage: <command> | pastebin [+|++|+++] | |
| # | |
| # (none): paste expires in 10 minutes | |
| # +: paste expires in 1 hour | |
| # ++: paste expires in 1 day | |
| # +++: paste expires in 1 months | |
| HOST='pastebin.com' |
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "net/http" | |
| "os" | |
| ) | |
| func init() { |
| FROM gliderlabs/alpine:3.3 | |
| COPY myawesomescript /bin/myawesomescript | |
| COPY root /var/spool/cron/crontabs/root | |
| RUN chmod +x /bin/myawesomescript | |
| CMD crond -l 2 -f |
| #!/bin/bash | |
| mkdir -p /opt/bin | |
| curl -L `curl -s https://api.github.com/repos/docker/compose/releases/latest | jq -r '.assets[].browser_download_url | select(contains("Linux") and contains("x86_64"))'` > /opt/bin/docker-compose | |
| chmod +x /opt/bin/docker-compose |
| #sudo vim /Library/LaunchDaemons/io.redis.redis-server.plist | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>io.redis.redis-server</string> | |
| <key>ProgramArguments</key> | |
| <array> |