Skip to content

Instantly share code, notes, and snippets.

View atotto's full-sized avatar
🌏
Working from home

Ato Araki atotto

🌏
Working from home
View GitHub Profile
@aussieade
aussieade / wemo
Created March 4, 2017 11:55
command line wemo switch control
#!/bin/bash
#
# Filename: wemo
# Author: Ade
# Created: Tue Jun 16 22:40:58 2015 (+1000)
# Last-Updated: Sat Mar 4 22:52:51 2017 (+1100)
# Description: command line wemo switch control
# Version: 0.1
#
@michaljemala
michaljemala / tls-client.go
Last active April 10, 2024 01:57
SSL Client Authentication Golang sample
package main
import (
"crypto/tls"
"crypto/x509"
"flag"
"io/ioutil"
"log"
"net/http"
)
@hajimehoshi
hajimehoshi / main.go
Created October 4, 2013 17:30
Show a Cocoa window by Go
package main
// #cgo CFLAGS: -x objective-c
// #cgo LDFLAGS: -framework Cocoa
// #import <Cocoa/Cocoa.h>
//
// void run() {
// @autoreleasepool {
@drewolson
drewolson / reflection.go
Last active November 20, 2023 09:39
Golang Reflection Example
package main
import (
"fmt"
"reflect"
)
type Foo struct {
FirstName string `tag_name:"tag 1"`
LastName string `tag_name:"tag 2"`
@jedy
jedy / go_scp.go
Last active May 31, 2022 07:20
an example of scp in golang
// https://blogs.oracle.com/janp/entry/how_the_scp_protocol_works
package main
import (
"fmt"
"golang.org/x/crypto/ssh"
)
const privateKey = `content of id_rsa`