Skip to content

Instantly share code, notes, and snippets.

View hunterirving's full-sized avatar
🪨
gathering no moss

Hunter Irving hunterirving

🪨
gathering no moss
View GitHub Profile
@nstarke
nstarke / release-android-debuggable.md
Last active November 23, 2025 00:49
How to make a Release Android App debuggable

How to make a Release Android App debuggable

Let's say you want to access the application shared preferences in /data/data/com.mypackage.
You could try to run adb shell and then run-as com.mypackage ( or adb shell run-as com.mypackge ls /data/data/com.mypackage/shared_prefs), but on a production release app downloaded from an app store you're most likely to see:

run-as: Package 'com.mypackage' is not debuggable
@CodeMyUI
CodeMyUI / index.html
Created March 9, 2017 12:24
Loader to information card
<div id="loadingCard">
<div class="cover">
<svg class="stagger" version="1.1" id="brain" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 500 500" enable-background="new 0 0 500 500" xml:space="preserve">
<g>
<path fill="#FFFFFF" d="M128.2,153.4c0-5.2-0.3-9.8,0.1-14.3c1.4-16.6,20.1-28,35.3-21.4c3.3,1.4,4.6,0.6,6.5-1.8
c5.8-7.3,12.8-13.3,21.8-16.2c4-1.3,8.4-1.1,12.7-1.6c2.5-0.3,5.4-0.2,7.4-1.4c8.4-4.8,17.7-5.5,26.9-6.5c2-0.2,4.5,0.1,6.3,1.2
c4.3,2.7,8,1.9,12.4-0.1c12.2-5.4,24.9-4.3,37-0.1c8.2,2.9,13.6,10,17,18.1c1.5,3.5,3.3,3.8,6.9,3.5c8.1-0.7,16.2-0.8,24.3-0.2
c11.5,0.9,25.1,14,25.2,31.3c1.5,0.3,3.1,0.6,4.6,1c5.9,1.4,9.7,5,10.7,11.1c0.2,1,0.5,2,0.5,2.9c0.2,6.4,2.9,10.7,7.9,15.4
c11.5,10.8,13.6,25.2,11,40.5c-1.1,6.5-1.9,13.1-1.7,19.7c0.4,13.5-2.5,26.3-8.6,38c-2.9,5.6-7.9,10.1-12.3,14.8

Installing Cool-Retro-Term on Windows10

First of all, this document is just a recompilation of different resources that already existed on the web previously that I personally tested some ones did work and other not. I liked the idea to make a full guide from start to end so all of you could also enjoy playing with cool-retro-term on windows 10. Personally I installed it on a windows 10 pro version. Fingers crossed!

result

@onlurking
onlurking / programming-as-theory-building.md
Last active December 30, 2025 04:16
Programming as Theory Building - Peter Naur

Programming as Theory Building

Peter Naur

Peter Naur's classic 1985 essay "Programming as Theory Building" argues that a program is not its source code. A program is a shared mental construct (he uses the word theory) that lives in the minds of the people who work on it. If you lose the people, you lose the program. The code is merely a written representation of the program, and it's lossy, so you can't reconstruct

@dralletje
dralletje / awesome-line-wrapping.js
Created September 25, 2021 20:25
Codemirror 6 line wrapping that preserves indentation
import _ from "lodash"
import { StateEffect, StateField } from "@codemirror/state"
import { EditorView, Decoration } from "@codemirror/view"
/**
* Plugin that makes line wrapping in the editor respect the identation of the line.
* It does this by adding a line decoration that adds padding-left (as much as there is indentation),
* and adds the same amount as negative "text-indent". The nice thing about text-indent is that it
* applies to the initial line of a wrapped line.
*

How to install game-porting-toolkit (aka proton for macOS)

You also might wanna just use Whisky which does this automatically

This guide works on macOS 13.4+ using Command Line Tools for XCode 15 Beta!

What is this?

In the recent WWDC, Apple announced and released the "game porting toolkit", which upon further inspection this is just a modified version of CrossOver's fork of wine which is a "compatibility layer" that allows you to run Windows applications on macOS and Linux.