Skip to content

Instantly share code, notes, and snippets.

View WrathOfZombies's full-sized avatar
✌️

Bhargav Krishna WrathOfZombies

✌️
View GitHub Profile
@WrathOfZombies
WrathOfZombies / docker-compose.yml
Created October 29, 2023 23:53 — forked from Webreaper/docker-compose.yml
Sample Docker-compose file which shows how to set up Sonarr, Radarr, Prowlarr, Lidarr, QBittorrent and a VPN container so that all all traffic from the containers is routed through the VPN. Also includes Plex and get_iplayer containers, which are not routed through the VPN.
# Docker compose to set up containers for all services you need:
# VPN
# Sonarr, Radarr, Lidarr, Qbittorrent
# Non-VPN
# Plex, get_iplayer
# Before running docker-compose, you should pre-create all of the following folders.
# Folders for Docker State:
# /volume1/dockerdata. - root where this docker-compose.yml should live
# /volume1/dockerdata/plex - Plex config and DB
# /volume1/dockerdata/sonarr - Sonarr config and DB
@WrathOfZombies
WrathOfZombies / code.gs
Created May 25, 2021 22:04
Google Docs script for Jira linking
const JIRA_URL = "https://outreach-io.atlassian.net/browse/";
// Helper to Format JIRA Tickets
function formatJira() {
// Get the current document that is being edited.
const doc = DocumentApp.getActiveDocument();
if (!doc) {
throw error("Needs an active document.");
}
@WrathOfZombies
WrathOfZombies / Scenario decorators.yaml
Last active January 24, 2018 21:59
Shared with Script Lab
name: Scenario decorators
description: ''
author: WrathOfZombies
host: WEB
api_set: {}
script:
content: |
// https://jsbin.com/qotuzexeho/edit?js,console
// https://gist.github.com/WrathOfZombies/44d8e93468b2ca6382b5e88c4b0d4ef5
// Usage
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@WrathOfZombies
WrathOfZombies / app.js
Created October 4, 2017 00:12
Office Helpers JQuery sample
(function ($) {
$('document').ready(function () {
// Determine if we are running inside of an authentication dialog
// If so then just terminate the running function
if (OfficeHelpers.Authenticator.isAuthDialog()) {
// Adding code here isn't guaranteed to run as we need to close the dialog
// Currently we have no realistic way of determining when the dialog is completely
// closed.
return;
}
name: Dropdown - NG1 - FabricJS
description: ''
author: WrathOfZombies
host: WEB
api_set: {}
script:
content: |-
declare var fabric: any;
(() => {
@WrathOfZombies
WrathOfZombies / Blank snippet - 3.yaml
Created May 10, 2017 22:07
Shared with Script Lab
name: Blank snippet - 3
description: ''
author: WrathOfZombies
host: WEB
api_set: {}
script:
content: |-
$("#run").click(run);
function run() {
@WrathOfZombies
WrathOfZombies / Range coloring.yaml
Created May 9, 2017 02:01
Shared with Script Lab
name: Range coloring
description: ''
author: WrathOfZombies
host: EXCEL
api_set: {}
script:
content: |
$("#run").click(run);
async function run() {
@WrathOfZombies
WrathOfZombies / Working with dates.yaml
Created May 9, 2017 01:21
Setting and getting date values in a range and manipulating them using the Moment JavaScript library with the Moment-MSDate plug-in - Shared with Script Lab
name: Working with dates
description: Setting and getting date values in a range and manipulating them using the Moment JavaScript library with the Moment-MSDate plug-in
author: WrathOfZombies
host: EXCEL
api_set: {}
script:
content: |
declare var moment: any;
$("#setup").click(setup);
@WrathOfZombies
WrathOfZombies / Blank snippet.yaml
Created April 19, 2017 23:55
Shared with Script Lab
name: Blank snippet
description: ''
host: WEB
api_set: {}
script:
content: |
$("#run").click(run);
function run() {
console.log("Your code goes here");