Skip to content

Instantly share code, notes, and snippets.

View mingomax's full-sized avatar
🏠
Working from home

Domingos Teruel mingomax

🏠
Working from home
View GitHub Profile
@mingomax
mingomax / generate-ssh-key.sh
Created June 18, 2018 13:01 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa
@mingomax
mingomax / gist:aa464163dc6c87065a421eb3bf60dd4c
Created October 11, 2016 22:49 — forked from imluxin/gist:5858665
Get random table row with doctrine DQL in Symfony2
<?php
//
// Theory (for MySQL): http://jan.kneschke.de/projects/mysql/order-by-rand/
//
class QuestionRepository extends EntityRepository
{
public function findOneRandom()
{
$em = $this->getEntityManager();
@mingomax
mingomax / Custom.css
Last active December 21, 2015 04:09 — forked from bentruyman/Custom.css
TomorowTheme for Google Developer Tools
/**********************************************/
/*
/* Darker Skin by Darcy Clarke - 2011
/*
/* For how to install, or more themes, check out:
/* http://darcyclarke.me/design/skin-your-chrome-inspector/
/*
/* Color scheme is based on Joe Bergantine's Specials Board:
/* http://joebergantine.com/werkstatt/seestyle
/*
# install xcode via App Store first! It takes awhile
# install the command-line tools as well
# install growl from App Store
# eclipse/android
open http://www.eclipse.org/downloads/packages/eclipse-classic-42/junor
open http://developer.android.com/tools/sdk/eclipse-adt.html
# homebrew