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
| wifi-menu | |
| ping -c3 www.google.com | |
| lsblk | |
| cfdisk /dev/sda | |
| mkfs.ext4 /dev/sda1 | |
| mkfs.ext4 /dev/sda5 | |
| mkswap /dev/sda3 | |
| swapon /dev/sda3 |
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
| locale | |
| locale: Cannot set LC_CTYPE to default locale: No such file or directory | |
| locale: Cannot set LC_MESSAGES to default locale: No such file or directory | |
| locale: Cannot set LC_ALL to default locale: No such file or directory | |
| LANG=en_US.UTF-8 | |
| LC_CTYPE=en_US.UTF-8 | |
| LC_NUMERIC="en_US.UTF-8" | |
| LC_TIME="en_US.UTF-8" | |
| LC_COLLATE="en_US.UTF-8" | |
| LC_MONETARY="en_US.UTF-8" |
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
| Run the following two commands from your WEBSITE root directory, | |
| it will recursively change all directory permission to 755, | |
| and all file permissions to 644: | |
| find . -type d -exec chmod 755 {} \; | |
| find . -type f -exec chmod 644 {} \; |
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
| $config['base_url'] = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http"); | |
| $config['base_url'] .= "://".$_SERVER['HTTP_HOST']; | |
| $config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']); |
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. git clone | |
| 2. npm install | |
| 3. bower install | |
| 4. grunt init | |
| 5. ionic state reset | |
| 6. open platforms/android/res/xml/authenticator.xml | |
| edit | |
| android:accountType="@string/aam_account_type" |
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
| First, remove this from index.php (the Phil Sturgeon bit): | |
| function __autoload($class) | |
| { | |
| if(strpos($class, 'CI_') !== 0) | |
| { | |
| @include_once( APPPATH . 'core/'. $class . EXT ); | |
| } | |
| } | |
| Then, add the following to index.php, right before the "LOAD THE BOOTSTRAP FILE" bit. This is the composer autoload. |
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
| db.copyDatabase(<from_db>, <to_db>, <from_hostname>, <username>, <password>); |
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
| db.banner.update({}, {$rename: {'imageUrl': 'imgUrl'}}, {multi:true}); |
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
| brew install ruby | |
| sudo gem update --system | |
| sudo gem install compass | |
| npm install -g yo | |
| npm install -g generator-angular | |
| npm install -g generator-karma |
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
| ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl |