I hereby claim:
- I am lpaulmp on github.
- I am paulmp (https://keybase.io/paulmp) on keybase.
- I have a public key ASC5Yfg_UmblYc4Rjx-A-Wo1doczwndqx8s1Du9wJN2ekwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
# Usage: slackpost "<webhook_url>" "<channel>" "<username>" "<message>" | |
# also (echo $RANDOM; echo $RANDOM) |slackpost "<channel>" "<username>" | |
# ------------ | |
webhook_url=$1 | |
if [[ $webhook_url == "" ]] | |
then | |
echo "No webhook_url specified" |
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix | |
]; | |
#----- | |
# BOOT |
{ | |
webserver = | |
{ config, pkgs, ... }: | |
{ deployment.targetEnv = "virtualbox"; | |
deployment.virtualbox.headless = true; | |
deployment.virtualbox.memorySize = 512; # megabytes | |
}; | |
} | |
{ |
A good commit message looks like this: | |
Header line: explaining the commit in one line | |
Body of commit message is a few lines of text, explaining things | |
in more detail, possibly giving some background about the issue | |
being fixed, etc etc. | |
The body of the commit message can be several paragraphs, and | |
please do proper word-wrap and keep columns shorter than about |
# Add this snippet to the top of your playbook. | |
# It will install python2 if missing (but checks first so no expensive repeated apt updates) | |
# [email protected] | |
- hosts: all | |
gather_facts: False | |
tasks: | |
- name: install python 2 | |
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal) |
var pack = require('./package.json'); | |
var request = require('request'); | |
var name = pack.name; | |
module.exports = function (shipit) { | |
require('shipit-deploy')(shipit); | |
var deployTo = '/var/www/FOLDER_TO_DEPLOY_TO'; | |
var deployToCurrent = deployTo + '/current'; | |
var slackWebhookURL = 'SLACK_HOOK_URL'; |