- version 3.6
Check those constraints:
$this->anything()
| #localtunnel | |
| server { | |
| listen 80; | |
| server_name 3ay5.localtunnel.com; | |
| access_log /var/log/nginx/digital-version.nzz.lo.log; | |
| location / { | |
| root /home/ralphmeier/eos/digital-version/web; | |
| index app_dev.php; |
| #!/usr/bin/env ruby | |
| require 'syslog' | |
| require 'net/http' | |
| require 'aws-sdk' | |
| Syslog.open | |
| AWS.config({ | |
| :access_key_id => '<iam user key>', | |
| :secret_access_key => '<iam user secret>' |
| /* Brazilian initialisation for the jQuery UI date picker plugin. */ | |
| /* Written by Leonildo Costa Silva (leocsilva@gmail.com). */ | |
| jQuery(function($){ | |
| $.datepicker.regional['pt-BR'] = { | |
| closeText: 'Fechar', | |
| prevText: '<Anterior', | |
| nextText: 'Próximo>', | |
| currentText: 'Hoje', | |
| monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho', | |
| 'Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'], |
| # There are 3 levels of git config; project, global and system. | |
| # project: Project configs are only available for the current project and stored in .git/config in the project's directory. | |
| # global: Global configs are available for all projects for the current user and stored in ~/.gitconfig. | |
| # system: System configs are available for all the users/projects and stored in /etc/gitconfig. | |
| # Create a project specific config, you have to execute this under the project's directory. | |
| $ git config user.name "John Doe" | |
| # Create a global config |
#Teclas de atalhos do PHPStorm com funções semelhantes ao Sublime Text, e outras interessantes.
| Sublime Text | PHPStorm | Função |
|---|---|---|
| CMD+P | CMD+Shift+O | Busca por arquivos no projeto |
| CMD+R | CMD+F12 (1) | Lista os métodos da classe e outros símbolos |
| CMD+F | CMD+F | Busca no arquivo |
| CMD+Option+F | CMD+R | Busca e troca os valores no arquivo |
| CMD+Shift+F | CMD+Shift+F | Busca, busca e troca e outros em um determinado caminho com várias regras. |
| CMD+D (2) | Option+Up (2) | Seleciona palavra |
| #!/bin/bash | |
| ### USAGE | |
| ### | |
| ### ./ElasticSearch.sh 1.7 will install Elasticsearch 1.7 | |
| ### ./ElasticSearch.sh will fail because no version was specified (exit code 1) | |
| ### | |
| ### CLI options Contributed by @janpieper | |
| ### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch |
# Prerequisites: netcat-openbsd (BSD version of netcat)
$ ssh -fND 127.0.0.1:8081 user@<your-vps>
$ git config --global url."https://github".insteadOf git://github
$ git config --global http.proxy 'socks5://127.0.0.1:8081'
$ echo -e 'Host github.com\nProxyCommand nc -x 127.0.0.1:8081 %h %p' >> ~/.ssh/configAlternative solutions:
| public function index(){ | |
| $categoryList = Category::all(); | |
| return view('category.list')->with('categoryList', $categoryList); | |
| } |
| <?php | |
| namespace Acme\CoreBundle\Classes\Cache; | |
| class AcmeMemcached extends \Memcached { | |
| function __construct($persistent_id) | |
| { |