Skip to content

Instantly share code, notes, and snippets.

View cpoliver's full-sized avatar

Charles P Oliver cpoliver

View GitHub Profile
@cpoliver
cpoliver / vpn-toggle
Last active February 8, 2018 08:22 — forked from mkoura/vpn-toggle
script for starting/stopping vpn using Network Manager on Linux - can be used via keyboard shortcut
#!/bin/sh
# list of configured VPNs: `nmcli con show | grep vpn`
uuid="049b2d60-b816-4640-b33e-659920598c19"
active_uuid=''
for r in $(nmcli -t -f UUID,TYPE con show --active); do
ctype="${r##*:}"
if [ "$ctype" = 'vpn' ]; then
@cpoliver
cpoliver / .eslintrc
Created November 3, 2016 17:35 — forked from cletusw/.eslintrc
ESLint Reset - A starter .eslintrc file that resets all rules to off and includes a description of what each rule does. From here, enable the rules that you care about by changing the 0 to a 1 or 2. 1 means warning (will not affect exit code) and 2 means error (will affect exit code).
{
// http://eslint.org/docs/rules/
"ecmaFeatures": {
"binaryLiterals": false, // enable binary literals
"blockBindings": false, // enable let and const (aka block bindings)
"defaultParams": false, // enable default function parameters
"forOf": false, // enable for-of loops
"generators": false, // enable generators
"objectLiteralComputedProperties": false, // enable computed object literal property names