This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Bash function to have Docker-Compose send a notification upon completion, because it can take a while | |
# "cheers" -> https://bigsoundbank.com/sound-0237-shouts-and-applauses-of-teens-2.html | |
# only works on a Mac, you'd have to revise it for other operating systems | |
docker-compose() { | |
local cmd="docker-compose $@" | |
command $cmd && osascript -e 'display notification "$cmd" with title "Docker-Compose Done" sound name "cheers"' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import feedparser | |
import requests | |
import re | |
def monitor_jenkins_rss(rss_url): | |
try: | |
response = requests.get(rss_url) | |
response.raise_for_status() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vol: 5 Gals | |
Style: Not quite a Kölsch | |
Malts: | |
6 Lbs Northwestern LME, Gold | |
1 Lb Cara-pils, American | |
1 Lb Vienna, American | |
Hop Schedule: | |
.5 oz Chinook (12%) 60 minutes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
ActivityTweet | |
generic_activity_highlights | |
generic_activity_momentsbreaking | |
RankedOrganicTweet | |
suggest_activity | |
suggest_activity_feed | |
suggest_activity_highlights | |
suggest_activity_tweet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for i in /var/lib/tomcat7/fcrepo4-data/fedora.binary.directory/*; do | |
echo $i | |
rm -rf $i | |
done | |
rm -rf /var/lib/tomcat7/fcrepo4-data/[cf]* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse, glob, json, re, subprocess, urllib.request, os, sys | |
class version_number: | |
major=0 | |
minor=0 | |
release=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# How to run tomcat as non-root with docker | |
# | |
# We want to map the tomact process to host user, which is created here | |
sudo useradd -r docker-tomcat | |
# start a container, but don't run tomcat yet | |
docker run -it -d --name=tomcat-intermediate -u $(id docker-tomcat -u) tomcat:8.0 /bin/sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# fix-metadata-values.py 1.0.0 | |
# | |
# Copyright 2018 Alan Orth. | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RAILS Cheat Sheet! | |
######################################## | |
Rails Tutorial/Chapter 1 | |
RUN A LOCAL SERVER | |
$ rails server | |
CHECK VERSION OF RUBY | |
$ ruby -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Author: Ivan Masar, 2015 | |
# License: public domain | |
# | |
# list running VMs by name | |
# for each VM print selected fields from vminfo | |
# format it into a table (using "column") | |
print_header=1 |
NewerOlder