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
@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/*"
@TechQuery
TechQuery / datatransfer-test.markdown
Last active September 15, 2018 05:36
DataTransfer test
@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
@TechQuery
TechQuery / image-compressor.markdown
Created September 21, 2019 15:51
Image compressor
npm cache clean -f
yarn cache clean
pnpm store prune
@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