Instantly share code, notes, and snippets.

Chris Howey howeyc

View GitHub Profile

Git Forking Process

Right now the process has references to GitHub as it has been taken from a GitHub open source tutorial. This will be updated with references to our own local gitea instance once it has been setup.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or just head straight to the command line:

# Clone your fork to your local machine

Keybase proof

I hereby claim:

  • I am howeyc on github.
  • I am howeyc ( on keybase.
  • I have a public key whose fingerprint is 98D9 FC94 5C89 2216 376F 8E2D B96D 30AC D3C7 F8C3

To claim this, I am signing this object:

View s3size.go
// Get the size of a public s3 bucket.
// Relies on the directory listing being public.
// Example usage:
// s3size -bucket <bucketName>
package main
import (
View s3dl.go
// Download a public s3 bucket.
// Relies on the directory listing being public.
// Example usage:
// s3dl -bucket <bucketName>
// -> Will download all files in the "<bucketName>" s3 bucket
// to "<bucketName>" folder.
package main
View fsnotify-additions.go
type FileNotification interface {
IsCreate() bool
IsDelete() bool
IsModify() bool
IsRename() bool
Path() string // relative path to the file
type OptionWatcher interface {
Close() error
View s3cp.go
// From
// Added public read for uploaded files
// Command s3cp copies a file to or from Amazon S3.
// Usage:
// s3cp file url
// s3cp url file
// The file does not need to be seekable or stat-able. You can use s3cp to
View watchalldirs.go
package main
import (
View are-count-true.lisp
; Inspired by
(defmacro are-count-true (num first-arg &rest args)
"Short circuit boolean expressions, finding if NUM are true."
(cond ((not (numberp num)) (error "Count must be number!"))
((minusp num) (error "What does negative number mean?"))
((zerop num) t)
((> num (1+ (length args))) nil)
((= num 1) `(or ,first-arg ,@args))
((= num (1+ (length args))) `(and ,first-arg ,@args))
View p1.lisp
(defun list-to-n (n)
(loop for x from 1 to n
collect x))
(defun fac (n)
(reduce #'* (list-to-n n)))
(defun num-to-str (num)
(with-output-to-string (str)
(format str "~a" num)))
View Vigenere.lisp
;;; Golden Ratio Challenge:
;;; This implements the Vigenere cipher to solve the problem with one addition:
;;; Numbers are translated to letters. By glancing over the wikipedia page
;;; it seems as though the encryption algorithm is meant only for letters.
;;; Copyright Chris Howey
;;; Released under the ISC License