Skip to content

Instantly share code, notes, and snippets.

View dragonly's full-sized avatar
🎯
Focusing

Yilong Li dragonly

🎯
Focusing
View GitHub Profile
@dragonly
dragonly / profile.py
Created December 30, 2019 02:39
python profile
profile = cProfile.Profile()
profile.enable()
'''
code to profile
'''
profile.disable()
s = io.StringIO()
ps = pstats.Stats(profile, stream=s).sort_stats('tottime').reverse_order()
@dragonly
dragonly / gist:a0ff782d85406cf0ef2f5d74d4f4997c
Created December 4, 2020 05:38 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@dragonly
dragonly / wg0.conf on local server
Last active November 18, 2021 06:03
wireguard setup
[Interface]
PrivateKey = x
Address = 192.168.2.5/24
ListenPort = 21841
[Peer]
PublicKey = x
Endpoint = $public_ip:51820
AllowedIPs = 192.168.2.0/24
@dragonly
dragonly / Database.md
Created February 17, 2022 06:31
Papers To Read

B-Tree

  • C. Mohan, Don Handerle. ARIES: A Transaction Recovery Method Supporting Fine-Granularity Locking and Partial Rollbacks Using Write-Ahead Logging.
  • C. Mohan, Frank Levine. ARIES/lM: An Efficient and High Concurrency index Management Method Using Write-Ahead Logging.
  • Goetz Graefe. A Survey of B-Tree Logging and Recovery Techniques.
  • Goetz Graefe. A Survey of B-Tree Locking Techniques.
@dragonly
dragonly / gpg_key_backup.md
Created March 11, 2022 02:39 — forked from ariamckinley/gpg_key_backup.md
Backup/Restore GPG key

The following is the procedure I use on UNIX systems:

First, export all public certificates into a public keyring:

$ gpg --armor --export > pub.asc

Second, export all secret certificates into a secret keyring: