Skip to content

Instantly share code, notes, and snippets.

View infernalsirius's full-sized avatar

Patrick Meunier infernalsirius

View GitHub Profile
@infernalsirius
infernalsirius / tentacle.sh
Last active August 29, 2021 13:36
[Unraid] User scripts #bash
#! /bin/bash
# download package
wget https://download.octopusdeploy.com/linux-tentacle/tentacle-6.1.736-linux_x64.tar.gz -O tentacle-linux_x64.tar.gz
mkdir /opt/octopus
tar xvzf tentacle-linux_x64.tar.gz -C /opt/octopus
@infernalsirius
infernalsirius / appstore.fish
Created August 27, 2021 03:10
[macOS Command line] Open App Store cache folder #macOS #fish
open $TMPDIR../C/com.apple.appstore/
@infernalsirius
infernalsirius / cheat.sh
Last active June 7, 2021 05:35
[setup tools] CLI tools #Linux #MacOS
# https://github.com/chubin/cheat.sh
curl https://cht.sh/:cht.sh | sudo tee /usr/local/bin/cht.sh
chmod +x /usr/local/bin/cht.sh
@infernalsirius
infernalsirius / adguard.md
Last active April 16, 2023 05:43
[Edgerouter] Cheatsheet #edgeOS #shell

Running as a service

The next step would be to register AdGuard Home as a system service on Windows, Linux/(systemd | Upstart | SysV), or OSX/Launchd.

Run sudo ./AdGuardHome -s install to install AdGuard Home as a system service.

On Windows run cmd.exe with admin privileges and run AdGuardHome.exe -s install to register a windows service.

Here are the other commands you might need to control the service.

@infernalsirius
infernalsirius / [Stop all] Stop all runnin containers.
Last active August 15, 2021 07:20
[Docker Engine commands ]A few commands to manage Docker Engine #docker
# TODO code a fish function
docker stop (docker ps -a -q)
@infernalsirius
infernalsirius / arguments.sh
Last active February 24, 2021 06:59
[Jira java agent]attach java agent to OSGI #atlassian
JAVA_OPTS="$JAVA_OPTS -javaagent:{full_path_to_agent_directory}/apminsight-javaagent.jar -Datlassian.org.osgi.framework.bootdelegation=com.manageengine.*,sun.*,org.apache.xerces,org.apache.xerces.*"
@infernalsirius
infernalsirius / dialog.js
Last active February 24, 2021 07:05 — forked from jechlin/.js
[Dialog and REST endpoint]#atlassian
(function ($) {
$(function () {
AJS.dialog2.on("show", function (e) {
var targetId = e.target.id;
if (targetId == "my-own-dialog") {
var someDialog = AJS.dialog2(e.target);
$(e.target).find("#dialog-close-button").click(function (e) {
e.preventDefault();
someDialog.hide();
someDialog.remove();
package examples.docs
import com.atlassian.greenhopper.service.rapid.view.RapidViewService
import com.atlassian.greenhopper.service.sprint.SprintIssueService
import com.atlassian.greenhopper.service.sprint.SprintManager
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.Issue
import com.onresolve.scriptrunner.runner.customisers.JiraAgileBean
import com.onresolve.scriptrunner.runner.customisers.WithPlugin
@infernalsirius
infernalsirius / install.ps1
Last active February 24, 2021 06:54
[Scoop installation script]
#Installs in seconds
#Make sure PowerShell 5 (or later, include PowerShell Core) and .NET Framework 4.5 (or later) are installed. Then run:
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
# or shorter
iwr -useb get.scoop.sh | iex
#Note: if you get an error you might need to change the execution policy (i.e. enable Powershell) with
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
@infernalsirius
infernalsirius / cfTrimSpace.groovy
Last active February 24, 2021 07:02 — forked from revuel/jiracustomfieldoptstrim.groovy
[Jira ScriptRunner] Remove extra white spaces in custom field's options. #atlassian
import com.atlassian.jira.component.ComponentAccessor;
import com.atlassian.jira.issue.CustomFieldManager;
import com.atlassian.jira.ComponentManager;
import com.atlassian.jira.issue.fields.CustomField;
import com.atlassian.jira.issue.IssueManager;
import com.atlassian.jira.issue.Issue;
import com.atlassian.jira.issue.customfields.manager.OptionsManager;
import com.atlassian.jira.issue.fields.config.FieldConfig;
import com.atlassian.jira.issue.context.IssueContextImpl;
import com.atlassian.jira.issue.customfields.manager.OptionsManager;