Skip to content

Instantly share code, notes, and snippets.

View topperblues's full-sized avatar
⚙️
Remote working

Nicola Bonavita topperblues

⚙️
Remote working
  • Italy
View GitHub Profile
@topperblues
topperblues / pfsense-vpn-restart.md
Last active September 18, 2018 15:16
Restart openvpn client from shell pfsense

PfSense restart openvpn client from shell

Client list

cd /var/etc/openvpn ls openvpn

Restart client

pfSsh.php playback svc restart openvpn client 1 pfSsh.php playback svc start openvpn client 2 pfSsh.php playback svc stop openvpn client 3

@topperblues
topperblues / rancher-vpn.md
Last active September 13, 2018 15:27
Commands and configs for kylemanna/docker-openvpn with Rancher and nfs

Rancher stack config

Create Rancher stack

version: '2'
volumes:
  vpn-nfs:
    external: true
    driver: rancher-nfs
services:
@topperblues
topperblues / Slack.class.php
Last active September 23, 2017 20:58
Send simple slack message to an incoming webhook (https://api.slack.com/incoming-webhooks)
<?php
class Slack
{
//Options
private static $url = 'https://hooks.slack.com/services/.../.../...';
private static $channel = '#application_logs';
private static $bot_name = 'application-logs';
private static $authorName = "Application Logs";
private static $authorIcon = "https://application/icon.png";