-
brew install gnupg, pinentry-mac
(this includes gpg-agent and pinentry) -
Generate a key:
$ gpg --gen-key
-
Take the defaults. Whatevs
-
Tell gpg-agent to use pinentry-mac:
$ vim ~/.gnupg/gpg-agent.conf
[program:gilad-worker] | |
command=php /home/gilad/vol/www/a.blazemeter.com/vendor/kamisama/php-resque-ex/bin/resque | |
directory=/home/gilad/vol/www/a.blazemeter.com | |
autorestart=true | |
autostart=true | |
startretries=10000 | |
stderr_logfile=/var/log/blazemeter/%(program_name)s-error.log | |
stdout_logfile=/var/log/blazemeter/%(program_name)s.log |
<?php | |
ini_set('display_errors', true); | |
ini_set('display_startup_errors', true); | |
error_reporting(E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_STRICT); | |
if (function_exists('newrelic_disable_autorum')) { | |
newrelic_disable_autorum(); | |
} | |
$files = glob(__DIR__ . '/env-config/*.{json,yml}', GLOB_BRACE); |
# These examples assume you have a container currently running. | |
# 1 Pipe from a file | |
sudo docker exec --interactive CONTAINER_NAME /bin/bash < the_beginning.sh | tee the_beginning_output.txt` | |
#2a Pipe by piping | |
echo "echo This is how we pipe to docker exec" | sudo docker exec --interactive CONTAINER_NAME /bin/bash - |
No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.
Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.
- A Russian translation of this article can be found here, contributed by Timur Demin.
- A Turkish translation can be found here, contributed by agyild.
- There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
# Install linux update, followed by GCC and Make | |
sudo yum -y update | |
sudo yum install -y gcc make | |
# Install Nginx and php56-FPM | |
sudo yum install -y nginx php56-fpm | |
# Install php56 extensions | |
sudo yum install -y php56-devel php-mysql php56-pdo php56-pear php56-mbstring php56-cli php56-odbc php56-imap php56-gd php56-xml php56-soap |
- name: create a local temp directory | |
local_action: | |
module: command mktemp -d "{{ lookup('env', 'TMPDIR') | default('/tmp/') }}ansible.XXXX" | |
register: mktemp_output |
import pip | |
import subprocess | |
for dist in pip.get_installed_distributions(): | |
call_str = "pip install --upgrade {0}".format(dist.project_name) | |
print "Upgrading {}".format(dist.project_name) | |
subprocess.call(call_str, shell=True) |
When you read about how to create and consume a pre-signed url on this guide, everything is really easy. You get your Postman and it works like a charm in the first run.
Then you open your browser, try your usual $.ajax() and send your PUT operation, and you hit the cold iced wall of AWS error message, a simple <Code>SignatureDoesNotMatch</Code>
that will steal hours from your productivity.
So here I come to save you and give you a free working example of how to upload a file directly to AWS S3 from your browser. You are wellcome :).