Skip to content

Instantly share code, notes, and snippets.

View blalor's full-sized avatar

Brian Lalor blalor

View GitHub Profile
@alisdair
alisdair / intensify.sh
Created May 21, 2019 23:44
intensifies Slack emoji creator
#!/bin/bash
# Generate a `:something-intensifies:` Slack emoji, given a reasonable image
# input. I recommend grabbing an emoji from https://emojipedia.org/
set -euo pipefail
# Number of frames of shaking
count=10
# Max pixels to move while shaking
@chorn
chorn / twitter-remove-promotions.user.js
Last active June 21, 2021 18:40
Remove Promoted Tweets - RunAt: document-start
// ==UserScript==
// @name Twitter Remove Promotions
// @description Remove Promoted Tweets
// @author chorn
// @match https://twitter.com/*
// @include https://twitter.com/*
// @run-at document-start
// @version 1.0.4
// ==/UserScript==
@blalor
blalor / gist:5527096
Last active October 9, 2017 14:50
redhat → debian, arch rosetta stone
@jpetazzo
jpetazzo / README.md
Last active August 21, 2019 17:55
Give network superpowers to docker

Unionize: network superpowers for your docker containers

Unionize lets you connect together docker containers in arbitrarily complex scenarios.

Note: I recommend to use https://github.com/jpetazzo/pipework instead.

  • pipework is a better name than unionize
  • it's hosted on a "real" github repo instead of a small gist :-)

Now if you want Unionize, it's still here. Just check those examples.

@logikal
logikal / speakernotes.md
Created March 29, 2013 17:43
Monitorama Speaker notes list
@conorbranagan
conorbranagan / gist:4513828
Last active April 13, 2024 20:06
Linux System Metrics

Linux System Metrics

CPU

  • system.cpu.idle: % Idle CPU
  • system.cpu.system: % System CPU
  • system.cpu.user: % User CPU

Disk

@RJ
RJ / fake-erlang.sh
Last active April 5, 2018 13:13
Use ESL erlang deb, provide fake erlang-nox package so deps behave
#!/bin/bash
# Install fake erlang packages, then the ESL package
# Afterwards, installing packages that depend on erlang, like rabbitmq,
# will use the ESL packaged erlang without installing the older disto ones
#
apt-get install equivs
# Create fake erlang packages, since we are using esl-erlang instead
cd /tmp
apt-get install -y equivs
@steder
steder / aws_sg_recipe.py
Created December 19, 2011 19:11
Create and update AWS security groups using Python and Boto.
#!/usr/bin/env python
"""
Recipe for creating and updating security groups programmatically.
"""
import collections
import boto
@matthanger
matthanger / namespace.js
Created December 6, 2011 23:09
Namespaces in JavaScript
/**
* Registers the specified namespace, ensuring all parts of the namespace are created. If the namespace
* already exists, it will not be modified.
*
* Usage:
* namespace('foo.bar');
* foo.bar.baz = 'qux';
*
* @param {String} namespace The namespace to register. Namespaces are hierarchal, and are separated by dots.
*/
@ashb
ashb / run-chef.sh
Created October 30, 2011 14:48
Make the chef-client (v0.10+) daemon process wake and run, and print what its doing to stdout
#!/bin/bash
#
# Author:: Ash Berlin (ash_github@firemirror.om)
# Copyright:: Copyright (c) 2011 DigiResults Ltd.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#