Skip to content

Instantly share code, notes, and snippets.

View nlimpid's full-sized avatar

nlimpid nlimpid

  • Hangzhou
  • 03:27 (UTC +08:00)
View GitHub Profile
@iwanbk
iwanbk / gist:2295233
Created April 3, 2012 20:15
TCP Echo Client in Golang
package main
import (
"net"
"os"
)
func main() {
strEcho := "Halo"
servAddr := "localhost:6666"
tcpAddr, err := net.ResolveTCPAddr("tcp", servAddr)
@hzlzh
hzlzh / gist:eb87294712e78d4a96c4
Created June 24, 2014 06:36
Proxifier 走代理程序请求规则
"Alfred 2"; idea;Thunder*; iTerm; Terminal;php; Dropbox; Sparrow; "Sequel Pro"; python; ruby; wget; curl; GitHub; git-remote-https; npm; node; perl;prl*;itunes; sftp; whois;traceroute;stroke;ssh;ALiWangwang;MacUpdate*;git*;Git;fzs*;mail;flickr*;xulr*;imess*;com.apple.im*;Airmail;Adium;Prot*;Tokens;Ali*;Lite*;file*;ssh;ftp;Adobe*;PDApp*;Creative*;Vbox*;xulrunner;Virtual*;PDApp;Bit*;Domainers;fire*;plugin*;Atom*;Tokens;.com.realmacsoftware*;Xcode;java;httpd;
@wolf0403
wolf0403 / my.slate
Last active December 8, 2018 10:44
Slate WM config to replace Spectacle
# I'm getting Amethyst for my dual-monitor work setup
#
# For laptop, I'm replacing good-old Spectacle with Slate
# just for its Grid / Hint and versionable configuration
# to start with.
# https://github.com/jigish/slate
bind 0:alt,cmd relaunch
bind 1:alt,cmd grid 0:6,4
bind 2:alt,cmd hint
@janlay
janlay / README.md
Last active March 20, 2025 13:05
Yet another config for Surge.app

Install

  1. Modify index.txt with your output path and proxy info
  2. Use Text Builder to build configuration for Surge: $ text-builder -index /path/to/index.txt Or run $ sh build-all to build all your index files.
  3. Import configuration via AirDrop/iTunes/Dropbox/iCloud

本人不提供任何保证和技术支持,使用者自负风险。
There are no guarantees, no any support. Use it at your own risk.

@soffchen
soffchen / surge.conf
Last active April 13, 2025 14:52
surge.conf
[General]
skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local, ::ffff:0:0:0:0/1, ::ffff:128:0:0:0/1
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
# dns-server = 119.29.29.29, 223.5.5.5, 114.114.114.114
loglevel = notify
[Proxy]
BJ-All = custom
BJ-HK-Azure = custom
BJ-US-Azure = custom
@bvaughn
bvaughn / index.md
Last active February 25, 2025 15:56
Interaction tracing with React

This API was removed in React 17


Interaction tracing with React

React recently introduced an experimental profiler API. After discussing this API with several teams at Facebook, one common piece of feedback was that the performance information would be more useful if it could be associated with the events that caused the application to render (e.g. button click, XHR response). Tracing these events (or "interactions") would enable more powerful tooling to be built around the timing information, capable of answering questions like "What caused this really slow commit?" or "How long does it typically take for this interaction to update the DOM?".

With version 16.4.3, React added experimental support for this tracing by way of a new NPM package, scheduler. However the public API for this package is not yet finalized and will likely change with upcoming minor releases, so it should be used with caution.

@voluntas
voluntas / duckdb_zadankai_2025_01.md
Last active January 24, 2025 05:39
DuckDB 座談会 (2025-01)

DuckDB 座談会 (2025-01)

  • 日時: 2025-01-24 (金) 15:00-17:00
    • 18:00 まで延長戦あり
  • 申込期限: 2025-01-23 (木) 13:00
  • 主催: @voluntas 時雨堂
  • 会場: 時雨堂 Discord サーバー
  • 配信: 時雨堂 Sora Labo

目的