This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install dnsmasq | |
mkdir -pv $(brew --prefix)/etc/ | |
echo 'address=/.dev/192.168.10.10' > $(brew --prefix)/etc/dnsmasq.conf | |
sudo cp -v $(brew --prefix dnsmasq)/homebrew.mxcl.dnsmasq.plist /Library/LaunchDaemons | |
sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist | |
sudo mkdir -v /etc/resolver | |
sudo bash -c 'echo "nameserver 127.0.0.1" > /etc/resolver/dev' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Promise = require('es6-promise').Promise; | |
var gulp = require('gulp'); | |
var less = require('gulp-less'); | |
var uglify = require('gulp-uglify'); | |
var cssmin = require('gulp-clean-css'); | |
var autoprefixer = require('gulp-autoprefixer'); | |
// Perform tasks in given sequence | |
gulp.task('assets', ['css', 'js', 'img']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Disable xdebug when using composer | |
function composer() { COMPOSER="$(which composer)" || { echo "Could not find composer in path" >&2 ; return 1 ; } && sudo phpdismod -s cli xdebug ; $COMPOSER "$@" ; STATUS=$? ; sudo phpenmod -s cli xdebug ; return $STATUS ; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media (max-width: 1100px) { | |
* { outline: 2px dotted red;} | |
* * { outline: 2px dotted green; background: white} | |
* * * { outline: 2px dotted orange; background: #888} | |
* * * * { outline: 2px dotted blue; background: #666} | |
* * * * * { outline: 1px solid red; background: #444} | |
* * * * * * { outline: 1px solid green; background: #333} | |
* * * * * * * { outline: 1px solid orange; background: #222} | |
* * * * * * * * { outline: 1px solid blue; background: #111} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo fallocate -l 2G /swapfile | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
sudo swapon -s | |
sudo echo /swapfile none swap sw 0 0 >> /etc/fstab | |
sudo echo vm.swappiness = 10 >> /etc/sysctl.conf | |
sudo echo >> vm.vfs_cache_pressure = 50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Requests; | |
use App\Http\Requests\Request; | |
use Illuminate\Contracts\Validation\Validator; | |
class EntryRequest extends Request { | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Promise = require('es6-promise').Promise | |
gulp = require('gulp') | |
less = require('gulp-less') | |
uglify = require('gulp-uglify') | |
cssmin = require('gulp-clean-css') | |
autoprefixer = require('gulp-autoprefixer') | |
# Perform tasks in given sequence | |
gulp.task('assets', ['css', 'js', 'img']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# remove exited containers: | |
docker ps --filter status=dead --filter status=exited -aq | xargs -r docker rm -v | |
# remove unused images: | |
docker images --no-trunc | grep '<none>' | awk '{ print $3 }' | xargs -r docker rmi | |
# remove unused volumes: | |
find '/var/lib/docker/volumes/' -mindepth 1 -maxdepth 1 -type d | grep -vFf <( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From da806e2b643379d024b075dd57dc8f966acc01a9 Mon Sep 17 00:00:00 2001 | |
From: Eugene Min <e.v.min@icloud.com> | |
Date: Sun, 14 Feb 2016 08:36:50 +1000 | |
Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=B2=D0=BC=D0=B5=D1=81=D1=82?= | |
=?UTF-8?q?=D0=B8=D0=BC=D0=BE=D1=81=D1=82=D1=8C=20=D1=81=20php=205.6?= | |
MIME-Version: 1.0 | |
Content-Type: text/plain; charset=UTF-8 | |
Content-Transfer-Encoding: 8bit | |
--- |
OlderNewer