Skip to content

Instantly share code, notes, and snippets.

View jony4's full-sized avatar
🎯
Focusing

牛强 jony4

🎯
Focusing
View GitHub Profile
@jony4
jony4 / rm-goland.sh
Created October 26, 2020 03:06
Mac 下一键移除 goland 便于重装
#!/usr/bin/env bash
rm -fr ~/Library/Preferences/jetbrains*
rm -fr ~/Library/Caches/JetBrains/
rm -fr ~/Library/Application\ Support/JetBrains/
rm -fr ~/Library/Logs/JetBrains/
@jony4
jony4 / vscode-go.json
Last active April 15, 2020 02:45
vscode go 语言 快捷键;打开路径 "Code" -> "Preferences" -> "User Snippets"
{
"fmt.Sprintf": {
"prefix": "fsf",
"body": [
"fmt.Sprintf(${1:\"%v\"}, ${2:var})",
],
"description": "fmt.Sprintf"
},
"iflen": {
"prefix": "ifl",
@jony4
jony4 / hbase.thrift
Created October 21, 2019 02:38
Hbase thrift v2.2.2
https://github.com/apache/hbase/blob/2.2.2RC0/hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift
/*自定义样式,实时生效*/
/* 全局属性
* 页边距 padding:30px;
* 全文字体 font-family:ptima-Regular;
* 英文换行 word-break:break-all;
*/
.layout {
font-family:PingFangSC-Light;
}
@jony4
jony4 / wxmp.css
Last active July 15, 2019 01:41
Typora 自定义微信,用于公众平台主题
@charset "UTF-8";
:root {
--control-text-color: #000000;
--side-bar-bg-color: #f6f8fa
}
#write {
max-width: 860px;
margin: 0 auto;
padding: 20px;
FROM golang:1.12.5-alpine3.9
RUN apk add --no-cache upx
@jony4
jony4 / suid.go
Created May 27, 2019 06:17
SUID is a simple golang library that generates concise, unambiguous, URL-safe UUIDs.You can use it as your Private Password Generator!
package suid
import (
"fmt"
"math/big"
"github.com/google/uuid"
)
const (
@jony4
jony4 / weekly.go
Created May 27, 2019 02:20
export chrome history to markdown file.
package main
import (
"bytes"
"database/sql"
"flag"
"fmt"
"io/ioutil"
"log"
"net/url"
@jony4
jony4 / docker-luajit.Dockerfile
Created May 27, 2019 01:57
docker-luajit.Dockerfile
FROM alpine:3.8
MAINTAINER github.com/jony4 <niuqiang@yet-inc.com>
RUN apk add --no-cache luajit
ENTRYPOINT [ "/usr/bin/env", "luajit" ]
@jony4
jony4 / git-tag-delete.go
Last active May 30, 2019 08:46
git tag batch delete local & remote
package main
import (
"bytes"
"fmt"
"log"
"os/exec"
"strings"
)