Skip to content

Instantly share code, notes, and snippets.

View masakichi's full-sized avatar
🈂️

Yuanji masakichi

🈂️
View GitHub Profile
const vault = "knowledge";
const folder = "references/kindle";
function generateQuoteCallout({ highlight, note, location }) {
const asin = document.querySelector(
"input#kp-notebook-annotations-asin",
)?.value;
let quote = `> [!quote]
> ${highlight}`;
if (asin) {
@masakichi
masakichi / obsidian-web-clipper.js
Created November 26, 2023 10:35 — forked from kepano/obsidian-web-clipper.js
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
@masakichi
masakichi / install.sh
Last active October 23, 2021 10:18
Install Arch Linux on VPS with Encrypted System Partition
#!/usr/bin/env bash
set -e
set -x
drive="/dev/vda"
boot_partition="/dev/vda1"
luks_partition="/dev/vda2"
luks_passphrase=''
root_pass=''
## You should disable Indexes and MultiViews either here or in the
## global config. Symlinks maybe needed for URL rewriting.
#Options -Indexes -MultiViews +FollowSymLinks
## make sure nobody gets the htaccess, README, COPYING or VERSION files
<Files ~ "^([\._]ht|README$|VERSION$|COPYING$)">
<IfModule mod_authz_host>
Require all denied
</IfModule>
<IfModule !mod_authz_host>
diff --git a/.SRCINFO b/.SRCINFO
index 7e434d8..dce983b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = alttab-git
pkgdesc = The task switcher for minimalistic window managers or standalone X11 session
- pkgver = v1.4.0.16.g6ff9d46
+ pkgver = v1.4.0.21.g7e4fc4c
pkgrel = 1
diff --git a/.SRCINFO b/.SRCINFO
index 7e434d8..dce983b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = alttab-git
pkgdesc = The task switcher for minimalistic window managers or standalone X11 session
- pkgver = v1.4.0.16.g6ff9d46
+ pkgver = v1.4.0.21.g7e4fc4c
pkgrel = 1
diff --git a/.SRCINFO b/.SRCINFO
index 7e434d8..dce983b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = alttab-git
pkgdesc = The task switcher for minimalistic window managers or standalone X11 session
- pkgver = v1.4.0.16.g6ff9d46
+ pkgver = v1.4.0.21.g7e4fc4c
pkgrel = 1
@masakichi
masakichi / book_autofill.js
Last active January 11, 2019 15:23
fix publisher parse error
// ==UserScript==
// @name Douban Book Autofill
// @namespace https://gimo.me/
// @version 0.5.2
// @description auto fill douban book subject creation form
// @author Yuanji
// @match https://book.douban.com/new_subject*
// @connect www.amazon.co.jp
// @grant GM_xmlhttpRequest
// ==/UserScript==
diff --git a/.SRCINFO b/.SRCINFO
index ea25c78..1ac7ff5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = hardcode-tray-git
pkgdesc = Fixes Hardcoded Tray Icons
- pkgver = 4.0.r0.g8ec819f
+ pkgver = 4.3.r15.g46df7ea
pkgrel = 1
diff --git a/.SRCINFO b/.SRCINFO
index 9cfcfba..31535b4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = mycli
pkgdesc = A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting
pkgver = 1.19.0
- pkgrel = 1
+ pkgrel = 2