- Test 1
- Test 1.1
- Test 2
- Test 2.1
- Test 2.2
- Test 2.2.1
- Test 2.2.2
- Test 2.2.3
- Test 2.2.3.1
- Test 3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (ns doubanbook-cralwer.core | |
| (:require [clj-http.client :as http] | |
| [clojure.core.async :refer [go-loop chan <! >!! <!!] :as a] | |
| [taoensso.carmine :as car :refer (wcar)]) | |
| (:gen-class)) | |
| (def ua "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36") | |
| (def redis-opts {:pool {} :spec {:uri "redis://127.0.0.1:6379/0"}}) | |
| (defmacro wcar* [& body] `(car/wcar redis-opts ~@body)) | |
| (def seen (atom (into #{} (wcar* (car/keys "*"))))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| umask 077 | |
| # File extension for the notes | |
| note_ext="md" | |
| fzf_opts="--height 50%" | |
| # Preview script part of FZF.vim. Defaults to something else if not present (but | |
| # not as fancy) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * credit to Dhrumil Shah (@wandcrafting) and Robert Haisfield (@RobertHaisfield) | |
| * for the original concept which was part of their RoamGames submission | |
| * and can be found at: https://www.figma.com/file/5shwLdUCHxSaPNEO7pazbe/ | |
| * | |
| */ | |
| /* ======= OPTIONS ======== */ | |
| /* note: if you change these, reload the page to see the effect */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%* | |
| /* | |
| # Hypothes.idian a templater script for retrieving annotations from Hypothes.is | |
| Dev: TfTHacker https://twitter.com/TfTHacker | |
| # Prerequisites: | |
| + Templater plugin by https://github.com/SilentVoid13/Templater | |
| + Free Hypothes.is developer token from: https://hypothes.is/account/developer | |
| + This script will prompt you for his token and save it to a file called "hypothesis config.md" | |
| + This file store your configuration and can be located any where in your vault. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-mac_osx-10.11-setup.pkg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Prevent link mangling on Google | |
| // @namespace LordBusiness.LMG | |
| // @match https://www.google.com/search | |
| // @grant none | |
| // @version 1.1 | |
| // @author radiantly | |
| // @description Prevent google from mangling the link when copying or clicking the link on Firefox | |
| // ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Hypothes.is everywhere | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.2 | |
| // @description Enable Hypothesis scriptlet on all pages | |
| // @author https://github.com/potter0815 | |
| // @match http://*/* | |
| // @include http://* | |
| // @include https://* | |
| // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Builds mpv & mpv.app on Apple silicon Macs. | |
| # Run this script from the root directory of the mpv repo. | |
| # if anything fails, gtfo | |
| set -ex | |
| meson setup build | |
| meson compile -C build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Copyright (c)2022 https://bookfere.com | |
| # This is a batch script for fixing Google Translate and making it available | |
| # in the Chinese mainland. If you experience any problem, visit the page below: | |
| # https://bookfere.com/post/1020.html | |
| set -e | |
| IPS=( | |
| 74.125.137.90 |