Skip to content

Instantly share code, notes, and snippets.

View SyFizz's full-sized avatar

Grégory BERTINI SyFizz

View GitHub Profile
@SyFizz
SyFizz / script.js
Created April 10, 2021 09:32
Replace URL for psbdmp
// ==UserScript==
// @name URLReplacer
// @namespace Example
// @description Replaces URL from psbdmp to go to pastebin.
// @include https://psbdmp.ws/dump/*
// ==/UserScript==
var links = document.getElementsByTagName("a"); //array
var regex = /^(http:\/\/)([^\.]+)(\.example\.to\/images\/thumb/\)(.+)$/i;
for (var i=0,imax=links.length; i<imax; i++) {
@SyFizz
SyFizz / create-cloud-template.sh
Last active July 23, 2021 08:50 — forked from chriswayg/create-cloud-template.sh
This script will download a cloud image of many Linux distros and create a Proxmox 6 KVM template from it.
#!/bin/bash
set -o errexit
clear
printf "\n*** This script will download a cloud image and create a Proxmox VM template from it. ***\n\n"
### HOW TO USE
### Pre-req:
### - run on a Proxmox 6 server
### - a dhcp server should be active on vmbr1