Skip to content

Instantly share code, notes, and snippets.

Avatar

Matthew Summers quantumsummers

View GitHub Profile
View gist:06f0f7a8324ee038ecc9

Occasionally we will deploy a virtual instance into our KVM infrastructure and realize after the fact that we need more local disk space available. This is the process we use to expand the disk image. This process assumes the following:

  • You're using legacy disk partitions. The process for LVM is similar and I will describe that in another post.
  • The partition you need to resize is the last partition on the disk.

This process will work with either a qcow2 or raw disk image. For

View gist:c7839f30bb6647510c19
### Keybase proof
I hereby claim:
* I am quantumsummers on github.
* I am quantumsummers (https://keybase.io/quantumsummers) on keybase.
* I have a public key whose fingerprint is 111B C438 35FA EDB5 B5D3 736F 45EE 5DC0 0878 9D46
To claim this, I am signing this object:
View wildcard-ssl-cert-for-testing-nginx-conf.md

just change out app_name for your purposes

openssl genrsa 2048 > app_name-wildcard.key

openssl req -new -x509 -nodes -sha1 -days 3650 -key app_name-wildcard.key > app_name-wildcard.cert

# Common Name (eg, your name or your server's hostname) []:*.app_name.com

openssl x509 -noout -fingerprint -text < app_name-wildcard.cert > app_name-wildcard.info
View gist:539095
#!/usr/bin/env python
#
# Copyright (c) 2010 Giorgos Keramidas.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.