Skip to content

Instantly share code, notes, and snippets.

Notice: /Stage[main]//Node[default]/Package[ack]/ensure: created
Error: Execution of '/usr/sbin/installer -pkg /private/tmp/dmg.iCZWzD/XQuartz.pkg -target /' returned 1: installer: Package name is XQuartz 2.7.4
installer: Upgrading at base path /
installer: The upgrade failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)
Error: /Stage[main]/Xquartz/Package[XQuartz]/ensure: change from absent to present failed: Execution of '/usr/sbin/installer -pkg /private/tmp/dmg.iCZWzD/XQuartz.pkg -target /' returned 1: installer: Package name is XQuartz 2.7.4
installer: Upgrading at base path /
installer: The upgrade failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)
Notice: /Stage[main]/Chrome/Package[Chrome]/ensure: created
MacPro2:XQuartz-2.7.4 rmchale$ sudo /usr/sbin/installer -verbose -pkg XQuartz.pkg -target /Volumes/Boot/
installer: Package name is XQuartz 2.7.4
installer: Upgrading at base path /
installer: Preparing for installation….....
installer: Preparing the disk….....
installer: Preparing XQuartz 2.7.4….....
installer: Waiting for other installations to complete….....
installer: Configuring the installation….....
installer:
#
{"data":{"y":"ArrayList","v":[{"_":"com.ni.api.jobtrain.model.Job","id":849,"jobType":"create-audience","jobRequests":[{"id":708,"userEmail":"","jobType":"create-audience","startDateTime":1387308666742,"status":0,"rank":708000,"runImmediately":false,"partitionLocks":[{"attribute":"media_v3.authored_month","value":"2012-10","lockType":0},{"attribute":"media_v3.authored_month","value":"2012-11","lockType":0},{"attribute":"media_v3.authored_month","value":"2012-12","lockType":0}],"parameters":[{"key":"audienceId","value":"126680"},{"key":"blocklistFileName","value":"global_blocklist.txt"},{"key":"blocklistUrl","value":"hdfs://nn1.colo.networkedinsights.com:8020/ods/global_blocklist.txt"},{"key":"classifierDefinitions","value":"hdfs://nn1.colo.networkedinsights.com:8020/classification/gender_classifier.json"},{"key":"endMonth","value":"{partitionValue}"},{"key":"esClusterName","value":"esaud_cluster1"},{"key":"esHosts","value":"esaud1.colo.networkedinsights.com,esaud2.colo.networkedinsights.com,esaud3.colo.networ
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-deployment
spec:
selector:
matchLabels:
run: hello
replicas: 1
template:
@rmchale
rmchale / gcedown.sh
Created November 26, 2019 20:44
gcedown
for i in `gcloud compute instances list --project=rmchale-1093 |grep -i mchale |grep RUNNING |awk '{ print $1 }'`
do
zone=$(gcloud compute instances list --project=rmchale-1093 |grep -i $i |awk '{ print $2 }')
yes Y | gcloud compute instances delete $i --zone=$zone --project=rmchale-1093
done
import boto3
dynamodb = boto3.client('dynamodb', region_name='us-east-2')
dynamodb.put_item(TableName='emails',
Item={
'id': {'S': 'ryan.mchale@gmail.com'}
}
)
@rmchale
rmchale / apps.yml
Last active April 11, 2020 02:10
ChromeOS application setup
---
- name: Pixel slate apps
hosts: localhost
become: yes
tasks:
- shell: lsb_release -cs
register: release
<html>
Test
<table class="mdl-data-table mdl-js-data-table mdl-data-table--selectable mdl-shadow--2dp">
<thead>
<tr>
<th class="mdl-data-table__cell--non-numeric">Material</th>
<th>Quantity</th>
<th>Unit price</th>
</tr>
</thead>
@rmchale
rmchale / Dockerfile
Created May 24, 2020 15:22
Gcloud Dockerfile
from debian:stable
# install gcloud
RUN apt-get install -y lsb-release
RUN apt-get install -y gnupg2
RUN echo "deb http://packages.cloud.google.com/apt cloud-sdk-$(lsb_release -c -s) main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
# RUN cat /etc/apt/sources.list.d/google-cloud-sdk.list
RUN apt-get update && apt-get install -y google-cloud-sdk
@rmchale
rmchale / Makefile
Last active August 28, 2021 18:02
My makefile template
SHELL := /bin/bash
.DEFAULT_GOAL := help
hello: ## hello
@echo "hello world"
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'