Skip to content

Instantly share code, notes, and snippets.

@Gufran
Gufran / script.sh
Created January 29, 2020 11:02
Add nice looking help text to bash script
#!/bin/bash
function help { # Print help text
echo "Available commands:"
grep '^function' "${BASH_SOURCE[0]}" | sed -e 's/function / /' -e 's/{ //' | column -t -s\#
}
@vyashole
vyashole / Gluttony.md
Last active December 12, 2023 14:21
Gluttony - Zomato Order History Export

Gluttony

Zomato Order History Scraper

Usage

  • Log in to Zomato in your browser
  • Go to order hostory page
  • Click Load More as many times as you want. You can go back as far as you want. ( maybe I'll add this functionality in the script later)
  • Right click any item > Inspect
  • paste the contents of gluttony.js into the console and run it
@im-strongthany-zz
im-strongthany-zz / PB_NoCookies.json
Created July 27, 2018 15:22
A JSON pulled from my privacy badger install. It has over 3000 domains, most of which are set to not allow 3rd party cookes.
{"action_map":{"webpoolblu1a09.infra.lync.com":{"userAction":"user_cookieblock","dnt":false,"heuristicAction":"allow","nextUpdateTime":1516745842772},"noobslab.disqus.com":{"userAction":"","dnt":false,"heuristicAction":"allow","nextUpdateTime":1516070903466},"maxcdn.bootstrapcdn.com":{"userAction":"user_cookieblock","dnt":false,"heuristicAction":"","nextUpdateTime":1516698222876},"fonts.googleapis.com":{"userAction":"user_block","dnt":false,"heuristicAction":"","nextUpdateTime":0},"apis.google.com":{"userAction":"","dnt":false,"heuristicAction":"cookieblock","nextUpdateTime":1516942295587},"google.com":{"userAction":"","dnt":false,"heuristicAction":"block","nextUpdateTime":1492973782210},"fonts.gstatic.com":{"userAction":"user_block","dnt":false,"heuristicAction":"","nextUpdateTime":0},"feedburner.google.com":{"userAction":"","dnt":false,"heuristicAction":"cookieblock","nextUpdateTime":1492922808535},"disqus.com":{"userAction":"","dnt":false,"heuristicAction":"cookieblock","nextUpdateTime":1516080092307},"www
@Zei33
Zei33 / userChrome.css
Last active July 11, 2018 18:10
Firefox Quantum (Target v59.0.1) Super Slim User Interface
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* 1. Navigate to about:support in Firefox and click the button under the Profile Folder heading.
2. Enter the folder ending in .default (probably something like m61ofslb.default).
3. Create a folder named chrome if it doesn't exist already.
4. Drop this file into that folder and restart your Firefox browser.
Designed for Firefox Quantum on Mac OSX and may require modification to work on other operating systems. */
.tab-close-button
@simonw
simonw / recover_source_code.md
Last active June 21, 2024 00:11
How to recover lost Python source code if it's still resident in-memory

How to recover lost Python source code if it's still resident in-memory

I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6

Attach a shell to the docker container

Install GDB (needed by pyrasite)

apt-get update && apt-get install gdb
@yossorion
yossorion / what-i-wish-id-known-about-equity-before-joining-a-unicorn.md
Last active June 25, 2024 07:29
What I Wish I'd Known About Equity Before Joining A Unicorn

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

anonymous
anonymous / gist:e61836f4c80fd3c24cde77f5f650a9be
Created October 8, 2016 22:38
podesta_emails
https://wikileaks.org/podesta-emails//get/1
https://wikileaks.org/podesta-emails//get/2
https://wikileaks.org/podesta-emails//get/3
https://wikileaks.org/podesta-emails//get/4
https://wikileaks.org/podesta-emails//get/5
https://wikileaks.org/podesta-emails//get/6
https://wikileaks.org/podesta-emails//get/7
https://wikileaks.org/podesta-emails//get/8
https://wikileaks.org/podesta-emails//get/9
https://wikileaks.org/podesta-emails//get/10
@graceavery
graceavery / harryPotterAliases
Last active May 10, 2023 02:51
bash aliases for Harry Potter enthusiasts
alias accio=wget
alias avadaKedavra='rm -f'
alias imperio=sudo
alias priorIncantato='echo `history |tail -n2 |head -n1` | sed "s/[0-9]* //"'
alias stupefy='sleep 5'
alias wingardiumLeviosa=mv
alias sonorus='set -v'
alias quietus='set +v'
@joepie91
joepie91 / vpn.md
Last active July 20, 2024 13:53
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
@kennwhite
kennwhite / vpn_psk_bingo.md
Last active February 24, 2024 12:19
Most VPN Services are Terrible

Most VPN Services are Terrible

Short version: I strongly do not recommend using any of these providers. You are, of course, free to use whatever you like. My TL;DR advice: Roll your own and use Algo or Streisand. For messaging & voice, use Signal. For increased anonymity, use Tor for desktop (though recognize that doing so may actually put you at greater risk), and Onion Browser for mobile.

This mini-rant came on the heels of an interesting twitter discussion: https://twitter.com/kennwhite/status/591074055018582016