Skip to content

Instantly share code, notes, and snippets.

View igorshubovych's full-sized avatar
💭
I may be slow to respond.

Igor Shubovych igorshubovych

💭
I may be slow to respond.
View GitHub Profile
@giannisp
giannisp / gist:ebaca117ac9e44231421f04e7796d5ca
Last active July 14, 2024 18:27
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 [email protected]
brew unlink [email protected]
brew link postgresql
@akella
akella / setup.md
Last active February 21, 2023 22:59
Мой сетап

То что я использую в работе и стримах

Софт для разработки

@ldez
ldez / gmail-github-filters.md
Last active April 16, 2025 20:12
Gmail and GitHub - Filters

Gmail and GitHub

How to filter emails from GitHub in Gmail and flag them with labels.

The labels in this document are just examples.

Pull Request

Filter Label
@ericclemmons
ericclemmons / example.md
Last active September 20, 2024 12:46
HTML5 <details> in GitHub

Using <details> in GitHub

Suppose you're opening an issue and there's a lot noisey logs that may be useful.

Rather than wrecking readability, wrap it in a <details> tag!

<details>
 Summary Goes Here
@vseloved
vseloved / algorithms-glossary-ru-uk.md
Last active July 1, 2016 22:45
Глоссарий алгоритмических терминов

Глоссарий алгоритмических терминов

Общепринятые

English Русский Українська
queue очередь черга
heap куча купа
tree дерево дерево
graph граф граф
@codeinthehole
codeinthehole / osx_bootstrap.sh
Last active January 7, 2025 13:44
Script to install stuff I want on a new OSX machine
#!/usr/bin/env bash
#
# Bootstrap script for setting up a new OSX machine
#
# This should be idempotent so it can be run multiple times.
#
# Some apps don't have a cask and so still need to be installed by hand. These
# include:
#
# - Twitter (app store)
@exAspArk
exAspArk / friday_deploy_cap2.rb
Last active November 14, 2020 23:13
Friday deploy script for Capistrano
# Capistrano 2
before "deploy", "friday:good_luck"
namespace :friday do
friday_jumper = %{
┓┏┓┏┓┃
┛┗┛┗┛┃⟍ ○⟋
┓┏┓┏┓┃ Friday
┛┗┛┗┛┃ノ)
@elgalu
elgalu / toHaveClass.js
Last active August 2, 2019 21:38
toHaveClass custom Jasmine 1.3.1 html class matcher
"use strict";
var maxWaitTimeoutMs = 5000; // 5secs
var webdriver = require('selenium-webdriver');
var flow = webdriver.promise.controlFlow();
/**
* Custom Jasmine matcher builder that waits for an element to have
* or not have an html class.
* @param {String} expectation The html class name
@elgalu
elgalu / customMatchers.js
Last active August 6, 2017 04:08
Some Protractor - Jasmine 1.3.x custom matchers
//////////////////////////
// Some Custom Matchers //
//////////////////////////
"use strict";
// Usage:
// Add `require('./customMatchers.js');` in your onPrepare block or file
// Config
var specTimeoutMs = 10000; // 10 secs
@branneman
branneman / better-nodejs-require-paths.md
Last active April 11, 2025 10:39
Better local require() paths for Node.js

Better local require() paths for Node.js

Problem

When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:

const Article = require('../../../../app/models/article');

Those suck for maintenance and they're ugly.

Possible solutions