Skip to content

Instantly share code, notes, and snippets.

@taxilian
taxilian / README.md
Last active January 18, 2024 17:42
OPNSense: Scripts to run as a cron job to enable or disable wireguard based on the CARP status

DEPRECATED

This is no longer needed; OPNSense now has full CARP support in the wireguard plugin which works much better than these hacks ever did =] I'll leave it here as an example of a thing you can do and 'cause why delete it?

Installation

  • Install checkWireguard as /usr/local/opnsense/scripts/OPNsense/Wireguard/checkWireguard
  • Install actions_wireguardCarp.conf as /usr/local/opnsense/service/conf/actions.d/actions_wireguardCarp.conf
  • run service configd restart
@jprenken
jprenken / 10-wireguard
Created February 7, 2022 12:17
OPNsense: Start/stop WireGuard based on CARP state change (place in /usr/local/etc/rc.syshook.d/carp/)
#!/usr/local/bin/php
<?php
/*
* Copyright (C) 2004 Scott Ullrich <sullrich@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
@wesleywillians
wesleywillians / main.go
Created August 25, 2020 15:53
Exemplo OpenID Connect /Keycloak
package main
import (
"context"
"encoding/json"
oidc "github.com/coreos/go-oidc"
"golang.org/x/oauth2"
"log"
"net/http"
)
@svet-b
svet-b / bigdashboard_output.pdf
Last active April 28, 2024 09:30
PDF export of Grafana dashboard using puppeteer
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.