Skip to content

Instantly share code, notes, and snippets.

View vishes-shell's full-sized avatar
💭
🏄

Vishes vishes-shell

💭
🏄
View GitHub Profile
@vaughany
vaughany / log_min_duration_statement.md
Created October 8, 2018 16:16
Changing Postgres' log_min_duration_statement setting

Changing Postgres' log_min_duration_statement setting on the fly

Check the setting:

SELECT * FROM pg_settings WHERE name = 'log_min_duration_statement';

Change the setting:

SET log_min_duration_statement TO 1000; >

@annarailton
annarailton / pre-commit-autoflake.py
Last active September 20, 2020 19:10
Run autoflake against staged .py files on commit
#!/usr/bin/python3
"""Runs autoflake on commit. Blocks commit and requests adding changed files
if autoflake fires.
Installation
------------
1. You will need to install autoflake: https://pypi.org/project/autoflake/
$ pip install --upgrade autoflake
or
@RightHandedMonkey
RightHandedMonkey / jira_issue_copy_button.js
Last active May 18, 2023 12:11
JIRA Issue Copy Button (tampermonkey script) - Adds a copy button to JIRA issues for pasting into slack and others
// ==UserScript==
// @name Jira Issue Copy Button
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Add a copy button on the tickets so we can Copy ticket number and summary with just one click to share somewhere else
// @author Sam Bossen
// @match https://jira.audible.com/*
// @grant none
// ==/UserScript==