Skip to content

Instantly share code, notes, and snippets.

View d3v-null's full-sized avatar

Dev Null d3v-null

View GitHub Profile
@d3v-null
d3v-null / pprint_color.py
Last active December 7, 2017 23:01 — forked from EdwardBetts/pprint_color.py
My "one-liner" macro for pformatting an object with colour. I'd suggest using a snippet manager which supports cursor insertion (like Dash) to avoid having to scroll backwards to replace the @cursor placeholder. I have this mapped to ;cpp
from pygments import highlight; from pygments.lexers import PythonLexer; from pygments.formatters import Terminal256Formatter; from pprint import pformat; print(highlight(pformat( @cursor ), PythonLexer(), Terminal256Formatter()))
@d3v-null
d3v-null / 0_reuse_code.js
Last active June 1, 2017 01:03
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@d3v-null
d3v-null / cloak.ovpn
Last active June 28, 2018 00:00
This is an OpenVPN settings file for Cloak. Forked for compatibility the OpenVPN client in ASUS RT routers
client
dev tun
comp-lzo
auth-user-pass
# remote-cert-tls server
server-poll-timeout 10
auth-nocache
auth-retry interact
verb 1
remote openvpn.getcloakvpn.com 443 udp