This file contains hidden or 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 apt-get update && sudo apt-get install libmcrypt-dev && curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew && chmod +x phpbrew && sudo mv phpbrew /usr/local/bin/ && phpbrew init && [[ -e ~/.phpbrew/bashrc ]] && source ~/.phpbrew/bashrc && phpbrew lookup-prefix ubuntu && phpbrew install 7.0 +default && phpbrew switch php-7.0.1 && phpbrew use php-7.0.1 && php -v |
This file contains hidden or 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
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^(www.)?YourDomain.com$ | |
RewriteRule ^(/)?$ blog [L] |
This file contains hidden or 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
for d in ./*/ ; do (cd "$d" && git reset --hard && git pull origin develop); done |
This file contains hidden or 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
xinput set-prop 11 "Synaptics Palm Detection" 1 | |
xinput set-prop 11 "Synaptics Palm Dimensions" 5, 5 |
This file contains hidden or 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
{ | |
"name": "my-app", | |
"version": "1.0.0", | |
"description": "My test app", | |
"main": "src/js/index.js", | |
"scripts": { | |
"jshint:dist": "jshint src/js/*.js'", | |
"jshint": "npm run jshint:dist", | |
"jscs": "jscs src/*.js", | |
"browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js", |
This file contains hidden or 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 | |
$request = http_build_query($_GET); | |
$server = 'HTTP://YOURSERVERAJAXENDPOINT'; | |
function getCurrentUri(){ | |
$basepath = implode('/', array_slice(explode('/', $_SERVER['SCRIPT_NAME']), 0, -1)) . '/'; | |
$uri = substr($_SERVER['REQUEST_URI'], strlen($basepath)); | |
if (strstr($uri, '?')) $uri = substr($uri, 0, strpos($uri, '?')); | |
$uri = '/' . trim($uri, '/'); |
This file contains hidden or 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
document.getElementById('menu-button').onclick = function() { | |
document.getElementsByTagName('header')[0].classList.toggle('menu-open'); | |
document.querySelector('div.content').classList.toggle('menu-open'); | |
document.querySelector('nav').classList.toggle('menu-open'); | |
return false; | |
}; |