Skip to content

Instantly share code, notes, and snippets.

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

@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:

@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
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
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):
@stephenlauck
stephenlauck / mac_setup.md
Last active August 19, 2018 18:44
Mac setup

mac setup

Install homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install google chrome

brew cask install google-chrome

# Remove SMB1 Client and Server functions for Server 2012 and newer
describe windows_feature('SMB1Protocol') do
it { should_not be_installed }
end
# Disable SMB1 Server functionality
describe registry_key('SMB1','HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters') do
its('SMB1') { should eq 0 }
end
# Remove SMB1 Client and Server functions for Server 2012 and newer
windows_feature "SMB1Protocol" do
action :remove
install_method :windows_feature_dism
end
# Disable SMB1 server
registry_key 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters' do
values [{
name: 'SMB1',
[root@automate ~]# inspec exec https://github.com/dev-sec/ssl-baseline/archive/master.tar.gz
/hab/pkgs/core/ruby/2.3.1/20161214031900/lib/ruby/2.3.0/net/http.rb:933:in `connect_nonblock': SSL_connect returned=1 errno=0 state=error: certificate verify failed (OpenSSL::SSL::SSLError)
from /hab/pkgs/core/ruby/2.3.1/20161214031900/lib/ruby/2.3.0/net/http.rb:933:in `connect'
from /hab/pkgs/core/ruby/2.3.1/20161214031900/lib/ruby/2.3.0/net/http.rb:863:in `do_start'
from /hab/pkgs/core/ruby/2.3.1/20161214031900/lib/ruby/2.3.0/net/http.rb:852:in `start'
from /hab/pkgs/core/ruby/2.3.1/20161214031900/lib/ruby/2.3.0/open-uri.rb:319:in `open_http'
from /hab/pkgs/core/ruby/2.3.1/20161214031900/lib/ruby/2.3.0/open-uri.rb:737:in `buffer_open'
from /hab/pkgs/core/ruby/2.3.1/20161214031900/lib/ruby/2.3.0/open-uri.rb:212:in `block in open_loop'
from /hab/pkgs/core/ruby/2.3.1/20161214031900/lib/ruby/2.3.0/open-uri.rb:210:in `catch'
from /hab/pkgs/core/ruby/2.3.1/20161214031900/lib/ruby/2.3.0/open-uri.rb:210:in `open_loo
@stephenlauck
stephenlauck / .kitchen.local.yml
Last active March 18, 2016 16:29
Local kitchen yml to create vm ready for ssh provisioning with delivery-cluster.
# KITCHEN_YAML=.kitchen.local.yml kitchen create cent
---
driver:
name: vagrant
ssh:
insert_key: false
provisioner:
name: chef_zero
chef_zero_port: 9010