Skip to content

Instantly share code, notes, and snippets.

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

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

:octocat:
π”Ύπ•šπ•₯ℍ𝕦𝕓
View GitHub Profile
@Coool
Coool / blink.css
Created September 12, 2022 02:12 — forked from antelle/blink.css
Blink
@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 / 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 / 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 / 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
#! /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 / 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.

@Coool
Coool / How-to-automate-build-bottles-your-homebrew-tap.md
Created December 22, 2022 16:35 — forked from maelvls/How-to-automate-build-bottles-your-homebrew-tap.md
Automate build workflow for Homebrew tap bottles (Linux and macOS)

How to automate the build of bottles on your Homebrew tap

Note on Oct 4, 2018: due to a change in Homebrew's brew test-bot behaviour, the user must set HOMEBREW_TRAVIS_CI and HOMEBREW_TRAVIS_SUDO appropriately (it was previously using Travis-CI-provided TRAVIS and TRAVIS_SUDO).

This tutorial is a follow-up to the discussion we had on davidchall/homebrew-hep#114. It relies on a fork of the test-bot provided by davidchall; you can get it with brew tap maelvalais/test-bot. First:

  1. the Github project must be of the form https://github.com//homebrew- with the following tree
@Coool
Coool / RSS.md
Created January 4, 2023 21:24 — forked from thefranke/RSS.md
A list of RSS endpoints, readers and resources

The RSS Endpoint List

Please refer to this blogpost to get an overview.

Replace *-INSTANCE with one of the public instances listed in the scrapers section. Replace CAPITALIZED words with their corresponding identifiers on the website.

Social Media

Twitter

@Coool
Coool / iterm2-solarized.md
Created January 6, 2023 13:18 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k