Skip to content

Instantly share code, notes, and snippets.

package main
import (
"bufio"
"fmt"
"log"
"net"
)
// mac: brew install vowpal-wabbit
package main
import (
"fmt"
"net/http"
"strings"
"time"
)
// Server is a HTTP interface
{"cmdline": ["/usr/local/b52","-p","11212","-slave","someip:11212","-loops","-1","-params","sizelru=1024\u0026dbdir=/var/lib/somedir"],"memstats": {"Alloc":1376075872,"TotalAlloc":3064795276440,"Sys":1814112504,"Lookups":0,"Mallocs":10459923703,"Frees":10459790273,"HeapAlloc":1376075872,"HeapSys":1736605696,"HeapIdle":348364800,"HeapInuse":1388240896,"HeapReleased":37822464,"HeapObjects":133430,"StackInuse":8224768,"StackSys":8224768,"MSpanInuse":1040264,"MSpanSys":3211264,"MCacheInuse":55552,"MCacheSys":65536,"BuckHashSys":1722223,"GCSys":58826752,"OtherSys":5456265,"NextGC":1651137302,"LastGC":1573573520429522192,"PauseTotalNs":907269193,"PauseNs":[38559,41868,45578,71952,39489,37591,56100,41930,51938,50999,56712,53932,51550,41156,45520,60234,35935,52250,48101,86082,52070,53983,32345,54403,35896,38617,111902,144605,47452,40141,35223,52007,51257,74409,107788,38392,84990,85595,41260,65704,47984,77121,39105,112070,37919,41408,92024,31839,95383,33065,34490,42069,34207,52734,41615,40328,44085,48865,40548,63130,9
package main
import (
"fmt"
"math/rand"
"os"
"runtime"
"time"
"encoding/json"
package main
import (
"errors"
"flag"
"fmt"
"log"
"net"
"net/textproto"
"os"
package main
import (
"fmt"
"io"
"io/ioutil"
"log"
"strings"
"time"
@recoilme
recoilme / css-glitched-text.markdown
Created September 4, 2018 15:37
CSS Glitched Text
@recoilme
recoilme / checkTelegramAuthorization.go
Created February 14, 2018 07:32
Check Telegram Authorization in golang
// check telegram authorization on golang
//php version: https://gist.github.com/anonymous/6516521b1fb3b464534fbc30ea3573c2#file-check_authorization-php
//usage:
/*
func TestTg(t *testing.T) {
data := "id=1263310&first_name=Vadim&last_name=Kulibaba&username=recoilme&photo_url=https://t.me/i/userpic/320/recoilme.jpg&auth_date=1518535618&hash=1d7069137bf517a63261ee156919a057dca93a416118eebfd0d8f5697442cdce"
token := "YOUR:TOKEN"
if !checkTelegramAuthorization(data, token) {
t.Fail()
}