Skip to content

Instantly share code, notes, and snippets.

at opt into using
sqlserver.default hook[init]:(HK): CAS policy.
sqlserver.default hook[init]:(HK):
sqlserver.default hook[init]:(HK): Please see http://go.microsoft.com/fwlink/?LinkId=131738 for more information.
sqlserver.default hook[init]:(HK):
sqlserver.default hook[init]:(HK):
sqlserver.default hook[init]:(HK): Success
sqlserver.default hook[init]:(HK): Microsoft .NET Framework CasPol 4.6.1586.0
sqlserver.default hook[init]:(HK): Copyright (C) Microsoft Corporation. All rights reserved.
sqlserver.default hook[init]:(HK):
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install git googlechrome habitat vscode -y
@stephenlauck
stephenlauck / chef-client-list.txt
Created July 16, 2019 02:39
list of chef-client versions and hosts
12.12.15 is used by 1 hosts
12.15.19 is used by 1 hosts
12.16.42 is used by 8 hosts
12.17.44 is used by 7 hosts
12.18.31 is used by 84 hosts
12.19.36 is used by 10 hosts
12.20.3 is used by 80 hosts
12.21.1 is used by 1 hosts
12.21.3 is used by 7 hosts
12.6.0 is used by 3 hosts
@stephenlauck
stephenlauck / builder-local.md
Created August 6, 2019 21:41
Proposed CLI based flow for local builder api

Builder Local

Builder consists of minimum 3 services:

  • builder-api
  • datastore - postgresql
  • minio - storage backend

A builder (or bldr-cli) cmd line tool would also be recommended in order to have an easy UX for user to start/seed/update their local builder.

An example flow could be something like the following:

sudo apt install tesseract-ocr

sudo apt install ttf-mscorefonts-installer sudo fc-cache fc-match Arial

sudo apt install imagemagick

text2image --text test.txt --outputbase . --fonts_dir /usr/share/fonts/truetype/msttcorefonts

<type 'exceptions.ImportError'> Python 2.7.18rc1: /usr/bin/python
Tue May 19 03:54:38 2020
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/usr/lib/python2.7/dist-packages/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object>)
556 """Runs the handler, flushes the streams, and ends the request."""
557 try:
@stephenlauck
stephenlauck / init.el
Created May 19, 2020 04:05
Emacs Settings
;; disable auto-save and auto-backup
(setq auto-save-default nil)
(setq make-backup-files nil)
;; set to dark mode
(setq frame-background-mode 'dark)

Policy (outcome / intent)

"The directory /etc/ssh should be created."

chef

directory '/etc/ssh' do
  action :create
end

Reporting

Chef

chef log

Inspec

json report

stephen@meerkat:~/dev/chef/audit$ kitchen converge chef-assert-centos-7
-----> Starting Test Kitchen (v2.4.0)
-----> Converging <chef-assert-centos-7>...
Preparing files for transfer
Preparing dna.json
Resolving cookbook dependencies with Berkshelf 7.0.9...
Removing non-cookbook files before transfer
Preparing validation.pem
Preparing client.rb
-----> Chef installation detected (install only if missing)