Skip to content

Instantly share code, notes, and snippets.

View adrianmoisey's full-sized avatar
🍔

Adrian Moisey adrianmoisey

🍔
View GitHub Profile
@adrianmoisey
adrianmoisey / gist:8278780
Created January 6, 2014 05:47
mapcrafter
(5/5) Rendering map map_yolacraft_end ("Yola Craft - The End"):
(5.1/5.1) Rendering rotation top-left:
Scanning required tiles...
Rendering 568 render tiles on zoom level 7.
Thread 0 renders 140 tiles.
Thread 1 renders 141 tiles.
Thread 2 renders 143 tiles.
Thread 3 renders 144 tiles.
Warning: Corrupt chunk at 1:-15 (No valid sections list found)! ] 0.00% 0/568 0.00/s
Warning: Corrupt chunk at 1:-15 (No valid sections list found)!
root@server:~# rabbitmqctl list_queues -p <VHOST> name messages
Listing queues ...
celery 0
celery@<HOSTNAME>.celery.pidbox 0
celeryev.fb6f5b0d-9d2b-4fb6-87f5-96b22a53e532 0
...done.
# Git me harder!
__git_ps1 ()
{
local g="$(git rev-parse --git-dir 2>/dev/null)"
if [ -n "$g" ]; then
local r
local b
if [ -d "$g/../.dotest" ]
then
local b="$(git symbolic-ref HEAD 2>/dev/null)"
Process: KeePassXC [50513]
Path: /Applications/KeePassXC.app/Contents/MacOS/KeePassXC
Identifier: org.keepassx.keepassxc
Version: 2.1.1 (2.1.1)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: KeePassXC [50513]
User ID: 501
Date/Time: 2017-02-13 16:19:53.688 +0200
#! /usr/bin/env ruby
#
# check-postgres-replication
#
# DESCRIPTION:
#
# This plugin checks postgresql replication lag
#
# OUTPUT:
# plain text
--- before.txt 2018-08-10 10:41:07.000000000 +0200
+++ after.txt 2018-08-10 10:41:15.000000000 +0200
@@ -7,16 +7,16 @@
users:
- default
-# If this is set, 'root' will not be able to ssh in and they
-# will get a message to login instead as the default $user
+# If this is set, 'root' will not be able to ssh in and they
+# will get a message to login instead as the above $user (ubuntu)