Skip to content

Instantly share code, notes, and snippets.

View TechQuery's full-sized avatar
:octocat:
Working together is the best way of thumbs up!

South Drifter TechQuery

:octocat:
Working together is the best way of thumbs up!
View GitHub Profile
@Soecka
Soecka / about.yml
Last active November 8, 2024 13:40
Update repository about fields with github action
name: CI & CD
on:
push:
branches:
- main
paths:
- package.json
jobs:
Build-and-Publish:
runs-on: ubuntu-latest
@TechQuery
TechQuery / set-proxy.ps1
Last active March 23, 2024 15:24
Execute this script in Administrator's Terminal, or use with `sudo` Command, for example: `sudo set-proxy.ps1 12345`
param(
[Int] $port
)
$URL = "http://127.0.0.1:$port"
[environment]::SetEnvironmentVariable('HTTP_PROXY', $URL, "Machine")
[environment]::SetEnvironmentVariable('HTTPS_PROXY', $URL, "Machine")
git config --global http.proxy $URL
git config --global https.proxy $URL
@hax
hax / json-slashs-hint.md
Last active September 23, 2020 07:01
JSON `\//` Hint

JSON \// Hint

Problems

JSON.stringify({x: 1234567890n}) // throw!

You can custom it

@agmm
agmm / nextjs-file-upload-api.js
Created January 31, 2020 23:03
Simple Nextjs File Upload — Backend API
// Backend
import formidable from 'formidable';
export const config = {
api: {
bodyParser: false,
},
};
export default async (req, res) => {
@tianhaoz95
tianhaoz95 / open-in-gitpod.md
Last active February 29, 2024 21:43
Code to add a open in Gitpod badge

Here is your awesome Open in Gitpod badge

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/[your GitHub username]/[your repository])

Open in Gitpod

@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active September 6, 2025 11:43
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@dreamlu
dreamlu / win-ss
Last active August 11, 2025 05:03
windows终端翻墙,简易方式
环境:shadowsocks、windows
本地ss端口设置(这里1080)
cmd命令行:(不用socks5)(临时设置)(也可放置环境变量)
set http_proxy=http://127.0.0.1:1080
set https_proxy=http://127.0.0.1:1080
ps:一定要用cmd命令行,千万别用powershell !!!
简易测试命令:curl https://www.google.com(别用ping)
@TechQuery
TechQuery / TypEcho-Hexo.md
Last active January 14, 2019 13:53
TypEcho to Hexo

TypEcho to Hexo

# Parse all Pages & Posts
node ./index path/to/typecho.sql

# Parse Pages & Posts of the User with ID 3
node ./index path/to/typecho.sql 3
@hetykai
hetykai / setNodeMirror.sh
Last active July 7, 2023 02:44
修改node npm yarn的镜像源设置,替换为国内的淘宝源
npm set registry https://registry.npm.taobao.org && \
npm set disturl https://npm.taobao.org/dist && \
npm set sass_binary_site https://npm.taobao.org/mirrors/node-sass && \
npm set electron_mirror https://npm.taobao.org/mirrors/electron/ && \
npm set puppeteer_download_host https://storage.googleapis.com.cnpmjs.org && \
npm set chromedriver_cdnurl https://npm.taobao.org/mirrors/chromedriver && \
npm set operadriver_cdnurl https://npm.taobao.org/mirrors/operadriver && \
npm set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs && \
npm set selenium_cdnurl https://npm.taobao.org/mirrors/selenium && \
npm set node_inspector_cdnurl https://npm.taobao.org/mirrors/node-inspector && \
@TechQuery
TechQuery / index.html
Last active October 14, 2018 15:47
QRCode-Post
<script src="https://cdn.bootcss.com/babel-polyfill/6.26.0/polyfill.min.js"></script>
<script src="https://cdn.bootcss.com/qrcode-generator/1.4.0/qrcode.js"></script>
<form>
<fieldset>
<legend>QRCode Post</legend>
<ol>
<li><label>
Load an image
<input type="file" accept="image/*"