Skip to content

Instantly share code, notes, and snippets.

@claudio4
claudio4 / build_nginx.sh
Last active December 6, 2019 19:15 — forked from Belphemur/build_nginx.sh
Compiling Nginx with LibreSSL (and http2)
#!/usr/bin/env bash
if [ "$1" == "" ] || [ "$2" == "" ] || [ "$3" == "" ]; then
>&2 echo "No enough arguments provided. use ./build_nginx.sh nginx-version PCRE-version libressl-version"
exit 1
fi
# names of latest versions of each package
export NGINX_VERSION=$1
export VERSION_PCRE="pcre-$2"
export VERSION_LIBRESSL="libressl-$3"
export VERSION_NGINX=nginx-$NGINX_VERSION
@boh717
boh717 / update_ghost.sh
Last active July 27, 2020 08:58
Script to update self-hosted Ghost blog to its latest version
#!/bin/bash
KillNode() {
NODE_PID=`ps aux | grep [n]ode | awk '{print $2}'`
kill $NODE_PID 2>/dev/null
}
if [ -z $1 ]; then
echo "I need ghost version number as parameter."
@Vestride
Vestride / encoding-video.md
Last active June 5, 2024 14:38
Encoding video for the web

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus