Skip to content

Instantly share code, notes, and snippets.

View suyanlong's full-sized avatar
🎯
Focusing

知命 suyanlong

🎯
Focusing
View GitHub Profile
0x565f81adaBd421c525Fb9ee92BE454089A942D9D
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
@suyanlong
suyanlong / p2pclient.go
Created March 19, 2018 13:35 — forked from guileen/p2pclient.go
Go P2P Demo
// golang p2p udp client
package main
import (
"fmt"
"net"
"log"
"encoding/binary"
"encoding/hex"
@suyanlong
suyanlong / load_test_data.sh
Created January 7, 2018 14:44 — forked from clintongormley/load_test_data.sh
Run these commands in your shell to setup the test data for Chapter 5
curl -XPUT 'http://localhost:9200/us/user/1?pretty=1' -d '
{
"email" : "john@smith.com",
"name" : "John Smith",
"username" : "@john"
}
'
curl -XPUT 'http://localhost:9200/gb/user/2?pretty=1' -d '
{
@suyanlong
suyanlong / python_tutorials.rst
Created December 6, 2017 09:44 — forked from reorx/python_tutorials.rst
Python 中英文教程及其他进阶资源

Haskell, Stack and Intellij IDEA IDE setup tutorial how to get started

Upon completion you will have a sane, productive Haskell environment adhering to best practices.

Basics

  • Haskell is a programming language.
  • Stack is tool for Haskell projects. (similar tools for other languages include Maven, Gradle, npm, RubyGems etc)
  • Intellij IDEA IDE is a popular IDE.

Install libtinfo-dev

sudo apt-get install libtinfo-dev