Skip to content

Instantly share code, notes, and snippets.

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

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

🐱
π”Ύπ•šπ•₯ℍ𝕦𝕓
View GitHub Profile
@Coool
Coool / README.md
Created September 19, 2024 13:25 — forked from ijsf/README.md
Full backup of Android apps + data using adb

Back Up Android Apps and Data in Modern Times (2024)

What happens to your apps if your phone breaks? Phones have become an essential part in our daily interactions with banks, social networks, entertainment, and what not. Losing or breaking a phone has never been more nervewrecking. Especially with apps that use local only storage with limited or no means of backup. Backing up data on Android is becoming harder, even for advanced users.

A decade ago, there were still viable options available for power users. Apps like Titanium Backup come to mind. But Android is being locked down tighter every year, because of financial regulations and trusted computing requirements. This mindset of turning phones into walled gardens where even a power user shall have no access is trickling down to forks such as LineageOS as well.

Modern versions of LineageOS, 18.1 as of the moment of writing, do no longer provide a practical way for applications to gain root. Backup applications such as Titanium Backup no longer work. T

@Coool
Coool / cleanup_swap.md
Created June 27, 2023 10:21 — forked from anildigital/cleanup_swap.md
Cleanup swap space on macOS

To see current swap usage

sysctl -a | grep swap

Use only when when your system is in a very bad shape

$ sudo pkill -HUP -u _windowserver 
@Coool
Coool / automator_setup.md
Created January 15, 2023 17:41 — forked from yogeshvar/automator_setup.md
Clearing Telegram cache & Automate using LaunchDaemons and Automator application

How to setup clear cache on login.

Note: If your mac is off, LaunchDaemons will not run. So, automator will clear the cache during login.

  1. Open Automator application -> select Application -> Click Choose

application

  1. Select run shell script -> copy & paste clear_telegram_cache.sh -> Click test run

Archive.org Scanned Book Downloader Bookmarklet

A simple "1-click" javascript approach to downloading a scanned book from archive.org to read at your leisure on the device of your choosing w/out having to manually screenshot every pages of the book by hand. In short it's a glorified "Save Image As..." approach but consolidated down to "1 click". BTW there may be a much better option than this out there - I just built this as an autistic project to see if it would work.

Demo Video

Archive.org SBDL Demo

Obligatory Legal/Disclaimer:

By using this script you agree to delete all book files/images after your 1 hour or 14 days is up! I don't support using this script for any other use cases. After all, none of us have ever kept a library book past it's return date, right?

@Coool
Coool / iterm2.md
Created January 6, 2023 13:47 — forked from squarism/iterm2.md
An iTerm2 Cheatsheet

Tabs and Windows

Function Shortcut
New Tab ⌘ + T
Close Tab or Window ⌘ + W (same as many mac apps)
Go to Tab ⌘ + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction ⌘ + Option + Arrow Key
Cycle iTerm Windows ⌘ + backtick (true of all mac apps and works with desktops/mission control)
@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

@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 / 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 / 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='