- Spectacle
- Reverse Scrolling
- MySQLWorkbench
- Sublime
- Atom
- Virtual Box
- Source Tree
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
| Installed color MySQL | |
| https://github.com/nitso/colour-mysql-console | |
| Access from host | |
| > ip add | |
| mysql> mysql -u root; | |
| mysql> grant all on prefix.* to [email protected]; | |
| mysql> flush privileges; |
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
| SET @OLD = '//old-site.com'; | |
| SET @NEW = '//new-site.com'; | |
| UPDATE wp_posts SET guid = REPLACE(guid, '@OLD', '@NEW'); | |
| UPDATE wp_posts SET post_content = REPLACE(post_content, '@OLD', '@NEW'); | |
| UPDATE wp_postmeta SET meta_value = REPLACE(meta_value, '@OLD', '@NEW'); | |
| UPDATE wp_options SET option_value = REPLACE(option_value, '@OLD', '@NEW') WHERE option_name = 'home' OR option_name = 'siteurl'; |
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 npm install -g strongloop | |
| slc loopback | |
| slc loopback:datasource ItemsDB | |
| > MongoDB | |
| slc loopback:model Item | |
| Item | |
| >item(mongodb) | |
| slc run |
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
| ad uninstall com.example.android.wearablemessageapiexample |
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
| Some settings on your machine make Composer unable to work properly. | |
| Make sure that you fix the issues listed below and run this script again: | |
| The suhosin.executor.include.whitelist setting is incorrect. | |
| Add the following to the end of your `php.ini` or suhosin.ini (Example path [for Debian]: /etc/php5/cli/conf.d/suhosin.ini): | |
| suhosin.executor.include.whitelist = phar | |
| The php.ini used by your command-line PHP is: /etc/php5/cli/php.ini | |
| If you can not modify the ini file, you can also run `php -d option=value` to modify ini values on the fly. You can use -d multiple times. |
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 alt = $('.image-content img').attr('alt'); | |
| if (alt =="We'll be back soon") { | |
| var rand = (Math.floor(Math.random() * 200) + 1 ) / 100; // 0.01 to 2 sec | |
| console.log("We'll be back soon :D "); | |
| console.log('random refresh in ' + rand + 'sec'); | |
| setTimeout(redirect(), rand); | |
| } else { | |
| alert('PAGE AVAILABLE !!!'); | |
| } |
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
| wget -r --user='[email protected]' --password='mypwd' ftp.example.com |
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 = "My Vagrant" | |
| # 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
| # 1. This .htaccess located in root level | |
| # 2. Wordpress source in '{root}/lowb.me/public' | |
| # 3. Add below in wp-config.php | |
| # define('WP_HOME','http://lowb.me/lowb.me/public'); | |
| # define('WP_SITEURL','http://lowb.me'); | |
| # Ref: | |
| # http://marktyrrell.com/2012/09/installing-wordpress-in-a-subdirectory-running-it-from-the-root-directory/ | |
| # Turn on rewrites. |