Skip to content

Instantly share code, notes, and snippets.

@T8aZ
T8aZ / NextcloudAIO_selfsigned.txt
Created April 16, 2024 08:06
Nextcloud AIO with self-signed certificate
Steps to install Nextcloud AIO with selfsigned (adapt if you have custom PKI):
#generate certificate & unprotected key
mkdir /opt/reverseproxy && cd /opt/reverseproxy
openssl x509 -req -days 365 -in self-ssl.csr -signkey self-ssl.key.pem -out self-ssl.pem
# Follow https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md#apache for Apache conf (paste their vhost conf within /usr/local/apache2/conf/httpd.conf, put your SSL cert and key within the docker and adapt the corresponding line)
SSLCertificateFile /usr/local/apache2/conf/self-ssl.pem
@T8aZ
T8aZ / SquidSecureSetup
Last active June 13, 2023 22:05
SquidSecureSetup
##docker : sudo docker run -d --name squid-container -e TZ=UTC -p 10.x.x.x:3128:3128 --restart always -v /home/username/squid/squid.conf:/etc/squid/squid.conf ubuntu/squid
##squid.conf:
#remove squid header indications
via off
forwarded_for off
header_access From deny all
header_access Server deny all
@T8aZ
T8aZ / OP6_Nethunter_encrypted.txt
Last active June 5, 2023 17:02
Root Kali Nethunter Oneplus 6 w/o removing dm-verity
dm-verity disabler got me into boot freeze. all you need to avoid "Required key not available" is to remove "session optional pam_keyinit.so force revoke" from :
/etc/pam.d/su-l
/etc/pam.d/login
/etc/pam.d/runuser-l
/etc/pam.d/sshd
FULL PROCESS:
# ROOT PHONE