Skip to content

Instantly share code, notes, and snippets.

Remove the first 2m 54.583s of input.mp3 and save as output.mp3

ffmpeg -i input.mp3 -ss 00:02:54.583 -acodec copy output.mp3
@eggman64
eggman64 / install-comodo-ssl-cert-for-nginx.rst
Last active June 16, 2016 10:11 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert

I use Namecheap.com as a registrar, and they resell SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

@eggman64
eggman64 / magento
Created February 2, 2016 14:20 — forked from miped/magento
nginx + php-fpm magento setup
# /etc/nginx/sites-enabled/magento
server {
listen 80;
server_name ec2-184-72-68-219.compute-1.amazonaws.com;
root /var/www/magento/;
access_log /var/log/nginx/magento-access_log;
error_log /var/log/nginx/magento-error_log;
location / {
@eggman64
eggman64 / bash.generate.random.alphanumeric.string.sh
Created November 24, 2015 12:17 — forked from earthgecko/bash.generate.random.alphanumeric.string.sh
shell/bash generate random alphanumeric string
#!/bin/bash
# bash generate random alphanumeric string
#
# bash generate random 32 character alphanumeric string (upper and lowercase) and
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
# bash generate random 32 character alphanumeric string (lowercase only)
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1