git branch --merged master | grep -v "master" | xargs -n 1 git branch -d
git gc --aggressive --prune=now
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
set -g mode-mouse on | |
set-window-option -g mode-mouse on | |
set -g terminal-overrides 'xterm*:smcup@:rmcup@' | |
# ~/.tmux.conf | |
# | |
# See the following files: | |
# | |
# /opt/local/share/doc/tmux/t-williams.conf | |
# /opt/local/share/doc/tmux/screen-keys.conf |
(function() { | |
/* | |
* LODASH in-Browser JSON transformer | |
* Use this in a bookmarket (save its contents in a bookmark) and whenever you open a JSON response (e.g. https://www.reddit.com/.json) | |
* you can use it to test lodash methods against the data. | |
* Lodash is exposed on window as _ and "json" global variable contains the data within the browser window. | |
* | |
* Copy the line below and save it as the url of a new bookmark (it's the same code as below but minified for bookmark use): | |
* javascript:!function(){function onScriptLoaded(){window.json=JSON.parse(JSON.stringify(initialJSONCode)),display(window.json),input.addEventListener("input",onInput),document.body.appendChild(input),document.body.appendChild(info)}function onInput(t){if(!t.target.value)return display(initialJSONCode),void setInputState(t.target,"success");var e=wrap(t.target.value);e&&"object"==typeof e?(setInputState(t.target,"success"),display(e)):setInputState(t.target,"error")}function display(t){pre.innerText?pre.innerText=J |
# you can check that with ssh-add | |
ssh-add -l | |
# response when these steps need to be taken: 'The agent has no identities.' | |
# response when everything ok would be more like: '2048 SHA256:yourkey /Users/youryousername/.ssh/id_rsa (RSA)' | |
# start the ssh-agent | |
ssh-agent -s | |
# add your keys. | |
ssh-add ~/.ssh/id_rsa |
GitHub repositories can disclose all sorts of potentially valuable information for bug bounty hunters. The targets do not always have to be open source for there to be issues. Organization members and their open source projects can sometimes accidentally expose information that could be used against the target company. in this article I will give you a brief overview that should help you get started targeting GitHub repositories for vulnerabilities and for general recon.
You can just do your research on github.com, but I would suggest cloning all the target's repositories so that you can run your tests locally. I would highly recommend @mazen160's GitHubCloner. Just run the script and you should be good to go.
$ python githubcloner.py --org organization -o /tmp/output
/* | |
Copy this into the console of any web page that is interactive and doesn't | |
do hard reloads. You will hear your DOM changes as different pitches of | |
audio. | |
I have found this interesting for debugging, but also fun to hear web pages | |
render like UIs do in movies. | |
*/ | |
const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |
const audioCtx = new window.AudioContext(); | |
const oscillator = audioCtx.createOscillator(); | |
oscillator.connect(audioCtx.destination); | |
oscillator.type = "sine"; | |
let numItems = 0 | |
oscillator.frequency.setValueAtTime( | |
1, | |
audioCtx.currentTime |