Skip to content

Instantly share code, notes, and snippets.

View mo6020's full-sized avatar
๐Ÿ
Shaving all of the yaks.

Ed Morgan mo6020

๐Ÿ
Shaving all of the yaks.
View GitHub Profile
@dleske
dleske / Three-Node-LustreFS-Cluster-Quickstart-Centos7.md
Last active December 18, 2024 06:12 — forked from joshuar/Three-Node-LustreFS-Cluster-Quickstart.md
Quick three-node Lustre set-up on CentOS 7
@mrlesmithjr
mrlesmithjr / ansible-macos-homebrew-packages.yml
Last active January 21, 2025 16:34
Install MacOS Homebrew Packages With Ansible
---
- name: Install MacOS Packages
hosts: localhost
become: false
vars:
brew_cask_packages:
- atom
- docker
- dropbox
- firefox
@mhausenblas
mhausenblas / README.md
Last active January 8, 2017 02:14
Container images cheat sheet

Cheat sheet: container images

A collection of container images I use for admin tasks or troubleshooting in environments such as CoreOS where quite often the one or other thing is not available or I can't be bothered to install stuff.

Networking

Good old netcat:

$ docker run -it --rm appropriate/nc $IP $PORT
@robinsloan
robinsloan / unfave.rb
Last active November 6, 2024 14:29
Unfave script, because why not??
#!/usr/bin/env ruby
require "rubygems"
require "twitter"
require "json"
require "faraday"
# things you must configure
TWITTER_USER = "your_username"
# get these from dev.twitter.com
@rodaine
rodaine / tomorrow-night-eighties-slack-theme.md
Last active September 13, 2019 20:03
Tomorrow Night Eighties - Slack Theme

Based on the Tomorrow Night Eighties theme

Paste the following in the Preferences > Sidebar Theme > Custom Theme import/export field:

#2d2d2d,#393939,#6699cc,#FFFFFF,#515151,#cccccc,#99cc99,#f2777a
@mo6020
mo6020 / homebrew.sh
Last active November 21, 2015 22:56
#!/usr/bin/env bash
# Ed Morgan [[email protected]]
# version 1.2
# 11/09/2015
# Install Hombrew first!
# Make sure weโ€™re using the latest Homebrew
echo "Updating brews..."
brew update
@mo6020
mo6020 / vcentre_setup_db.sql
Last active January 3, 2016 11:09
Setup vCentre DB & Schema...
/*
Change DB name, location, and vpxuser password to whatever you wish.
Ed Morgan [[email protected]] - 16/01/2013
*/
use [master]
go
CREATE DATABASE [vCentre_Server] ON PRIMARY
(NAME = N'vCentre_Server', FILENAME = N'E:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\vCentre_Server.mdf' , SIZE = 3000KB , FILEGROWTH = 10% )
LOG ON
@ochronus
ochronus / commands.sh
Last active November 21, 2023 11:28
CPU and disk benchmarks
# install sysbench
$ apt-get install sysbench
# CPU benchmark, 1 thread
$ sysbench --test=cpu --cpu-max-prime=20000 run
# CPU benchmark, 64 threads
$ sysbench --test=cpu --cpu-max-prime=20000 --num-threads=64 run
# Disk benchmark, random read. See .fio files in this gist
@windytan
windytan / emoji.pl
Last active August 14, 2023 14:50
Visualize SSH public key fingerprints using Unicode emoji
# Oona Rรคisรคnen 2013
# http://windytan.com
# ssh-keygen -l -f ~/.ssh/id_rsa.pub | perl emoji.pl
@emoji = qw( ๐ŸŒ€ ๐ŸŒ‚ ๐ŸŒ… ๐ŸŒˆ ๐ŸŒ™ ๐ŸŒž ๐ŸŒŸ ๐ŸŒ  ๐ŸŒฐ ๐ŸŒฑ ๐ŸŒฒ ๐ŸŒณ ๐ŸŒด ๐ŸŒต ๐ŸŒท ๐ŸŒธ
๐ŸŒน ๐ŸŒบ ๐ŸŒป ๐ŸŒผ ๐ŸŒฝ ๐ŸŒพ ๐ŸŒฟ ๐Ÿ€ ๐Ÿ ๐Ÿ‚ ๐Ÿƒ ๐Ÿ„ ๐Ÿ… ๐Ÿ† ๐Ÿ‡ ๐Ÿˆ
๐Ÿ‰ ๐ŸŠ ๐Ÿ‹ ๐ŸŒ ๐Ÿ ๐ŸŽ ๐Ÿ ๐Ÿ ๐Ÿ‘ ๐Ÿ’ ๐Ÿ“ ๐Ÿ” ๐Ÿ• ๐Ÿ– ๐Ÿ— ๐Ÿ˜
๐Ÿœ ๐Ÿ ๐Ÿž ๐ŸŸ ๐Ÿ  ๐Ÿก ๐Ÿข ๐Ÿฃ ๐Ÿค ๐Ÿฅ ๐Ÿฆ ๐Ÿง ๐Ÿจ ๐Ÿฉ ๐Ÿช ๐Ÿซ
๐Ÿฌ ๐Ÿญ ๐Ÿฎ ๐Ÿฏ ๐Ÿฐ ๐Ÿฑ ๐Ÿฒ ๐Ÿณ ๐Ÿด ๐Ÿต ๐Ÿถ ๐Ÿท ๐Ÿธ ๐Ÿน ๐Ÿบ ๐Ÿป
@robinsloan
robinsloan / langoliers.rb
Last active February 27, 2025 02:44
The Langoliers, a tweet deletion script
require "rubygems"
require "twitter"
require "json"
# things you must configure
TWITTER_USER = "your_username"
MAX_AGE_IN_DAYS = 1 # anything older than this is deleted
# get these from dev.twitter.com
CONSUMER_KEY = "your_consumer_key"