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
| <?PHP | |
| $url = "http://blog.code-grove.net"; | |
| echo urlShorten($url); | |
| exit(); | |
| function urlShorten($url, $times2Split = 6) | |
| { | |
| $encoded2 = generateHashes($url); | |
| // for testing purposes we're only using the $encoded['md5'] |
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
| #!/usr/bin/groovy | |
| import java.util.Random | |
| def scriptDir = new File(getClass().protectionDomain.codeSource.location.path).parent; | |
| def pluginsList = ["spring-security-core", "dojo", "hibernate", "tomcat", "searchable", "spring-social-core", "uploadr"]; | |
| def grailsHeading = "Using Java at: /usr/lib/jvm/java-6-openjdk\n" + | |
| "Welcome to Grails 1.3.7 - http://grails.org/\nLicensed under Apache Standard License 2.0\n" + | |
| "Grails home is set to: /usr/share/grails/1.3.7\nBase Directory: ${scriptDir}\nResolving dependencies...\n" + | |
| "Dependencies resolved in 888ms.\nRunning script /usr/share/grails/1.3.7/scripts/InstallPlugin.groovy\n" + |
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
| #NOTE: ^M -- To get the ^M you must use <CTRL+V><CTRL+M> | |
| # | |
| # $ perl -p -i.bak -e "s/^M//g" <FILENAME> | |
| # | |
| #Creates a <FILENAME>.bak file and removes the DOS line ending (^M) | |
| perl -p -i.bak -e "s/^M//g" <FILENAME> |
NewerOlder