Skip to content

Instantly share code, notes, and snippets.

View comprofix's full-sized avatar

Matthew McKinnon comprofix

View GitHub Profile
@comprofix
comprofix / check_updates.sh
Created October 15, 2021 00:38
Check Updates with Discord Notification
#!/bin/bash
# Script Name: check_updates_deb
# Author Name: Matt McKinnon
# Date: 7th June 2016
# Description: For use on Debian Based Systems
# This script will:
# Clean up the local apt repository of retrieved packages (apt-get clean)
# Resync the package index (apt-get update)
# If called with AUTOUPDATE set to yes then updates will be downloaded and applied with no feed back (not recommended)
# If called without AUTOUPDATE then packages are downloaded and an email is sent informing which packages are to be updated.
---
- hosts: windows
name: This is a play within a playbook
vars:
iis_sites:
- name: 'Ansible Playbook Test'
port: '8080'
path: 'C:\sites\playbooktest'
- name: 'Ansible Playbook Test 2'
port: '8081'
<VirtualHost *:80>
ServerName exchange.comprofix.com
ServerAlias autodiscover.comprofix.com
ServerAdmin support.comprofix.com
ErrorLog ${APACHE_LOG_DIR}/exchange.comprofix.com_error.log
CustomLog ${APACHE_LOG_DIR}/exchange.comprofix.com_access.log combined
Header set X-Frame-Options: "SAMEORIGIN"
Header set Server Apache
# Description: Boxstarter Script
# Author: https://comprofix.com
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
# NOTE the "." above is required.
#
# Run this boxstarter by calling the following from **elevated** powershell:
# example: Install-BoxstarterPackage -PackageName <gist>
# Learn more: http://boxstarter.org/Learn/WebLauncher
dism /online /set-edition:ServerStandard /productkey:WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY /accepteula
@comprofix
comprofix / profiles.json
Created January 4, 2020 10:56
Add Git Bash to Windows Terminal
{
"guid": "{00000000-0000-0000-ba54-000000000002}",
"commandline" : "\"%PROGRAMFILES%\\Git\\bin\\bash.exe\" --login -i -l",
"icon" : "%PROGRAMFILES%\\git\\mingw64\\share\\git\\git-for-windows.ico",
"name" : "Git Bash",
"startingDirectory" : "%USERPROFILE%"
},
@comprofix
comprofix / ccleaner.ini
Created January 4, 2020 09:37
ccleaner.ini AUTO file
[Options]
Language=1033
Brandover=0
SkipUAC=1
HomeScreen=1
DefaultDetailedView=2
BCD=0,
FTU=04/01/2020|3|1
WipeFreeSpaceDrives=
LatestICS=5.63.7540