Implementing end-to-end HTTPS encryption with CloudFlare for Google App Engine applications.
Register the root domain with Google Cloud Platform at the following:
| #!/bin/sh | |
| # Author: Pat Migliaccio <pat@patmigliaccio.com> | |
| # License: MIT | |
| EMAIL="<Acct_Email>" | |
| ZONE="<Zone_ID>" | |
| API_KEY="<API_Key>" | |
| DATA="{ \"files\": [\"https://example.com/css/style.css\"] }" |
| """ | |
| # Export FatSecret Weight History CSV | |
| A simple script for exporting all FatSecret weight history to CSV. | |
| ## Installation | |
| *Install Dependencies* | |
| ```sh |
| :: Copyright (C): 2017 Pat Migliaccio | |
| :: pat@patmigliaccio.com | |
| :: | |
| :: LICENSE: MIT | |
| :: | |
| :: File: install-git.bat | |
| :: | |
| :: Batch file for a quick install of Git for Windows | |
| :: Include the git*.exe install executable | |
| :: in the same directory as this script. |
| #!/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 \ |
| for node in $(kubectl get nodes -l cloud.google.com/gke-nodepool=default-pool -o=name); do | |
| kubectl drain --force --ignore-daemonsets --delete-local-data --grace-period=10 "$node"; | |
| done |
| #!/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 |
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
| #!/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 |