Skip to content

Instantly share code, notes, and snippets.

View alvincrespo's full-sized avatar
:shipit:
Shipping Code.

Alvin Crespo alvincrespo

:shipit:
Shipping Code.
View GitHub Profile
import Ember from 'ember';
export default Ember.Component.extend({
tagName: ''
});
Arguments:
/Users/alvincrespo/.nvm/versions/node/v7.10.0/bin/node /usr/local/bin/yarn -v
PATH:
/Users/alvincrespo/.nvm/versions/node/v7.10.0/bin:/Users/alvincrespo/.rbenv/shims:/Users/alvincrespo/.rbenv/bin:/Users/alvincrespo/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/usr/local/heroku/bin:/Users/alvincrespo/bin:/Users/alvincrespo/go:/Users/alvincrespo/workspace/advent-of-code/go:/Users/alvincrespo/workspace/go/bin
Yarn version:
0.23.4
Node version:
@alvincrespo
alvincrespo / gist:3c7d6bfb4fa97e0d3bf70f1533524ba9
Created October 21, 2016 14:02
Error install eventmachine
An error occurred while installing eventmachine (1.0.8), and Bundler cannot continue.
Make sure that `gem install eventmachine -v '1.0.8'` succeeds before bundling.
➜ echobind git:(gif-optimations) gem install eventmachine -v '1.0.8'
/usr/local/var/rbenv/versions/2.1.4/bin/ruby: warning: RUBY_HEAP_MIN_SLOTS is obsolete. Use RUBY_GC_HEAP_INIT_SLOTS instead.
Building native extensions. This could take a while...
ERROR: Error installing eventmachine:
ERROR: Failed to build gem native extension.
/usr/local/var/rbenv/versions/2.1.4/bin/ruby extconf.rb
/usr/local/var/rbenv/versions/2.1.4/bin/ruby: warning: RUBY_HEAP_MIN_SLOTS is obsolete. Use RUBY_GC_HEAP_INIT_SLOTS instead.
@alvincrespo
alvincrespo / lowercase.sh
Last active May 13, 2020 18:16
Rename files to lowercase
#!/bin/bash
# Thanks to Josh Highland!
# http://joshhighland.com/2011/07/14/rename-all-files-names-in-a-directory-to-lower-case/
for i in *; do mv "$i" "$(echo $i|tr A-Z a-z)"; done
@alvincrespo
alvincrespo / ALTERNATIVES.adoc
Created July 5, 2016 01:03 — forked from mbbx6spp/ALTERNATIVES.adoc
Super quick list of alternatives to Jira and/or Confluence, Stash, Crucible, etc.
@alvincrespo
alvincrespo / node-install-easy.sh
Last active June 9, 2016 19:12
Easy Node/NPM Installation for Ubuntu 14.04
curl -L https://git.io/vo3Gp | sudo bash
@alvincrespo
alvincrespo / install-node.sh
Last active June 9, 2016 19:12
Installing Node/NPM on Ubuntu 14.04
#!/bin/bash
# Purpose
# This script will install Node.js Version 6.x onto an Ubuntu 14.04 server
# Installation / Usage
# Create a scripts directory on your server (e.g. /root/scripts)
# Set the scripts directory into the PATH
# Copy the raw version of this file into the scripts directory
# Set the permissions of the file: chmod u+x install-node.sh
@alvincrespo
alvincrespo / setup_6.x
Last active June 9, 2016 18:20
Installing Node.js V6
#!/bin/bash
# This is a copy of https://github.com/nodesource/distributions/blob/master/deb/setup_6.x
# The only difference is that it quiets down the output of the installations
export DEBIAN_FRONTEND=noninteractive
print_status() {
echo
echo "## $1"
@alvincrespo
alvincrespo / components.my-component.js
Created April 5, 2016 15:32
component block params
import Ember from 'ember';
export default Ember.Component.extend({
name: "John"
});
@alvincrespo
alvincrespo / ember-api-versioned.sh
Last active October 11, 2015 22:10
Viewing versioned Ember.js API docs
git clone [email protected]:emberjs/website ember-api-1-13
cd ember-api-1-13
git checkout v1.13.7
bundle install
middleman
open http://localhost:4567/api/