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
services: | |
windows: | |
image: dockurr/windows | |
container_name: windows | |
restart: no | |
environment: | |
VERSION: "tiny11" | |
RAM_SIZE: "24G" | |
CPU_CORES: "8" | |
DISK_SIZE: "100G" |
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
#!/usr/bin/env bash | |
DOMAIN=${1:-win11} | |
BACKUP_CONFIG=/home/fergalm/dotfiles/virsh-win11-backup.xml | |
BACKUP_PATH=/mnt/storage/backups/vms/libvirt/$DOMAIN | |
XML_BACKUP=$BACKUP_PATH/$DOMAIN.xml | |
BACKUP_IMAGE=$BACKUP_PATH/$DOMAIN.disk | |
OLD_BACKUP_IMAGE=$BACKUP_PATH/$DOMAIN.disk.$(date "+%Y.%m.%d-%H.%M.%S") | |
echo BACKUP_IMAGE $BACKUP_IMAGE |
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
from selenium import webdriver | |
import time | |
from bs4 import BeautifulSoup | |
options = webdriver.ChromeOptions() | |
options.add_argument('--incognito') | |
options.add_argument('--headless') | |
driver = webdriver.Chrome(options=options) |
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
#!/usr/bin/env | |
curl -SL https://github.com/prometheus/node_exporter/releases/download/v1.2.2/node_exporter-1.2.2.linux-armv7.tar.gz >/tmp/node_exporter.tar.gz && | |
sudo tar -xvf /tmp/node_exporter.tar.gz -C /usr/local/bin/ --strip-components=1 | |
echo '[Unit] | |
Description=NodeExporter | |
[Service] | |
TimeoutStartSec=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
#!/usr/bin/env bash | |
if [ ! -f "$1" ]; then | |
echo "No such file" | |
¦ exit 1 | |
fi | |
suf="${1##*.}" | |
if [ "$suf" != "mp4" ] && [ "$suf" != "mkv" ] && [ "$suf" != "avi" ] && [ "$suf" != "mov" ] && [ "$suf" != "gif" ] && [ "$suf" != "flv" ]; then | |
echo "Input needs to be a video" | |
exit 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
<audio-player audio-url="media/iseeyou.mp3" | |
pcm-url="media/iseeyou.json" | |
title="I See You" | |
sub-title="Mr. Ed" | |
image-url="media/iseeyou.jpeg"> | |
</audio-player> |
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
{ | |
"FormattingOptions": { | |
"NewLine": "\n", | |
"UseTabs": false, | |
"TabSize": 4, | |
"IndentationSize": 4, | |
"SpacingAfterMethodDeclarationName": false, | |
"SpaceWithinMethodDeclarationParenthesis": false, | |
"SpaceBetweenEmptyMethodDeclarationParentheses": false, | |
"SpaceAfterMethodCallName": false, |
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
Run | |
./certbot-auto certonly --standalone --agree-tos --redirect --duplicate --text --email [email protected] \ | |
-d sonarr.bitchmints.com --server https://acme-v01.api.letsencrypt.org/directory | |
nginx config | |
server { | |
listen 443; | |
server_name sonarr.bitchmints.com; | |
ssl on; | |
ssl_certificate /etc/letsencrypt/live/sonarr.bitchmints.com/fullchain.pem; |
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; | |
using System.Dynamic; | |
using Newtonsoft.Json; | |
using NYoutubeDL; | |
using static NYoutubeDL.Helpers.Enums; | |
namespace NetCoreYTDl { | |
class Program { | |
const string YT_URL = "https://www.youtube.com/watch?v=rzfmZC3kg3M"; |
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
import * as ng from '@angular/core'; | |
import {PusherService} from '../../services/pusher.service' | |
@ng.Component({ | |
selector: 'home', | |
template: require('./home.html') | |
}) | |
export class Home { | |
constructor(private pusher: PusherService) { | |
console.log('Home:constructor'); |