Skip to content

Instantly share code, notes, and snippets.

@boldt
boldt / le-renew.sh
Last active January 27, 2016 12:31 — forked from erikaheidi/le-renew.sh
Auto renewal for Let's Encrypt (CentOS 6.7)
#!/bin/bash
#================================================================
# Let's Encrypt renewal script for Apache on Ubuntu/Debian
# @author Erika Heidi<erika@do.co>
# Usage: ./le-renew.sh [base-domain-name]
# More info: http://do.co/1mbVihI
#================================================================
domain=$1
le_path='/opt/letsencrypt'
le_conf='/etc/letsencrypt'
@boldt
boldt / GraphicsMagick.sh
Last active December 20, 2017 15:56 — forked from paul91/GraphicsMagick.sh
How to install GraphicsMagick on CentOS 6.7
#!/bin/bash
# Install build dependencies
yum install -y gcc libjpeg libpng-devel libjpeg-devel ghostscript libtiff libtiff-devel freetype freetype-devel
# Get GraphicsMagick source
wget http://skylink.dl.sourceforge.net/project/graphicsmagick/graphicsmagick/1.3.23/GraphicsMagick-1.3.23.tar.gz
tar zxvf GraphicsMagick-1.3.23.tar.gz
# Configure and compile
@boldt
boldt / gist:4080095
Created November 15, 2012 17:54 — forked from danbev/gist:4076911
WebSocketEnhancmentNettyBoot
public static void main(String[] args) throws Exception {
final ServerBootstrap sb = new ServerBootstrap();
try {
sb.group(new NioEventLoopGroup(), new NioEventLoopGroup())
.channel(NioServerSocketChannel.class)
.localAddress(new InetSocketAddress(6666))
.childHandler(new ChannelInitializer<SocketChannel>() {
@Override
public void initChannel(final SocketChannel ch) throws Exception {
ch.pipeline().addLast(
@boldt
boldt / test
Created April 26, 2011 14:13
Test
Test