Skip to content

Instantly share code, notes, and snippets.

@flyingdan
flyingdan / grab-from-watched-folder.sh
Created October 2, 2020 01:38
Script to add magnet links to tranmission
#!/usr/bin/env bash
/bin/rm /watch/emptied* # clear flag
tr=$(which transmission-remote) # set path for transmission-remote binary
for t in /watch/*.magnet; do
m=$(cat "$t") # get contents of magnet file
$tr --add $m # add to transmission
/bin/rm "$t" # delete the magnet file
done
@flyingdan
flyingdan / freenas-gitlab-ssl
Created August 12, 2020 22:14
nginx configuration modified to support SSL for the FreeNAS community Gitlab plugin
## Original file is at https://gitlab.com/gitlab-org/gitlab/blob/master/lib/support/nginx/gitlab-ssl
## GitLab
##
## Modified from nginx http version
## Modified from http://blog.phusion.nl/2012/04/21/tutorial-setting-up-gitlab-on-debian-6/
## Modified from https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html
##
## Lines starting with two hashes (##) are comments with information.
## Lines starting with one hash (#) are configuration parameters that can be uncommented.
@flyingdan
flyingdan / dcs-server-autostart.ps1
Created November 15, 2019 05:44
A quick script to start DCS server and other related programs
# DCS Start-up Script
# Add applications to start to this list
# IMPORTANT: "#_" prefix required to set application run order
# Executable = path to the executable file
# StartDir = "Start in" path from desktop/start menu link. Normally the folder where the executable is located
$applications = @{
"1_SRS" = @{"Executable"="C:\Program Files\DCS-SimpleRadio-Standalone\SR-Server.exe";"StartDir"="C:\Program Files\DCS-SimpleRadio-Standalone"};
"2_DCS_updater" = @{"Executable"="C:\DCS World OpenBeta Server\bin\DCS_updater.exe";"StartDir"="C:\DCS World OpenBeta Server"}
}

Keybase proof

I hereby claim:

  • I am flyingdan on github.
  • I am flyingdan (https://keybase.io/flyingdan) on keybase.
  • I have a public key ASBhSTWKnodj5z1F1riNS1Z3H1lgRA1fD-2WZ3NRLnTQ5go

To claim this, I am signing this object: