| marp | theme |
|---|---|
true |
default |
Powered by kroki.io
| marp | theme |
|---|---|
true |
default |
Powered by kroki.io
by Danny Quah, Jan 2022
This gist describes using Obsidian on iPad while syncing to other Obsidian platforms. The procedure uses git in iSH on iOS, and thus differs from using either Obsidian Sync or Working Copy as described in Obsidian/iOS+app.
(To be clear, Obsidian is one of my favourite Apps, and I'm all for supporting the team financially. Moreover, everything I've heard suggests the paid Obsidian Sync is excellent. However, I don't want my syncing processes to proliferate --- each service using a different client sync flow --- so I keep my systems minimal: just syncthing and git. After writing this I found an Obsidian Forum writeup which uses the same tools I do to achieve the same goal, but you'll want to read that with its accumulated contributions dispersed across the comments. So at least I was thinking
| // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ | |
| // © Fr3d0C0rl30n3 | |
| //@version=6 | |
| indicator("Fr3d0's Volume Profile Visible Range", "VPVR", overlay=true, max_boxes_count=500) | |
| LINE_COLOR = color.new(color.black, 15) | |
| POC_LINE_COLOR = color.new(color.red, 30) | |
| VALUE_AREA_LINE_COLOR = color.new(color.yellow, 30) | |
| BORDER_COLOR = color.new(color.black, 70) |
| from tqdm import tqdm | |
| from time import sleep | |
| import psutil | |
| with tqdm(total=100, desc='cpu%', position=1) as cpubar, tqdm(total=100, desc='ram%', position=0) as rambar: | |
| while True: | |
| rambar.n=psutil.virtual_memory().percent | |
| cpubar.n=psutil.cpu_percent() | |
| rambar.refresh() | |
| cpubar.refresh() |
| import streamlit as st | |
| import io | |
| import contextlib | |
| import sys | |
| import re | |
| import threading | |
| class _Redirect: | |
| class IOStuff(io.StringIO): |
| !commands edit -cd=5 !亞服 | |
| $(eval | |
| let api = $(urlfetch json https://playhearthstone.com/en-us/api/community/leaderboardsData?region=AP&leaderboardId=BG&seasonId=3); | |
| let r = api.leaderboard.rows; | |
| let q = "$(1)"; | |
| let rest = q.substring(1, q.length); | |
| let f = q[0] === '#' ? r[parseInt(rest) - 1] : r.find(u => u.accountid.toUpperCase() === q.toUpperCase()); | |
| f === undefined ? `[$(user)]: ${q} 不在亞服排行榜,沒料` : `[$(user)]: ${f.accountid} 目前亞服 #${f.rank},${f.rating}分`; | |
| ) |
| from flask import Flask | |
| from threading import Thread | |
| app = Flask('') | |
| @app.route('/') | |
| def home(): | |
| return "Hello. I am alive!" | |
| def run(): |
So, it has been an interesting journey, but time to remove git-lfs. Here follows a summary of the approach I used to safely remove git-lfs,
git lfs uninstallgit lfs ls-filesgit rm --cached for each file
Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.
If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.
Pip is a package manager of python. You can download Python libraries from some Python repositories like PyPI. You can also download libraries from a git repository. This is gonna be the issue to be explained in this article.
I don't like to memorize things all the time. So, I guess, I couldn't be working without internet :). Whenever I need to install some python libraries from a git repositories, I see a lot of way to do it. It is really confusing. This should be the reason why I can't memorize it. I can see how a very simple requirement is handled with to many confusing way. There shouldn't be to many way. Some of them is not working neither. At last, I decided to blog it.
As you may know, you can use two protocols which are http and ssh to do something on git repositories. Using protocol ssh instead of http may provide some ease of use. Because of nature of ssh, you can do something with your primary/public keys. So, you don't have to input your credentials all the time. But I'll be