Skip to content

Instantly share code, notes, and snippets.

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

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

:octocat:
π”Ύπ•šπ•₯ℍ𝕦𝕓
View GitHub Profile
@Coool
Coool / Adding a Physical Disk to Parallels.md
Created October 4, 2022 19:35 — forked from Obbut/Adding a Physical Disk to Parallels.md
Adding a second physical disk to Parallels

Adding a second physical disk to Parallels Desktop 14

I wanted my (NTFS) data disk to be accessible from my boot camp Parallels VM. Parallels provides no support for this, so I tried it myself.

I duplicated the disk file that Parallels created and started poking around, and after half an hour or so, had success. This is what you need to do.

My boot camp disk is at /dev/disk0. My data disk is at /dev/disk1.

These instructions are provided for educational use only and without guarantees. If you lose data because of this, blame yourself, and only follow them if you know what you are doing.

#! /usr/bin/env python3
import sys
from urllib.parse import urlparse
from urllib.request import urlopen
import codecs
import json
ITUNES_URL = 'https://itunes.apple.com/lookup?id='
@Coool
Coool / itunes-to-feed-url-bookmarklet.js
Created September 30, 2022 20:13 — forked from djm/itunes-to-feed-url-bookmarklet.js
Bookmarklet: Convert iTunes Store Podcast URL into actual feed URL
(function() {
/* Bookmarklet that displays the actual podcast feed
* URL when ran on an iTunes store page for a podcast.
*
* Simply grabs the Artist ID from the URL and does
* an iTunes Store API lookup to get the hidden (original)
* podcast feed URL (whatever format that may be in).
*
* @author: Darian Moody <[email protected]>
* @date: Working as of Sun.22.Apr.2012
@Coool
Coool / GitHub-Wiki-Delete.sh
Last active September 16, 2022 17:51 — forked from hacksalot/gist:72517b9b1c145116e89e
Delete GitHub wiki revisions
# Delete prior revisions from a GitHub wiki so that only the most-recent
# version of the content is available.
# Clone the wiki.
git clone https://github.com/[user]/[repo].wiki.git
# Remove the .git folder.
rm -rf .git
# Reconstruct the local repo with only latest content
@Coool
Coool / openssl.sh
Created September 12, 2022 02:13 — forked from antelle/openssl.sh
OpenSSL file encrypt/decrypt
# encrypt file.txt to file.enc using 256-bit AES in CBC mode
openssl enc -aes-256-cbc -salt -in file.txt -out file.enc
# the same, only the output is base64 encoded for, e.g., e-mail
openssl enc -aes-256-cbc -a -salt -in file.txt -out file.enc
# decrypt binary file.enc
openssl enc -d -aes-256-cbc -in file.enc -out file.txt
# decrypt base64-encoded version
@Coool
Coool / ram_disk.sh
Created September 12, 2022 02:12 — forked from antelle/ram_disk.sh
Create a RAM disk on macOS
# 42 = desired disk size in megabytes
diskutil erasevolume HFS+ 'RAM Disk' `hdiutil attach -nomount ram://$((42*2048))`
@Coool
Coool / blink.css
Created September 12, 2022 02:12 — forked from antelle/blink.css
Blink
@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)
@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