Skip to content

Instantly share code, notes, and snippets.

View nikaro's full-sized avatar
🇵🇸

Nicolas Karolak nikaro

🇵🇸
View GitHub Profile
@jbaiter
jbaiter / wg-monitor.py
Last active May 25, 2023 13:29
Structured Logging and Prometheus Exports for Wireguard sessions
#!/usr/bin/env python3
"""Wireguard logging and monitoring tool.
Logs the following events along with the peer state in JSON format to stdout:
- Peer connected (= successfull handshake after period of no handshakes)
- Peer disconnected (= no handshake for longer than 5 minutes)
- Peer roamed (= source IP of the peer changed)
Additionally, the tool exposes a Prometheus-compatible monitoring endpoint
on port 9000 that exports the following metrics:
@AdamIsrael
AdamIsrael / README.md
Last active May 20, 2019 02:44
Installing Juju 2.0 on Centos7

Juju 2.0 on Centos7

Configure epel repository

yum -y install epel-release
yum repolist

Install LXD

@dcode
dcode / GitHub Flavored Asciidoc (GFA).adoc
Last active July 28, 2025 00:29
Demo of some useful tips for using Asciidoc on GitHub

GitHub Flavored Asciidoc (GFA)

### autoscale.tf
data "template_file" "userdata" {
template = "${file("templates/userdata.tpl")}"
vars {
region = "${var.region}"
file_system_id = "${aws_efs_file_system.prod-efs.id}"
}
}
resource "aws_launch_configuration" "mig5-prod-lc" {
@ngerritsen
ngerritsen / README.md
Last active January 18, 2025 14:52 — forked from nickbudi/README.md
CS2 Config

Niels' CS2 Config

To install this config, in Steam, right click Counterstrike 2 > Manage > Browse Local Files then put the autoexec.cfg in game/csgo/cfg.

Mouse settings (Logitech G Pro Wireless)

  • Mouse DPI: 600
  • Mouse Polling Rate: 1000hz
@Remiii
Remiii / README.md
Last active May 26, 2025 00:46
How to delete Vault (AWS Glacier) 🗻

How to delete Vault (AWS Glacier)

This Gist give some tips in order to remove AWS Glacier Vault with AWS CLI (ie. https://aws.amazon.com/en/cli/).

Step 1 / Retrive inventory

$ aws glacier initiate-job --job-parameters '{"Type": "inventory-retrieval"}' --vault-name YOUR_VAULT_NAME --account-id YOUR_ACCOUNT_ID --region YOUR_REGION
@nickbudi
nickbudi / README.md
Last active August 15, 2024 19:54
Budi's Counter-Strike: Global Offensive config

Budi's CS:GO Config

This is my constantly updated CS:GO autoexec config. Changelogs can be found under revisions here

Put autoexec.cfg in ...\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg or take what you want from it and add to your autoexec config!

After the Wild West Simulator 2015 update, video.txt needs to be put in ...\Steam\userdata\<Steam3 ID>\730\local\cfg

Launch Options