Skip to content

Instantly share code, notes, and snippets.

View marcandjulien's full-sized avatar

Marc-André Julien marcandjulien

View GitHub Profile
@marcandjulien
marcandjulien / samba-access.sh
Created August 6, 2022 03:58 — forked from gugat/samba-access.sh
Script to install and configure Samba in Ubuntu.
#!/bin/bash
# Description: Script to install and configure Samba in Ubuntu.
# Author: Gustavo Salazar L.
# Date: 2013-03-27
#
# How to use:
# chmod +x samba-access.sh
# ./samba-access.sh PATH_TO_SHARED_DIRECTORY PERMISSIONS
function Add-EnvPath {
param(
[Parameter(Mandatory=$true)]
[string] $Path,
[ValidateSet('Machine', 'User', 'Session')]
[string] $Container = 'Session'
)
if ($Container -ne 'Session') {
@marcandjulien
marcandjulien / waf.ts
Created January 30, 2023 15:58 — forked from statik/waf.ts
WAF with CDK examples
import * as cdk from "@aws-cdk/core";
import * as wafv2 from "@aws-cdk/aws-wafv2";
// This extends the base cdk stack properties to include a tag name input.
export interface StackProps extends cdk.StackProps {
tag: string;
applicationName?: string;
}
export class WAFStack extends cdk.Stack {