PHP´s magic ::class-constant will not canonical the casing of your imports.
This can lead to hard to debug errors when you a using a case sensitive service PSR-11-locator like Zend\ServiceManager.
namespace FirstNamespace;
class TestClass {}PHP´s magic ::class-constant will not canonical the casing of your imports.
This can lead to hard to debug errors when you a using a case sensitive service PSR-11-locator like Zend\ServiceManager.
namespace FirstNamespace;
class TestClass {}| <?php | |
| namespace AppBundle\Command; | |
| use Symfony\Component\Console\Command\Command; | |
| use Symfony\Component\Console\Input\InputArgument; | |
| use Symfony\Component\Console\Input\InputInterface; | |
| use Symfony\Component\Console\Input\InputOption; | |
| use Symfony\Component\Console\Output\OutputInterface; | |
| use Symfony\Component\Process\Process; |
Just run this from your Mac terminal and it'll drop you in a container with full permissions on the Docker VM. This also works for Docker for Windows for getting in Moby Linux VM (doesn't work for Windows Containers).
docker run -it --rm --privileged --pid=host justincormack/nsenter1
more info: https://github.com/justincormack/nsenter1
| #cloud-init | |
| # https://docs.chef.io/packages.html#enterprise-linux | |
| # vendor chef-repo to /var/lib/chef with cookbooks in /var/lib/chef/cookbooks | |
| yum_repos: | |
| chef-stable: | |
| name: chef-stable | |
| baseurl: https://packages.chef.io/stable-yum/el/7/\$basearch/ | |
| enabled: true | |
| failovermethod: priority |
| # See also: http://docs.couchdb.org/en/latest/cluster/index.html | |
| # Before you can add nodes to form a cluster, you have to have them listen on a public ip address | |
| # and set up an admin user (use same admin:password for all nodes). | |
| # Do this, once per node: | |
| # If you have installed couchdb in /opt (else change the Path) | |
| cd /opt/couchdb/etc | |
| cp local.ini local.ini.orig | |
| cp vm.args vm.args.orig |
| .host:/vmshared /mnt/vmshared fuse.vmhgfs-fuse allow_other,uid=1000,gid=1000,auto_unmount,defaults 0 0 |
| # Let apache know we're behind a SSL reverse proxy | |
| SetEnvIf X-Forwarded-Proto "https" HTTPS=on | |
| # Redirect to HTTPS | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine on | |
| RewriteCond %{HTTPS} !=on | |
| RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC] | |
| RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
| </IFModule> |
| sudo su | |
| echo "core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern | |
| ulimit -c unlimited |
In some cases the IC might determine that a PM meeting for the incident isn't needed.
If the IC decides to waive the meeting please replace the Meeting section with a
note indicating the meeting has been waived (example: Meeting waived: Paul Mooring)
Part of a lesson for the Stanford Journalism Computational Methods in the Civic Sphere
This is a short tutorial on how to use command-line tools, including csvfix and t, the command-line Twitter interface, to access and parse data from the Sunlight Foundation and Twitter. The end goal of this exercise is to gather who everyone in Congress follows (friends, in the parlance of Twitter), and then count up the common friends to find out which Twitter accounts are most followed by members of Congress.
Here's a screenshot of the result, after it's been imported into [Google Spreadsheets](https://docs.google.com/spreadsheets/d/1cjRJyrPYj8KAhUrot8ubPOWgbAwm0OqIgPtsswJ2sjM/edit#gid=1358907576