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 / 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
@tijko
tijko / HTTPWebSocketsHandler.py
Created January 25, 2023 02:43 — forked from SevenW/HTTPWebSocketsHandler.py
HTTPWebSocketsHandler extends SimpleHTTPServer with WebSockets enabling the use of HTTP and WebSockets throught the same port
'''
The MIT License (MIT)
Copyright (C) 2014, 2015 Seven Watt <info@sevenwatt.com>
<http://www.sevenwatt.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.