Skip to content

Instantly share code, notes, and snippets.

View pshanoop's full-sized avatar
🤯

Sanoob Pattanath pshanoop

🤯
View GitHub Profile
@pshanoop
pshanoop / kubectl-cheatsheet.md
Last active July 18, 2023 08:06
kubectl-cheatsheet.md
@pshanoop
pshanoop / boorkmarklet.md
Created October 2, 2022 16:46 — forked from 71/boorkmarklet.md
Lists all participants in a Google Meet meeting.

The following bookmarket shows a popup with the name of the participants separated by newlines.

javascript:-function(maxStrLength = 2000) { try { function findParticipants(current, depth = 0) { if (depth > 7) return; if (typeof current !== "object" || current === null || current === window) return; const descriptors = Object.getOwnPropertyDescriptors(current); for (const prop in descriptors) { if (prop.startsWith('["spaces/')) return Object.values(current); const item = findParticipants(descriptors[prop].value, depth + 1); if (item !== undefined) return item; } } const rootState = Object.entries(window).find(x => x[0].startsWith("closure_lm_"))[1], participants = findParticipants(rootState), names = []; function findName(obj) { for (const prop in obj) { const value = obj[prop]; if (typeof value === "object" && value !== null && typeof value[1] === "string") return value[1]; } } for (let i = 0; i < participants.length; i++) { const name = findName(participants[i]); if (names.indexOf(name) === -1) names.
@pshanoop
pshanoop / nginx-tuning.md
Created December 9, 2018 21:21 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

@pshanoop
pshanoop / grub.cfg
Created May 13, 2018 10:19 — forked from harish2704/grub.cfg
grub.cfg for live boot of custom usb drive
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
menuentry "Try openSUSE Tumbleweed GNOME Live ISO" {
set gfxpayload=keep
set iso_path=/openSUSE-Tumbleweed-GNOME-Live-x86_64-Snapshot20180220-Media.iso
loopback loop0 ${iso_path}
echo Loading kernel...