Skip to content

Instantly share code, notes, and snippets.

View cristopher-rodrigues's full-sized avatar
🏠
Working from home

Cristopher Rodrigues cristopher-rodrigues

🏠
Working from home
View GitHub Profile
@cristopher-rodrigues
cristopher-rodrigues / ssh.markdown
Last active July 11, 2020 17:02
SSH POWER BASH
SOUND WHEN GET A RESPONSE

ping -i 60 -a ADDRESS
S.O/HARD INFOS

@cristopher-rodrigues
cristopher-rodrigues / user_model.js
Last active October 28, 2015 20:04
user model mongoose with password
var mongoose = require("mongoose"),
Schema = mongoose.Schema,
bcrypt = require("bcrypt"),
SALT_WORK_FACTOR = 10;
var UserSchema = new Schema({
username: { type: String, required: true, index: { unique: true } },
password: { type: String, required: true }
});
git filter-branch --commit-filter
'
if [ "$GIT_COMMITTER_NAME" = "cristopher" ];
then
GIT_COMMITTER_NAME="cristopher-rodrigues";
GIT_AUTHOR_NAME="cristopher-rodrigues";
GIT_COMMITTER_EMAIL="[email protected]";
GIT_AUTHOR_EMAIL="[email protected]";
git commit-tree "$@";
else
@cristopher-rodrigues
cristopher-rodrigues / makeConstraints.php
Last active December 10, 2015 03:03
Make Constraints Class (SF&Doctrine)
<?php
use DMS;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\Common\Annotations\AnnotationReader;
use Symfony\Component\Validator;
class makeConstraints {

2014/12/09

PHP HHVM +18

CGI, FASTCGI, WSGI, FPM

Cache, mod_php, compiladores opcodes

HHVM (Instalando e configurando), Hack Lang