Skip to content

Instantly share code, notes, and snippets.

View chaitu87's full-sized avatar

Chaithanya Padi chaitu87

View GitHub Profile
@chaitu87
chaitu87 / ffmpeg-to-480p.sh
Created April 21, 2020 09:44 — forked from blacklee/ffmpeg-to-480p.sh
ffmpeg convert video to 480p
ffmpeg -i input.mp4 -s hd480 -c:v libx264 -crf 23 -c:a aac -strict -2 output.mp4
#!/usr/bin/env sh
# checks to see if running
launchctl list | grep elasticsearch
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist
launchctl remove homebrew.mxcl.elasticsearch
pkill -f elasticsearch
@chaitu87
chaitu87 / .htaccess
Last active August 29, 2015 14:23 — forked from heroheman/.htaccess
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/