most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat| #!/bin/bash | |
| mkdir -p ~/.ssh | |
| # generate new personal ed25519 ssh keys | |
| ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "rob thijssen <rthijssen@gmail.com>" | |
| ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_robtn -C "rob thijssen <rob@rob.tn>" | |
| # generate new host cert authority (host_ca) ed25519 ssh key | |
| # used for signing host keys and creating host certs |
| <?php | |
| // | |
| // Theory (for MySQL): http://jan.kneschke.de/projects/mysql/order-by-rand/ | |
| // | |
| class QuestionRepository extends EntityRepository | |
| { | |
| public function findOneRandom() | |
| { | |
| $em = $this->getEntityManager(); |
| #!/bin/bash | |
| limpa() { | |
| echo -e "\nDeleting existing minified files..." | |
| find ../js -name \*.min.js -exec rm {} \; | |
| find ../css -name \*.min.css -exec rm {} \; | |
| } | |
| comprime_js() { | |
| echo -e "\nComprimindo e minificando o JavaScript..." |
| <?php | |
| namespace Taf\Member; | |
| use Taf\Member\Base\SessionMap as BaseSessionMap; | |
| use Taf\Member\Session; | |
| use \Pomm\Exception\Exception; | |
| use \Pomm\Query\Where; | |
| use \Pomm\Object\BaseObject; |
| <?php echo <<<VIRUS | |
| Os dados do seu HD estão sendo apagados<br/><hr/> | |
| Para evitar que este vírus destrua seus dados, clique com o botão direito do mouse no seu drive C:\ e clique em formatar. Isso reverterá o processo | |
| VIRUS; |