Skip to content

Instantly share code, notes, and snippets.

@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@jerodg
jerodg / windows_and_office_kms_setup.adoc
Last active July 31, 2024 08:15
Activate Windows and Office Using KMS Server

Microsoft Windows and Office KMS Setup

@vadimkantorov
vadimkantorov / image2urijpeg.sh
Last active June 1, 2023 17:52
Convert an image to Base64 data-uri format using ImageMagick and OpenSSL
# Usage:
# bash image2urijpeg.sh image.jpg 320x240 > base64.txt # will resize before conversion
# bash image2urijpeg.sh image.jpg > base64.txt # will keep original size
magick "$1" -resize ${2:--} jpeg:- | openssl enc -base64 -A | sed -e 's/^/data:image\/jpeg;base64,/'
@OlfillasOdikno
OlfillasOdikno / Linux_GPU_PV.md
Last active July 29, 2024 02:47
Hyperv Linux Guest GPU PV

Hyperv Linux Guest GPU PV

  • Create VM
$isopath = <iso location>
$vhdpath = <vhdx location>
$vmpath = <vm path>
$vmname = "Arch-dxgkrnl"
New-VM -Name $vmname -MemoryStartupBytes 8GB -BootDevice VHD -NewVHDPath $vhdpath -Path $vmpath -NewVHDSizeBytes 20GB -Generation 2 -Switch "Default Switch"
@Atulin
Atulin / README.md
Last active December 8, 2023 23:11
FxTwitter Copy

Twitter Copy Fx Link

image

This script adds a new button to Twitter posts. Clicking it, copies a TwitFix link to your clipboard, and strips any trancking data from it because might as well.

@jamesl1001
jamesl1001 / uBlockHideYoutubeDownloadButton.md
Last active July 25, 2024 09:53
uBlock filter to hide Youtube clip, download and thanks buttons to ensure Save button isn't hidden under More (...) menu

uBlock > Dashboard > My filters

www.youtube.com###flexible-item-buttons > *:has([aria-label="Clip"])
www.youtube.com###flexible-item-buttons > *:has([aria-label="Download"])
www.youtube.com###flexible-item-buttons > *:has([aria-label="Thanks"])

Note: YouTube UI becomes very slow over time when uBlock is enabled.

@0xdevalias
0xdevalias / _deobfuscating-unminifying-obfuscated-web-app-code.md
Last active July 30, 2024 08:03
Some notes and tools for reverse engineering / deobfuscating / unminifying obfuscated web app code