Skip to content

Instantly share code, notes, and snippets.

View vizion8-dan's full-sized avatar
🐈‍⬛
on va cat ion

Adriano vizion8-dan

🐈‍⬛
on va cat ion
  • BLK-CAMOCAT
  • In the middle of...
View GitHub Profile
@anthonyeden
anthonyeden / ExchangeInstallLE.bat
Created December 23, 2017 03:03
Let's Encrypt & Microsoft Exchange - Installation Script
"C:\Program Files\Lets Encrypt\letsencrypt.exe" --renew --baseuri "https://acme-v01.api.letsencrypt.org/"
powershell -File "C:\Program Files\Lets Encrypt\ExchangeLetsEncrypt.ps1" -CertificateImport "C:\ProgramData\letsencrypt-win-simple\httpsacme-v01.api.letsencrypt.org\mail.example.com-all.pfx" -ServerName exchange.example.com
<# This script contains all of the command shown in my blog post: Create Zero-Touch Windows 10 ISO
http://blogs.catapultsystems.com/mdowst/archive/2017/12/11/create-zero-touch-windows-10-iso/
#>
$ISO = "E:\Windows.iso"
$FolderPath = "E:\Win10_ISO\"
###################################
#
# Prep the ISO Files
function Create-VM {
param(
[Parameter(Mandatory=$true)][string]$Name,
[Parameter(Mandatory=$false)][int64]$Memory=1024MB,
[Parameter(Mandatory=$false)][int64]$MemoryMinimum=1024MB,
[Parameter(Mandatory=$false)][int64]$MemoryMaximum=2048MB,
[Parameter(Mandatory=$false)][int64]$CpuCount=1,
[Parameter(Mandatory=$false)][uint64]$DiskSize=64GB,
[Parameter(Mandatory=$false)][string]$Location=".",
[Parameter(Mandatory=$false)][string]$BootISO
@mrbarletta
mrbarletta / gravity_forms_webhook_example_suitecrm.php
Last active March 21, 2021 04:08
Gravity Forms Webhook example - Posting data to SuiteCRM/SugarCRM/LionixCRM - working example
<?php
// Add the following code to your theme functions.php (not recommended as might get lost on updates) or create a plugin
//LX - CRM
add_action( 'gform_after_submission', 'post_to_crm', 10, 2 );
function post_to_crm( $entry, $form ) {
$post_url = 'https://youInstance.lionix.com/index.php?entryPoint=WebToPersonCapture';
$post=false;
//Gravity forms has IDs for each of the fields . Some fields, like 1.3, means FIELD 1, subfield 3. Which usually means first_name
@thomaswitt
thomaswitt / VPNConfigurationProfiles.mobileconfig
Last active May 28, 2025 21:08
An OnDemand VPN iOS profile for iPad and iPhone that automatically connects you to different VPNs (e.g. Meraki, FRITZ!Box and Streisand) | Blog-Entry: https://thomas-witt.com/auto-connect-your-ios-device-to-a-vpn-when-joining-an-unknown-wifi-d1df8100c4ba
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<!-- Home: Manual -->
<dict>
<key>UserDefinedName</key>
@bunchc
bunchc / Do-TerribleThings.ps1
Last active May 26, 2018 14:08
Does terribad things to AD
$NewDomainName = "orangutan.local"
$NewDomainNetBios = "orangutan"
$NumRandomGroups = 12000
$NumRandomUsers = 24000
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
# Install chocolatey
Set-ExecutionPolicy AllSigned; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
@bunchc
bunchc / userdata-hardening-ufw
Created August 20, 2017 15:40
UserData Hardening script with UFW
#!/bin/bash
# user-data-hardening.sh
# Authors: Cody Bunch ([email protected])
#
# Script intended to be supplied as userdata to a cloud of some flavor.
# Enables some sane sysctl defaults, turns up iptables, and
# installs a HIDS / NIDS package
# Supply your email here
email_address="[email protected]"
@kingkool68
kingkool68 / svg-functions.php
Created August 4, 2017 03:22
SVG helper functions for WordPress
<?php
// Throw this in your theme and include it in your functions.php file
/**
* Helper function for fetching SVG icons
*
* @param string $icon Name of the SVG file in the icons directory
* @return string Inline SVG markup
*/
function wp_svg_icon( $icon = '' ) {
@mgeeky
mgeeky / openvas-automate.sh
Last active November 12, 2023 19:15
OpenVAS automation script.
#!/bin/bash
#
# OpenVAS automation script.
# Mariusz B. / mgeeky, '17
# v0.2
#
trap ctrl_c INT
# --- CONFIGURATION ---
@bunchc
bunchc / script_custom.ps1
Last active December 10, 2021 18:47
Windows 10 customization script
# Install chocolatey & boxstarter
Set-ExecutionPolicy AllSigned; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
. { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
# Basic setup
Write-Host "Setting execution policy"
Update-ExecutionPolicy Unrestricted
###########################################
# Update Windows and reboot if necessary #