Skip to content

Instantly share code, notes, and snippets.

View madoke's full-sized avatar
🐵

David Simão madoke

🐵
View GitHub Profile
@bmfurtado
bmfurtado / cssh.applescript
Last active July 28, 2020 15:44
Create multiple SSH sessions in split panes on iTerm2 and enable key broadcasting.
Moved to: https://github.com/bmfurtado/iterm2-cssh
@claudiosf
claudiosf / deploy
Created July 12, 2012 15:19
Assembly-p deploy script
#!/bin/bash
# Escenic deploy script
# Version: 2.0
if [ -z "$1" ]
then
echo "Publication not defined."
echo "USAGE:$0 <publication-name>"
exit
@madoke
madoke / pfam-parser.sh
Last active October 3, 2015 09:58
Pfam database parser
#!/bin/bash
echo "Super Mega Hyper Pfam database parser started. Sit back and relax :)"
echo "Begin parsing " $1 " file.."
#remove old output
rm -rf parser_output
mkdir parser_output
#parse command line arguments
@ulinkwo
ulinkwo / XSSRequestWrapper.java
Created April 9, 2012 09:42
Stronger Anti Cross-Site Scripting (XSS) Filter for Java Web Apps
import java.util.regex.Pattern;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;
public class XSSRequestWrapper extends HttpServletRequestWrapper {
public XSSRequestWrapper(HttpServletRequest servletRequest) {
super(servletRequest);
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Jayrock + JQuery</title>
<script type="text/javascript" language="javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js"></script>
<script type="text/javascript" language="javascript" src="http://www.raboof.com/projects/jayrock/demo.ashx?proxy"></script>
<script type="text/javascript" language="javascript">
var channels = {
'jquery.get': new JQueryChannel({ cache: true }),
'jquery.get-nocache': new JQueryChannel({ cache: false }),