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
| Assuming 64bit x86 architecture (most common), download the "Standard" x86_64 from here: | |
| https://alpinelinux.org/downloads/ | |
| Direct Link: | |
| https://dl-cdn.alpinelinux.org/alpine/v3.14/releases/x86_64/alpine-standard-3.14.2-x86_64.iso | |
| It's a very small iso, <200MB. | |
| Booting should be quick in a VM and it'll prompt you to `login:` | |
| Login with `root`, it will not ask for a password. next you will want to run `setup-alpine`. I'll follow this |
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
| # -*- coding: utf-8 -*- | |
| # Gunicorn(v19.3) Configuration File | |
| # Reference - http://docs.gunicorn.org/en/19.3/settings.html | |
| # | |
| # To run gunicorn by using this config, run gunicorn by passing | |
| # config file path, ex: | |
| # | |
| # $ gunicorn --config=gunicorn.py MODULE_NAME:VARIABLE_NAME | |
| # |
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 | |
| echo "DEIS deploy...V0.5..." | |
| # v0.5 limit app name to 50 chars | |
| # check for deis | |
| deis_cmd=$(which deis) | |
| if [ -z "${deis_cmd}" ] || [ ! -x ${deis_cmd} ] ; then | |
| echo "DEIS command does not exist, please run the deis_setup earlier in your deploy build..." | |
| exit 1 | |
| fi |
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 | |
| echo "DEIS integration setup...V0.6..." | |
| # v0.6 - limit app name to 50 chars | |
| # required variable testing blocks | |
| if [ -z "$DEIS_HOME" ] || [ -z "$DEIS_USER" ] || [ -z "$DEIS_PASS" ]; then | |
| echo "ERROR: missing DEIS env variables" | |
| if [ -z "$DEIS_HOME" ]; then echo "Missing DEIS_HOME"; fi | |
| if [ -z "$DEIS_USER" ]; then echo "Missing DEIS_USER"; fi | |
| if [ -z "$DEIS_PASS" ]; then echo "Missing DEIS_PASS"; fi |
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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure("2") do |config| | |
| config.vm.synced_folder "./", "/etc/puppet/" | |
| config.vm.box = "mvbcoding/awslinux" | |
| config.vm.provision :shell, :inline => "sudo rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-el-5.noarch.rpm" | |
| config.vm.provision :shell, :inline => "sudo yum install --disableplugin=priorities --enablerepo=puppetlabs-products -y puppet-3.3.0-1.el5.noarch ruby1.8" | |
| config.vm.provision :shell, :inline => "sudo update-alternatives --set ruby /usr/bin/ruby1.8" | |
| config.vm.provision :shell, :inline => "echo base > /etc/ROLE" |
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
| /** | |
| Original Request: | |
| **** | |
| A dead man's switch is a switch that is automatically operated if the human operator | |
| becomes incapacitated, such as through death, loss of consciousness, or being bodily | |
| removed from control. Originally applied to switches on a vehicle or machine, it has | |
| since come to be used to describe other intangible uses like in computer software. | |
| In alerting systems such a control can be useful, for instance in the case that a | |
| cron job or backup process doesn't complete. |
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
| Onion | |
| garlic | |
| ginger root | |
| lemon | |
| tomato paste | |
| thyme sprig | |
| chicken stock | |
| shallots | |
| rosemary | |
| creme fraiche |
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
| #!/usr/bin/env python | |
| """ | |
| A Lambda Function to set the desired count of running tasks | |
| in a service based on a cluster's containter instances. | |
| Designed to be triggered by a CloudWatch Event rule. | |
| """ | |
| from __future__ import print_function | |
| import os |
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
| // | |
| // solve the problem joel ... | |
| // | |
| // compile & test with: cc array_merge.c -o testit && testit | |
| // | |
| #include <stdio.h> | |
| int main() { |
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 | |
| # send message to slack channel | |
| # define the boundaries after which the message will be sent will be sent as an attachment | |
| # count "c" characters or "l" lines from stdin | |
| stdin_check="l" | |
| # define number of characters or lines from stdin | |
| stdin_count="2" | |
| # define usage function |
NewerOlder