Skip to content

Instantly share code, notes, and snippets.

@Mins
Mins / gist:5355044
Created Apr 10, 2013
Nginx.org vs Debianized Nginx package. Compile time modules.
View gist:5355044
Debian
--prefix=/usr/share/nginx \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--http-client-body-temp-path=/var/lib/nginx/body \
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
--http-log-path=/var/log/nginx/access.log \
--http-proxy-temp-path=/var/lib/nginx/proxy \
--http-scgi-temp-path=/var/lib/nginx/scgi \
@Mins
Mins / mysql_secure.sh
Last active Jun 11, 2022
Automating mysql_secure_installation
View mysql_secure.sh
#!/bin/bash
aptitude -y install expect
// Not required in actual script
MYSQL_ROOT_PASSWORD=abcd1234
SECURE_MYSQL=$(expect -c "
set timeout 10