Skip to content

Instantly share code, notes, and snippets.

View shuiRong's full-sized avatar
👻
Working

shuirong shuiRong

👻
Working
View GitHub Profile
@AndreaMinato
AndreaMinato / auth.ts
Last active June 20, 2023 00:55
Typescript Vuex Module
import axios, { AxiosRequestConfig } from "axios";
import router from "@/router"; //shortcut to src
import { Module } from "vuex";
const authModule: Module<any, any> = {
state: {
loggedIn: false,
loginError: null,
username: null
@nepsilon
nepsilon / how-to-batch-convert-jpg-images-to-progressive-jpg-images.md
Last active April 3, 2024 16:55
How to batch convert JPG images to progressive JPG images? — First published in fullweb.io issue #82

How to batch convert JPG images to progressive JPG images?

Progressive JPG images, as opposed to baseline JPG, will display right away in the browser, and will load bits of it in cycle, rendering it from blur to clear.

Progressive is known to provide a better user experience, preventing the ”fax loading” effect. Where the image is displayed in full, but sequentially from top to bottom.

The imagemagick package will install the convert command that you can run to convert JPG to progressive:

convert -strip -interlace Plane -quality 80 input-file.jpg output-file.jpg
@larryhou
larryhou / tinyproxy.md
Last active September 6, 2023 04:56
Install tinyproxy on macOS
  • brew install tinyproxy

  • Comment out Allow 127.0.0.1 in /usr/local/etc/tinyproxy.conf.

  • Start tinyproxy with tinyproxy -d.

  • Follow the log file with

    tail -f /usr/local/var/log/tinyproxy/tinyproxy.log
  • On the iOS device, in Wi-Fi settings, set HTTP Proxy to Manual and set

@snakevil
snakevil / howto-setup-transparent-proxied-router.md
Last active April 1, 2024 01:28
如何在路由器中实现透明代理?

如何在路由器中实现透明代理?

0 互联网现状

目前整个互联网环境,被破坏最严重地部分,是 Web 服务体验。当直接破坏难以实现时,就会从流程链的上下游着手,如:DNS 污染。

其它地互联网服务类型,例如:邮件,可能小部分会受到 Web 服务上下游破坏地余震,但整体上基本不受影响。