Skip to content

Instantly share code, notes, and snippets.

View simplelru.go
package main
import (
"fmt"
"log"
"github.com/hashicorp/golang-lru/simplelru"
)
func main() {
View simplelru.go
package main
import (
"github.com/hashicorp/golang-lru/simplelru"
"log"
)
func main() {
log.Println("Hello, playground")
View QuickDBD-export.sql
-- Exported from QuickDBD: https://www.quickdatabasediagrams.com/
-- NOTE! If you have used non-SQL datatypes in your design, you will have to change these here.
-- WX User
CREATE TABLE "User" (
"UserID" SERIAL NOT NULL,
-- User Name
-- WX 昵称(不是群昵称)
"Name" string NOT NULL,
View Subsection.slide
# Title of Talk
Subtitle of document
15:04 2 Jan 2006
Tags: foo, bar, baz
Summary: This is a great document you want to read.
OldURL: former-path-for-this-doc
## Title of Slide or Section (must begin with ##)
@suntong
suntong / .tmux.conf
Last active Jun 17, 2020
~/.tmux.conf
View .tmux.conf
# Principle
# 1. Use screen key binding for common tasks.
# 2.1 Use default tmux key binding as much as possible.
# 2.2 For the rest, use the setting from tmux book written by Brian P. Hogan
# 3. Set escape key (prefix in tmux term) to ^z
# References
# https://www.dayid.org/comp/tm.html
# http://manpages.org/screen http://manpages.org/tmux
# https://danielmiessler.com/study/tmux/
@suntong
suntong / simplest.js
Created May 31, 2020
gopherjs bare bone js code base
View simplest.js
this is simplest.js
View preseed.cfg
# See http://www.virtualbox.org/svn/vbox/trunk/src/VBox/Main/UnattendedTemplates/ubuntu_preseed.cfg
choose-mirror-bin mirror/http/proxy string
d-i apt-setup/use_mirror boolean true
# Packages, Mirrors, Image
d-i base-installer/kernel/override-image string linux-server
d-i base-installer/kernel/override-image string linux-image-amd64
d-i apt-setup/restricted boolean true
d-i apt-setup/universe boolean true
d-i pkgsel/install-language-support boolean false
View settings.json
// This file was initially generated by Windows Terminal 0.11.1191.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
View settings.json
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"alwaysShowTabs": true,
"defaultProfile": "{4c7ca763-cbe4-455b-98a1-9388ccdfb9c7}",
"initialCols": 120,
"initialRows": 30,
"keybindings": [
{
"command": "closeTab",
"keys": ["ctrl+w"]
View MockingBird JMeter Load Test.xml
<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="5.0" jmeter="5.2.1">
<hashTree>
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="MyTestPlan" enabled="true">
<stringProp name="TestPlan.comments"></stringProp>
<boolProp name="TestPlan.functional_mode">false</boolProp>
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
You can’t perform that action at this time.