Skip to content

Instantly share code, notes, and snippets.

View kamilion's full-sized avatar

Kamilion kamilion

View GitHub Profile
@kamilion
kamilion / dnsupdate.py
Last active December 19, 2015 10:49 — forked from pklaus/dnsupdate.py
A little script I've been fixing up to do DNS updates remotely.
#!/usr/bin/env python2.7
# Matt's DNS management tool
# Manage DNS using DDNS features
#
# See http://planetfoo.org/blog/archive/2012/01/24/a-better-nsupdate/
#
# Usage: dnsupdate -s server -k key -t ttl add _minecraft._tcp.mc.example.com SRV 0 0 25566 mc.example.com.
# -h HELP!
# -s the server
# -k the key
@kamilion
kamilion / 2015-07-15-securing-golang-web-apps.md
Created March 1, 2017 04:53 — forked from dchest/2015-07-15-securing-golang-web-apps.md
Securing Go web applications (archived post from StableLib blog)

Securing Go web applications

There are lots of security-related things to keep in mind when writing a web application, as the Web is a place full of danger: cross-site scripting (XSS), cross-site request forgery (CSRF), clickjacking, brute forcing, spam and so on.

Go gets many things right by default: for example, templates from the standard library make it hard to accidentally introduce XSS vulnerabilities. But what about other attacks? Fortunately, there are a few open source Go packages

@kamilion
kamilion / fix-virt-adapters.ps1
Last active June 13, 2018 23:32 — forked from gschizas/FixVirtualNetworkAdapters.ps1
This powershell script will look for most virtualization and loopback adapters that may be marked "Unidentified" in MS Network and Sharing Center, and makes them disappear.
# see http://msdn2.microsoft.com/en-us/library/bb201634.aspx
#
# *NdisDeviceType
#
# The type of the device. The default value is zero, which indicates a standard
# networking device that connects to a network.
#
# Set *NdisDeviceType to NDIS_DEVICE_TYPE_ENDPOINT (1) if this device is an
# endpoint device and is not a true network interface that connects to a network.
# For example, you must specify NDIS_DEVICE_TYPE_ENDPOINT for devices such as
@kamilion
kamilion / __init__.py
Created December 31, 2018 20:21 — forked from nacx/__init__.py
Pluggable command line tool
import os
# Automatically set the __all__ variable with all
# the available plugins.
plugin_dir = "plugins"
__all__ = []
for filename in os.listdir(plugin_dir):
filename = plugin_dir + "/" + filename