Skip to content

Instantly share code, notes, and snippets.

NOTE: Copied as-is from "Linux Expert" forum in linkedin - https://www.linkedin.com/feed/update/urn:li:activity:7031604358630805504?utm_source=share&utm_medium=member_desktop
Not entirely tested from my end.
```
#!/bin/bash
# Update the package repository
apt-get update -y
# Install and configure the firewall (ufw)
apt-get install -y ufw
@webmastir
webmastir / how-to-install-openssl-1.1.1-on-centos-7.md
Created November 1, 2021 17:31
How to install openssl 1.1.1 on CentOS 7

How To Install OpenSSL 1.1.1 on CentOS 7

This tutorial goes through how to install openssl 1.1.1 on CentOS 7, since the yum repo only installs up to openssl 1.0.

Requirements

Upgrade the system

yum -y update
@webmastir
webmastir / Disable-SMB1.ps1
Created June 11, 2018 14:27 — forked from lukemurraynz/Disable-SMB1.ps1
This script disables SMB1
#requires -Version 3.0 -Modules Dism
<#
.SYNOPSIS
Disables SMB1
.DESCRIPTION
This script disables SMB1. If Windows 10 or greater it will use the PowerShell cmdlet to disable SMB1 with no restart, if the OS is
less than Windows 10 - such as Windows 7 it will set the services to be disabled manually. Needs to be run as Administrator.
Main script hosted on the following repository: https://github.com/lukemurraynz/PowerOfTheShell/blob/master/Other/Disable-SMB1.ps1
@webmastir
webmastir / Send-SlackMessage.ps1
Created February 25, 2018 03:05 — forked from aaldrich29/Send-SlackMessage.ps1
Send Slack Message from PowerShell
function Send-SlackMessage {
# Add the "Incoming WebHooks" integration to get started: https://slack.com/apps/A0F7XDUAZ-incoming-webhooks
param (
[Parameter(Mandatory=$true, Position=0)]$Text,
$Url="https://hooks.slack.com/services/xxxxx", #Put your URL here so you don't have to specify it every time.
# Parameters below are optional and will fall back to the default setting for the webhook.
$Username, # Username to send from.
$Channel, # Channel to post message. Can be in the format "@username" or "#channel"
$Emoji, # Example: ":bangbang:".
$IconUrl # Url for an icon to use.
@webmastir
webmastir / Octopus-Teamcity.ps1
Created February 14, 2018 17:06 — forked from munkyjunky/Octopus-Teamcity.ps1
Powershell script to trigger a TeamCity build from Octopus Deploy, and wait for the build to finish
# Powershell script to trigger a Team City build from Octopus Deploy, and wait for it to be finished
# Use case for this is running an automated script (such as test scripts) from Team City as part of
# a deployment, and holding the deployment until the script has finished
# teamcity-host teamcity host url
# teamcity-username teamcity api username
# teamcity-password teamcity api password
# teamcity-build-configuration-id teamcity build configuration
# teamcity-changeset (optional) changeset to build from - NOTE: this is a VCS changeset
#requires -Version 3.0
<#
.SYNOPSIS
My Veeam Report is a flexible reporting script for Veeam Backup and
Replication.
.DESCRIPTION
My Veeam Report is a flexible reporting script for Veeam Backup and
Replication. This report can be customized to report on Backup, Replication,
@webmastir
webmastir / DisablingServicesOnServer2016wDE.ps1
Created October 4, 2017 21:43 — forked from hpaul-osi/DisablingServicesOnServer2016wDE.ps1
Disable unnecessary services that on Windows Server 2016 Desktop Experience (based on MS Security Blog recommendations)
# Disable extraneous services on Server 2016 Desktop Experience
# https://blogs.technet.microsoft.com/secguide/2017/05/29/guidance-on-disabling-system-services-on-windows-server-2016-with-desktop-experience/
Configuration DisablingServicesOnServer2016wDE
{
param(
[String]$ComputerName = "localhost",
[ValidateSet('ShouldBeDisabledOnly','ShouldBeDisabledAndDefaultOnly','OKToDisable','OKToDisablePrinter','OKToDisableDC')]
[String]$Level = 'OKToDisable'
)
<#
.SYNOPSIS
Disables services not required in Windows Server 2016.
.DESCRIPTION
Disables services not required to increase security of the system.
.PARAMETER ComputerName
@webmastir
webmastir / asciiputsonglasses
Created August 14, 2017 12:26 — forked from staringispolite/asciiputsonglasses
Ascii art sunglasses meme
Puts on glasses:
(•_•)
( •_•)>⌐■-■
(⌐■_■)
Takes off glasses ("mother of god..."):
(⌐■_■)
( •_•)>⌐■-■
@webmastir
webmastir / Install-WMF5.ps1
Created May 17, 2017 01:33 — forked from Hexalon/Install-WMF5.ps1
Automates installation of Windows Management Framework 5
#Requires -Version 4.0
[CmdletBinding()]
Param(
[switch]$OnlineInstall = $false
)
<#
.NOTES