Skip to content

Instantly share code, notes, and snippets.

@defunctzombie
defunctzombie / dell-3010cn.ppd
Created December 28, 2014 20:45
Dell 3010cn Postscript Printer Definition
*PPD-Adobe: "4.3"
*%
*% For information on using this, and to obtain the required backend
*% script, consult http://www.openprinting.org/
*%
*% This file is published under the GNU General Public License
*%
*% PPD-O-MATIC (4.0.0 or newer) generated this PPD file. It is for use with
*% all programs and environments which use PPD files for dealing with
*% printer capability information. The printer must be configured with the
@defunctzombie
defunctzombie / upstream.md
Last active August 29, 2015 13:56
working with upstream brances

Whenever you have a fork of a project which you intend to contribute, you will find it useful to stay up to date with the code from the upstream project you have cloned.

This can be easily accomplished by adding additional "remotes".

Using the engine.io-client repo as the base example.

Assuming you have forked the project on github and then cloned your fork locally.

cd engine.io-client
@defunctzombie
defunctzombie / pin-stable
Last active December 11, 2015 10:48
Pinning stable release package on debian stable installs. Allows for selectively installing from backports or unstable for newer packages.
# backports
# deb http://backports.debian.org/debian-backports squeeze-backports main
# install from specific release
apt-get -t squeeze-backports install "package"
@defunctzombie
defunctzombie / browser.md
Last active April 10, 2024 17:45
browser field spec for package.json
@defunctzombie
defunctzombie / gist:1850854
Last active September 30, 2015 19:28
openssl csr given a key
/// generate a csr given a key
openssl req -new -key somefile.key -out somefile.csr
/// order of certificates for positive ssl chain
cat domain.crt PositiveSSLCA.crt UTNAddTrustServerCA.crt AddTrustExternalCARoot.crt > domain_chain.crt