This file contains 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/bash | |
## Title: backup-japs.sh | |
# | |
## Description: This script will backup both your PostgreSQL databases of your jAPS Entando application. | |
## Will write in the current directoy two files: 2010-03-18-1406_PortalExamplePort.backup, 2010-03-18-1406_PortalExampleServ.backup | |
# | |
## Usage: backup-japs.sh host port username password project | |
## Example: backup-japs.sh localhost 5432 agile mypassword PortalExample | |
# | |
# |
This file contains 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/bash | |
rename 'y/A-Z/a-z/' * | |
rename 'y/ /_/' * | |
rename 'y/-/_/' * |
This file contains 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/bash | |
## Description: Launch Google Chrome with cache disable | |
## Author: Andrea D. <[email protected]> | |
# | |
## Remember to change the path :) | |
/usr/bin/google-chrome %U --disk-cache-size=1 --media-cache-size=1 |
This file contains 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
This JSP is placed: | |
<%=getServletConfig().getServletContext().getRealPath(request.getServletPath())%> |
This file contains 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
//find this | |
(^.*[^//])console.log | |
//replace with | |
$1//console.log |
This file contains 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
<%@ taglib prefix="wp" uri="aps-core.tld" %> | |
<%-- css --%> | |
<wp:outputHeadInfo type="CSS"> | |
<link rel="stylesheet" type="text/css" href="<wp:cssURL /><wp:printHeadInfo />" /> | |
</wp:outputHeadInfo> | |
<%-- css for ie7 --%> | |
<wp:outputHeadInfo type="CSS_IE7"> | |
<!--[if IE 7]> | |
<link rel="stylesheet" type="text/css" href="<wp:cssURL /><wp:printHeadInfo />" /> |
This file contains 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:(function(){var%20inputs%20=%20document.getElementsByTagName("input");%20for%20(var%20i%20=%200;i<inputs.length;i++)%20{%20var%20c%20=%20inputs[i];%20if%20(c.name=="username")%20c.value%20=%20"admin";%20if%20(c.name=="password")%20c.value%20=%20"adminadmin";%20}%20})(); |
This file contains 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
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> | |
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> | |
<%-- setup --%> | |
<% pageContext.setAttribute("carriageReturn", "\r"); %> | |
<% pageContext.setAttribute("newLine", "\n"); %> | |
<c:set var="singleQuotes">'</c:set> | |
<c:set var="singleQuotesReplace">\'</c:set> | |
<c:set var="doubleQuotes">"</c:set> | |
<c:set var="doubleQuotesReplace">\"</c:set> |
This file contains 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
<snippet> | |
<content><![CDATA[ | |
-- DELETE FROM localstrings where keycode = '${1:keycode}'; | |
INSERT INTO localstrings(keycode, langcode, stringvalue) VALUES ('${1:keycode}','en','${2:en_value}'); | |
INSERT INTO localstrings(keycode, langcode, stringvalue) VALUES ('${1:keycode}','it','${3:it_value}'); | |
-- <wp:i18n key="${1:keycode}" escapeXml="true" /> | |
${4} | |
]]></content> | |
</snippet> |
This file contains 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
# Various variables you might want for your PS1 prompt instead | |
#Time12h="\T" | |
#Time12a="\@" | |
PathShort="\w" | |
#PathFull="\W" | |
#NewLine="\n" | |
Jobs="\j" | |
# Git | |
source /etc/git-completion.bash |
OlderNewer