This file contains 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
exports.sourceNodes = function () { | |
// I know I can't query the graphql data in `sourceNodes` lifecycle, just a example. | |
// My question is which lifecycle can I query the data, and create new node before createPages | |
// like this: | |
const allMarkdownRemarkResult = await graphql(` |
This file contains 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
const normalizeHeaderCase = require("header-case-normalizer"); | |
const defaultResponse = `This API enables relay requests to anywhere. | |
Usage: | |
https://eno9s1l2xztg49j.m.pipedream.net/ Shows help | |
https://eno9s1l2xztg49j.m.pipedream.net/<url> Create a request to <url>, and relay <url> response in the response. | |
]Source code : https://pipedream.com/@theowenyoung/http-relay-p_JZCLbG | |
` | |
function parseURL(req_url) { |
This file contains 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
git config user.name github-actions[bot] | |
git config user.email ithub-actions[bot]@users.noreply.github.com | |
git remote add origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{github.repository}}.git | |
git add . | |
git commit -m "chore: build" | |
git push |
This file contains 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
{ | |
"SINA": "新浪", | |
"SOHU": "搜狐", | |
"NTES": "网易", | |
"BIDU": "百度", | |
"NCTY": "第九城市", | |
"JRJC": "金融界", | |
"JOBS": "前程无忧", | |
"UTSI": "UT斯达康", | |
"EDU": "新东方", |
This file contains 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
{ | |
"version": 1, | |
"notes": "", | |
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n", | |
"keyboard": "redox/rev1", | |
"keymap": "redox_rev1_layout_mine", | |
"layout": "LAYOUT", | |
"layers": [ | |
[ | |
"ALL_T(KC_ESC)", |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>{{html .Name}}</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We" crossorigin="anonymous"> | |
<style> | |
* { padding: 0; margin: 0; } | |
body { |
This file contains 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
name: Github Actions check if there are uncommited changes | |
on: | |
repository_dispatch: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest |
This file contains 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 New Userscript | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match *://*/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net | |
// @grant GM_getValue | |
// @grant GM_setValue |
This file contains 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 Twitter Media Downloader | |
// @name:ja Twitter Media Downloader | |
// @name:zh-cn Twitter 媒体下载 | |
// @name:zh-tw Twitter 媒體下載 | |
// @description Save Video/Photo by One-Click. | |
// @description:ja ワンクリックで動画・画像を保存する。 | |
// @description:zh-cn 一键保存视频/图片 | |
// @description:zh-tw 一鍵保存視頻/圖片 | |
// @version 1.05 |
This file contains 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 | |
# must use root | |
if [ "$(whoami)" != "root" ]; then | |
echo "must use root" | |
exit 1 | |
fi | |
REPO_NAME="ginuerzh/gost" | |
latest_version=2.11.5 | |
echo start install $REPO_NAME latest v${latest_version} | |
cd /tmp |
OlderNewer