Skip to content

Instantly share code, notes, and snippets.

❯ mix compile
==> markdown
Compiling 1 file (.ex)
Compiling crate syntect in debug mode (native/syntect)
Compiling autocfg v1.0.1
Compiling proc-macro2 v1.0.36
Compiling unicode-xid v0.2.2
Compiling syn v1.0.84
Compiling serde v1.0.133
Compiling cc v1.0.72
# h1 Heading 8-)
## h2 Heading
### h3 Heading
#### h4 Heading
##### h5 Heading
###### h6 Heading
## Horizontal Rules
git init --bare $HOME/.dotfiles
alias dot='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
dot config --local status.showUntrackedFiles no
echo "alias dot='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'" >> $HOME/.zshrc
@bromanko
bromanko / install-dot-slash-go.sh
Created October 25, 2017 14:58
Install dot-slash-go
bash -c "$(curl -sS https://raw.githubusercontent.com/bromanko/dot-slash-go/master/install)"
@bromanko
bromanko / s3-no-deletes.json
Created February 3, 2017 21:47
S3 No Deletes Policy
{
"Id": "PreventPermanentDeletion",
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"s3:*"
],
"Effect": "Allow",
"Resource": [
@bromanko
bromanko / Local SSL.md
Last active April 1, 2016 15:53 — forked from jonathantneal/README.md
Local SSL websites on Mac OSX

Local SSL websites on Mac OSX

These instructions will guide you through the process of setting up local, trusted websites on your own computer.

These instructions are intended to be used on Mac OSX Yosemite.

NOTE: You may substitute the edit command for nano, vim, or whatever the editor of your choice is. Personally, I forward edit to Sublime Text:

alias edit="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
@bromanko
bromanko / symlink-deps.js
Created January 2, 2015 20:35
Symlink Dependencies as Virtual Node modules

Please publicly post the following Gist, and name it keybase.md

Keybase proof

I hereby claim:

  • I am bromanko on github.
  • I am bromanko (https://keybase.io/bromanko) on keybase.
  • I have a public key ASC9xLX6pFZXnQ0858HBMyeCl6kIoPMOHEWJ95hqr59JFgo
@bromanko
bromanko / S3Upload.mm
Last active December 12, 2016 02:07
File uploading directly to S3 from an iOS app.
AFHTTPClient *client = [AFHTTPClient clientWithBaseURL:[NSURL URLWithString:@"https://YOUR_BUCKET.s3.amazonaws.com/"]];
NSDictionary *parameters = @{
@"key": @"uploads/${filename}",
@"AWSAccessKeyId": @"YOUR_AWS_ACCESS_KEY",
@"acl": @"public-read", // or private
@"success_action_redirect": @"http://localhost/",
@"policy": @"YOUR_POLICY_DOCUMENT_BASE64_ENCODED",
@"signature": @"YOUR_CALCULATED_SIGNATURE",
@"Content-Type": @"image/jpeg"
@bromanko
bromanko / index.js
Created October 25, 2012 14:45
Express Middleware for Bunyan logging
var bunyan = require('bunyan');
module.exports.logger = function logger(log) {
if (typeof (log) !== 'object')
throw new TypeError('log (Object) required');
this.log = log;
var self = this;
return function logger(req, res, next) {