Skip to content

Instantly share code, notes, and snippets.

View ivanoats's full-sized avatar
💭
🤙 Stoked 🏄‍♂️

Ivan Storck ivanoats

💭
🤙 Stoked 🏄‍♂️
View GitHub Profile
@ivanoats
ivanoats / .zshrc
Created February 27, 2024 21:46 — forked from callumlocke/.zshrc
ZSH function to auto-switch to correct Node version
####
# ZSH function to auto-switch to correct Node version
# https://gist.github.com/callumlocke/30990e247e52ab6ac1aa98e5f0e5bbf5
#
# - Searches up your directory tree for the closest .nvmrc, just like `nvm use` does.
#
# - If you are already on the right Node version, IT DOES NOTHING, AND PRINTS NOTHING.
#
# - Works correctly if your .nvmrc file contains something relaxed/generic,
# like "4" or "v12.0" or "stable".
@ivanoats
ivanoats / gist:1823034
Last active November 19, 2022 06:08 — forked from parndt/gist:958385
Setting up GIT Bash autocompletion. Use this only if you are using Bash instead of ZSH.
@ivanoats
ivanoats / geolocation.js
Created October 20, 2021 04:40 — forked from videlais/geolocation.js
Complete Geolocation.js
/*
* A Geolocation object
*
* Note: Uses GPS or similar hardware for data if available through
* the browser, but will fall back to using (Google) geolocation
* services with current IP address automatically.
*
* @property {boolean} supported If the geolocation functions are available in the current context
* @property {function} onsuccess The function to be called if the geolocation services are successful
* @property {function} onerror The function to be called if an error occurs
@ivanoats
ivanoats / .railsrc
Last active August 11, 2020 09:33 — forked from gringocl/gist:8480696
# .railsrc
-B #Skip Bundle
-T #Skip Test-Unit
-d postgresql #Use postgres
@ivanoats
ivanoats / .eslintrc.js
Created September 24, 2018 16:18 — forked from nkbt/.eslintrc.js
Strict ESLint config for React, ES6 (based on Airbnb Code style)
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"ecmaFeatures": {

Bento, a project by the same company that makes Chef, is a Packer-based project for building base boxes. Unlike http://vagrantbox.es, Bento just uses base operating systems from the manufacturers with no pre-installed software. All the boxes are hosted on S3 in the following format:

https://opscode-vm-bento.s3.amazonaws.com/vagrant/PROVIDER/opscode_OS-VERSION_chef-provisionerless.box

For example, Ubuntu 13.04 lives here for VirtualBox:

https://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-13.04_chef-provisionerless.box

And the VMWare equivalent box lives:

@ivanoats
ivanoats / app.js
Last active September 7, 2017 11:48 — forked from anonymous/app.js
Uncaught TypeError: Super expression must either be null or a function, not undefined in _prelude.js:1 SOLVED: component must be Component
import React from 'react';
import { LeftDropZone } from './leftDropZone';
import { RightDropZone } from './rightDropZone';
export class ScholarshipsApp extends React.component {
render() {
return (
<section id="drop-zones">
<h1>Scholarships Admin</h1>
<LeftDropZone />
@ivanoats
ivanoats / output.txt
Last active September 15, 2016 08:47 — forked from anonymous/-
Karma error
[09:32:56] Using gulpfile ~/dev/react-starter/gulpfile.js
[09:32:56] Starting 'test:karma'...
DEBUG [config]: autoWatch set to false, because of singleRun
DEBUG [plugin]: Loading inlined plugin (defining webpackPlugin, preprocessor:webpack).
DEBUG [plugin]: Loading inlined plugin (defining framework:mocha).
DEBUG [plugin]: Loading inlined plugin (defining launcher:Chrome, launcher:ChromeCanary, launcher:Dartium, test).
DEBUG [plugin]: Loading inlined plugin (defining launcher:IE).
DEBUG [plugin]: Loading inlined plugin (defining launcher:Firefox, launcher:FirefoxDeveloper, launcher:FirefoxAurora, launcher:FirefoxNightly).
DEBUG [plugin]: Loading inlined plugin (defining launcher:PhantomJS).
DEBUG [plugin]: Loading inlined plugin (defining preprocessor:sourcemap).
@ivanoats
ivanoats / ghcPkgUtils.sh
Created June 3, 2016 18:51 — forked from timmytofu/ghcPkgUtils.sh
ghc-pkg-clean and ghc-pkg-reset compatible with both zsh and bash
# unregister broken GHC packages. Run this a few times to resolve dependency rot in installed packages.
# ghc-pkg-clean -f cabal/dev/packages*.conf also works.
function ghc-pkg-clean() {
for p in `ghc-pkg check $* 2>&1 | grep problems | awk '{print $6}' | sed -e 's/:$//'`
do
echo unregistering $p; ghc-pkg $* unregister $p
done
}
# remove all installed GHC/cabal packages, leaving ~/.cabal binaries and docs in place.
@ivanoats
ivanoats / notes.md
Created May 17, 2016 18:13 — forked from orta/notes.md
Notes on Spacemacs

Start out

install via

  brew tap railwaycat/homebrew-emacsmacport
  brew install emacs-mac --with-spacemacs-icon  # OR, brew cask install emacs-mac
  brew linkapps

Terminology