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
| git config --global alias.mergetest '!f(){ git merge --no-commit --no-ff "$1"; git merge --abort; echo "Merge aborted"; };f ' |
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
| git config alias.cleanall "clean -f */*.orig" |
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
| alias startsel="nohup java -Dwebdriver.chrome.driver=./chromedriver -jar selenium-server-standalone-2.45.0.jar &" | |
| stopsel() { | |
| ps xu | grep selenium | grep -v grep | awk '{ print $2 }' | xargs kill -9 | |
| } |
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
| find => DEFINER=`(.*?)`@`(.*?)` | |
| replaceWith => DEFINER=`root`@`localhost` |
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
| var envVar = {}; | |
| var tr = Array.from( | |
| document.querySelectorAll("table")[0].querySelectorAll('tbody')[0].querySelectorAll('tr')); | |
| tr.map((el)=>{ | |
| var tmp = []; | |
| tmp[el.querySelectorAll('.envvarItem_key')[0].querySelectorAll('input')[0].value] = el.querySelectorAll('td')[1].querySelectorAll('.envvarItem_value')[0].querySelectorAll('.envvarItem_value_container')[0].querySelectorAll('textarea')[0].value; | |
| envVar = Object.assign(envVar, tmp); | |
| } | |
| ); | |
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
| async function getVar(env) { | |
| for (v in env) { | |
| var wait = ms=>new Promise((r,j)=>setTimeout(r, ms)); | |
| await wait(500); | |
| var event = new Event('input',{ | |
| bubbles: true, | |
| "cancelable": false | |
| }); | |
| var click = new Event('click',{ |
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
| #!/bin/bash | |
| wercker --environment ./wercker/.env.wercker.unittest.sample deploy --pipeline unittest |
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
| pip freeze -l > requirements.txt |
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
| # create function | |
| # without environment variables | |
| awslocal --endpoint-url=http://localhost:4574 lambda create-function --function-name=f1 --runtime=python3.6 --role=r1 --handler=coupon.handler --zip-file fileb://deployment_bundle.zip | |
| #with environment varibles | |
| awslocal --endpoint-url=http://localhost:4574 lambda create-function --function-name=f1 --runtime=python3.6 --role=r1 --handler=coupon.handler --zip-file fileb://deployment_bundle.zip --environment Variables='{HOST=localhost, USERNAME=root, PASSWORD=promoms, DATABASE=promoms, PORT=3306, REDIS_HOST=localhost, REDIS_PORT=6379, APP_NAME=promoms, APP_ENV=dev, PROMOTIONS_COUPONS_CACHE_KEY=promoms:coupons}' | |
| # invoke function | |
| awslocal lambda --endpoint-url=http://localhost:4574 invoke --function-name f1 --payload '{"coupon":"default"}' result.log |
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
| TMPDIR=/private$TMPDIR localstack start --docker |
OlderNewer