This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker container ls --all | grep "minutes ago" | awk '{ print $1 }' | xargs docker container rm $1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const throwsAnError = function(message) { | |
return new Cypress.Promise((resolve, reject) => { | |
setTimeout(() => { | |
//throw "Emergency! Emergency!" | |
resolve(message); | |
//reject("All American Rejects!"); | |
}, 3500); | |
}); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
(() => { | |
function makeHttpRequests() { | |
let newCount = 0; | |
let a = new Promise((resolve) => { | |
setTimeout(function() { | |
resolve(newCount += 1); | |
}, Math.floor(Math.random() * 10) * 2000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editor.tabSize": 2, | |
"workbench.colorTheme": "Moonlight II", | |
"editor.lineNumbers": "relative", | |
"editor.renderLineHighlight": "all", | |
"editor.minimap.enabled": false, | |
"vim.commandLineModeKeyBindings": [ | |
], | |
"vim.leader": "\\", | |
"vim.normalModeKeyBindings": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# entrypoint is the default /bin/sh -c | |
# /bin/sh -c bash | |
docker run -i -t pup bash | |
# Build docker image | |
docker build -t pup . | |
# remove dangling images | |
docker image prune |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cool app to visialize git. Good to practice and get a visual understanding of what is happening. | |
https://git-school.github.io/visualizing-git/#free |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set the default remote | |
git push -u <remote_name> <local_branch_name> | |
# Do git push to push to the default remote from above | |
git push | |
# To push to a differente remote other than the default | |
git push <new_remote_name> <branch_name> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install the local bin command when developing a package | |
npm install -g . | |
# To uninstall | |
npm uninstall -g pup | |
npm uninstall -g . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Do a search | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Simple Search | |
// @author You | |
// @match https://www.yellowpages.com* | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Android SSL Re-pinning frida script v0.2 030417-pier | |
$ adb push burpca-cert-der.crt /data/local/tmp/cert-der.crt | |
$ frida -U -f it.app.mobile -l frida-android-repinning.js --no-pause | |
https://techblog.mediaservice.net/2017/07/universal-android-ssl-pinning-bypass-with-frida/ | |
*/ | |
setTimeout(function(){ |