Skip to content

Instantly share code, notes, and snippets.

View simonccc's full-sized avatar
🐕

simonc simonccc

🐕
View GitHub Profile
@simonccc
simonccc / aws_glacier_delete_vault.md
Created February 1, 2026 19:17 — forked from veuncent/aws_glacier_delete_vault.md
Delete all archives in an AWS Vault

AWS Glacier: Delete vault

Follow these steps to remove all archives from an AWS vault. After this is finished, you will be able to delete the vault itself through the browser console.

Step 1 / Retrieve inventory

This will create a job that collects required information about the vault.

$ aws glacier initiate-job --job-parameters '{"Type": "inventory-retrieval"}' --account-id YOUR_ACCOUNT_ID --region YOUR_REGION --vault-name YOUR_VAULT_NAME 
@simonccc
simonccc / nexus-to-github-packages.sh
Created January 14, 2026 15:23 — forked from yoranvanoirschot/nexus-to-github-packages.sh
Migrate a Nexus repository to GitHub packages
sourceServer=https://...
sourceRepo=
sourceUser=
sourcePassword=
targetRepositoryUrl=https://maven.pkg.github.com/[owner]/[repository]
targetRepositoryId=
filters=() # Grab only the packages specificed in the filter or leave the variable blank to grab everything
logfile=$sourceRepo-backup.log
outputFile=$sourceRepo-artifacts.txt
@simonccc
simonccc / README.md
Created September 22, 2024 13:20 — forked from kdmukai/README.md
Run Proxmox Backup Server (PBS) on a Proxmox VE host

Run Proxmox Backup Server (PBS) on a Proxmox VE host

Rather than set up even more infrastructure, I run Proxmox Backup Server on the same machine that's running a Proxmox VE host.

Install Proxmox Backup Server

Open a shell on your Proxmox VE host. We'll be installing PBS alongside Proxmox VE at the OS level. We will NOT run PBS inside a container.

@simonccc
simonccc / sysctl-proxmox-tune.conf
Created May 19, 2024 21:22 — forked from sergey-dryabzhinsky/sysctl-proxmox-tune.conf
Most popular speedup sysctl options for Proxmox. Put in /etc/sysctl.d/
###
# Proxmox or other server kernel params cheap tune and secure.
# Try it if you have heavy load on server - network or memory / disk.
# No harm assumed but keep your eyes open.
#
# @updated: 2020-02-06 - more params used, adjust some params values, more comments on params
#
### NETWORK ###
edit the deployment to enable endpoints / features eg
kubectl get deployments.apps -n kube-system traefik
...
- args:
- --global.checknewversion
- --global.sendanonymoususage
- --entryPoints.traefik.address=:9000/tcp
- --entryPoints.web.address=:8000/tcp
@simonccc
simonccc / macos_ssh_noninteractive_path
Created February 7, 2021 17:56
macos_ssh_noninteractive_path
see the problem with ssh remotemachine env
https://discussions.apple.com/thread/3766395
Turns out it's possible with the ~/.ssh/environment approach I tried, but the sshd configuration has to support it, which it doesn't by default. I edited /etc/sshd_config with the following value:
PermitUserEnvironment yes
You can basically do something like:
@simonccc
simonccc / Windows Terminal Preview
Last active February 7, 2021 17:57
my windows terminal preview settings
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{07b52e3e-de2c-5db4-bd2d-ba144ed6c273}",
// You can add more global application settings here.
// To learn more about global settings, visit https://aka.ms/terminal-global-settings
// If enabled, selections are automatically copied to your clipboard.
"copyOnSelect": true,