#!/bin/sh
# Depende del usuario bajo el cual se ha de ejecutar el demonio
USER_DB=mysql
# Los directorios y archivos deben permitir a $USER_DB el acceso a lectura y escritura
DATADIR_DB=/home/mysql/instancia1
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 formData = new FormData(), | |
| $input = $('#avatar'); | |
| formData.append('user[avatar]', $input[0].files[0]); | |
| $.ajax({ | |
| url: this.model.url(), | |
| data: formData, | |
| cache: false, | |
| contentType: false, |
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
| #!/bin/sh | |
| dirs=`ls -1d */` | |
| for d in $dirs | |
| do | |
| echo $d | |
| echo '======================' | |
| IFS=$'\n' lines=($(cd $d; git pull)) | |
| for l in $lines | |
| do | |
| echo $l |
Web fonts are pretty much all the rage. Using a CDN for font libraries, like TypeKit or Google Fonts, will be a great solution for many projects. For others, this is not an option. Especially when you are creating a custom icon library for your project.
Rails and the asset pipeline are great tools, but Rails has yet to get caught up in the custom web font craze.
As with all things Rails, there is more then one way to skin this cat. There is the recommended way, and then there are the other ways.
Here I will show how to update your Rails project so that you can use the asset pipeline appropriately and resource your files using the common Rails convention.
SSH into Root
$ ssh root@123.123.123.123
Change Root Password