Skip to content

Instantly share code, notes, and snippets.

View dmuntean's full-sized avatar

Dmitri Muntean dmuntean

  • Sydney Area, Australia
View GitHub Profile
@lee8oi
lee8oi / go.xml
Last active June 14, 2016 01:14
A modified version of the Go syntax highlighting for Kate/KDevelop designed to mimic Gist. Also adds new highlighting features (like declared functions return values).
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<!--
This file is part of KDE's Kate project
GO.XML supports syntax highlighting for the Go programming language
under Kate. Go is a compiled, garbage-collected, concurrent programming
language developed by Google Inc.
@michaljemala
michaljemala / tls-client.go
Last active September 5, 2025 07:30
SSL Client Authentication Golang sample
package main
import (
"crypto/tls"
"crypto/x509"
"flag"
"io/ioutil"
"log"
"net/http"
)
@rickard-von-essen
rickard-von-essen / remote_vmware_fails_on_link.log
Created March 14, 2014 08:19
vmware-iso: Uploading iso fails if it references a soft link.
@pylemon
pylemon / using_request_post_or_none.py
Created April 7, 2012 16:34
django: using(request.POST or None) hack in views | advanced forms usage
# simple form usage in view
def my_view(request, template_name='home.html'):
# sticks in a POST or renders an empty form
form = MyForm(request.POST or None)
if form.is_valid():
do_something()
return redirect('/')
return render_to_response(template_name, {'form':form})
# form with files
@cslarsen
cslarsen / ipv4.py
Created January 11, 2012 15:16
Two small Python functions to convert IPv4 address to integer and vice-versa
#!/usr/bin/env python
"""Functions to convert IPv4 address to integer and vice-versa.
Written by Christian Stigen Larsen, http://csl.sublevel3.org
Placed in the public domain by the author, 2012-01-11
Example usage:
$ ./ipv4 192.168.0.1 3232235521
192.168.0.1 ==> 3232235521