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 result = parseCurl( | |
"curl -X POST -H 'Content-Type: application/json' -d '{\"name\": \"John\"}' http://localhost:8000/tasks/2/run" | |
); | |
console.log("result", result); | |
assertEquals(result.method, "POST"); | |
assertEquals(result.headers, { | |
"Content-Type": "application/json", | |
}); |
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
async function uploadToStay() { | |
const userscriptContent = await Deno.readTextFile( | |
"dist/userscript/immersive-translate.user.js", | |
); | |
const STAYFORK_API_KEY = Deno.env.get("STAYFORK_API_KEY"); | |
if (!STAYFORK_API_KEY) { | |
throw new Error("STAYFORK_API_KEY is not set"); | |
} | |
const response = await fetch( | |
`https://api.shenyin.name/stay-fork/modify/${STAYFORK_API_KEY}`, |
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 |
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
// ==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
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
<!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/[email protected]/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
{ | |
"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
{ | |
"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
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 |
NewerOlder