I hereby claim:
- I am patmigliaccio on github.
- I am patmigliaccio (https://keybase.io/patmigliaccio) on keybase.
- I have a public key ASCBxsyiCy5TXXNF83e18qN1B-1Ya9YD6ow6XsOVnGxcIgo
To claim this, I am signing this object:
| #!/bin/sh | |
| # Author: Pat Migliaccio <[email protected]> | |
| # License: MIT | |
| EMAIL="<Acct_Email>" | |
| ZONE="<Zone_ID>" | |
| API_KEY="<API_Key>" | |
| DATA="{ \"files\": [\"https://example.com/css/style.css\"] }" |
I hereby claim:
To claim this, I am signing this object:
| /** | |
| * A quick Go script, testing the performance of using | |
| * concurrent channels for HTTP requests. | |
| * | |
| * Example: | |
| * $ go run concurrent_http.go https://google.com https://facebook.com | |
| * | |
| * -- Consecutive -- | |
| * GET: https://google.com | |
| * 0.61 elapsed with response length: 10711 https://google.com |
| #!/bin/sh | |
| # RDP into Azure VM / Windows machine using `xfreerdp` | |
| # | |
| # Reference: https://github.com/FreeRDP/FreeRDP/issues/2128#issuecomment-213505787 | |
| # | |
| # Required dependency: http://www.freerdp.com/ | |
| # | |
| # Preferred over `rdesktop` due to: https://github.com/rdesktop/rdesktop/issues/71 |
| #!/bin/sh | |
| # Reference: https://medium.com/millennial-falcon-technology/reformatting-your-code-base-using-prettier-or-eslint-without-destroying-git-history-35052f3d853e | |
| git filter-branch --tree-filter 'prettier --config ../../.prettierrc --write "src/{app,environments,assets}/**/*{.ts,.js,.json,.css,.scss}" || echo "formatting error"' -- --all |
| #!/bin/sh | |
| # Reference: https://stackoverflow.com/a/38860/5199198 | |
| SERVER=SERVER_NAME | |
| USER=USER_NAME | |
| DOMAIN=DOMAIN_NAME | |
| /usr/bin/rdesktop -g 1152x864 \ | |
| -a 16 \ |
| (function (window, document, undefined) { | |
| 'use strict'; | |
| /** | |
| * Configuration for Gist List | |
| */ | |
| const gistPage = 'stash', | |
| username = 'patmigliaccio', | |
| gistCount = 5, | |
| excludeIfDescriptionContains = 'patmigliaccio.com', |
| function requestGeneratedSVG(){ | |
| return xhr('/assets/css/svg/generate') | |
| .then(response => { | |
| let content = parseSVGResponse(response.data); | |
| // Decoded sensitive data would be handled here. | |
| return JSON.parse(atob(content)); | |
| }); | |
| } |
| var a = ["data", "parse", "then", "/assets/css/svg/generate", "", "split", "trim", "pop", "unshift", "forEach", "join"]; | |
| function requestGeneratedSVG() { | |
| return xhr('/assets/css/svg/generate')['then'](function(b) { | |
| let c = parseSVGResponse(b['data']); | |
| return JSON['parse'](atob(c)) | |
| }) | |
| } | |
| function parseSVGResponse(d) { |
| /** | |
| * Reverses basic obfuscation techniques used by the JavaScript Obfuscator. | |
| * | |
| * Reference: https://javascriptobfuscator.com/ | |
| * | |
| * @param {string} data String representation of a JavaScript file | |
| * @returns {string} | |
| */ | |
| function reverseObfuscation(data) { | |
| return replaceArrayReferences(replaceHexArrayValues(replaceHexVariables(data))); |