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 / mc_launch_script.sh
Created July 31, 2014 01:41
launch minecraft from terminal for OS X
java -Xmx1024M -Djava.library.path='/Users/Gimo/Library/Application Support/minecraft/versions/1.7.10/natives' -cp '/Users/Gimo/Library/Application Support/minecraft/libraries/com/mojang/realms/1.3.2/realms-1.3.2.jar:/Users/Gimo/Library/Application Support/minecraft/libraries/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.jar:/Users/Gimo/Library/Application Support/minecraft/libraries/org/apache/httpcomponents/httpclient/4.3.3/httpclient-4.3.3.jar:/Users/Gimo/Library/Application Support/minecraft/libraries/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/Users/Gimo/Library/Application Support/minecraft/libraries/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar:/Users/Gimo/Library/Application Support/minecraft/libraries/java3d/vecmath/1.3.1/vecmath-1.3.1.jar:/Users/Gimo/Library/Application Support/minecraft/libraries/net/sf/trove4j/trove4j/3.0.3/trove4j-3.0.3.jar:/Users/Gimo/Library/Application Support/minecraft/libraries/com/ibm/icu/icu4j-core-mojang/51.2/icu4j-cor
@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=''

3-d

   **   **                                **         **       **                                              ****                       **                                                                            **   **                 **                                  **                 
  /**  /**                 ****          //         /**      /**                                             /**/                       //                      ******                                                /**  /**                /**                   **   **       /**           ***** 
 ******/**       *****    **//**  **   ** **  ***** /**  **  /**      ******  ******  ***     ** *******    ******  ******  **   **      ** **   ** ********** /**///**  ******    ******  **    **  *****  ******   ******/**       *****    /**  ******   ****** //** **        /**  ******  **///**
///**/ /******  **///**  /** /** /**  /**/** **///**/** **   /****** //**//* **////**//**  * /**//**///**  ///**/  **////**//** 
## 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==