I hereby claim:
- I am mrmuli on github.
- I am mrmuli_ (https://keybase.io/mrmuli_) on keybase.
- I have a public key ASD_WuOwAHAj1jr9_n6Pr_Pb5Ol5l4kMnc-8GwGjarjJfAo
To claim this, I am signing this object:
| ### Keybase proof | |
| I hereby claim: | |
| * I am mrmuli on github. | |
| * I am jxm9528 (https://keybase.io/jxm9528) on keybase. | |
| * I have a public key ASB-1b0_QvPlo6k7awFvolNU_CICtf2KKnWOa_6ivgKkAQo | |
| To claim this, I am signing this object: |
| # | |
| # A CORS (Cross-Origin Resouce Sharing) config for nginx | |
| # | |
| # == Purpose | |
| # | |
| # This nginx configuration enables CORS requests in the following way: | |
| # - enables CORS just for origins on a whitelist specified by a regular expression | |
| # - CORS preflight request (OPTIONS) are responded immediately | |
| # - Access-Control-Allow-Credentials=true for GET and POST requests |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| # this script runs a clean up of files that are older than last 15 days | |
| # command to get files older by x numer of days | |
| # update the bucket and target_location variables to your required destination | |
| ## vars ## | |
| s3bucket=your-bucket-name-here | |
| target_location=directory-with-target-work |
| ## credit: http://fabian-affolter.ch/blog/the-lineinfile-module-of-ansible/ | |
| --- | |
| - hosts: alpine_install | |
| user: root | |
| tasks: | |
| # - name: create a complete empty file | |
| # command: /usr/bin/touch /test/test.conf | |
| - name: create a new file with lineinfile |
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(query_start, clock_timestamp()), 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(query_start, clock_timestamp()), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
| export CHROME_BIN=/usr/bin/google-chrome | |
| export DISPLAY=:99.0 | |
| sh -e /etc/init.d/xvfb start | |
| sudo apt-get update | |
| sudo apt-get install -y libappindicator1 fonts-liberation | |
| wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
| sudo dpkg -i google-chrome*.deb |