Skip to content

Instantly share code, notes, and snippets.

View erickmendonca's full-sized avatar
:shipit:
Shippin'

Erick Mendonça erickmendonca

:shipit:
Shippin'
View GitHub Profile
@bhardin
bhardin / create_release_notes.py
Created May 21, 2018 16:01
Create nice looking PR notes from a milestone
from github import Github
import os
import sys
release = str(sys.argv[1])
# or using an access token
GITHUB_ACCESS_TOKEN = os.environ['GITHUB_ACCESS_TOKEN']
g = Github(GITHUB_ACCESS_TOKEN)
FEATURES = 'Feature'
@giannisp
giannisp / gist:ebaca117ac9e44231421f04e7796d5ca
Last active March 1, 2024 14:39
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
@Ambroos
Ambroos / WARNING.md
Last active November 30, 2023 06:20
Remove SentinelOne agent from Mac. Because honestly, it doesn't seem to do anything at all. Run as root, best is to do this from a recovery mode, single user mode with writeable filesystem, ...

USE AT OWN RISK

This was only tested on a 'partial' SentinelOne installation on the High Sierra beta, where SentinelOne was never allowed to enable it's kernel extension. (Some things failed while I was messing around with OS betas.)

This script is most likely outdated.

A lot happens in 2+ years, at this point there's a good chance this script will do more harm than good. Read the comments before using!

@td0
td0 / VSCode-custom.css
Last active August 30, 2018 22:13
vscode-styles for operator mono, fira code ligatures, and oceanic next italic
div.window-title, div.panel-header div.title, a.editor-status-mode,
div.results-group, span.quick-open-entry-description>span.monaco-highlighted-label:first-child,
.input, div.column.when span,
.Equinusocio-vsc-material-theme-themes-Material-Theme-Palenight-json .mtk12,
.Equinusocio-vsc-material-theme-themes-Material-Theme-Palenight-json .mtk9,
.Equinusocio-vsc-material-theme-themes-Material-Theme-Palenight-json .mtk4,
.Equinusocio-vsc-material-theme-themes-Material-Theme-Palenight-json .mtk3.mtki.detected-link,
.Equinusocio-vsc-material-theme-themes-Material-Theme-Palenight-json span.mtk11.mtki,
.Tyriar-theme-sapphire-theme-bright-json .mtk6,
.zhuangtongfa-Material-theme-themes-OneDark-Pro-json .mtk6,
@juanca
juanca / github_load_all_diffs.js
Created March 2, 2017 18:42
Github PR bookmarklet: Load all file diffs
javascript:
document.querySelectorAll('.load-diff-button').forEach(node => node.click())
@felippemr
felippemr / simple_health_check.py
Created August 11, 2016 18:39
A simple health check class which stores result on redis
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import logging
from contextlib import contextmanager
LOG = logging.getLogger(__name__)
class HealthCheckError(Exception):
@occisioth
occisioth / design-nao-designers.md
Last active February 10, 2018 18:11
Design para Não-Designers - Bookmarks
@danielfilho
danielfilho / .git_commit_msg.txt
Created October 21, 2015 16:25
Template for commit messages.
# If this commit is applied, it will:
# Why was this change made?
# Any references to tickets, articles etc?
@rponte
rponte / get-latest-tag-on-git.sh
Last active March 11, 2024 07:50
Getting latest tag on git repository
# The command finds the most recent tag that is reachable from a commit.
# If the tag points to the commit, then only the tag is shown.
# Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object
# and the abbreviated object name of the most recent commit.
git describe
# With --abbrev set to 0, the command can be used to find the closest tagname without any suffix:
git describe --abbrev=0
# other examples
@jarrad
jarrad / install-kafka.txt
Last active August 24, 2023 08:23
Install Kafka on OSX via Homebrew
$> brew cask install java
$> brew install kafka
$> vim ~/bin/kafka
# ~/bin/kafka
#!/bin/bash
zkServer start
kafka-server-start.sh /usr/local/etc/kafka/server.properties