Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| <?xml version="1.0" encoding="UTF-8"?> | |
| <persistence xmlns="http://java.sun.com/xml/ns/persistence" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://java.sun.com/xml/ns/persistence | |
| http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" | |
| version="1.0"> | |
| <!-- derby --> |
| #! /usr/bin/env bash | |
| ### | |
| # | |
| # install_mysql.sh | |
| # | |
| # This script assumes your Vagrantfile has been configured to map the root of | |
| # your application to /vagrant and that your web root is the "public" folder | |
| # (Laravel standard). Standard and error output is sent to | |
| # /vagrant/vm_build.log during provisioning. |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
This is a little trick I use to spin up the packages instalation on Debian/Ubuntu boxes in Vagrant.
I add a simple function that checks if a directory named something similar to ~/.vagrant.d/cache/apt/opscode-ubuntu-12.04/partial (it may have another path in Windows or MacOS) and create the directory if it doesn't already exist.
def local_cache(basebox_name)
cache_dir = Vagrant::Environment.new.home_path.join('cache', 'apt', basebox_name)
partial_dir = cache_dir.join('partial')
partial_dir.mkdir unless partial_dir.exist?
cache_dir| // jQuery Meio Mask | |
| $('#celular').setMask("(99) 9999-99999").ready(function(event) { | |
| var target, phone, element; | |
| target = (event.currentTarget) ? event.currentTarget : event.srcElement; | |
| phone = target.value.replace(/\D/g, ''); | |
| element = $(target); | |
| element.unsetMask(); | |
| if(phone.length > 10) { | |
| element.setMask("(99) 99999-9999"); | |
| } else { |
| // jQuery Masked Input | |
| $('#celular').mask("(99) 9999-9999?9").ready(function(event) { | |
| var target, phone, element; | |
| target = (event.currentTarget) ? event.currentTarget : event.srcElement; | |
| phone = target.value.replace(/\D/g, ''); | |
| element = $(target); | |
| element.unmask(); | |
| if(phone.length > 10) { | |
| element.mask("(99) 99999-999?9"); | |
| } else { |
| #!/bin/bash | |
| # Recursive file convertion windows-1251 --> utf-8 | |
| # Place this file in the root of your site, add execute permission and run | |
| # Converts *.php, *.html, *.css, *.js files. | |
| # To add file type by extension, e.g. *.cgi, add '-o -name "*.cgi"' to the find command | |
| find ./ -name "*.php" -o -name "*.html" -o -name "*.css" -o -name "*.js" -type f | | |
| while read file | |
| do |
Adapted (but very updated) from:
http://blog.firsthand.ca/2010/10/installing-redmine-on-heroku-with-s3.html
http://blazingcloud.net/2010/06/18/deploying-a-redmine-wiki-to-heroku/
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.