OUTDATED, see comments below
Install Homebrew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Update Homebrew formulae:
brew update
# Create empty branch. | |
git checkout --orphan review | |
git rm -rf . | |
git commit --allow-empty -m "Create empty branch" | |
git push --set-upstream origin review | |
# Create `project` branch from `master` current state. | |
git checkout -b project | |
git merge master --allow-unrelated-histories | |
git push --set-upstream origin project |
import React, { useReducer, useContext, Dispatch } from "react"; | |
import "./styles.css"; | |
// Local types, example: box, product, venue, etc | |
type MyItem = { | |
id: number; | |
name: string; | |
}; | |
// Reducer types |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
www.mysite.com, mysite.com { | |
proxy / webapp:3000 { | |
proxy_header Host {host} | |
proxy_header X-Real-IP {remote} | |
proxy_header X-Forwarded-Proto {scheme} | |
} | |
gzip | |
tls your@email.com | |
} |
First, you have to run Powershell as administrator. Then type the following:
Set-ExecutionPolicy Unrestricted
Accept to continue.
Then we install Chocolatey:
ALTER TABLE "public"."usage_stats" | |
ALTER COLUMN "resSize" TYPE INT USING CASE WHEN "resSize" ~ '^[-+0-9]+$' THEN "resSize"::integer ELSE NULL END; |
{ | |
"shell": true, | |
"cmd": ["mcs $file ; mono $file_base_name.exe"], | |
"selector": "source.cs" | |
} |
app = Doorkeeper::Application.create!(:name => 'myapp', :redirect_uri => 'myapp://oauth/callback') |
# Based on: http://donpottinger.net/blog/2014/11/17/bye-bye-heroku-hello-dokku.html | |
# Add to gemfile: | |
ruby '2.1.2' | |
gem 'pg' | |
gem 'puma' | |
gem 'rails_12factor' | |
gem 'searchkick' | |
gem 'typhoeus' |
## | |
# First stage: prepare image | |
FROM node:12-alpine AS base | |
ARG NPM_TOKEN | |
ARG WORKDIR=/usr/src/app | |
WORKDIR ${WORKDIR} | |
# Install container build dependencies | |
RUN apk --no-cache add g++ ca-certificates lz4-dev musl-dev openssl-dev \ | |
make python gcc zlib-dev libc-dev bsd-compat-headers py-setuptools git bash |