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
mkdir tpm_empty_dir | |
robocopy tpm_empty_dir the_dir_to_make_empty /s /mir | |
rmdir tpm_empty_dir |
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 | |
/* | |
Get location info by google latitude and longitude via Google Map API and CURL | |
You may need to change the proxy ip:port and auth username:pass or keep them empty. | |
*/ | |
/* | |
* | |
* @ param string $url as 'http://maps.google.com'; Page url location which you want to fetch | |
* @ param string $proxy [optional] as '[proxy IP]:[port]'; Proxy address and port number |
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 aws_router = require('./routes/aws'); | |
app.use('/aws', aws_router); | |
//npm install aws-sdk | |
//visit http://localhost:3000/aws/table-list |
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
module.exports = function(grunt){ | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
cssmin: { | |
my_target: { | |
files: [{ | |
expand: true, | |
cwd: 'css/', | |
src: ['*.css', '!*.min.css'], |
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
module.exports = function(grunt){ | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
uglify: { | |
options: { | |
manage: false | |
}, | |
my_target: { | |
files: [{ |
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
module.exports = function(grunt){ | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
concat: { | |
options: { | |
seperator: ";", | |
stripBanners: true, | |
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' + '<%= grunt.template.today("yyyy-mm-dd") %> */ \n', | |
}, |
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
{ | |
"directory": "assets/vendor" | |
} |
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
composer create-project croogo/app app-name | |
cd app-name | |
composer install | |
brackets . //opening project with brackets editor | |
//edit (replace notEmpty with notBlank): | |
// Vendor/croogo/croogo/Users/Model/Role.php | |
// Vendor/croogo/croogo/Users/Model/RolesUser.php | |
// Vendor/croogo/croogo/Users/Model/User.php | |
//create database with phpmyadmin | |
//browser http://your-domain.com/ |
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
visit and install: https://www.vagrantup.com/ | |
visit and install: https://www.virtualbox.org/ | |
CMD: | |
vagrant -v | |
mkdir vagrant-centos | |
cd vagrant-centos | |
vagrant init osname [image-link from http://www.vagrantbox.es/] | |
ls | |
vim Vagrantfile | |
:wq! [Save and come out] |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure(2) do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |