Firstly install Brew on your MAC
- ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then install PHP
- brew update
- brew tap homebrew/dupes
- brew tap homebrew/php
- brew install php71
#!/bin/bash | |
# curl -s https://gist.githubusercontent.com/kuyseng/ebbb8eb8862136cfae9fd3926e7acd4c/raw/create-yoolk-dev-env.sh | bash | |
cat > compose-dev.yaml <<- EOM | |
version: '3.8' | |
services: | |
app: | |
image: kuyseng/ruby:v2.3.1 | |
init: true | |
entrypoint: 'sleep infinite' |
#!/bin/bash | |
# For Unix OS such as: Ubuntu, Mac | |
## install | |
# - curl -o linkedin_download.sh https://gist.githubusercontent.com/kuyseng/53e6ebbab78ce7979c579bdd70319594/raw/e6552ebddc398025c7f4f58cd5fad5c22a7a5c43/linkedin_download.sh | |
# - chmod +x linkedin_download.sh | |
# - mv linkedin_download.sh /usr/local/bin/. | |
# restart your terminal | |
## Usage: | |
# linked_download.sh COOKIE_PATH [URL | LIST_PATH] |
## run to install: bash <(curl -s https://gist.githubusercontent.com/kuyseng/139b185870812c9a22a14219564295b4/raw) ## | |
echo "== install docker ==" | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
sudo apt-get update | |
sudo apt-get install -y docker-ce nginx fail2ban unzip | |
sudo usermod -aG docker ${USER} | |
#su - ${USER} | |
echo "== install docker-compose ==" |
var mainContent = document.getElementById('mainContent'); | |
var tds = mainContent.getElementsByTagName('td'); | |
var texts = []; | |
for(var i=2, len=tds.length; i< len; i++) { | |
if(/\[P|F\]/.test(tds[i].innerHTML) || i > 4 ) { break } | |
texts.push(tds[i].textContent.trim()); | |
} | |
texts.join(', '); |
Firstly install Brew on your MAC
Then install PHP
<script src="http://cdnjs.cloudflare.com/ajax/libs/processing.js/1.4.1/processing-api.min.js"></script><html> | |
<!-- | |
Created using jsbin.com | |
Source can be edited via http://jsbin.com/pdfjs-helloworld-v2/8598/edit | |
--> | |
<body> | |
<canvas id="the-canvas" style="border:1px solid black"></canvas> | |
<input id='pdf' type='file'/> | |
<!-- Use latest PDF.js build from Github --> |
https://devcenter.heroku.com/articles/custom-domains http://thenomadicfreelancer.blogspot.com/2012/08/pointing-godaddy-domain-to-your-heroku.html
For each custom subdomain use domains:add
in the Terminal.
// delegate methods to wow-book | |
angular.forEach([ 'insertPage', 'insertPages', 'insertDoublePage', 'removePages' ], | |
function(name) { | |
ctrl[name] = function() { return ctrl.book[name].apply(ctrl.book, arguments) }; | |
}) |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
// this controller depends on StyleSwitcherController in instant_website | |
;(function () { | |
'use strict'; | |
angular | |
.module('iwApp') | |
.controller('SmartSite.Customize.SmartColorController', SmartColorController); | |
SmartColorController.$inject = ['$controller', '$scope', '$state', '$timeout', '$q', 'events', 'ApiService', 'logoFactory', 'SmartColorService']; |