Skip to content

Instantly share code, notes, and snippets.

@adamsvoboda
adamsvoboda / gist:9ac52548d3d81f3185e36b9f0be31990
Created August 30, 2023 15:02
Windows Defender LSASS ASR Exclusion Paths - 08.30.2023
%windir%\system32\WerFaultSecure.exe
%windir%\system32\mrt.exe
%windir%\system32\svchost.exe
%windir%\system32\NETSTAT.EXE
%windir%\system32\wbem\WmiPrvSE.exe
%windir%\system32\DriverStore\FileRepository\*\NVWMI\nvWmi64.exe
%programfiles(x86)%\Microsoft Intune Management Extension\ClientHealthEval.exe
%programfiles(x86)%\Microsoft Intune Management Extension\SensorLogonTask.exe
%programfiles(x86)%\Microsoft Intune Management Extension\Microsoft.Management.Services.IntuneWindowsAgent.exe
%programdata%\Microsoft\Windows Defender Advanced Threat Protection\DataCollection\*\OpenHandleCollector.exe
#!/bin/bash
# PWK / TryHackMe / HTB / etc.
# Automatically checks for VPN ip addresses in this order, then exports the first one it finds:
# TAP0 -> TUN0 -> ETH0 (non vpn)
# ~/.config/fish/config.fish
# set IP (bash /home/adam/.scripts/update-ip.sh)
# ~/.zshrc
@adamsvoboda
adamsvoboda / changefeed_consumer.py
Last active April 16, 2023 15:12
asynchronous rethinkdb change feeds with django channels
import asyncio
from rethinkdb import r, RqlRuntimeError
from channels import Group
r.set_loop_type('asyncio') # RethinkDB's driver must use asyncio for the loop type.
def create_changefeed_monitor(feeds):
"""
Creates a new asyncio event loop and starts the parallel execution of attach_changefeed
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Theme - Spacegray/base16-ocean.dark.tmTheme",
"draw_white_space": "selection",
"ensure_newline_at_eof_on_save": true,
"find_selected_text": true,
"font_face": "Source Code Pro",
"folder_exclude_patterns": ["node_modules", ".idea", ".git", "__pycache__"],
@adamsvoboda
adamsvoboda / vivaldi.md
Last active June 1, 2018 14:44
removes the vivaldi menu button and the padding on top of tabs, also moves down the tab group indicator so its visible after doing this
  1. open your vivaldi browser.html file: %LOCALAPPDATA%\Vivaldi\Application\1.0.435.42\resources\vivaldi (replace 1.0.435.42 with your version)

  2. add the following code under <link rel="stylesheet" href="style/common.css" />

<style>
  .vivaldi { display: none !important; }
  #tabs-container.top { padding-top: 0px !important;  padding-left: 0px !important; }
  .tab-group-indicator { top: -3px !important; }