This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
brew cask install \ | |
skype \ | |
discord \ | |
slack \ | |
musicbrainz-picard \ | |
iterm2 \ | |
google-chrome \ | |
firefox \ | |
visual-studio-code \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
rails new $1 \ | |
--api \ | |
--skip-bundle \ | |
--skip-action-mailer \ | |
--skip-action-mailbox \ | |
--skip-active-storage \ | |
--skip-active-record | |
cd $1 | |
bundle install --path vendor/bundle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum install epel-release | |
sudo yum install gcc-c++ ncurses-devel ruby ruby-devel lua lua-devel luajit luajit-devel ctags python python-devel python3 python3-devel tcl-devel perl perl-devel perl-ExtUtils-ParseXS perl-ExtUtils-XSpp perl-ExtUtils-CBuilder perl-ExtUtils-Embed cscope gtk3-devel libSM-devel libXt-devel libXpm-devel libappstream-glib libacl-devel gpm-devel | |
yum list installed | grep -i vim | |
# sudo yum erase vim-common.x86_64 vim-enhanced.x86_64 vim-filesystem.x86_64 vim-X11 | |
# sudo depends on vim-minimal | |
sudo rpm -e --nodeps vim-minimal | |
sudo ln -s /usr/bin/python3.6 python3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/** | |
* Example Usage: | |
* | |
* const b = 'b'; | |
* const r = 'r'; | |
* const foo = include `${b}a${r}`; | |
*/ | |
module.exports = function include(strings, ...expressions) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const { keys } = Object; | |
module.exports = function values(object) { | |
return keys(object).map(k => object[k]); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git ls-files -i --exclude-from=.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ======================================== | |
// == Utilities | |
// ======================================== | |
// assuming you're using old browsers... this | |
// should work for most kinds of array-like objects. | |
var arrayFrom = function arrayFrom(iterable) { | |
return Array.prototype.slice.call(iterable); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class APIManager: Alamofire.Manager { | |
private let baseURL: String | |
private let outboundEncoding: Alamofire.ParameterEncoding | |
init(baseURL: Alamofire.URLStringConvertible, outboundEncoding: Alamofire.ParameterEncoding = .URL) { | |
self.baseURL = baseURL.URLString | |
} | |
private func URLStringWithPath(path: String) -> String { | |
return (baseURL as NSString).stringByAppendingPathComponent(path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.swift | |
// Functor | |
// | |
// Created by sam on 10/4/16. | |
// Copyright © 2016 Sam Moore. All rights reserved. | |
// | |
import Foundation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
systemLog: | |
destination: file | |
path: /usr/local/var/log/mongodb/mongo.log | |
logAppend: true | |
storage: | |
dbPath: /usr/local/var/mongodb | |
net: | |
bindIp: 127.0.0.1 |
NewerOlder