Skip to content

Instantly share code, notes, and snippets.

@rzymek
rzymek / mod_cluster.conf
Created September 22, 2015 13:22
mod_cluster.conf
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so
LoadModule proxy_ajp_module /usr/lib/apache2/modules/mod_proxy_ajp.so
LoadModule cluster_slotmem_module /usr/lib/apache2/modules/mod_cluster_slotmem.so
LoadModule manager_module /usr/lib/apache2/modules/mod_manager.so
LoadModule proxy_cluster_module /usr/lib/apache2/modules/mod_proxy_cluster.so
LoadModule advertise_module /usr/lib/apache2/modules/mod_advertise.so
#NameVirtualHost *:80
ManagerBalancerName balancer
@rzymek
rzymek / standalone-full-ha.xml
Created September 22, 2015 14:48
wildfly 9 undertow reverse-rpoxy
<subsystem xmlns="urn:jboss:domain:undertow:2.0">
<handlers>
<reverse-proxy name="my-handler">
<host name="slave-1" outbound-socket-binding="http-s1"/>
<host name="slave-2" outbound-socket-binding="http-s2"/>
</reverse-proxy>
</handlers>
...
<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
...
@rzymek
rzymek / package.sh
Created September 30, 2015 13:17
maven package only
mvn install -DskipTests -Dmaven.main.skip=true -Dmaven.test.skip=true
@rzymek
rzymek / mapy.md
Last active October 13, 2015 15:47
Mapy
@rzymek
rzymek / Mapy cyfrowe.pdf
Last active October 13, 2015 15:44
mapy (pdf)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rzymek
rzymek / stat
Created October 30, 2015 15:38
git
#!/bin/bash
echo -en '\033[33m'
git rev-parse --abbrev-ref HEAD
echo -en '\033[0m'
git status -s $*
@rzymek
rzymek / wildfly-install.sh
Created December 1, 2015 10:19 — forked from sukharevd/wildfly-install.sh
Script to install JBoss Wildfly 10.x as service in Linux
#!/bin/bash
#title :wildfly-install.sh
#description :The script to install Wildfly 10.x
#more :http://sukharevd.net/wildfly-8-installation.html
#author :Dmitriy Sukharev
#date :2015-10-24T17:14-0700
#usage :/bin/bash wildfly-install.sh
#tested-version :10.0.0.CR3
#tested-distros :Debian 7,8; Ubuntu 15.10; CentOS 7; Fedora 22
@rzymek
rzymek / lnotes-merge.js
Last active December 20, 2015 12:24
merge all lessons in lnotes
$('#words-table tbody tr').remove()
var lessons = $('a[href*="/studentView/"]').map((idx,it)=>{return {name:$(it).text(), link:it.href}}).toArray().reverse();
$('.footer').html('')
var words=[];
var left=lessons.length
lessons.forEach((lesson,idx)=>{
$.get(lesson.link, data => {
$('.footer').html(`<div id="fetched_${idx}">${data}</div>`)
words[idx]=$(`#fetched_${idx} #words-table tbody tr`).toArray()
//.filter(tr => $(tr).find('td').length === 3)
@rzymek
rzymek / root.sh
Created October 27, 2016 16:56 — forked from Arinerron/root.sh
"Root" via dirtyc0w privilege escalation exploit (automation script) / Android (32 bit)
#!/bin/bash
# Give the usual warning.
clear;
echo "[INFO] Automated Android root script started.\n\n[WARN] Exploit requires sdk module \"NDK\".\nFor more information, visit the installation guide @ https://goo.gl/E2nmLF\n[INFO] Press Ctrl+C to stop the script if you need to install the NDK module. Waiting 10 seconds...";
sleep 10;
clear;
# Download and extract exploit files.
echo "[INFO] Downloading exploit files from GitHub...";
@rzymek
rzymek / run.sh
Created November 26, 2016 12:10
adoptable storage
adb shell sm list-disks
adb shell sm list-volumes all
adb shell sm set-force-adoptable true
adb shell sm partition disk:179,64 private
adb shell sm set-force-adoptable false