| File | Purpose |
|---|---|
/etc/compose/docker-compose.yml |
Compose file describing what to deploy |
/etc/systemd/system/docker-compose.service |
Service unit to start and manage docker compose |
/etc/systemd/system/docker-compose-reload.service |
Executing unit to trigger reload on docker-compose.service |
/etc/systemd/system/docker-compose-reload.timer |
Timer unit to plan the reloads |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name iMDB IPTorrents Search | |
| // @namespace https://gist.github.com/cassdeckard | |
| // @version 0.0.8 | |
| // @description Adds buttons to search for IMDB titles on IPTorrents | |
| // @icon64 https://cdn-icons-png.flaticon.com/64/15207/15207992.png | |
| // @icon https://cdn-icons-png.flaticon.com/32/15207/15207992.png | |
| // @author Cass Deckard | |
| // @match https://www.imdb.com/title/* | |
| // @match https://www.imdb.com/search/title/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc | |
| curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list | |
| sudo apt-get update | |
| sudo ACCEPT_EULA=y DEBIAN_FRONTEND=noninteractive apt-get install mssql-tools18 unixodbc-dev expect jq -y | |
| cat >> ~/.bash_profile <<HEREDOC_EOF | |
| export PATH="$PATH:/opt/mssql-tools18/bin" | |
| source /home/profileAdmin/.bashrc | |
| HEREDOC_EOF | |
| curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| decode_pinyin = function(pinyin) { | |
| const core = ["a", "e", "i", "o", "u", "ü"] | |
| let arr = pinyin.replace(/<b>|<\/b>|<div>|<\/div>/g, "").split("") | |
| is_core = function(c, c_previous_two = "", c_next = "") { | |
| //pre conditions | |
| if(c == "r" && (c_next == " " || c_next == "") && (c_previous_two != " " && c_previous_two != "")) { | |
| return [true, true] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Shamelessly stolen from https://github.com/neonichu/Core-Audio-Samples/blob/master/Samples/extract-sf2.sh | |
| # | |
| ## Convert a SoundFont + MIDI file to a CAF audio file. | |
| ## | |
| ## needs: | |
| ## fluidsynth, sox (installable via brew) | |
| ## afconvert (part of OS X) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| let data = """ | |
| -1 | |
| 1 | |
| """ | |
| var visitedFrequencies = Set<Int>() | |
| let parsedData = data.components(separatedBy: "\n").map{ Int($0)! } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Setup | |
| var tracklistObj = {}, | |
| currentPlaylist, | |
| checkIntervalTime = 100, | |
| lastTime; | |
| // Process the visible tracks | |
| function getVisibleTracks() { | |
| var playlist = document.querySelectorAll('.song-table tr.song-row'); | |
| for(var i = 0; i < playlist.length ; i++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| termsize() { | |
| echo -ne "\033[8;${1};${2}t" | |
| } | |
| asciicast=$1 | |
| orig_height=0 | |
| orig_width=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| public class BaseClass<H> { | |
| public init?() { | |
| } | |
| } |
NewerOlder