Skip to content

Instantly share code, notes, and snippets.

View chobijaeyu's full-sized avatar
😺
恩宠与勇气

chobijaeyu

😺
恩宠与勇气
  • SPAからサーバーサイドまで設計・実装します。
  • γ Mic
View GitHub Profile
# awesome vim cheat sheet
here is memo of vim shortcuts
# surround.vim
It's easiest to explain with examples. Press `cs"'` inside
```
"Hello world!"
```
https://stackoverflow.com/a/58210221
0
Here is a very simple way to create an IP certificate that Chrome will trust.
The ssl.conf file...
[ req ]
default_bits = 4096
@chobijaeyu
chobijaeyu / cloudSettings
Last active April 6, 2020 17:54
vscode sync
{"lastUpload":"2020-04-06T17:54:55.744Z","extensionVersion":"v3.4.3"}
@chobijaeyu
chobijaeyu / customizing-vs-code.md
Last active January 30, 2020 05:29 — forked from rzvdaniel/customizing-vs-code.md
Customizing VS Code for Two Fonts.

Customizing VS Code

I followed the instructions in this blog post Multiple Fonts: Alternative to Operator Mono in VSCode, but did not see any changes made to VS Code. After digging a bit, I discovered that all the CSS class names had changed. They’re now e.g. .mtk13, .mtk16 { … }.

Gotchas

  • Ensure it’s a file URL e.g. { "vscode_custom_css.imports": [ "file:///Users/Brian/Desktop/vscode-style.css" ] }
  • If you move the location of your file and update your user settings with the new location, you will need to disable and enable custom CSS cmd+shift+p.
  • Also, anytime you change the style in your custom CSS file, you need to disable, then re-enable the extension.

For reference

____________
< beavis.zen >
------------
\ __------~~-,
\ ,' ,
/ \
/ :
| '
| |
| |
@chobijaeyu
chobijaeyu / file.go
Last active February 23, 2020 15:00
file.go
package ulogger
import (
"bytes"
"encoding/json"
"errors"
"fmt"
"io"
"os"
"path/filepath"
package ulogger
import (
"bufio"
"fmt"
"os"
"strconv"
"testing"
"time"
)
package ulogger
import (
"encoding/json"
"fmt"
"io/ioutil"
"os"
"runtime"
"strings"
"sync"
package ulogger
import (
"fmt"
"testing"
"time"
)
var p = `{
"Console": {
@chobijaeyu
chobijaeyu / setRefreshToken.go
Created June 14, 2021 04:37
setRefreshToken by json
func getpath() string {
file := os.Args[0]
path, err := exec.LookPath(file)
if err == nil {
path = filepath.Dir(path)
}
return path
}
func readToken() {