Skip to content

Instantly share code, notes, and snippets.

@alexellis
alexellis / k8s-pi.md
Last active Jul 10, 2020
K8s on Raspbian
View k8s-pi.md
@xjdrew
xjdrew / client.go
Last active Jul 14, 2020
golang tls client and server, require and verify certificate in double direction
View client.go
package main
import (
"crypto/tls"
"crypto/x509"
"flag"
"io"
"io/ioutil"
"log"
"os"
@eduncan911
eduncan911 / go-build-all
Last active Jun 17, 2020
Go Cross-Compile Script
View go-build-all
#!/bin/bash
#
# GoLang cross-compile snippet for Go 1.6+ based loosely on Dave Chaney's cross-compile script:
# http://dave.cheney.net/2012/09/08/an-introduction-to-cross-compilation-with-go
#
# To use:
#
# $ cd ~/path-to/my-awesome-project
# $ go-build-all
#
@philBrown
philBrown / ImageManipulator.php
Created Mar 22, 2011
Image manipulation class, provides cropping, resampling and canvas resize
View ImageManipulator.php
<?php
class ImageManipulator
{
/**
* @var int
*/
protected $width;
/**
* @var int
You can’t perform that action at this time.