Skip to content

Instantly share code, notes, and snippets.

View pranavek's full-sized avatar

Pranav pranavek

View GitHub Profile
@pranavek
pranavek / feeds.opml
Created April 29, 2022 07:46 — forked from stebennett/feeds.opml
The feeds I currently subscribe to.
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Stephen subscriptions in feedly Cloud</title>
</head>
<body>
<outline text="Companies" title="Companies">
<outline type="rss" text="Trello" title="Trello" xmlUrl="https://trello.engineering/feed.xml" htmlUrl="http://tech.trello.com/"/>
<outline type="rss" text="IMVU" title="IMVU" xmlUrl="http://engineering.imvu.com/feed/" htmlUrl="https://engineering.imvu.com"/>
#!/bin/bash
set -e
cluster_name=$1
node_groups=$(aws eks list-nodegroups --cluster-name $cluster_name | jq .nodegroups)
for node_group in $(echo $node_groups | jq -r '.[]'); do
echo $node_group
@pranavek
pranavek / bash_strict_mode.md
Created December 21, 2021 09:21 — forked from mohanpedala/bash_strict_mode.md
set -e, -u, -o, -x pipefail explanation
// ==UserScript==
// @name Youtube Redirect
// @namespace https://www.youtube.com/
// @version 0.1
// @description Redirect youtube.com to youtube.com/feed/subscriptions
// @author hello@pranavek.com
// @match https://www.youtube.com/
// @grant none
// ==/UserScript==
@pranavek
pranavek / grep
Last active April 30, 2021 08:25
ps ux > psux.out
grep -c '.' psux.out
grep '^pranav' psux.out
grep 'firefox$' psux.out
grep 'pranav' psaux.out
ps au > psau.out
awk '{print}' psau.out
awk '{print $11} psau.out
awk '{print $11, $3}' psau.out
awk '/firefox/ {print $11, $3}' psau.out
@pranavek
pranavek / google-dorks
Created March 30, 2021 15:39 — forked from stevenswafford/google-dorks
Listing of a number of useful Google dorks.
" _ _ "
" _ /|| . . ||\ _ "
" ( } \||D ' ' ' C||/ { % "
" | /\__,=_[_] ' . . ' [_]_=,__/\ |"
" |_\_ |----| |----| _/_|"
" | |/ | | | | \| |"
" | /_ | | | | _\ |"
It is all fun and games until someone gets hacked!
@pranavek
pranavek / ohmyzsh.md
Created January 23, 2021 10:09 — forked from yovko/ohmyzsh.md
ZSH (using Oh My ZSH) on Manjaro Linux

ZSH (using Oh My ZSH) on Manjaro Linux

0. If ZSH is not already installed on your Manjaro system you can do it with the command:

sudo pacman -Syu zsh

You do not need to install manjaro-zsh-config and all the other related packages like zsh-syntax-highlighting, zsh-history-substring-search, zsh-autosuggestions, etc., as we will use Oh My Zsh.

import sys
import socket
from datetime import datetime
if(len(sys.argv) < 2):
print("Usage: python3 %s <host>"%sys.argv[0])
sys.exit(1)
ip = socket.gethostbyname(sys.argv[1])
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.