Skip to content

Instantly share code, notes, and snippets.

@ahelja
ahelja / 301Conf.d
Created November 22, 2020 13:32
301
redirect 301 /page-a http://site-b.com
redirect 302 /page-a http://site-b.com
@ahelja
ahelja / logoutHtpasswd.txt
Created November 22, 2020 13:31
logout .htpasswd
#wrong username/password
http://username:password@localhost:8888/admin/
@ahelja
ahelja / htaccess.txt
Created November 22, 2020 13:31
gzip .htaccess
# BEGIN gzip
<IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
@ahelja
ahelja / 404.txt
Last active November 22, 2020 13:30
404
ErrorDocument 400 /errore/errore400.html
ErrorDocument 401 /errore/errore401.html
ErrorDocument 403 /errore/errore403.html
ErrorDocument 404 /errore/errore404.html
AddHandler php5-script .php
@ahelja
ahelja / creatingVideoWithSingleJpgMp3.sh
Created November 22, 2020 13:29
Creating video with single JPG + MP3
ffmpeg -loop 1 -i image.jpg -i audio.mp3 -shortest -c:v libx264 -c:a copy result.mkv
@ahelja
ahelja / dontSaveDialogWindow.txt
Created November 22, 2020 13:28
don't save dialog window
cmd + q
cmd + del → don't save
@ahelja
ahelja / clamp.sh
Created November 22, 2020 13:27
Writes clamp.json
clamp config write
@ahelja
ahelja / GenerateDMGimagesOSX.sh
Created November 22, 2020 13:27
Generate DMG-images for OS X app
appdmg test/appdmg.json ~/Desktop/test.dmg
@ahelja
ahelja / BrewUpdateUpgradeCleanupDoctor.sh
Created November 22, 2020 13:27
Brew UpdateUpgradeCleanupDoctor
brew update; brew upgrade; brew cleanup; brew doctor
@ahelja
ahelja / criptX.sh
Created November 22, 2020 13:26
Alias openssl grep xFiles
alias criptX='openssl des3 -aes128 -base64 -d -in /Users/cript.x | grep'