Skip to content

Instantly share code, notes, and snippets.

View erajuan's full-sized avatar

Juan Eracleo Huamani Mendoza erajuan

View GitHub Profile
@jonathonbyrdziak
jonathonbyrdziak / .htaccess
Last active July 10, 2024 11:27
htaccess mod_expires / mod_cache / mod_deflate / mod_headers
# ------------------------------------------------------------------------------
#
# Curtousy of the Magento Support Center
# http://magentosupport.help/what-are-expires-headers-and-how-do-i-implement-them/
#
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
# | Mod Caching via Apache |
@simonewebdesign
simonewebdesign / install_sublime_text.sh
Last active March 11, 2024 12:23
Install Sublime Text 3 on Linux via POSIX shell script - http://simonewebdesign.it/install-sublime-text-3-on-linux/
#!/bin/sh
# Sublime Text 3 Install (last update: Monday 13 March 2017)
#
# No need to download this script, just run it on your terminal:
#
# curl -L git.io/sublimetext | sh
# Detect the architecture
@leocaseiro
leocaseiro / .htaccess
Last active February 23, 2022 03:59
Angular html5Mode apache working in a subdirectory /app using ngRoute
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(.*) /app/index.html [NC,L]
</IfModule>
@erajuan
erajuan / renew_cert.sh
Created October 9, 2017 21:39
Update Lets encription - ACME TINY
#!/usr/bin/sh
# renew cert
python /ssl/acme_tiny.py --account-key /ssl/account.key --csr /ssl/domain.csr --acme-dir /var/www/challenges/ > /ssl/signed.crt
# update chained.pem
cat /ssl/signed.crt /ssl/intermediate.pem > /ssl/chained.pem
# update dovecot keys
cp /ssl/chained.pem /etc/dovecot/dovecot.pem
cp /ssl/domain.key /etc/dovecot/private/dovecot.pem
# reload services
service nginx reload