| marp | true |
|---|---|
| theme | default |
Powered by kroki.io
| # I'll be doing another one for Linux, but this one will give you | |
| # a pop up notification and sound alert (using the built-in sounds for macOS) | |
| # Requires https://github.com/caarlos0/timer to be installed | |
| # Mac setup for pomo | |
| alias work="timer 60m && terminal-notifier -message 'Pomodoro'\ | |
| -title 'Work Timer is up! Take a Break 😊'\ | |
| -appIcon '~/Pictures/pumpkin.png'\ | |
| -sound Crystal" |
| marp | true |
|---|---|
| theme | 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, 0) | |
| POC_LINE_COLOR = color.new(color.red, 0) | |
| VALUE_AREA_LINE_COLOR = color.new(color.yellow, 0) | |
| BUY_COLOR = color.new(color.green, 50) |
| 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.