Skip to content

Instantly share code, notes, and snippets.

View daudo's full-sized avatar

daudo daudo

View GitHub Profile
bash$ shopt -s extglob
bash$ ls -l /opt/too_many_files/!(confidential.txt)
secret.txt
top_secret.txt
public.txt
bash$ GLOBIGNORE="confidential.txt"
bash$ ls -l /opt/too_many_files/*
secret.txt
top_secret.txt
public.txt
@daudo
daudo / gist:11250137
Created April 24, 2014 10:50
sftp meets umask - finally
Subsystem sftp internal-sftp
Match group sftp-only
ChrootDirectory /home/sftp/
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp -u 0002
@daudo
daudo / gist:a225d00facdc70f41fe5
Created July 4, 2014 17:14
apache as a x509 proxy
<VirtualHost>
ServerName apache.example.com
[...]
ProxyPass /gitblit ajp://infra.example.com:8009/gitblit
# ProxyPassReverse is not required, because the apache context /gitblit is the same as the tomcat one
<Location /gitblit>
SSLVerifyClient require