Skip to content

Instantly share code, notes, and snippets.

View luizfnunesmarques's full-sized avatar

Luiz Marques luizfnunesmarques

View GitHub Profile
# I wanted to generate 100 replicasets to check and overload etcd
# the manifest is a deployment with a template variable that apply a change worth a new rs (e.g. a image tag)
for I in $(seq 30 70); do export I && envsubst '$I' < <manifest.yml> | kubectl apply -f - && sleep 10; done;
# bombard an api with curl. Requires seq and gnu-parallel
seq 1000 | parallel -n0 "<request>"
@luizfnunesmarques
luizfnunesmarques / oauth.sh
Created September 29, 2020 19:20
erase twitter
#!/bin/bash
# Copyright (c) 2010, 2012 Yu-Jie Lin
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
# of the Software, and to permit persons to whom the Software is furnished to do
# so, subject to the following conditions:
#
`curl -H "" -H "" url`
`curl -X POST -H "" -H "Accept-Version: v1" -d <payload> url`
http://tipsonubuntu.com/2017/05/30/install-sublime-text-3-ubuntu-16-04-official-way/
--youtube-dl
youtube-dl -x --audio-format mp3 https://www.youtube.com/watch\?v\=bpOR_HuHRNs -o "~/Music/%(title)s.%(ext)s"