Skip to content

Instantly share code, notes, and snippets.

View suhomozgy-andrey's full-sized avatar
🏠
Working from home

Andrei Sukhomozgii suhomozgy-andrey

🏠
Working from home
View GitHub Profile
{
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"prettier.requireConfig": true,
"[javascriptreact]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"cSpell.userWords": [
"delimeter",
const dotenv = require('dotenv');
dotenv.config();
const {
PAGE_ID,
TEAM_ID,
FILE_KEY,
FIGMA_PERSONAL_TOKEN
} = process.env;
brew tap homebrew/versions
brew install v8-315
brew link --force v8-315
gem install libv8 -- --with-system-v8
gem install therubyracer
@suhomozgy-andrey
suhomozgy-andrey / gist:8fdf69aa0f570be06c96b9996d8ae1fa
Created October 25, 2017 06:11 — forked from giannisp/gist:ebaca117ac9e44231421f04e7796d5ca
Upgrade PostgreSQL 9.6.5 to 10.0 using Homebrew (macOS)
After automatically updating Postgres to 10.0 via Homebrew, the pg_ctl start command didn't work.
The error was "The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0."
Database files have to be updated before starting the server, here are the steps that had to be followed:
# need to have both 9.6.x and latest 10.0 installed, and keep 10.0 as default
brew unlink postgresql
brew install postgresql@9.6
brew unlink postgresql@9.6
brew link postgresql