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 / 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
}
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
```
Alacritty decoratoin issue in gnome
https://github.com/alacritty/alacritty/issues/1096
```
env WINIT_UNIX_BACKEND=x11 alacritty
```
@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

@Vaisakhkm2625
Vaisakhkm2625 / themeing.md
Last active March 2, 2023 04:50
Trying to fix THEME nightmare of linux
@Vaisakhkm2625
Vaisakhkm2625 / clipboard.md
Last active November 12, 2024 23:09
clipboard type

Type from clipboard

A simple script to simulate keypresses to type copied text, in places where pasting is not enabled and don't have access to install new apps

(Remote or local virtual desktops, various online forms, ssh connection through old terminal emulators etc)

😅 A lot of people are using this, but couldn't get anyone to star this repo...

image

@Vaisakhkm2625
Vaisakhkm2625 / gist:c991b1490a20099125ec4b5660b125c3
Created March 8, 2023 12:15 — forked from liaohuqiu/gist:4ee77b9b03afcdecc80252252378d367
Find out the full duration time of a YouTube playlist
var list = document.getElementsByClassName('pl-video-time');
var time = 0;
function toS(hms) {
var a = hms.split(':');
while (a.length < 3) {
a.unshift(0);
}
var seconds = (+a[0]) * 60 * 60 + (+a[1]) * 60 + (+a[2]);
return seconds;
@Vaisakhkm2625
Vaisakhkm2625 / surfingkeys.js
Last active May 13, 2023 11:27
surfingkeys config
//surfingkeys config
// an example to create a new mapping `ctrl-y`
api.mapkey('<ctrl-y>', 'Show me the money', function() {
Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).');
});
// simulate vimium's behaviour of using HLJK
api.map('H','S'); // History back
api.map('L','D'); // History back
@Vaisakhkm2625
Vaisakhkm2625 / greengrass.md
Created April 17, 2023 18:44
touching green grass

https://youtu.be/cShoIaGjvwc

This is a tutorial on how to touch grass

but they forgot to tell how to make grass green... that is here

LS_COLORS="*grass=01;32:$LS_COLORS"

@Vaisakhkm2625
Vaisakhkm2625 / settingupnewholograminlazyvim.md
Last active September 23, 2024 10:45
How to set up hologram plugin in lazyvim

setting up hologram plugin in lazyvim (vhyrro's branch, not merged)

add hologram plugin

~/.config/nvim/lua/plugins/hologram.lua

return {
{
 "vhyrro/hologram.nvim",
 config = function()