Skip to content

Instantly share code, notes, and snippets.

View vaclavsvejcar's full-sized avatar

Vaclav Svejcar vaclavsvejcar

View GitHub Profile
function exists(e) {
return {
[false]: false,
[void 0]: true
}[{
[void 0]: false,
[{}]: false,
[false]: false,
[undefined]: false,
[1 / 0]: false
#! /usr/bin/env python
import sys
import signal
import os
import fcntl
import termios
import struct
block = os.O_NONBLOCK if 'O_NONBLOCK' in dir(os) else (
os.NOBLOCK if 'NONBLOCK' in dir(os) else None)
@phoob
phoob / checkpoint.sh
Last active January 1, 2024 19:55 — forked from bubenkoff/checkpoint.sh
The reason of creating this script is that Endpoint Security VPN installs it's own application firewall kext cpfw.kext which prevents for example PPTP connections from this computer, which is not appropriate if you need subj connection just from time to time.
#!/bin/bash
#
# The reason of creating this script is that Endpoint Security VPN installs it's own application firewall kext cpfw.kext
# which prevents for example PPTP connections from this computer, which is not appropriate if you need subj connection just
# from time to time
#
# Usage: ./checkpoint.sh
#
# The script checks if Enpoint Security VPN is running. If it is, then it shuts it down, if it is not, it fires it up.
# Or, make an Automator action and paste the script.