Skip to content

Instantly share code, notes, and snippets.

gpailler / litra.ps1
Last active November 21, 2023 18:26
# Sources:
# -
# -
param (
[Parameter(Mandatory = $true)]
[ValidateSet('On', 'Off')]
[ValidateRange(1, 100)]
gpailler /
Last active January 31, 2021 13:43
Python script to retrieve OpenVPN clients states and enable/disable a specific connection
# usage:
# returns a Json object with log and selected connection state
# to retrieve all OpenVPN clients states
# [ID] to retrieve specific OpenVPN client state in an additional "connected" Json field
# [ID] [(true|false)] to toggle a OpenVPN client state
import requests
import re
import sys
import json
gpailler /
Created May 5, 2015 23:46

Keybase proof

I hereby claim:

  • I am gpailler on github.
  • I am gpailler ( on keybase.
  • I have a public key whose fingerprint is 1DD6 32D9 F1E7 D2ED 9ACE 6591 2302 6FF3 2AAB 1450

To claim this, I am signing this object: