I no personal preference/order
vim-elixir: Vim configuration files for Elixir
Janus: This is a distribution of plug-ins and mappings for Vim, Gvim and MacVim.
I no personal preference/order
vim-elixir: Vim configuration files for Elixir
Janus: This is a distribution of plug-ins and mappings for Vim, Gvim and MacVim.
<?php | |
namespace Fk\Core\Infrastructure\Bundle; | |
use Symfony\Component\HttpKernel\Bundle\Bundle; | |
/** | |
* The compact bundle combines a bundle definition with an {@link ExtensionInterface} to provide sound defaults for | |
* implementing custom bundles. | |
*/ | |
abstract class CompactBundle extends Bundle |
The API we are creating in this gist will follow these rules :
password
Grant Type only (no need for Authorization pages and such).v1.api.example.com
)The API will be written in PHP with the Symfony 3 framework. The following SF2 bundles are used :
## Prerequisite: You must either boot to your OS on runlevel 3, or you must manually disable all
## instances of the X server when running the NVIDIA installer.
# Check if you have the packman repository installed
$ zypper lr
# output will be like this:
# | Alias | Name | Enabled | GPG Check | Refresh
---+-----------------------+-----------------------+---------+-----------+--------
1 | RepoAlias | RepoName | Yes/No | Yes/No | Yes/No
<?php | |
// public/cliserver.php (router script) | |
if (php_sapi_name() !== 'cli-server') { | |
die('this is only for the php development server'); | |
} | |
if (is_file($_SERVER['DOCUMENT_ROOT'].'/'.$_SERVER['SCRIPT_NAME'])) { | |
// probably a static file... | |
return false; |
<?php | |
final class GetProjectsController extends Controller | |
{ | |
/** | |
* @var QueryObjectFactory | |
*/ | |
private $queryObjectFactory; | |
/** |
{ | |
"APIGatewayServiceRolePolicy": { | |
"Arn": "arn:aws:iam::aws:policy/aws-service-role/APIGatewayServiceRolePolicy", | |
"AttachmentCount": 0, | |
"CreateDate": "2019-10-22T18:22:01+00:00", | |
"DefaultVersionId": "v6", | |
"Document": { | |
"Statement": [ | |
{ | |
"Action": [ |
# This is just a cheat sheet: | |
# On production | |
sudo -u postgres pg_dump database | gzip -9 > database.sql.gz | |
# On local | |
scp -C production:~/database.sql.gz | |
dropdb database && createdb database | |
gunzip < database.sql.gz | psql database |
FROM php:5.6-cli | |
RUN apt-get update \ | |
&& apt-get install -y \ | |
libfreetype6-dev \ | |
&& rm -rf /var/lib/apt/lists/* \ | |
&& docker-php-ext-install iconv \ | |
&& apt-get remove -y \ | |
libfreetype6-dev \ | |
&& apt-get install -y \ |