Skip to content

Instantly share code, notes, and snippets.

View ilovelili's full-sized avatar
🏠
Working from home

min ju ilovelili

🏠
Working from home
View GitHub Profile
@ilovelili
ilovelili / Castle.xml
Created September 20, 2016 17:35 — forked from bemasher/Castle.xml
Example of parsing xml in golang.
<?xml version="1.0" encoding="UTF-8" ?>
<Data>
<Series>
<id>83462</id>
<Actors>|Nathan Fillion|Stana Katic|Molly C. Quinn|Jon Huertas|Seamus Dever|Tamala Jones|Susan Sullivan|Ruben Santiago-Hudson|Monet Mazur|</Actors>
<Airs_DayOfWeek>Monday</Airs_DayOfWeek>
<Airs_Time>10:00 PM</Airs_Time>
<ContentRating>TV-PG</ContentRating>
<FirstAired>2009-03-09</FirstAired>
<Genre>|Drama|</Genre>
@ilovelili
ilovelili / multipart_upload.go
Created February 15, 2017 04:18 — forked from mattetti/multipart_upload.go
Example of doing a multipart upload in Go (golang)
package main
import (
"bytes"
"fmt"
"io"
"log"
"mime/multipart"
"net/http"
"os"
0xed542134cB3d4e2Fa03Dcf79FEAc6E156aa476A9
@ilovelili
ilovelili / main.go
Created May 18, 2018 10:25 — forked from mickelsonm/main.go
Golang AES Encryption/Decryption example. See running example: http://play.golang.org/p/5G-IUlYqQV
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"encoding/base64"
"errors"
"io"
"log"
eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Ik1EWTNRVFV3TlRJek56VXhSVGcyUWpFM1JqWTFNRFF4UkRnMFJFWXhSRVJETmpNMlFqazVRdyJ9.eyJuaWNrbmFtZSI6Imlsb3ZlbGlsaSIsIm5hbWUiOiJtaW4ganUiLCJwaWN0dXJlIjoiaHR0cHM6Ly9hdmF0YXJzMi5naXRodWJ1c2VyY29udGVudC5jb20vdS8xOTU2NjEyP3Y9NCIsInVwZGF0ZWRfYXQiOiIyMDE4LTExLTA1VDAzOjE1OjA1LjM1MFoiLCJlbWFpbCI6InJvdXRlNjY2QGxpdmUuY24iLCJpc3MiOiJodHRwczovL21pbi5hdXRoMC5jb20vIiwic3ViIjoiZ2l0aHVifDE5NTY2MTIiLCJhdWQiOiJndG9DSnhRNHNCWHFUbkw1ZWRRb2FpekhvVXpjdWticiIsImlhdCI6MTU0MTM4NzcxMCwiZXhwIjoxNTQ0OTg3NzEwfQ.bQvDORclqIz0X274Bq6WTnGZHhoV8cp_h5CIPKqBkXy6UlO0-LPcRVsaz64obN7KRKGiLEfyarZyuFZxUMMQu9oPRh2t8i0DbAwrdFCfitKVQPiWHfR9gUqPM1V2Ubqj_arGM2cah3ORP2FX77qoqTBEKijrUVe5rntpRlK_gL65woAKvyfbnYLBpayD4ypBD3sa__YoNwsOFOiW8Tmke44d04VRL1gJgBpfbXN0V0eEmZ7j0KLkkX6Ohd-0RCqtQkUMdHvccpQxlL-9c1JvPDogbcAOHCPy9aarg7qYIDE4eTz4vVQJYs_x0cDwyRVP-1oO3uNm4PZWZSoaqKIsrw
package main
import (
"errors"
"fmt"
)
func main() {
fmt.Println(`[1,2,3] -> [1,2,3]`)
input := []interface{}{1, 2, 3}

Keybase proof

I hereby claim:

  • I am ilovelili on github.
  • I am route666 (https://keybase.io/route666) on keybase.
  • I have a public key ASAdpGtsw5BI_uG5RtmPFqHzLnklaZmxZBqoYaytcGuxigo

To claim this, I am signing this object:

@ilovelili
ilovelili / KubernetesBitcoinConfigs.md
Created June 22, 2019 05:36 — forked from zquestz/KubernetesBitcoinConfigs.md
GCE Kubernetes Bitcoin Configs

Bitcoin Kubernetes Configs

The following guide will walk you through creating a bitcoin full node within GKE (Google Container Engine).

By default Bitcoin ABC is used, however this can be swapped for any other node quite easily.

If you wish to run another version of bitcoind, just change the image reference in bitcoin-deployment.yml. There are tons of images available on the Docker Hub. Better yet, build your own. =)

The source for the included image is available at: https://github.com/zquestz/docker-bitcoin

@ilovelili
ilovelili / lisence.md
Last active July 20, 2019 05:57
license comparison

License comparison

License Latest version Linking Distribution Modification Patent grant Private use Sublicensing TM grant
Apache 2.0 Permissive Permissive Permissive Yes Yes Permissive No
GPL 3.0 GPLv3 compatible only Copylefted Copylefted Yes Yes Copylefted Yes
BSD 3.0 Permissive Permissive Permissive No Yes Permissive No
MIT NA Permissive Permissive Permissive No Yes Permissive No
  • Linking - linking of the licensed code with code licensed under a different license (e.g. when the code is provided as a library)
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach",
"type": "go",
"request": "attach",
"mode": "local",
"port": 2345,
"host": "127.0.0.1",