Skip to content

Instantly share code, notes, and snippets.

View Vaisakhkm2625's full-sized avatar

Vaisakh K M Vaisakhkm2625

  • <-- you don't need to know :)
View GitHub Profile
@Vaisakhkm2625
Vaisakhkm2625 / refresh.md
Last active February 10, 2023 13:48
refresh a tab again and again
var w = window.open(window.location.href);
setInterval(function(){w.window.location.reload()},10000)

this will duplicate and reload a tab every 10 second (10000 milisecond), change it as required

put above code in a book marklet converter like https://mrcoles.com/bookmarklet/

here is the bookmarklet for it, add this to bookmark panel

Alacritty decoratoin issue in gnome
https://github.com/alacritty/alacritty/issues/1096
```
env WINIT_UNIX_BACKEND=x11 alacritty
```
https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/do-more-with-tunnels/trycloudflare/
first download `cloudflared`
https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/installation/
```bash
cloudflared tunnel --url http://localhost:7000
```
@Vaisakhkm2625
Vaisakhkm2625 / bashrc
Last active January 20, 2023 14:56
fuzzyCD - fuzzyfind a file and cd into that dir containing that file
#add his to your bashrc file
#then type fcd to search for file and cd into that dir.
#fzf needs to be installed
fzfa(){
fzf --color 'fg:#839496,fg+:#93a1a1,bg:#002b36,bg+:#073642' --height 50% --reverse
}