Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View mark-schaal's full-sized avatar

Mark Schaal mark-schaal

View GitHub Profile
@mark-schaal
mark-schaal / css--linear-gradient--blue.css
Created February 15, 2017 13:05
Appealing Gradient - Linear Blues
background-image: -o-linear-gradient(-38deg, #1AB5C2 0%, #0572E0 100%);
background-image: -moz-linear-gradient(-38deg, #1AB5C2 0%, #0572E0 100%);
background-image: -ms-linear-gradient(-38deg, #1AB5C2 0%, #0572E0 100%);
background-image: linear-gradient(128deg, #1AB5C2 0%, #0572E0 100%);
@mark-schaal
mark-schaal / drupal--rds-secrets.sh
Created February 15, 2017 13:14
AWS Bash Shells - Drupal - RDS Secrets
#!/bin/bash
# Integrates into /etc/profile.d/ for execution at instance creation
# Exports secrets into environment variables accessible from the shell
# Requires additional integration with Apache webserver for utilization from settings.php
export DRUPAL_RDS_USER=
export DRUPAL_RDS_PASS=
export DRUPAL_RDS_HOST=
@mark-schaal
mark-schaal / atlassian--jira--response.varfile
Created February 15, 2017 13:19
Atlassian - JIRA - Preconfigured Install4j Response for Installation
# install4j response file for JIRA Software 7.2.4
#
# Executed with the command "$ atlassian-jira-software-7.2.4-x64.bin -q -varfile /tmp/response.varfile;"
#
launch.application$Boolean=true
rmiPort$Long=8005
app.jiraHome=/var/atlassian/application-data/jira
app.install.service$Boolean=true
existingInstallationDir=/opt/JIRA Software
sys.confirmedUpdateInstallationString=false
@mark-schaal
mark-schaal / aws--cf--metadata-hierarchy-example.template
Created February 15, 2017 13:21
AWS - CloudFormation Templates - MetaData Processing Hierarchy Example
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "",
"Metadata" : {
"AWS::CloudFormation::Init" : {
"configSets": {
"default": ["config"]
},
"config" : {
"packages":{},
rEC2InstanceAtlassianConfluence:
Type: AWS::EC2::Instance
Metadata:
AWS::CloudFormation::Init:
configSets:
bootstrap:
- security-updates
- perl-installation
- psql-tools-installation
- mount-ebs
"rEC2InstanceAtlassianConfluence": {
"Type": "AWS::EC2::Instance",
"Metadata" : {
"AWS::CloudFormation::Init" : {
"configSets" : {
"bootstrap" : [
"security-updates",
"perl-installation",
"psql-tools-installation",
"mount-ebs",
@mark-schaal
mark-schaal / usa-jobss-07092017.json
Created September 7, 2017 21:04
USAJobs Results Sep 7, 2017
This file has been truncated, but you can view the full file.
{
"LanguageCode": "EN",
"SearchParameters": {},
"SearchResult": {
"SearchResultCount": 184,
"SearchResultCountAll": 184,
"SearchResultItems": [
{
"MatchedObjectId": "463671300",
"MatchedObjectDescriptor": {
@mark-schaal
mark-schaal / homebrew-rehydrate.sh
Last active January 15, 2018 21:36
Regenerates a local Home-brew installation from a Leaves export
#!/bin/sh
# Copy Homebrew manifest file from an S3 Bucket into the local system
aws s3 cp s3://<path>/<to>/<something.file> /tmp/homebrew-manifest.txt
# Iterate through each line of brew and install the identified package
# Assumes that the manifest file's schema was generated from the
# `brew leaves > homebrew-manifest.txt` command.
cat /tmp/homebrew-manifest.txt | \
while read CMD;
@mark-schaal
mark-schaal / logger.ts
Created April 7, 2019 23:25
Example custom extension of console logging in Typescript
import chalk from 'chalk';
export const info = (...args: any[]) => {
const [first, ...rest] = args;
const label = chalk.bold.green;
const message = chalk.white;
console.info(label(first), message(...rest));
};
export const warn = (...args: any[]) => {