Skip to content

Instantly share code, notes, and snippets.

View asnowfix's full-sized avatar

FiX Kowalski asnowfix

View GitHub Profile
@ljtill
ljtill / policy.json
Last active September 28, 2021 10:56
Provides the ability to modify Security Rules upon Resource updates
{
"displayName": "",
"policyType": "Custom",
"mode": "All",
"parameters": {},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
@ljtill
ljtill / azurepolicy.json
Last active July 1, 2021 20:24
Provides the ability to allow resource types
{
"mode": "All",
"policyRule": {
"if": {
"allOf": [
{
"not": {
"anyOf": [
{
"contains": "Microsoft.Network/applicationGateway",
@gazoakley
gazoakley / Jenkinsfile
Last active November 13, 2024 06:44
Jenkinsfile for running Terraform
pipeline {
agent any
parameters {
string(name: 'environment', defaultValue: 'default', description: 'Workspace/environment file to use for deployment')
string(name: 'version', defaultValue: '', description: 'Version variable to pass to Terraform')
booleanParam(name: 'autoApprove', defaultValue: false, description: 'Automatically run apply after generating plan?')
}
environment {
@renaco
renaco / .gitconfig
Last active September 27, 2022 08:29
.gitconfig (Meld configuration on windows)
[merge]
tool = meld
[mergetool "meld"]
cmd = \"C:\\Program Files (x86)\\Meld\\Meld.exe\" "$LOCAL" "$BASE" "$REMOTE" "--output=$MERGED"
path = C:/Program Files (x86)/Meld/Meld.exe
trustExitCode = false
keepBackup = false
[diff]
tool = meld
@cjonesy
cjonesy / macbook_pro_ubuntu_install.md
Last active November 16, 2024 19:37
Installing Ubuntu on MacBook Pro

Macbook Pro - Ubuntu Install

Requirements

2 USB drives > 2GB

Pre-Install

Create bootable USB drive

  1. Grab the latest Ubuntu Desktop iso image
@asnowfix
asnowfix / formidable-issue182.js
Created October 17, 2012 19:56
test case showing difference between node-formidable multipart/form-data streams and fs.File streams
var fs = require("fs");
var path = require("path");
var express = require("express");
var util = require("util");
var querystring = require("querystring");
var temp = require("temp");
var zipstream = require('zipstream');
var formidable = require('formidable');
function Zipper(config, next) {
@fbuchinger
fbuchinger / .picasa.ini
Created July 9, 2011 18:26
.picasa.ini decoded
#==============================================================
# .picasa.ini FILE STRUCTURE
#
# reverse-engineered by Franz Buchinger <[email protected]>
# licensed to the public domain
#
# Picasa Version(s): 3.8.0
#
# Changelog:
# v0.1: initial release