Load services
fleetctl submit [email protected]
fleetctl submit [email protected]
Start 3
| #!/bin/bash | |
| function download { | |
| EXEC=$1 | |
| GH="https://github.com/jpillora/$EXEC" | |
| VERSION=`curl -sI $GH/releases/latest | grep Location | grep -m 1 -o '\d\+\.\d\+\.\d\+'` | |
| DIR="chisel_$(echo -n $VERSION)_linux_amd64" | |
| URL="$GH/releases/download/$VERSION/$DIR.tar.gz" | |
| curl -sL $URL | tar zxvf - | |
| cp $DIR/$EXEC . | |
| rm -r $DIR |
Load services
fleetctl submit [email protected]
fleetctl submit [email protected]
Start 3
| ## | |
| ## utserver.conf | |
| ## Configuration settings template for μTorrent for Linux. | |
| ## Taken from μTorrent Server manual for version alpha-3.3. | |
| ## ©2013 BitTorrent, Inc. | |
| ## Compiled by Rich.T. | |
| ## | |
| ## | |
| ## Command-line Arguments |
| location / { | |
| ## check for goget AND /namespace/project | |
| if ($args ~* "^go-get=1") { | |
| set $condition goget; | |
| } | |
| if ($uri ~ ^/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)$) { | |
| set $condition "${condition}path"; | |
| } | |
| if ($condition = gogetpath) { | |
| return 200 "<!DOCTYPE html><html><head><meta content='git.axon$uri git ssh://[email protected]:2200$uri.git' name='go-import'></head></html>"; |
| #env | |
| set -x GOPATH $HOME/go | |
| set -x PATH $GOPATH/bin /usr/local/go/bin $PATH | |
| #fish | |
| set fish_greeting "" | |
| function fish_prompt | |
| set_color $fish_color_cwd | |
| echo -n yournamehere |
| package main | |
| import ( | |
| "fmt" | |
| "regexp" | |
| ) | |
| func main() { | |
| str := "my string and {{ foo }} and {{bar}}!" | |
| str = template(str, map[string]string{"foo": "1", "bar": "2"}) |
| #gitlab requires postgres and redis | |
| #all 3 containers store their data in /opt | |
| #the only variables that really need to be set | |
| #are: GITLAB_HOST and GITLAB_ROOT_PASSWORD | |
| mkdir -p /opt/postgresql/data | |
| docker run --name 'postgresql-gitlab' \ | |
| -d \ | |
| -e 'DB_USER=gitlab_user' \ | |
| -e 'DB_PASS=gitlab_pass' \ |
| //comparator string doesn't work, so you need to provide a sort function, | |
| // read more http://mdn.io/sort | |
| var Foo = Parse.Object.extend("Foo"); | |
| var Foos = Parse.Collection.extend("Foos", { | |
| model: Foo | |
| }); | |
| var foos = new Foos(); |
| #!/bin/sh | |
| # Setup Simple IPSec/L2TP VPN server for Ubuntu and Debian | |
| # | |
| # Copyright (C) 2014 Phil Plückthun <[email protected]> | |
| # Based on the work of Lin Song (Copyright 2014) | |
| # Based on the work of Viljo Viitanen (Setup Simple PPTP VPN server for Ubuntu and Debian) | |
| # Based on the work of Thomas Sarlandie (Copyright 2012) | |
| # | |
| # This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 | |
| # Unported License: http://creativecommons.org/licenses/by-sa/3.0/ |
You can just run Timeshot in two ways:
timeshot.sh directly and leave your terminal window open in the foregroundtimeshot.plist file to ensure it always runs in the backgroundWorkingDirectory to where your timeshot.sh istimeshot.plist to ~/Library/LaunchAgents/timeshot.plistlaunchctl load -w timeshot.plistlaunchctl list | grep timeshot