Skip to content

Instantly share code, notes, and snippets.

@RoadToDream
RoadToDream / dedict.c
Created August 2, 2018 02:58 — forked from josephg/0dedict.py
Apple dictionaries
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "zlib.h"
#define CHUNK 16384
/*
40 Length of the zlib stream
@RoadToDream
RoadToDream / KillAdobe.ps1
Last active October 28, 2022 16:14
Disable all Adobe services.
function TerminateProcess {
param (
$ProcessName
)
$p = Get-Process $ProcessName -ErrorAction SilentlyContinue
if ($p) {
Stop-Process -InputObject $p
}
}
@RoadToDream
RoadToDream / toggleDefender.ps1
Created November 5, 2022 16:30
Toggle Defender Real-time Protection.
#####################################################################
# Toggle Defender Real-time Protection
#
# Syntax:
#
# Defender - toggle Real-time Protection (default)
# Defender -state 0/1 - Set Real-time Protection to Enable/Disable
#####################################################################
param(
@RoadToDream
RoadToDream / memory_layout.md
Created April 17, 2024 18:45 — forked from CMCDragonkai/memory_layout.md
Linux: Understanding the Memory Layout of Linux Executables

Understanding the Memory Layout of Linux Executables

Required tools for playing around with memory:

  • hexdump
  • objdump
  • readelf
  • xxd
  • gcore
@RoadToDream
RoadToDream / profile.ps1
Last active June 8, 2024 18:45
PowerShell profile
Set-PSReadLineOption -EditMode Emacs
Set-PSReadLineKeyHandler -Chord Ctrl+LeftArrow BackwardWord
Set-PSReadLineKeyHandler -Chord Ctrl+RightArrow ForwardWord
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
Set-PSReadLineOption -HistorySearchCursorMovesToEnd
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward
$global:globalPromptInvokedCount = 0