Skip to content

Instantly share code, notes, and snippets.

@stylersnico
stylersnico / keybase.md
Created January 24, 2016 15:27
keybase.md

Keybase proof

I hereby claim:

  • I am stylersnico on github.
  • I am nicolassimond (https://keybase.io/nicolassimond) on keybase.
  • I have a public key ASDcNH4kRlQZA6gzyE7FhnzFfake5aYAT0Cf1tU0M_GD5go

To claim this, I am signing this object:

@stylersnico
stylersnico / index.html
Last active May 20, 2016 09:39 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Maintenance en cours ...</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@stylersnico
stylersnico / configure-ansibletarget.ps1
Last active August 23, 2016 13:59 — forked from trondhindenes/configure-ansibletarget.ps1
Configure Windows 2008R2/2012/2012R2/2016 for SSL-based remoting
Param (
[string]$SubjectName = $env:COMPUTERNAME,
[int]$CertValidityDays = 365,
$CreateSelfSignedCert = $true
)
#region function defs
Function New-LegacySelfSignedCert
{
@stylersnico
stylersnico / renew-exchange-cert.bat
Created June 14, 2018 12:44
renew-exchange-cert.bat
"C:\Let's Encrypt\letsencrypt.exe" --renew --baseuri "https://acme-v01.api.letsencrypt.org/"
powershell -File "C:\Let's Encrypt\ExchangeLetsEncrypt.ps1" -CertificateImport "C:\ProgramData\win-acme\httpsacme-v01.api.letsencrypt.org\1-all.pfx" -ServerName tap-ms01.tap.ovh"
@stylersnico
stylersnico / dismountbackupdisk.ps1
Created January 23, 2019 08:51
Script to run after a veeam backup for dismounting the disk so he is no longer available for malwares, ransomwares and intruders.
$vol = get-wmiobject -Class Win32_Volume | where{$_.Name -eq 'B:\'}
$vol.DriveLetter = $null
$vol.Put()
$vol.Dismount($false, $false)