Skip to content

Instantly share code, notes, and snippets.

View kapsiR's full-sized avatar

kapsiR kapsiR

View GitHub Profile
@kapsiR
kapsiR / rspamd-whitelisting.md
Created April 19, 2023 13:25 — forked from ThomasLeister/rspamd-whitelisting.md
How to whitelist IP addresses or domains in Rspamd

Whitelist IP addresses based on pre-filter policy

/etc/rspamd/local.d/multimap.conf:

  IP_WHITELIST {
      type = "ip";
      prefilter = true;
      map = "/${LOCAL_CONFDIR}/local.d/ip_whitelist.map";
 action = "accept";
@kapsiR
kapsiR / Update-DotNet-Global-Tools.ps1
Created September 28, 2022 06:32
Update all dotnet global tools at once
function Update-DotNet-Global-Tools
{
foreach ($toolInfoRow in $(dotnet tool list -g | Select-Object -Skip 2))
{
$toolInfo = $toolInfoRow.Split(" ", [StringSplitOptions]::RemoveEmptyEntries)
$toolName = $toolInfo[0]
$toolVersion = $toolInfo[1].Trim()
# Fetch version from NuGet
$nugetInfo = (dotnet tool search --take 1 $toolName | Select-Object -Skip 2)
@kapsiR
kapsiR / rfc3161.txt
Last active June 30, 2021 15:21 — forked from Manouchehri/rfc3161.txt
List of free rfc3161 servers.
http://timestamp.digicert.com
http://timestamp.globalsign.com/tsa/r6advanced1
http://rfc3161timestamp.globalsign.com/advanced
http://timestamp.sectigo.com
http://timestamp.apple.com/ts01
http://tsa.mesign.com
http://time.certum.pl
https://freetsa.org
http://timestamp.globalsign.com/scripts/timstamp.dll
http://timestamp.globalsign.com/?signature=sha2
@kapsiR
kapsiR / PowerShell_profile.ps1
Last active April 24, 2024 13:12
PowerShell Profile
function SetupProfile()
{
Import-Module posh-git
$GitPromptSettings.BranchColor.ForegroundColor = 'Black'
$GitPromptSettings.BeforeStatus.ForegroundColor = 'Black'
$GitPromptSettings.AfterStatus.ForegroundColor = 'Black'
$GitPromptSettings.DelimStatus.ForegroundColor = 'Black'
$GitPromptSettings.BranchBehindAndAheadStatusSymbol.ForegroundColor = 'DarkRed'
oh-my-posh.exe init pwsh --config "~/.oh-my-posh.omp.json" | Invoke-Expression
@kapsiR
kapsiR / windows_hardening.cmd
Created October 8, 2020 11:05 — forked from mackwage/windows_hardening.cmd
Script to perform some hardening of Windows OS
:: Windows 10 Hardening Script
:: This is based mostly on my own personal research and testing. My objective is to secure/harden Windows 10 as much as possible while not impacting usability at all. (Think being able to run on this computer's of family members so secure them but not increase the chances of them having to call you to troubleshoot something related to it later on). References for virtually all settings can be found at the bottom. Just before the references section, you will always find several security settings commented out as they could lead to compatibility issues in common consumer setups but they're worth considering.
:: Obligatory 'views are my own'. :)
:: Thank you @jaredhaight for the Win Firewall config recommendations!
:: Thank you @ricardojba for the DLL Safe Order Search reg key!
:: Thank you @jessicaknotts for the help on testing Exploit Guard configs and checking privacy settings!
:: Best script I've found for Debloating Windows 10: https://github.com/Sycnex/Windows10Debloater
: