Skip to content

Instantly share code, notes, and snippets.

View altima's full-sized avatar
🏠
Working from home

Enno altima

🏠
Working from home
  • Germany
View GitHub Profile
@altima
altima / Check-SPFRecord.ps1
Created April 1, 2025 12:46
Powershell Script for checking SPF
$domain = "example.com"
$ip2check = "127.0.0.1"
$Global:SPFLookups = 0
$Global:SenderIsAllowedviaSPF = ""
$Global:SenderIsAllowed = $false
if($ip2check -notmatch "((?:\d{1,3}\.){3}\d{1,3}|(?:[a-fA-F0-9]{1,4}:){7}[a-fA-F0-9]{1,4})"){
$ip2check = (Resolve-DnsName $ip2check).IPAddress
}
@altima
altima / setupiisforsslperfectforwardsecrecy_v17.ps1
Created June 22, 2023 13:39 — forked from jbratu/setupiisforsslperfectforwardsecrecy_v17.ps1
Great powershell script for tightening HTTPS security on IIS and disabling insecure protocols and ciphers. Very useful on core installations.
# Copyright 2019, Alexander Hass
# https://www.hass.de/content/setup-microsoft-windows-or-iis-ssl-perfect-forward-secrecy-and-tls-12
#
# After running this script the computer only supports:
# - TLS 1.2
#
# Version 3.0.1, see CHANGELOG.txt for changes.
Write-Host 'Configuring IIS with SSL/TLS Deployment Best Practices...'
Write-Host '--------------------------------------------------------------------------------'
@altima
altima / readme.md
Created March 24, 2021 09:12 — forked from psiborg/readme.md
Apple Magic Mouse and Windows 10 #windows
  1. Download the latest version of the "Boot Camp Support Software" (e.g., 5.1.5722) from https://support.apple.com/downloads/bootcamp
  2. Unzip the file (e.g., bootcamp5.1.5722.zip) to a new directory
  3. Run BootCamp\Drivers\Apple\AppleWirelessMouse64.exe
  4. Turn on Bluetooth and pair your Magic Mouse

Note: Apple wireless mouse devices have a built-in passcode of "0000" (four zeros).

aW1wb3J0IHJlcXVlc3RzCmZyb20gdXJsbGliMy5leGNlcHRpb25zIGltcG9ydCBJbnNlY3VyZVJl
cXVlc3RXYXJuaW5nCmltcG9ydCByYW5kb20KaW1wb3J0IHN0cmluZwppbXBvcnQgc3lzCgoKZGVm
IGlkX2dlbmVyYXRvcihzaXplPTYsIGNoYXJzPXN0cmluZy5hc2NpaV9sb3dlcmNhc2UgKyBzdHJp
bmcuZGlnaXRzKToKICAgIHJldHVybiAnJy5qb2luKHJhbmRvbS5jaG9pY2UoY2hhcnMpIGZvciBf
IGluIHJhbmdlKHNpemUpKQoKaWYgbGVuKHN5cy5hcmd2KSA8IDI6CglwcmludCgiVXNhZ2U6IHB5
dGhvbiBQb0MucHkgPHRhcmdldD4gPGVtYWlsPiIpCglwcmludCgiRXhhbXBsZTogcHl0aG9uIFBv
Qy5weSBtYWlsLmV2aWwuY29ycCBoYXhvckBldmlsLmNvcnAiKQoJZXhpdCgpCnJlcXVlc3RzLnBh
Y2thZ2VzLnVybGxpYjMuZGlzYWJsZV93YXJuaW5ncyhjYXRlZ29yeT1JbnNlY3VyZVJlcXVlc3RX
YXJuaW5nKQp0YXJnZXQgPSBzeXMuYXJndlsxXQplbWFpbCA9IHN5cy5hcmd2WzJdCnJhbmRvbV9u
YW1lID0gaWRfZ2VuZXJhdG9yKDMpICsgIi5qcyIKdXNlcl9hZ2VudCA9ICJNb3ppbGxhLzUuMCAo
QTS-MIB DEFINITIONS ::= BEGIN
IMPORTS
enterprises, Counter, TimeTicks
FROM RFC1155-SMI
Integer32, Counter32, IpAddress, Unsigned32, Counter64, OBJECT-TYPE
FROM SNMPv2-SMI
TRAP-TYPE
FROM RFC-1215;
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: red; icon-glyph: broadcast-tower;
/**************
Version 1.0.0
Changelog:
v1.0.0:
- initial commit
@altima
altima / boxstarter_newtelco.ps1
Created July 1, 2020 12:07 — forked from snoerenberg/boxstarter_newtelco.ps1
Newtelco Windows Setup Script [boxstarter, choco, PS3.0+]
###################################################
#
# Newtelco Windows PC Setup Script
# Author: [email protected]
# Date: 05.04.19
#
###################################################
# Install Boxstarter (run in a PowerShell (Administrator) shell)
Set-ExecutionPolicy RemoteSigned
@altima
altima / historical-calculator.ps1
Created July 1, 2020 11:59
Historical Calculator
param(
[Parameter(Mandatory=$true)][String]$file
)
function convertFromTable($value){
$table = @{
"10" = "0";"11" = "1";"8" = "2";"9" = "3";"14" = "4";
"15" = "5";"12" = "6";"13" = "7";"2" = "8";"3" = "9";
}
return $table[($value % 16).ToString()]
@altima
altima / IbanHelper.cs
Created June 28, 2016 11:39
little iban helper
using System.Linq;
using System.Text.RegularExpressions;
namespace AnyIbanProgramm
{
public class IbanHelper
{
const string StartsWithPattern = @"^[A-Z]{2}[0-9]{2}";
public IbanHelper() { }
@altima
altima / install.md
Last active March 2, 2016 18:59
RaspberryPi and TOR

Install

  • Anmelden
ssh [email protected] (oder per IP)
  • root bash öffnen
sudo -u root bash