Skip to content

Instantly share code, notes, and snippets.

View wendellpalazzo's full-sized avatar

Wendell Palazzo wendellpalazzo

View GitHub Profile
@wendellpalazzo
wendellpalazzo / 0_reuse_code.js
Created January 31, 2014 15:29
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@wendellpalazzo
wendellpalazzo / new_gist_file_0
Created April 2, 2014 14:47
Expressão regular php para remover texto e trazer apenas sequencia numérica
preg_match_all("/[0-9]+/", "200 a 400",$m);
@wendellpalazzo
wendellpalazzo / CronRunCommand.php
Created June 26, 2017 00:55 — forked from sisou/CronRunCommand.php
Cron job command for Laravel 4.2
<?php
# Cron job command for Laravel 4.2
# Inspired by Laravel 5's new upcoming scheduler (https://laravel-news.com/2014/11/laravel-5-scheduler)
#
# Author: Soren Schwert (GitHub: sisou)
#
# Requirements:
# =============
# PHP 5.4
@wendellpalazzo
wendellpalazzo / cat linux
Last active August 12, 2020 17:29
usando cat pra escrever arquivo no linux
cat > <<filename>>
... text...
... text...
[Enter]
ctrl + d pra finalizar
@wendellpalazzo
wendellpalazzo / a-mongodb-replica-set-docker-compose-readme.md
Created June 21, 2022 13:33 — forked from harveyconnor/a-mongodb-replica-set-docker-compose-readme.md
MongoDB Replica Set / docker-compose / mongoose transaction with persistent volume

This will guide you through setting up a replica set in a docker environment using.

  • Docker Compose
  • MongoDB Replica Sets
  • Mongoose
  • Mongoose Transactions

Thanks to https://gist.github.com/asoorm for helping with their docker-compose file!