cat file | awk '{$1=$1};1'
Diff results from fileA and fileB and only show fileB unique lines. FileC should have only the new results
comm -3 fileA fileB > file C
#!/usr/bin/env python | |
import sys | |
if len(sys.argv) < 2: | |
print("Give me something to say!") | |
sys.exit(1) | |
word = sys.arvv[1] | |
print(word) |
Bypassing Seamless "Minimum Delivery" | |
OBLIGATORY NOTE: EDUCATIONAL PURPOSES ONLY. Lol. | |
Background: | |
I was just playing around looking for bugs when I noticed there was a vulnerability in the Seamless "Minimum Delivery" checkout workflow. | |
Problem: | |
When ordering for delivery from Seamless, restaurants often want a minimum delivery. This does not include the tip added to the order. | |
Therefore, you must order past the minimum delivery, and then add your tip on top of that. If you do not meet the minimum delivery price, | |
you are unable to go to the checkout page because the button is greyed out. |
{ | |
"severity": "High", | |
} |
#!/usr/bin/env bash | |
# Some bro tryin to not remove their dubyas... | |
if [ $# -eq 0 ] | |
then | |
exit 0 | |
fi | |
# A life without dubyas and ayes | |
echo "$1" | sed -e s/[wWaA]//g |
1. Install prereqs: | |
apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev libreadline-dev | |
2. Clone rbenv (note: switch the user you want to install ruby/rails for. e.g. service account): | |
cd ~ && git clone https://github.com/rbenv/rbenv.git ~/.rbenv | |
3. Add rbenv to path: | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
echo 'eval "$(rbenv init -)"' >> ~/.bashrc | |
source ~/.bashrc |