Skip to content

Instantly share code, notes, and snippets.

View Coool's full-sized avatar
:octocat:
π”Ύπ•šπ•₯ℍ𝕦𝕓

ℂ𝕠𝕠𝕠𝕝 (π•˜π•šπ•₯𝕙𝕦𝕓.π•”π• π•ž/ℂ𝕠𝕠𝕠𝕝) Coool

:octocat:
π”Ύπ•šπ•₯ℍ𝕦𝕓
View GitHub Profile
@Coool
Coool / ls-iommu.sh
Created July 8, 2019 09:00
IOMMU grouping
#!/bin/bash
for d in /sys/kernel/iommu_groups/*/devices/*; do
n=${d#*/iommu_groups/*}; n=${n%%/*}
printf 'IOMMU Group %s ' "$n"
lspci -nns "${d##*/}"
done
@Coool
Coool / iommu.sh
Created July 8, 2019 10:26 — forked from Roliga/iommu.sh
#!/bin/bash
useColors=true
usePager=true
usage() {
echo "\
Usage: $(basename $0) [OPTIONS]
Shows information about IOMMU groups relevant for working with PCI-passthrough
@Coool
Coool / gist:c084a8481ec1154445ab1b3a37f4ff1b
Created November 16, 2020 13:39 — forked from msmuenchen/gist:9318327
KeePass v2.x (KDBX v3.x) file format
Convention: Byte array notation as it would appear in a hexeditor.
= Layout=
KDBX files, the keepass database files, are layout as follows:
1) Bytes 0-3: Primary identifier, common across all kdbx versions:
private static $sigByte1=[0x03,0xD9,0xA2,0x9A];
2) Bytes 4-7: Secondary identifier. Byte 4 can be used to identify the file version (0x67 is latest, 0x66 is the KeePass 2 pre-release format and 0x55 is KeePass 1)
@Coool
Coool / vdi-file-compacting.md
Created November 23, 2020 11:55
How to compact VirtualBox's VDI file size?

Source: StackOverflow

1. Run defrag in the guest (Windows only)

2. Nullify free space:

With a Linux Guest run this:

sudo dd if=/dev/zero | pv | sudo dd of=/bigemptyfile bs=4096k
sudo rm -rf /bigemptyfile
@Coool
Coool / youtube-rss.sh
Created December 29, 2020 14:46 — forked from tjluoma/youtube-rss.sh
Did you know YouTube has RSS feeds? No? Probably because YouTube makes them nearly impossible to find. But here's an easy way to get the RSS feed for any YouTube user. Based on <https://eggfreckles.net/2020/01/03/youtube-rss/>
#!/usr/bin/env zsh -f
# Purpose: get the RSS feed for a YouTube page
# Inspired By: https://eggfreckles.net/2020/01/03/youtube-rss/
#
# From: Timothy J. Luoma
# Mail: luomat at gmail dot com
# Date: 2020-01-17
NAME="$0:t:r"
@Coool
Coool / SwitchResX Configuration.txt
Created August 12, 2021 13:04 — forked from erichrobinson/README.md
SwitchResX Configuration
#SwitchResX Settings for LG 21:9 UltraWide
SwitchResX is a utility that allows users to override the default resolution settings in OSX. For more information, including download links, vist http://www.madrau.com/ .
##Disabling System Integrity Protection (SIP)
If you are running OSX 10.11 or higher, SIP must be disabled. To disable SIP do the following:
- Boot into the recovery partition by pressing CMD + R when starting up your Mac.
- Once in recovery mode, open a terminal window.
- Type the command csrutil disable
@Coool
Coool / crack-with-navicat-keygen.sh
Created August 13, 2021 15:04 — forked from zthxxx/crack-with-navicat-keygen.sh
crack navicat premuim 12.04 with navicat-keygen
# make sure exist a keychain identity preference named "crack-for-navicat"
# ref: https://github.com/DoubleLabyrinth/navicat-keygen/tree/mac
# to gen a identity,
# https://github.com/DoubleLabyrinth/navicat-keygen/issues/50#issuecomment-416824334
# set the Name: crack-for-navicat
# set the Certificates Type: Code Signing
# after created, you need always trust this identity,
# then you can use this commad under to check:
# security find-identity -vp codesigning
@Coool
Coool / crack-with-navicat-keygen.sh
Created August 13, 2021 15:35 — forked from manhpham90vn/crack-with-navicat-keygen.sh
crack navicat premuim 12.04 with navicat-keygen
# make sure exist a keychain identity preference named "crack-for-navicat"
# ref: https://github.com/DoubleLabyrinth/navicat-keygen/tree/mac
# to gen a identity,
# https://support.apple.com/kb/PH7173?locale=en_US
# set the Name: crack-for-navicat
# set the Certificates Type: Code Signing
# after created, you need always trust this identity,
# then you can use this commad under to check:
# security find-identity -vp codesigning
@Coool
Coool / remove_crw.cmd
Created March 12, 2022 21:28 — forked from xvitaly/remove_crw.cmd
Remove telemetry updates for Windows 7 and 8.1
@echo off
echo Uninstalling KB3075249 (telemetry for Win7/8.1)
start /w wusa.exe /uninstall /kb:3075249 /quiet /norestart
echo Uninstalling KB3080149 (telemetry for Win7/8.1)
start /w wusa.exe /uninstall /kb:3080149 /quiet /norestart
echo Uninstalling KB3021917 (telemetry for Win7)
start /w wusa.exe /uninstall /kb:3021917 /quiet /norestart
echo Uninstalling KB3022345 (telemetry)
start /w wusa.exe /uninstall /kb:3022345 /quiet /norestart
echo Uninstalling KB3068708 (telemetry)