gitflow | git |
---|---|
git flow init |
git init |
git commit --allow-empty -m "Initial commit" |
|
git checkout -b develop master |
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com
, example2.com
, and example1.com/images
on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers
This the sample log widget for CodingWithMe Learn Dashing Widget.
Dashing is the exceptionally handsome dashboard framework.
Using follow curl
command to update the data inside
$ curl -d '{ "auth_token": "YOUR_AUTH_TOKEN", "access": "1/0"}' http://localhost:3030/widgets/log
$ curl -d @log.json http://localhost:3030/widgets/log
## | |
# | |
# setup: | |
# - generate an ssh key to be used as an authentication key with `ssh-keygen` and call it `docker_ssh_rsa` | |
# - make sure your current ssh agent has the identity file added | |
# - $ eval `ssh-agent` | |
# - $ ssh-add docker_ssh_rsa | |
# | |
# build: $ sudo docker build -t <you>/spvssh . | |
# |
Graphite does two things:
- Store numeric time-series data
- Render graphs of this data on demand
What Graphite does not do is collect data for you, however there are some tools out there that know
#!/bin/bash | |
# MK's Remote Plugin Executor NG ;-) | |
# | |
# Workaround for check_mks inability to use scripts from a mrpe.d directory | |
# http://lists.mathias-kettner.de/pipermail/checkmk-en/2013-February/008646.html | |
# | |
# Make sure mrpe.cfg doesn't exist, or you will end up with two <<<mrpe>>> | |
# output sections. | |
# |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
Send-MailMessage -From <from> -to <to> -subject <subject> -SmtpServer email-smtp.us-east-1.amazonaws.com -Credential | |
$(New-Object System.Management.Automation.PSCredential -argumentlist <AWS_ACCESS_KEY>, | |
$(ConvertTo-SecureString -AsPlainText -String <AWS_SECRET_KEY> -Force) | |
) | |
-UseSsl -Port 587 |
#!/usr/bin/python | |
# This file is part of Ansible | |
# | |
# Ansible 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. | |
# | |
# Ansible is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
#!/usr/bin/env bash | |
# repository | |
cd /tmp | |
wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm | |
rpm -Uvh epel-release-6-7.noarch.rpm | |
# system update | |
yum -y update | |
yum -y groupinstall "Development Tools" | |
yum -y install libxslt-devel libyaml-devel libxml2-devel gdbm-devel libffi-devel zlib-devel openssl-devel libyaml-devel readline-devel curl-devel openssl-devel pcre-devel git memcached-devel valgrind-devel mysql-devel ImageMagick-devel ImageMagick |