Skip to content

Instantly share code, notes, and snippets.

@notchi590
notchi590 / server.go
Created April 8, 2017 13:49
extreme simple tcp server written in Golang
package main
import (
"bufio"
"fmt"
"log"
"net"
)
func main() {
@notchi590
notchi590 / client.go
Created April 8, 2017 13:50
extreme simple tcp client written in Golang
package main
import (
"bufio"
"fmt"
"net"
"os"
)
func main() {
@notchi590
notchi590 / ip.go
Created April 12, 2017 01:35
golang de ip test
package main
import (
"fmt"
"net"
"log"
)
func main() {
domain := "www.google.com"
package main
import (
"log"
"time"
"flag"
"github.com/vishvananda/netlink"
"golang.org/x/sys/unix"
)
package main
import (
"fmt"
"log"
"time"
"github.com/vishvananda/netlink"
)
@notchi590
notchi590 / slack-emoji-exporter.js
Last active August 9, 2022 09:39
slack emoji exporter written in Node.js
var request = require('request');
var fs = require('fs');
var url = "https://slack.com/api/emoji.list?pretty=1";
var token = "Bearer <token here>";
request.get({
url : url,
headers : {
"Authorization" : token
}