This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /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=' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 42 = desired disk size in megabytes | |
| diskutil erasevolume HFS+ 'RAM Disk' `hdiutil attach -nomount ram://$((42*2048))` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .blinking { | |
| animation: blink 1s steps(2, start) infinite; | |
| -webkit-animation: blink 1s steps(2, start) infinite; | |
| } | |
| @keyframes blink { to { visibility: hidden; } } | |
| @-webkit-keyframes blink { to { visibility: hidden; } } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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) |