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
Show hidden characters
| { | |
| "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
| "detect_indentation": true, | |
| "draw_white_space": "all", | |
| "font_size": 12, | |
| "highlight_line": true, | |
| "highlight_modified_tabs": true, | |
| "ignored_packages": | |
| [ | |
| "Vintage" |
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
| // Extrair textos do PDF | |
| pdftotext -layout file.pdf output.txt | |
| // Extrair textos do PDF em um arquivo HTML | |
| pdftotext -htmlmeta -layout file.pdf output.html | |
| // Extrair imagens de um PDF | |
| pdfimages file.pdf images/ | |
| // Converter imagens PPM para JPG |
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
| function syntaxHighlight(json) { | |
| if (typeof json != 'string') { | |
| json = JSON.stringify(json, undefined, 2); | |
| } | |
| json = json.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>'); | |
| return json.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g, function (match) { | |
| var cls = 'number'; | |
| if (/^"/.test(match)) { | |
| if (/:$/.test(match)) { | |
| cls = 'key'; |
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
| function getVar(name){ | |
| if(name=(new RegExp('[?&]'+encodeURIComponent(name)+'=([^&]*)')).exec(location.search)) | |
| return decodeURIComponent(name[1]); | |
| } | |
| var recoverHash = getVar('hash'); |
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
| <html> | |
| <body> | |
| <style type="text/css"> | |
| .ivan { | |
| text-overflow: ellipsis; | |
| width: 200px; | |
| white-space: nowrap; | |
| overflow: hidden; | |
| } | |
| .tooltip { |
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
| trun on logging for less secure apps | |
| https://www.google.com/settings/u/1/security/lesssecureapps | |
| click continue | |
| https://accounts.google.com/b/0/DisplayUnlockCaptcha | |
| check here is there any logging to your account and enable | |
| https://security.google.com/settings/security/activity?hl=en&pli=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
| #!/bin/bash | |
| touch csv_ninja.csv | |
| find -E . -regex '.*\.(psd|gif|png|jpeg)' | while read file; do | |
| xmp=$(exiftool -xmp -b "${file}" | egrep 'xwnv:(.+)=(.+)"$' | cut -d : -f 2- | tr "\n" ";") | |
| filename=$(basename "${file}") |
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 | |
| for file in $(find . -name '*.JPG') | |
| do | |
| echo "$file" | |
| WIDTH=`sips -g pixelWidth $file | tail -n1 | cut -d' ' -f4` | |
| if [ "$WIDTH" -lt "500" ]; then | |
| mv $file ./nope/ |
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
| echo "America/Sao_Paulo" | sudo tee /etc/timezone | |
| sudo dpkg-reconfigure --frontend noninteractive tzdata |
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
| ### Keybase proof | |
| I hereby claim: | |
| * I am ivanrosolen on github. | |
| * I am ivanrosolen (https://keybase.io/ivanrosolen) on keybase. | |
| * I have a public key whose fingerprint is 8699 9CA1 11DE DE76 B51D 6792 43C1 E7C8 A6A5 4644 | |
| To claim this, I am signing this object: |