Skip to content

Instantly share code, notes, and snippets.

@tanhv90
tanhv90 / README.md
Last active December 16, 2023 13:28 — forked from sveatlo/README.md
Waybar weather module with geolocation

Waybar weather module with geolocation

This is an example set of scripts that allow me to always have weather forecast at my waybar.

Each script can be used on its own, but together they are great.

Requirements

@tanhv90
tanhv90 / proxy.js
Created February 14, 2020 07:22 — forked from cmawhorter/proxy.js
Node script to forward all http requests to another server and return the response with an access-control-allow-origin header. Follows redirects.
// Simple proxy/forwarding server for when you don't want to have to add CORS during development.
// Usage: node proxy.js
// Open browser and navigate to http://localhost:9100/[url]
// Example: http://localhost:9100/http://www.google.com
// This is *NOT* for anything outside local development. It has zero error handling among other glaring problems.
// This started as code I grabbed from this SO question: http://stackoverflow.com/a/13472952/670023

Keybase proof

I hereby claim:

  • I am tanhv90 on github.
  • I am tanhv90 (https://keybase.io/tanhv90) on keybase.
  • I have a public key ASBvJOqTxXNPrq30wUbzEtDBXzBJvH-QNQ7uN34y63S-jAo

To claim this, I am signing this object: