I hereby claim:
- I am amorist on github.
- I am amorist (https://keybase.io/amorist) on keybase.
- I have a public key ASADO0UC4lM2tZGw2PeGwJfBFZF2uaJSCHbtfmfG1lsx4go
To claim this, I am signing this object:
| // Used in https://jina.ai/tokenizer (Aug. 14th version) | |
| // Define variables for magic numbers | |
| const MAX_HEADING_LENGTH = 6; | |
| const MAX_HEADING_CONTENT_LENGTH = 200; | |
| const MAX_HEADING_UNDERLINE_LENGTH = 200; | |
| const MAX_HTML_HEADING_ATTRIBUTES_LENGTH = 100; | |
| const MAX_LIST_ITEM_LENGTH = 200; | |
| const MAX_NESTED_LIST_ITEMS = 5; | |
| const MAX_LIST_INDENT_SPACES = 7; | |
| const MAX_BLOCKQUOTE_LINE_LENGTH = 200; |
I hereby claim:
To claim this, I am signing this object:
| 1 |
| crontab -e | |
| 0 0 * * * docker exec -it onpremise_web_1 sentry cleanup --days 7 && docker exec -it onpremise_postgres_1 vacuumdb -U postgres -d postgres -v -f --analyze |
| pred='process matches ".*(ocker|vpnkit).*" | |
| || (process in {"taskgated-helper", "launchservicesd", "kernel"} && eventMessage contains[c] "docker")' | |
| /usr/bin/log stream --style syslog --level=debug --color=always --predicate "$pred" |
| package main | |
| import ( | |
| "log" | |
| "net/http" | |
| ) | |
| func main() { | |
| fs := http.FileServer(http.Dir("./")) | |
| http.Handle("/", fs) |
| # WeChat aud file converter to wav files | |
| # Dependencies: | |
| # SILK audio codec decoder (available at https://github.com/gaozehua/SILKCodec) | |
| # ffmpeg | |
| # | |
| # By Gabriel B. Nunes ([email protected]) | |
| # Adapted from another script by Nicodemo Gawronski ([email protected]) | |
| # | |
| import os, argparse, subprocess |
| go get -u -v github.com/mdempsky/gocode | |
| go get -u -v github.com/stamblerre/gocode | |
| go get -u -v github.com/uudashr/gopkgs/cmd/gopkgs | |
| go get -u -v github.com/ramya-rao-a/go-outline | |
| go get -u -v github.com/acroca/go-symbols | |
| go get -u -v golang.org/x/tools/cmd/guru | |
| go get -u -v golang.org/x/tools/cmd/gorename | |
| go get -u -v github.com/fatih/gomodifytags | |
| go get -u -v github.com/haya14busa/goplay/cmd/goplay | |
| go get -u -v github.com/josharian/impl |
| const getWindowPosition = () => { | |
| const windowBounds = window.getBounds() | |
| const trayBounds = tray.getBounds() | |
| // Center window horizontally below the tray icon | |
| const x = Math.round(trayBounds.x + (trayBounds.width / 2) - (windowBounds.width / 2)) | |
| // Position window 4 pixels vertically below the tray icon | |
| const y = Math.round(trayBounds.y + trayBounds.height + 4) |
| note_path='/Volumes/Kindle/documents/My Clippings.txt' | |
| f=open(note_path,'r+') | |
| digest_path='/Users/amor/Documents/' | |
| while True: | |
| onenote=[] | |
| for i in range(0,5): | |
| line=f.readline() | |
| if not line: | |
| exit() | |
| onenote.append(line) |