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
| JAVASCRIPT | |
| I would like to let you know that most people go through a Javascript test which will have to be very well commented on (with proper indentations and follow strictly the descriptions as following). You will have 7 days to take the test and pass it back to us. | |
| Basic Requirement: | |
| - Build a chart with custom icons | |
| - Build an editor to accommodate the chart |
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
| if you get error message: | |
| undefined method `equipment_index_path' | |
| you are probably violated the pluralize convention when naming the model. | |
| For next time, please launch rails c, then use '[Enter word here]'.pluralize to make sure the word fits the convention. |
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
| After wondering why I can't pass my model validation after assigning false boolean, | |
| I run some test in console. | |
| I found out that the value false is equivalent to blank. So if you set your model to validate presence, you will get error when you pass false into your input field. |
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
| After configure Nginx and Passenger correctly, you should check on config/environments/production.rb to make sure that force-ssl is false. If you tend to use SSl for your application, you will be using port 443 and required to buy SSL certificate from vendors. |
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
| Taken from: http://alexbachuk.com/launch-rails-4-application-with-passenger-and-nginx/ | |
| ssh root@111.111.1.111 SSH as root, using IP address and password you get by email | |
| adduser alex Create new username, because using root is not recommended. | |
| visudo Open sudo config file and add admin privileges to newly created user. | |
| alex ALL=(ALL) ALL) add this and ctrl+x to save ‘y’ and enter to overwrite | |
| sudo apt-get update update system packages | |
| curl -L get.rvm.io | bash -s stable install ruby version manager | |
| source ~/.rvm/scripts/rvm load RVM | |
| rvm requirements install all RVM dependencies |
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
| boot live cd | |
| sudo add-apt-repository ppa:yannubuntu/boot-repair | |
| sudo apt-get update | |
| sudo apt-get install -y boot-repair | |
| boot-repair |
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
| txtblk='\e[0;30m' # Black - Regular | |
| txtred='\e[0;31m' # Red | |
| txtgrn='\e[0;32m' # Green | |
| txtylw='\e[0;33m' # Yellow | |
| txtblu='\e[0;34m' # Blue | |
| txtpur='\e[0;35m' # Purple | |
| txtcyn='\e[0;36m' # Cyan | |
| txtwht='\e[0;37m' # White | |
| bldblk='\e[1;30m' # Black - Bold | |
| bldred='\e[1;31m' # Red |
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
| For Atom editor, the whitespace trailing removal is activated as default, which is annoying because it overrides your files without telling you then cause massive git diff in your project. | |
| To disable this: | |
| 1. Go to Edit >> Preferences | |
| 2. Select Packages, search for whitespace, then click edit | |
| 3. untick Remove Trailing Whitespace | |
| You are good to go. |
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 iAtkos S3v2 | |
| Restore iAtkos S3 image to USB | |
| Install Chameleon into USB | |
| Boot iAtkos S3 USB with -v -x | |
| Chameleon RC5, GraphicsEnabler=Yes, RTCFix, USBBusFix, VoodooHDA, PS2, dont pick VoodooBattery | |
| After installation, boot with -v -x (remember to connect USB mouse and keyboard) | |
| After setting up, reboot |
OlderNewer