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
<body> | |
<p>Image to use:</p> | |
<img id="scream" width="64" height="64" src="http://placehold.it/64/55C1E7/fff&text=T" alt="The Scream"> | |
<p>Canvas:</p> | |
<canvas id="myCanvas" width="500" height="800" style="border:1px solid #d3d3d3;"> | |
Your browser does not support the HTML5 canvas tag. | |
</canvas> | |
<script> |
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 gedit /etc/default/grub | |
# change | |
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" | |
# into | |
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=" | |
#then |
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
alias work="cd ~/scotch-box && vagrant up" | |
alias in="cd ~/scotch-box && vagrant ssh" | |
alias go="cd ~/scotch-box/public" | |
alias home="cd ~/scotch-box && vagrant halt" | |
alias gpush="git push -u origin master" | |
alias gpull="git pull -u origin master" | |
alias l:serve="php artisan serve --host=192.168.33.10" | |
alias dream="sudo shutdown -h now" | |
alias android:cap="adb shell screencap -p /sdcard/screen.png && adb pull /sdcard/screen.png" |
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 | |
/** | |
* This script is for easily deploying updates to Github repos to your local server. It will automatically git clone or | |
* git pull in your repo directory every time an update is pushed to your $BRANCH (configured below). | |
* | |
* Read more about how to use this script at http://behindcompanies.com/2014/01/a-simple-script-for-deploying-code-with-githubs-webhooks/ | |
* | |
* INSTRUCTIONS: | |
* 1. Edit the variables below | |
* 2. Upload this script to your server somewhere it can be publicly accessed |
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
Download the following ZIPs: | |
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links) | |
Download the correct GApps for your Android version: | |
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip) | |
Google Apps for Android 4.4.4 (https://www.androidfilehost.com/?fid=23501681358544845 - gapps-kk-20140606-signed.zip) | |
Google Apps for Android 4.3 (https://www.androidfilehost.com/?fid=23060877490000124 - gapps-jb-20130813-signed.zip) | |
Google Apps for Android 4.2 (https://www.androidfilehost.com/?fid=23060877490000128 - gapps-jb-20130812-signed.zip) | |
Google Apps for Android 4.1 (https://www.androidfilehost.com/?fid=22979706399755082 - gapps-jb-20121011-signed.zip) |
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
var gulp = require('gulp'); | |
var less = require('gulp-less'); | |
var notify = require('gulp-notify'); | |
var gutil = require('gulp-util'); | |
var browserSync = require('browser-sync'); | |
gulp.task('less', function(){ | |
return gulp.src(['./less/main.less']) | |
.pipe(less({ compress:true }).on('error', gutil.log)) | |
.pipe(gulp.dest('./css')) |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "scotch/box" | |
config.vm.network "private_network", ip: "192.168.33.10" | |
config.vm.hostname = "scotchbox" | |
config.vm.synced_folder ".", "/var/www", :mount_options => ["dmode=777", "fmode=666"] |
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
// fancybox show | |
$.fancybox(result, { | |
fitToView: true, | |
width:600, | |
autoSize: false, | |
closeClick: false, | |
openEffect: 'fade', | |
closeEffect: 'fade', | |
padding: 0, | |
title: 'Edit Language', |
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
web1: | |
document_root: public | |
php_version: 5.4.14 | |
php_error_reporting: 0 | |
php_extensions: | |
- mbstring | |
- mcrypt | |
- pdo_mysql | |
- redis | |
- zip |
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
### Install OpenJDK | |
cd ~ | |
sudo apt-get update | |
sudo apt-get install openjdk-7-jre-headless -y | |
### Download and Install ElasticSearch | |
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below | |
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.3.1.deb | |
sudo dpkg -i elasticsearch-1.3.1.deb |