Skip to content

Instantly share code, notes, and snippets.

View Doslin's full-sized avatar
💢
精进自己

Doslin

💢
精进自己
View GitHub Profile

Problem

The go command line tool needs to be able to fetch dependencies from your private GitLab, but authenticaiton is required.

This assumes your private GitLab is hosted at privategitlab.company.com.

Environment variables

The following environment variables are recommended:

export GO111MODULE=on
export GOPRIVATE=privategitlab.company.com
@Doslin
Doslin / crash-report-by-symbolicatecrash.log
Created May 22, 2024 07:40
iOS Crashlytics: Can not Resolving compiler generated crashes
Hardware Model: iPhone14,6
Process: GPark [84530]
Version: 1.22.0 (10007)
OS Version: iPhone OS 15.4.1 (19E258)
Report Version: 104
Last Exception Backtrace:
3 GPark 0x00000001012db52c closure #2 in CrashTestViewModel.adapt(input:) + 4486444 (CrashTestViewModel.swift:39)
4 GPark 0x00000001012daf50 @objc CrashTestViewController.CrashTestCell.tapAction() + 4484944 (<compiler-generated>:70)
@Doslin
Doslin / omnifocus -> tana.kmmacros
Last active May 24, 2024 13:31
omnifocus -> tana.kmmacros
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>Activate</key>
<string>Normal</string>
<key>CreationDate</key>
<real>713193290.41188896</real>
<key>Macros</key>

REFERENCES FOR LEARNING & USING APPLESCRIPT Modified: 2018/06/19 18:47


NOTES

AppleScript is a rather peculiar scripting language to learn.

@Doslin
Doslin / karabiner_switch_input_source.json
Created October 24, 2023 02:48 — forked from gxfxyz/karabiner_switch_input_source.json
Karabiner-Elements config: switch input source | 输入法切换
{
"title": "Switch input source | 输入法切换",
"rules": [
{
"description": "Tap Command_L (⌘) → Switch input source to English | 短按左 Command (⌘) → 切换到英文输入法",
"manipulators": [
{
"conditions": [
{
"input_sources": [
@Doslin
Doslin / karabiner_capslock_control_tab.json
Created October 24, 2023 02:45 — forked from gxfxyz/karabiner_capslock_control_tab.json
Karabiner-Elements config: CapsLock / Control / Tab
{
"title": "CapsLock / Control / Tab",
"rules": [
{
"description": "Tap CapsLock (⇪) → Escape (⎋); Hold CapsLock (⇪) → Control (⌃)",
"manipulators": [
{
"from": {
"key_code": "caps_lock",
"modifiers": {
@Doslin
Doslin / active-tana.kmmacros
Last active September 1, 2023 09:58
External start tana, quickly search for anything, implemented through Keyboard Maestro.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>Activate</key>
<string>Normal</string>
<key>CreationDate</key>
<real>713193290.41188896</real>
<key>Macros</key>
@Doslin
Doslin / latency.txt
Created July 31, 2023 01:29 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
- This page is a collection of some of the Advanced queries from the [[Datalog]] channel on the [[Logseq/Discord]] server. #datalog
id:: 61db13f4-75e8-4f87-ad60-3ac3479c5fc8
- ### Resources
- [link: The first message on the datalog channel](https://discord.com/channels/725182569297215569/743139225746145311/743139795865174119)
- [link: Logseq docs - Advanced queries](https://docs.logseq.com/#/page/advanced%20queries)
- [link: Logseq datascript schema](https://gist.github.com/tiensonqin/9a40575827f8f63eec54432443ecb929)
- [link: Logseq frontend db model](https://github.com/logseq/logseq/blob/master/src/main/frontend/db/model.cljs)
- [link: How to Graph Your Data - talk by Paula Gearon](https://youtu.be/tbVwmFBnfo4)
- [link: Domain modelling with datalog - talk by Norbert Wojtowicz](https://youtu.be/oo-7mN9WXTw)
- [link: Athens Research ClojureFam](https://github.com/athensresearch/ClojureFam)
@Doslin
Doslin / gist:833cf0c995df24ea78700ae003af741e
Created August 25, 2022 02:38
172.24.144.238:4004 ==> region4.sa.log
This file has been truncated, but you can view the full file.
[74292] 2022/08/25 10:33:05.247800 [INF] Starting nats-server
[74292] 2022/08/25 10:33:05.247934 [INF] Version: 2.9.0-RC.2
[74292] 2022/08/25 10:33:05.247948 [INF] Git: [not set]
[74292] 2022/08/25 10:33:05.247964 [DBG] Go build: go1.19
[74292] 2022/08/25 10:33:05.247975 [INF] Cluster: zhilin_cluster
[74292] 2022/08/25 10:33:05.247992 [INF] Name: 172.24.144.238:4004
[74292] 2022/08/25 10:33:05.248004 [INF] Node: HA4b86L3
[74292] 2022/08/25 10:33:05.248014 [INF] ID: NBR4RAA55Z7VFFSGY56ERKABCA3GMDLVW4OYGE2GSTNDEGGW5FSUCHPY
[74292] 2022/08/25 10:33:05.248041 [INF] Using configuration file: /Users/zhilin/code/GoLand/nats-jet/src/nats-server/conf/.zhilin4/nats.conf
[74292] 2022/08/25 10:33:05.248078 [DBG] Created system account: "$SYS"