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
@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

@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) => {
@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

@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
@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