Skip to content

Instantly share code, notes, and snippets.

Viktar Basharymau DNNX

Block or report user

Report or block DNNX

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@giannisp
giannisp / gist:ebaca117ac9e44231421f04e7796d5ca
Last active Apr 23, 2019
Upgrade PostgreSQL 9.6.5 to 10.0 using Homebrew (macOS)
View gist:ebaca117ac9e44231421f04e7796d5ca
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
@edtsech
edtsech / lightning_talk_proposal.md
Last active Nov 21, 2017
Combining snapshot testing and component library -- ReactiveConf 2017 talk proposal
View lightning_talk_proposal.md

This is a proposal for a lightning talk at Reactive Conf. Please 🌟 this gist to push the proposal!

Combining snapshot testing and component library

Do you test presentational logic of your components? No? Yes, but you feel like you are writing a lot of dummy tests? You even probably use snapshot tests for that, but don't feel like you make enought value from them..

If so, click 🌟 button on that Gist!

I'll talk how our team is using snapshot testing to iterate faster,

@foozmeat
foozmeat / squirt
Last active Sep 13, 2018
squirt: upload a file to a slack channel from the cli
View squirt
#!/usr/bin/env ruby
require 'json'
if ARGV.length < 3 then
puts "Usage: squirt <filename> <channel> <comment>"
exit
end
token = ""
@mbostock
mbostock / .block
Last active Apr 2, 2019 — forked from mbostock/.block
Treemap
View .block
border: no
height: 600
license: gpl-3.0
redirect: https://beta.observablehq.com/@mbostock/d3-treemap
You can’t perform that action at this time.