Skip to content

Instantly share code, notes, and snippets.

View rixrix's full-sized avatar
👋
hi!

Richard Sentino rixrix

👋
hi!
  • Auckland, New Zealand
  • 12:48 (UTC -12:00)
View GitHub Profile
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
<xsl:output method="xml" indent="yes"/>
<xsl:param name="sourceFolder"/>
<xsl:variable name="NumberOfItems" select="count(OWASPZAPReport/site/alerts/alertitem)"/>
<xsl:variable name="generatedDateTime" select="OWASPZAPReport/generated"/>
<xsl:template match="/">
@rixrix
rixrix / pihole_blocklist.txt
Last active February 11, 2020 05:26
pihole_blocklist
babecumtv.com
specialtytubeporn.com
teentube.be
MySpace.com
thepiratebay.org
Ad.yieldmanager.com
kickass.to
Redtube.com
limewire.com
pornhub.com
@rixrix
rixrix / start.sh
Created August 4, 2019 01:20
Run Shinobi Docker Container
#!/bin/bash
docker run -d \
-p 8080:8080 \
-v /etc/localtime:/etc/localtime:ro \
-v /etc/timezone:/etc/timezone:ro \
-v ${PWD}/config:/config \
-v ${PWD}/datadir:/var/lib/mysql \
-v ${PWD}/videos:/opt/shinobi/videos \
-v /dev/shm/shinobiDockerTemp:/dev/shm/streams \
IFS=$'\n';for f in `find .`; do file=$(echo $f | tr [:blank:] '_'); [ -e $f ] && [ ! -e $file ] && mv "$f" $file;done;unset IFS
@rixrix
rixrix / install-alpine.sh
Created January 18, 2016 13:02
Install Alpine Linux inside xhyve
#!/bin/sh
KERNEL="vmlinuz-grsec"
INITRD="initramfs-grsec"
CMDLINE="alpine_dev=cdrom:iso9660 modules=loop,squashfs,sd-mod,usb-storage,sr-mod,earlyprintk=serial console=ttyS0"
MEM="-m 1G"
IMG_CD="-s 3,ahci-cd,alpine-3.2.3-x86_64.iso"
PCI_DEV="-s 0:0,hostbridge -s 31,lpc"
LPC_DEV="-l com1,stdio"
@rixrix
rixrix / selenium-firefox.txt
Created February 3, 2014 00:57
A horribly simple and working command line for launching Selenium + Firefox in Centos 6.4 . This command works for me as is
java -jar selenium-server-standalone-2.39.0.jar -htmlSuite "*firefox /usr/lib64/firefox/firefox-bin" "http://somedomain.com" "/path/to/TestSuite.html" "/path/to/test/results.html"
@rixrix
rixrix / dbus-fix.sh
Created February 3, 2014 00:26
Fix for D-Bus error when running Firefox in Xvfb. Make sure you have dbus package installed
#!/bin/bash
sudo dbus-uuidgen > /var/lib/dbus/machine-id
@rixrix
rixrix / iptables-open-webports-lazily.sh
Created January 28, 2014 20:44
A dead simple, horribly basic firewall (IPTables) rules to open various ports or web ports. If you're not lazy, move on and hit google.
#!/bin/bash
iptables --flush
# Open the following ports 80, 443, 8080 or add your own
iptables -A INPUT -p tcp -m tcp --sport 80 -j ACCEPT
iptables -A INPUT -p tcp -m tcp --sport 443 -j ACCEPT
iptables -A INPUT -p tcp -m tcp --sport 8080 -j ACCEPT
# Allow any outgoing requests
@rixrix
rixrix / git-fetch-recursively.sh
Last active January 4, 2016 11:29
A dead simple, horribly easy mass Git repo updater. If you are not lazy, please move on - don't use this.
#!/bin/bash
# Checkout master, fetch origin and merge changes to master
find . -type d -name .git -exec sh -c "cd \"{}\"/../ && pwd && git checkout master && git fetch origin && git merge origin/master" \;