Skip to content

Instantly share code, notes, and snippets.

View kenzic's full-sized avatar
🌀
A commit a day keeps the Dr. away

Chris McKenzie kenzic

🌀
A commit a day keeps the Dr. away
View GitHub Profile
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
# Extended pattern matching:
# ? Matches zero or one occurrence of the given patterns
# * Matches zero or more occurrences of the given patterns
# + Matches one or more occurrences of the given patterns
# @ Matches exactly one of the given patterns
# ! Matches anything except one of the given patterns
# example: Get a directory listing of all non PDF and PostScript files in the current directory
# ls -lad !(*.p@(df|s))
@kenzic
kenzic / mod_wsgi.rb
Created October 26, 2012 22:07
mod_wsgi Homebrew formula
require 'formula'
class ModWsgi < Formula
homepage 'http://code.google.com/p/modwsgi/'
url 'http://modwsgi.googlecode.com/files/mod_wsgi-3.3.tar.gz'
sha1 'f32d38e5d3ed5de1efd5abefb52678f833dc9166'
head 'http://modwsgi.googlecode.com/svn/trunk/mod_wsgi'
def install
@kenzic
kenzic / postgresql916.rb
Created November 1, 2012 20:10
postgresql916 Homebrew Formula
require 'formula'
require 'hardware'
class Postgresql916 < Formula
homepage 'http://www.postgresql.org/'
url 'http://ftp.postgresql.org/pub/source/v9.1.6/postgresql-9.1.6.tar.bz2'
sha1 'a24b7c002463572ee7371f055e566b69e39cda3e'
depends_on 'readline'
depends_on 'libxml2' if MacOS.version == :leopard
require 'formula'
class Postgresql91 < Formula
homepage 'http://www.postgresql.org/'
url 'http://ftp.postgresql.org/pub/source/v9.1.1/postgresql-9.1.1.tar.bz2'
sha1 '4df7b6f6b23acdac5ea198e3623796a2b62fc7a4'
depends_on 'readline'
depends_on 'libxml2' if MacOS.version == :leopard # Leopard libxml is too old
depends_on 'ossp-uuid' unless build.include? 'without-ossp-uuid'
require 'formula'
def build_gui?
ARGV.include? '--with-gui'
end
class Postgis15 < Formula
homepage 'http://postgis.refractions.net'
url 'http://download.osgeo.org/postgis/source/postgis-1.5.8.tar.gz'
sha1 'a3637851ba9dd4f29576c9dc60254e9f53abc559'
@kenzic
kenzic / keybase.md
Last active February 9, 2017 15:40

Keybase proof

I hereby claim:

  • I am kenzic on github.
  • I am kenzic (https://keybase.io/kenzic) on keybase.
  • I have a public key whose fingerprint is 92B3 6363 0119 4B8C F6FB 0ACC 0B31 F3EF 277C A916

To claim this, I am signing this object:

mutation CartCreate {
cartCreate(input: {
lines: [
{
merchandiseId: "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0VmFyaWFudC80MDM0MjMwMTg2ODE3Mg==",
quantity: 4
}
]
}) {
userErrors {
function gir() {
# Check if the user provided an argument
if [ -z "$1" ]; then
echo "Error: You must specify a file or folder to add to .gitignore."
echo "Usage: $0 <file_or_folder_to_ignore>"
return 1
fi
# Check if the current directory is a git repository
if [ ! -d ".git" ] && [ ! -f ".git" ]; then
@kenzic
kenzic / window.ai.html
Created July 17, 2024 17:20
Playground to demo window.ai
<html>
<head>
<meta charset="utf-8">
<title>window.ai playground</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div id="ui">