A Howto on development of Gems and their interaction with Bundler, Continious Integration and Deployment in complex applications.
This file contains hidden or 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
unless File.exist?('Gemfile') | |
File.write('Gemfile', <<-GEMFILE) | |
source 'https://rubygems.org' | |
gem 'rails' | |
gem 'sqlite3' | |
GEMFILE | |
system 'bundle' | |
end | |
This file contains hidden or 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
class HTTPClient | |
VERB_MAP = { | |
get: Net::HTTP::Get, | |
post: Net::HTTP::Post, | |
put: Net::HTTP::Put, | |
delete: Net::HTTP::Delete | |
} | |
def initialize(endpoint, options = {}) | |
uri = URI.parse(endpoint) |
Kargath Bladefist is a fairly straightforward fight that requires moderate coordination. Throughout the encounter, Kargath will use the Chain Hurl ability to pick up the five nearest players and fling them into the stands of the Coliseum where they can engage the enemies in the audience. The most dangerous mechanic in the encounter is Berserker Rush. It can only be stopped by the target's death or by kiting Kargath through an active Flame Pillar
- 2 tanks, 3 healers
- Spread out 7y for Blade Dance
- Move the fuck out of his way for Berserker Rush
- Pull into the flaming pillars
- Chain Hurl will throw closest 5 on the stands. Kill stuff. Alertnate tanks with debuff.
This file contains hidden or 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
EMRK>emrk-reinstall | |
WARNING: This script will reinstall EdgeOS from scratch | |
If you have any usable data on your router storage, | |
it will be irrecoverably destroyed! | |
Do you want to continue? | |
yes or no: yes | |
Unmounting boot partition | |
Unmounting root partition | |
Re-creating partition table | |
Creating boot partition |
This file contains hidden or 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
#cloud-config | |
users: | |
- name: core | |
ssh-authorized-keys: | |
- ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAvFapuevZeHFpFn438XMjvEQYd0wt7+tzUdAkMiSd007Tx1h79Xm9ZziDDUe4W6meinVOq93MAS/ER27hoVWGo2H/vn/Cz5M8xr2j5rQODnrF3RmfrJTbZAWaDN0JTq2lFjmCHhZJNhr+VQP1uw4z2ofMBP6MLybnLmm9ukzxFYZqCCyfEEUTCMA9SWywtTpGQp8VLM4INCxzBSCuyt3SO6PBvJSo4HoKg/sLvmRwpCVZth48PI0EUbJ72wp88Cw3bv8CLce2TOkLMwkE6NRN55w2aOyqP1G3vixHa6YcVaLlkQhJoJsBwE3rX5603y2KjOhMomqHfXxXn/3GKTWlsQ== [email protected] | |
- name: michi | |
groups: | |
- sudo | |
- docker |
This file contains hidden or 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/bash | |
if [ ! -n "$MON_NAME" ]; then | |
echo "ERROR- MON_NAME must be defined as the name of the monitor" | |
exit 1 | |
fi | |
if [ ! -n "$MON_IP" ]; then | |
echo "ERROR- MON_IP must be defined as the IP address of the monitor" | |
exit 1 |
This file contains hidden or 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
[Unit] | |
Description=Ceph OSD | |
After=docker.service | |
After=ceph-mon.service | |
RequiresMountsFor=/var/lib/ceph/osd | |
[Service] | |
EnvironmentFile=/etc/environment | |
Environment=HOSTNAME=%H | |
ExecStartPre=/usr/bin/docker run --rm -v /opt/bin:/opt/bin ibuildthecloud/systemd-docker |
I hereby claim:
- I am bugroger on github.
- I am michaelschmidt (https://keybase.io/michaelschmidt) on keybase.
- I have a public key whose fingerprint is 7709 9F40 A0BB 8E4F CAD8 DA24 F46C A408 9726 1F33
To claim this, I am signing this object:
This file contains hidden or 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/bash | |
while true; do | |
curl -so /dev/null -H "Pragma: no-cache" -H "Cache-Control: no-cache" \ | |
-w "%{time_total}\t%{time_starttransfer}\t%{time_pretransfer}\t%{time_connect}\n" \ | |
"$1?`date +%s`" | |
done |