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
# /home/jesuiswk/.config/tmuxinator/tm.yml | |
name: tm | |
root: ~/Documents/ThirtyMadison/ | |
# Optional tmux socket | |
# socket_name: foo | |
# Note that the pre and post options have been deprecated and will be replaced by | |
# project hooks. |
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
# this is useful for sending action cable updates to doctors portal | |
def spam(count, naptime) | |
patients = Patient.all.sample(count) | |
patients.each do |patient| | |
sleep(naptime) if naptime | |
Doctor.all.each do |doc| | |
DoctorSchema.subscriptions.trigger('patientUpdates', { doctorId: doc.id }, patient) | |
end |
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
Homebrew has a services manager and can manage its own Java installation, so an easier way to do this is just | |
# this will install java 1.8, zookeeper, and kafka | |
brew install kafka | |
# this will run ZK and kafka as services | |
brew services start zookeeper | |
brew services start kafka | |
That's it. If you want to stop Kafka, just run the brew services commands in reverse: |
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
import 'dotenv/config'; | |
import { NestFactory } from '@nestjs/core'; | |
import * as repl from 'repl'; | |
import * as Logger from 'purdy'; | |
const LOGGER_OPTIONS = { | |
indent: 2, | |
depth: 1, | |
}; |
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
import redis | |
from itertools import izip_longest | |
import sys | |
from multiprocessing import Pool | |
import signal | |
OLD = "SHARD_ENDPOINT_FOR_OLD_REDIS" | |
NEW = "SHARD_ENDPOINT_FOR_NEW_REDIS" |
EDITOR=vim rails credentials:edit
development:
mailtrap:
user_name: your_mailtrap_user_name
password: your_mailtrap_password
address: your_mailtrap_address
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
## Context + metadata | |
shared_context 'Logged as a user', role: true do | |
let(:user) { |example| create :user, example.metadata[:role] } | |
before { login_as user } | |
end | |
scenario "Login as a client", role: :client | |
scenario "Login as a customer", role: :customer | |
scenario "Login as an admin", role: :admin |
The following instructions are heavily inspired by @pauleve. I modified his instructions and then added details about how to make a shortcut and support Retina/HiDPI displays.
- Install Homebrew by opening Terminal and executing the following command:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
NewerOlder