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
| # in order: find keys by prefix on redis, filter only keys, run redis get command | filter content by key | |
| redis-cli keys ww_product_* | awk '{print $1}' | xargs -n 1 redis-cli get | grep SAC |
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
| ########### | |
| # Matar todos os processos por palavra chave | |
| # Kill A lot of process by keyword | |
| ########## | |
| # ps auxf (Só para identar os processos por hierarquia) | |
| # ps auxf (Just list all process orderly by hierarchy) | |
| # grep worker (Grep ué, filtra os resultados pela palavra chave) | |
| # grep worker (Filter output by informated keyword) |
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 features = []; | |
| $.each($('#feature-overview .feature'), function(i){ | |
| scenarios = []; | |
| $.each($($('#scenario-overview .feature')[i]).find('.panel-group .panel'), function(){ | |
| scenarios = $.merge(scenarios, [ | |
| { | |
| name: $(this).find($('.panel-title a')).text(), | |
| status: $(this).hasClass('passed') && 'passed' || 'failed' | |
| } | |
| ]); |
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
| # Simple document example: | |
| touch sample.txt | |
| echo "First Line" >>| ./sample.txt | |
| echo "Second Line" >>| ./sample.txt | |
| echo "Third Line" >>| ./sample.txt | |
| sed "s/Second Line/Ahahaha, apaguei abestado!/g" sample.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
| docker-machine create -d virtualbox [VM_NAME] | |
| docker-machine env [VM_NAME] | |
| eval "$(docker-machine env [VM_NAME])" | |
| #Check if docker variables running in OS | |
| eval | |
| #Access docker folder (The directory have a file named as docker-compose.yml) |
NewerOlder