I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| <?php | |
| public function buscaParceiro(Request $request){ | |
| $string = $request->get('pesquisa'); | |
| $parceiro = DB::table('usuario') | |
| ->join('pessoa', 'pessoa.filho_id', '=', 'usuario.id') | |
| ->where('usuario.filho_type', '=', "'CompraSerrana\Parceiro'") | |
| ->where('pessoa.nome', 'LIKE', "%$string%") | |
| ->get(); |
| /** | |
| * $.parseParams - parse query string paramaters into an object. | |
| */ | |
| (function($) { | |
| var re = /([^&=]+)=?([^&]*)/g; | |
| var decodeRE = /\+/g; // Regex for replacing addition symbol with a space | |
| var decode = function (str) {return decodeURIComponent( str.replace(decodeRE, " ") );}; | |
| $.parseParams = function(query) { | |
| var params = {}, e; | |
| while ( e = re.exec(query) ) { |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
At some point you’ll find yourself in a situation where you need edit a commit message. That commit might already be pushed or not, be the most recent or burried below 10 other commits, but fear not, git has your back 🙂.
git commit --amendThis will open your $EDITOR and let you change the message. Continue with your usual git push origin master.
| # Add to nginx.conf http section | |
| map $http_upgrade $connection_upgrade { | |
| default upgrade; | |
| '' close; | |
| } |
| #!/bin/sh | |
| version="2.6.3" | |
| priority="20603" | |
| sudo mkdir -p /var/redis /var/log/redis | |
| curl -sL http://redis.googlecode.com/files/redis-${version}.tar.gz | tar zx | |
| cd redis-${version}/ | |
| make | |
| sudo make PREFIX=/usr/local/redis/${version} install |
| //1. Generate a random string: | |
| Math.random().toString(36).substr(2); | |
| //This simply generates a random float, casts it into a String using base 36 and remove the 2 first chars 0 and .. | |
| //2. Clone an array: | |
| var newA = myArray.slice(0); | |
| //This will return a copy of the array, ensuring no other variables point to it. | |
| //3. Remove HTML tags: | |
| "<b>A</b>".replace(/<[^>]+>/gi, ""); |
Delete all containers
$ docker ps -q -a | xargs docker rm
-q prints only the container IDs -a prints all containers
Notice that it uses xargs to issue a remove container command for each container ID
Note: This was written using elasticsearch 0.9.
Elasticsearch will automatically create an index (with basic settings and mappings) for you if you post a first document:
$ curl -X POST 'http://localhost:9200/thegame/weapons/1' -d \
'{
"_id": 1,