Skip to content

Instantly share code, notes, and snippets.

View nateritter's full-sized avatar
🎯
Focusing

Nate Ritter nateritter

🎯
Focusing
View GitHub Profile
@nateritter
nateritter / remove-git-files-recursively.md
Created August 28, 2015 03:52
Remove git files recursively

find . | grep .git | xargs rm -rf

#!/bin/sh
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the
# CREATE block and create them in separate commands _after_ all the INSERTs.
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk.
# The mysqldump file is traversed only once.
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite
@nateritter
nateritter / SemaphoreCI-PHPUnit-Codeception-Laravel5.3.txt
Last active October 25, 2016 15:38
SemaphoreCI setup for Laravel 5.3 + PHPUnit (unit, integration, API functional) + Codeception (acceptance) tests
/**
* NOTE: Earlier versions of this file used `php artisan serve`.
* However, Codeception and/or PhantomJS is not too fond of
* running that way for some reason. I ended up switching
* to Apache since that's what worked for all our devs
* locally. This script now includes how to get that
* setup properly. Please enjoy this responsibly.
*
* Assumptions:
* Using site5/phantoman to run phantomjs as the headless browser
@nateritter
nateritter / blockstack-verification
Created April 10, 2017 19:02
Verifying that "nateritter.id" is my Blockstack ID. https://onename.com/nateritter
Verifying that "nateritter.id" is my Blockstack ID. https://onename.com/nateritter

Keybase proof

I hereby claim:

  • I am nateritter on github.
  • I am nateritter (https://keybase.io/nateritter) on keybase.
  • I have a public key ASDyOcfden9PCRYaj9zoHav_wy90hzrQHtGpPnXMLPgoWAo

To claim this, I am signing this object:

Verifying my Blockstack ID is secured with the address 17nLjB6jRaTKztxPS3bNRVswxLjhhyp4AQ https://explorer.blockstack.org/address/17nLjB6jRaTKztxPS3bNRVswxLjhhyp4AQ
@nateritter
nateritter / interesting-questions-for-remote-work-icebreakers.md
Created March 19, 2020 19:10
Interesting Questions for Remote Work Icebreakers

Interesting Questions for Remote Work Icebreakers

  • Who is your hero?
  • If you could live anywhere, where would it be?
  • What is your biggest fear?
  • What is your favorite family vacation?
  • What would you change about yourself if you could?
  • What is your favorite book to read?
  • What makes you laugh the most?
  • What was the last movie you watched? What did you think?
@nateritter
nateritter / settings.json
Created May 27, 2020 15:59
VSCode settings.json
{
/**
* Silence the noise
**/
"workbench.activityBar.visible": false,
"editor.acceptSuggestionOnEnter": "off",
"editor.autoIndent": true,
"editor.dragAndDrop": true,
"files.insertFinalNewline": true,
"editor.fontSize": 12,
@nateritter
nateritter / keybindings.json
Last active May 27, 2020 16:01
VSCode keybindings.json
[
/**
* Activity Bar
**/
{
"key": "cmd+k cmd+e",
"command": "workbench.view.explorer"
},
{
"key": "cmd+k cmd+v",
@nateritter
nateritter / Optimism-A-Manifesto.md
Last active June 18, 2022 20:24
Optimism: A Manifesto

Optimism

A Manifesto by Trevor McKendrick (howitactuallyworks.com)

  1. Focus your time & attention on the things you can influence.

  2. Do something today instead of daydreaming about tomorrow.

  3. See problems as opportunities to learn, grow, and give meaning to our lives.