- 12mm socket
- 15mm socket
- C-clamp
- Hanging bracket for caliper
- pads
- rotor
- brake grease
- brake cleaner
- hammer
- dot3 brake fluid
This file contains hidden or 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
// Just "import from './RN-actioncable-PATCH'" before using @rails/actioncable | |
import { AppState } from 'react-native'; | |
let appState = AppState.currentState; | |
let sub: { remove(): void } | null = null; | |
// @ts-ignore | |
global.document = { visibilityState: 'visible' }; |
This file contains hidden or 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
# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num] | |
/Users/<username>/dev/<rails projects>/*/log/*.log <username>:staff 644 0 2000 * G | |
# Mono repos | |
/Users/<username>/dev/<rails projects>/*/*/log/*.log <username>:staff 644 0 2000 * G | |
# Deeper mono repos | |
/Users/<username>/dev/<rails projects>/*/*/*/log/*.log <username>:staff 644 0 2000 * G |
This file contains hidden or 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
function freethousand() { | |
port="${1:-3000}" | |
death_level="${2:-SIGINT}" | |
programs=$(lsof -i tcp:$port | grep "[0-9]" | awk '{print $2" "$1 }' | uniq) | |
if [ -z "$programs" ]; then | |
echo "No processes running on port $port" | |
return | |
fi | |
TMPFILE=$(mktemp) |
This file contains hidden or 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 AuthenticatedController < ApplicationController | |
include ActionController::HttpAuthentication::Token::ControllerMethods | |
before_action :authenticate_user | |
private | |
def authenticate_user | |
head(:unauthorized) if current_user.blank? | |
end |
This file contains hidden or 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
create table users ( | |
name text primary key | |
); | |
create table groups ( | |
name text primary key, | |
user_name text not null references users | |
); | |
alter table users |
This file contains hidden or 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
create table users ( | |
name text not null primary key | |
); | |
create table groups ( | |
name text not null primary key, | |
owner text not null references users | |
); | |
create table groups_users ( |
This file contains hidden or 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
// Taken from https://codesandbox.io/s/usecallback-hooks-vs-class-i1efp | |
import React, { useRef, useCallback, useState } from 'react' | |
import ReactDOM from 'react-dom' | |
import faker from 'faker' | |
import equal from 'fast-deep-equal' | |
import times from 'lodash/times' | |
import './styles.css' | |
const initialState = times(200, i => ({ | |
id: i, |
This file contains hidden or 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
[Unit] | |
Description=Budgetal | |
ConditionPathExists=/home/deploy/budgetal-beta/budgetal | |
After=network.target | |
[Service] | |
EnvironmentFile=/home/deploy/budgetal-beta/budgetal-env | |
Type=simple | |
User=deploy | |
Group=deploy |
This file contains hidden or 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
# APEX & NON-TLS | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name example.com www.example.com; | |
return 301 https://www.example.com$request_uri; | |
} | |
server { | |
listen 80; |