Skip to content

Instantly share code, notes, and snippets.

View bGZo's full-sized avatar
🚀
Focusing

菜就多練練 bGZo

🚀
Focusing
View GitHub Profile
@bGZo
bGZo / !banner.txt
Last active October 20, 2023 16:40
maven settings.xml
__ __ ____ _ _ _ _
| \/ | __ ___ _____ _ __ / ___| ___| |_| |_(_)_ __ __ _ ___ __ ___ __ ___ | |
| |\/| |/ _` \ \ / / _ \ '_ \ \___ \ / _ \ __| __| | '_ \ / _` / __| \ \/ / '_ ` _ \| |
| | | | (_| |\ V / __/ | | | ___) | __/ |_| |_| | | | | (_| \__ \_ > <| | | | | | |
|_| |_|\__,_| \_/ \___|_| |_| |____/ \___|\__|\__|_|_| |_|\__, |___(_)_/\_\_| |_| |_|_|
|___/
@bGZo
bGZo / !_logseq_custom_css_banner.txt
Last active June 18, 2024 13:33
My logseq custom.css (solarized theme & logseq-plugin-ol & bullet_threading & awesome-props & awesome-content & Code Mirror & Tag)
_ ____ _
| | ___ __ _ ___ ___ __ _ / ___| _ ___| |_ ___ _ __ ___ ___ ___ ___
| | / _ \ / _` / __|/ _ \/ _` | | | | | | / __| __/ _ \| '_ ` _ \ / __/ __/ __|
| |__| (_) | (_| \__ \ __/ (_| | | |__| |_| \__ \ || (_) | | | | | || (__\__ \__ \
|_____\___/ \__, |___/\___|\__, | \____\__,_|___/\__\___/|_| |_| |_(_)___|___/___/
|___/ |_|
@bGZo
bGZo / logseq-plugin-ol.css
Created October 2, 2023 13:02
Ordered lists, flat or nested, multiple formats ordered lists; Fetch from https://github.com/sethyuan/logseq-plugin-ol/blob/master/src/index.js#L9-L226 ; Add `@Import` in custom.css on Logseq;
a[data-ref|='.ol'],
a[data-ref|='.ul'] {
display: none !important;
}
.cp__all_pages_table :is(a[data-ref|='.ol'], a[data-ref|='.ul']) {
display: unset !important;
}
.ls-block[data-refs-self*='".ol'] .block-children {
counter-reset: kef-ol;
@bGZo
bGZo / get_calendar_within_year_of_owspace.py
Created July 4, 2023 16:29
Download Owspace Calendar
import threading
import datetime
import argparse
import time
import requests
import re
import os
headers = {'Referer': 'http://www.owspace.com/'}
@bGZo
bGZo / Click me and start windows work flow.bat
Last active June 22, 2023 04:09
Run with PowerShell 7. Update proxies depends on the scripts.
@ECHO OFF
SET MYPATH=%cd%
SET MYSCRIPT=%MYPATH%\start_here.ps1
pwsh-preview %MYSCRIPT%
pause
@bGZo
bGZo / !rss.feed
Last active May 31, 2024 03:58
All for RSS
-----------------bGZo-------------------
____ ____ ____ _____ _
| _ \/ ___/ ___| | ___|__ ___ __| |
| |_) \___ \___ \ | |_ / _ \/ _ \/ _` |
| _ < ___) |__) | | _| __/ __/ (_| |
|_| \_\____/____/ |_| \___|\___|\__,_|
-----------------bGZo-------------------
import datetime
def weeks_of_year(year):
# NOTE: https://stackoverflow.com/questions/29262859
last_week = datetime.date(year, 12, 28)
return last_week.isocalendar()[1]
def weeks_of_date(date):
year, week_num, day_of_week = date.isocalendar()
return week_num
@bGZo
bGZo / get_twitter_mastodon_content_with_logseq_format.py
Last active June 10, 2023 17:07
Get the content of Twitter/Mastodon with logseq format. The former service by tweetpik.com. The latter service by official API.
import json
import requests
import re
import argparse
from argparse import RawTextHelpFormatter
from datetime import datetime
from markdownify import markdownify as md
@bGZo
bGZo / custom.css
Last active May 31, 2023 07:11
Logseq solarized theme | Logseq 护眼色主题
/* Color begin via: [logseq/custom.css](https://gist.github.com/madawei2699/61cf9601a443df21a9fabb282723936c)
*/
:root{
--base03: #002b36;
--base02: #073642;
--base01: #586e75;
--base00: #657b83;
--base0: #839496;
--base1: #93a1a1;
--base2: #eee8d5;
var cover = document.getElementsByClassName("subjectCover");
for(var i = 0; i < cover.length; i++){
var your_gh = '';
var delete_href = cover[i].href+'/remove?gh=' + your_gh;
fetch(delete_href);
}