Skip to content

Instantly share code, notes, and snippets.

Mark mark-schaal

Block or report user

Report or block mark-schaal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mark-schaal
mark-schaal / logger.ts
Created Apr 7, 2019
Example custom extension of console logging in Typescript
View logger.ts
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[]) => {
@mark-schaal
mark-schaal / homebrew-rehydrate.sh
Last active Jan 15, 2018
Regenerates a local Home-brew installation from a Leaves export
View homebrew-rehydrate.sh
#!/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 / usa-jobss-07092017.json
Created Sep 7, 2017
USAJobs Results Sep 7, 2017
View usa-jobss-07092017.json
This file has been truncated, but you can view the full file.
{
"LanguageCode": "EN",
"SearchParameters": {},
"SearchResult": {
"SearchResultCount": 184,
"SearchResultCountAll": 184,
"SearchResultItems": [
{
"MatchedObjectId": "463671300",
View AWS-Source-Sample.json
"rEC2InstanceAtlassianConfluence": {
"Type": "AWS::EC2::Instance",
"Metadata" : {
"AWS::CloudFormation::Init" : {
"configSets" : {
"bootstrap" : [
"security-updates",
"perl-installation",
"psql-tools-installation",
"mount-ebs",
View AWS-Transform-Sample.yml
rEC2InstanceAtlassianConfluence:
Type: AWS::EC2::Instance
Metadata:
AWS::CloudFormation::Init:
configSets:
bootstrap:
- security-updates
- perl-installation
- psql-tools-installation
- mount-ebs
@mark-schaal
mark-schaal / aws--cf--metadata-hierarchy-example.template
Created Feb 15, 2017
AWS - CloudFormation Templates - MetaData Processing Hierarchy Example
View aws--cf--metadata-hierarchy-example.template
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "",
"Metadata" : {
"AWS::CloudFormation::Init" : {
"configSets": {
"default": ["config"]
},
"config" : {
"packages":{},
@mark-schaal
mark-schaal / atlassian--jira--response.varfile
Created Feb 15, 2017
Atlassian - JIRA - Preconfigured Install4j Response for Installation
View atlassian--jira--response.varfile
# 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 / drupal--rds-secrets.sh
Created Feb 15, 2017
AWS Bash Shells - Drupal - RDS Secrets
View drupal--rds-secrets.sh
#!/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 / css--linear-gradient--blue.css
Created Feb 15, 2017
Appealing Gradient - Linear Blues
View css--linear-gradient--blue.css
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%);
You can’t perform that action at this time.