Skip to content

Instantly share code, notes, and snippets.

View slifer2015's full-sized avatar

Ahmad Dara slifer2015

View GitHub Profile
@slifer2015
slifer2015 / tree.go
Created February 4, 2019 11:12
tree
package main
import (
"encoding/json"
"fmt"
)
var a = `{
"query":{
"bool":{
@slifer2015
slifer2015 / call.go
Last active December 12, 2018 09:50
api function handler
package api
import (
"bytes"
"context"
"encoding/json"
"errors"
"io/ioutil"
"net/http"
"strings"
@slifer2015
slifer2015 / cbc.go
Last active October 30, 2018 12:40
AES 256 CBC 32byte block size IV support golang implementation
package encryption
import (
"crypto/cipher"
"runtime"
"unsafe"
)
func dup(p []byte) []byte {
q := make([]byte, len(p))
package main
import (
"fmt"
"sync"
"time"
"errors"
"math/rand"