Skip to content

Instantly share code, notes, and snippets.

@tijko
tijko / cheatsheet_chef_knife_kitchen_inspec_ohai.md
Created September 23, 2024 18:55 — forked from 1000miles/cheatsheet_chef_knife_kitchen_inspec_ohai.md
Cheat Sheet (Chef-Knife-Kitchen-Inspec-Ohai)

Cheat Sheet (Chef, Knife, Kitchen, Inspec, Ohai)

provided by chef.io

Chef Development Kit commands

$ chef ...

Usage:
@tijko
tijko / syntax.s
Created November 24, 2023 00:48 — forked from DmitrySoshnikov/syntax.s
AT&T assembly syntax and IA-32 instructions
# --------
# Hardware
# --------
# Opcode - operational code
# Assebly mnemonic - abbreviation for an operation
# Instruction Code Format (IA-32)
# - Optional instruction prefix
# - Operational code
@tijko
tijko / tmux-cheatsheet.markdown
Created May 6, 2023 23:07 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@tijko
tijko / Jenkinsfile
Created April 25, 2023 22:04 — forked from chinshr/Jenkinsfile
Best of Jenkinsfile, a collection of useful workflow scripts ready to be copied into your Jenkinsfile on a per use basis.
#!groovy
# Best of Jenkinsfile
# `Jenkinsfile` is a groovy script DSL for defining CI/CD workflows for Jenkins
node {
}
@tijko
tijko / stale-branches.sh
Last active April 11, 2023 23:47
Scan a Github Organization for "stale" branches
#!/usr/bin/env bash
# Pass an argument when running (e.g. ./stale-branches.sh tijko)
# Or Set an environment variable (e.g. export ORG=tijko)
if [[ $# -gt 0 ]]
then
ORG=$1
fi
if [[ ! $ORG ]]
@tijko
tijko / template.yaml
Created February 2, 2023 23:48 — forked from mikebroberts/template.yaml
CloudFront Functions Demo with CloudFormation
Description: CloudFront Functions Demo
# This example shows how to use CloudFront, CloudFront Functions, and CloudFormation.
# In this simple example we setup CloudFront so that on any request we redirect to another site.
# While basic, this example can be expanded to provide typical redirect scenarios, based
# on the event passed to the function.
# This example written by Mike Roberts (https://twitter.com/mikebroberts), Symphonia.
# For more ideas about using AWS more effectively,see our blog at https://blog.symphonia.io/
Description: >
Script to create a SSL certificate, S3 bucket and Cloudfront distribution.
###############################################################################
Parameters:
###############################################################################
DomainName:
Type: String
Description: The domain name.
@tijko
tijko / gist:14dcccd57642c0ed294011268f3cbf9a
Created February 2, 2023 23:41 — forked from xschildw/gist:f6e260d50a834bb7afc5fb3633484c3e
CloudFormation template for CloudFront distribution
AWSTemplateFormatVersion: '2010-09-09'
Description: >
A template to deploy CloudFront stack
Parameters:
StackTypeParameter:
Type: String
AllowedValues:
- tst
- staging
- www
@tijko
tijko / gist:65b25c5b8dd108013553f519c494d738
Created February 2, 2023 23:41 — forked from xschildw/gist:f6e260d50a834bb7afc5fb3633484c3e
CloudFormation template for CloudFront distribution
AWSTemplateFormatVersion: '2010-09-09'
Description: >
A template to deploy CloudFront stack
Parameters:
StackTypeParameter:
Type: String
AllowedValues:
- tst
- staging
- www
@tijko
tijko / gist:fdd2db1017f9212f63cac148ba3eb7b6
Created February 2, 2023 23:41 — forked from xschildw/gist:f6e260d50a834bb7afc5fb3633484c3e
CloudFormation template for CloudFront distribution
AWSTemplateFormatVersion: '2010-09-09'
Description: >
A template to deploy CloudFront stack
Parameters:
StackTypeParameter:
Type: String
AllowedValues:
- tst
- staging
- www