This script validates Navidrome is running, by downloading a certain song and validating its MD5 checksum.
This file contains 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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"time" | |
) | |
type MyDuration time.Duration |
This file contains 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
[/script/insurgency.inscheckpointgamemode] | |
bBots=True | |
SoloEnemies=50 | |
FriendlyBotQuota=50 | |
AIDifficulty=1.0 | |
bUseVehicleInsertion=True | |
RespawnDPR=0.5 | |
RespawnDelay=1 | |
bUseRandomCounterAttackTypes=True | |
bCounterAttackReinforce=True |
Script interactivo para buscar productos tasados en Todoconsolas (https://www.todoconsolas.com/es/vende). Devuelve los precios de compra.
Requisitos: python >=3.6, requests
This file contains 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
using System.Windows.Forms; | |
using GTA; | |
using GTA.Native; | |
public class KillPlayerOnDemand : Script { | |
public KillPlayerOnDemand() { | |
KeyUp += OnKeyUp; | |
} |
This file contains 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 | |
# Usage: ./ping2csv.sh enp2s0 8.8.8.8 | |
# (will ping 8.8.8.8 using interface enp2s0) | |
# | |
# Will store ping results on a file named "ping-enp2s0-8.8.8.8.csv" with lines as: | |
# 2020-01-01 10:15:30,15.234 | |
set -x | |
INTERFACE="$1" |
This file contains 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 Portainer-Show node name on page title | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
let nodeName = undefined; | |
function setTitle() { | |
const endpointName = document.getElementsByClassName("endpoint-name")[0]; |
This file contains 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 | |
set -ex | |
git add . | |
git commit -m "$(whoami) @ $(date '+%F %T')" | |
git push | |
# if user == "foolano" & time == 20/april/2020 16:20:00 ; then commit msg == "foolano @ 2020-04-20 16:20:00" |
This file contains 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
version: '3' | |
services: | |
portainer: | |
# https://www.portainer.io/installation/ | |
# https://portainer.readthedocs.io/en/stable/deployment.html | |
container_name: portainer | |
image: portainer/portainer | |
ports: | |
- 9000:9000 |
This file contains 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 | |
mosquitto_sub -h localhost -t test -v | while read -r topic payload | |
do | |
echo "Rx @ ${topic}: ${payload}" | |
done |
NewerOlder