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| #!/usr/bin/env bash | |
| # Set environment variables for dev | |
| export APP_ENV=local | |
| export APP_PORT=80 | |
| export DB_PORT=3306 | |
| export DB_ROOT_PASS=secret | |
| export DB_NAME=homestead | |
| export DB_USER=homestead | |
| export DB_PASS=secret |
| <?php | |
| /* | |
| //Normal query | |
| User::all(); | |
| //Cached query (default 60min) | |
| User::cached()->all(); | |
| //Cached query (5min) |
| <?php | |
| /** | |
| * PHP-Curl | |
| * https://github.com/wenpeng/PHP-Curl | |
| * 一个轻量级的网络操作类,实现GET、POST、UPLOAD、DOWNLOAD常用操作,支持链式写法。 | |
| * | |
| * Author: Wen Peng | |
| * Email: [email protected] | |
| */ | |
| class Curl { |
| #!/bin/sh | |
| command="${*}" | |
| printf "Initialized REPL for [%s]\n" "$command" | |
| printf "%s> " "$command" | |
| read -r input | |
| while [ "$input" != "" ]; | |
| do | |
| eval "$command $input" | |
| printf "\n%s> " "$command" |
| <?php | |
| return Symfony\CS\Config\Config::create() | |
| ->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL) | |
| ->fixers([ | |
| 'short_array_syntax', | |
| 'ordered_use', | |
| ]) | |
| ; |
| #!/bin/bash | |
| PHP_VERSION="5.5.0" | |
| yum -y install \ | |
| curl-devel.x86_64 \ | |
| libmcrypt-devel.x86_64 \ | |
| libxml2-devel.x86_64 \ | |
| libtool-ltdl-devel.x86_64 \ | |
| pcre-devel.x86_64 \ |
| <?php | |
| ignore_user_abort(true); | |
| function syscall ($cmd, $cwd) { | |
| $descriptorspec = array( | |
| 1 => array('pipe', 'w'), // stdout is a pipe that the child will write to | |
| 2 => array('pipe', 'w') // stderr |
I'm in a hospital in Spain and my MacBook was stolen.
Now I bought a new one and need to configure it. I have an external hard drive that backup everything using Time Machine, but I don't want all the crap I had in the old one.