Skip to content

Instantly share code, notes, and snippets.

@odoral
odoral / omv_pihole.md
Last active October 12, 2020 11:08
openmediavault + pihole

OMV (/etc/nginx/sites-enabled/openmediavault-webgui):

OMV default configuration is consuming all /**/*.php requests. We've to exclude /pihole php requests to forward them to pihole.

location ~ ^(?!\/pihole\/).*\.php$ {
    try_files $uri =404;
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    fastcgi_pass unix:/run/php/php7.3-fpm-openmediavault-webgui.sock;
 fastcgi_index index.php;
@odoral
odoral / sed cheatsheet
Created December 14, 2017 09:23 — forked from ssstonebraker/sed cheatsheet
Sed Cheatsheet
FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'
@odoral
odoral / rabbitmq.txt
Created November 26, 2017 23:17 — forked from sdieunidou/rabbitmq.txt
create admin user on rabbitmq
rabbitmqctl add_user test test
rabbitmqctl set_user_tags test administrator
rabbitmqctl set_permissions -p / test ".*" ".*" ".*"
@odoral
odoral / git-hosting-apache.conf
Created June 18, 2017 01:18 — forked from karmi/git-hosting-apache.conf
Configuration for hosting Git repositories with Apache 2.x
# ----------------------------------------------------------
# Configuration for hosting Git repositories with Apache 2.x
# ----------------------------------------------------------
#
# This setup provides "dual URLS", where URL like <http://git.example.com/my_repository.git>
# loads Gitweb in the browser and the same URL can be used in commands like `git clone` and `git remote add`.
# It was compiled from some sources on the internet and further customized/tuned.
#
# Please see documentation for:
#
@odoral
odoral / 00.restore-galaxy-s-2-i9100.md
Created February 5, 2017 02:08 — forked from edouard-lopez/00.restore-galaxy-s-2-i9100.md
Restore Galaxy S 2 i9100 (after breaking with cynogenmod update CM-13.x)

Requirements

sudo apt-get install heimdall{,-frontend} 
sudo apt-get install android-tools-adb
sudo apt-get install build-essential cmake zlib1g-dev qt5-default libusb-1.0-0-dev libgl1-mesa-glx libgl1-mesa-dev