Skip to content

Instantly share code, notes, and snippets.


Jeff Lindsay progrium

View GitHub Profile
progrium /
Last active Oct 17, 2021
Large Type CLI utility for Mac in less than 80 lines of Go


largetype screenshot


Note: For now, Apple Silicon users need to be set up for x86 mode

First, download Go or brew install go. Then, put largetype.go in a directory called largetype and from there run:

$ go mod init largetype
douglashill / main.m
Last active Apr 24, 2022
A minimal iOS 13 app that is set up in Objective-C rather than using a storyboard and UIApplicationSceneManifest
View main.m
@import UIKit;
@interface SceneDelegate : UIResponder <UIWindowSceneDelegate>
@implementation SceneDelegate
@synthesize window = _window;
- (void)scene:(UIScene *)scene willConnectToSession:(UISceneSession *)session options:(UISceneConnectionOptions *)connectionOptions {
mholt / macapp.go
Created May 18, 2018
Distribute your Go program (or any single binary) as a native macOS application
View macapp.go
// Package main is a sample macOS-app-bundling program to demonstrate how to
// automate the process described in this tutorial:
// Bundling the .app is the first thing it does, and creating the DMG is the
// second. Making the DMG is optional, and is only done if you provide
// the template DMG file, which you have to create beforehand.
// Example use:
HiImJulien / Swift Meets
Last active Jul 25, 2022
This gist is a simple example on how to call a function written in swift from C/C++, without taking the detour via Objective-C/C++.
View Swift Meets

Swift Meets C/C++

This gist is a simple example on how to call a function written in swift from C/C++, without taking the detour via Objective-C/C++.


In this example we're going to invoke a function called say_hello, which, as the name already suggests, prints "Hello, World!" to the terminal.

tinogomes / DNS_TO_LOCALHOST.markdown
Last active Jun 28, 2022
Public DNS Pointing to localhost (
View DNS_TO_LOCALHOST.markdown

Available Public Wildcard DNS Domains pointing to localhost (

It turns out that some kind hearted people already set up wildcard domains for you already. You can use any domain below and/or any subdomain of these and they currently resolve to but could switch at any time to resolve somewhere else. Here's the list of ones I know about. Let me know if there are more!

  • localhost - It will always works. Do you know why? I hope so.
  • [*.] - 👏 👏 👏 👏 👏
  • [*.]
  • [*.]
  • [*.]
  • [*.]
uchcode / JXA-Window.js
Last active Aug 4, 2020
JXA (JavaScript for Automation) Window applet template.
View JXA-Window.js
function UserInterface() {
this.okButton = Button(300, 10, 90, 26); {
this.okButton.title = 'OK'
this.cancelButton = Button(210, 10, 90, 26); {
this.cancelButton.title = 'Cancel'
this.cancelButton.keyEquivalent = '\u{1b}'
oubiwann /
Last active Jul 28, 2022 — forked from advorak/
appify — create the simplest possible Mac app from a shell script (adds an application icon)
#!/usr/bin/env bash
SCRIPT=`basename "$0"`
OSX_VERSION=`sw_vers -productVersion`
function usage {
andreas / envelope_encryption.go
Created Feb 3, 2015
Envelope Encryption with Amazon KMS and Go
View envelope_encryption.go
package main
import (
View gist:6a24ae8d7ab93bc65579
export PS1="\[\033[01;31m\]\$(status=\$?; [[ \$status -ne 0 ]] && echo \"[\$status] \")\[\033[01;32m\]\u@\h \[\033[01;34m\]\w\n\$ \[\033[00m\]"
alias reload="curl -s > ~/; source ~/.profile"
alias g="git"
alias gpr="git pull --rebase origin"
alias gprr="git pull --rebase"
alias gpu="git push origin"
alias gpuu="git push"
alias gs="git status"
emasaka / pipeline.rb
Created Sep 29, 2014
shell-like pipeline in Ruby DSL
View pipeline.rb
#!/usr/bin/env ruby
module PipeOperator
refine Array do
def |(x) | x