Skip to content

Instantly share code, notes, and snippets.

View TingPing's full-sized avatar

Patrick TingPing

View GitHub Profile
@kconner
kconner / macOS Internals.md
Last active March 17, 2025 10:04
macOS Internals

macOS Internals

Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.

Starting Points

How to use this gist

You've got two main options:

@ssokolow
ssokolow / update_flatpak_cli.py
Last active February 28, 2025 20:20
Utility for making Flatpak-installed apps available in the terminal through their normal command names
#!/usr/bin/env python3
"""Flatpak CLI Shortcut Generator
A simple no-argument tool that generates launchers with traditional non-flatpak
command names for your installed Flatpak applications in ~/.local/bin/flatpak.
Does full collision detection and warns you if you forgot to add its output
directory to your PATH. Also overrules the command-line specified in the
``.desktop`` file if the Flatpak maintainer didn't include support for
command-line arguments.
@chrmod
chrmod / state-of-wkwebview.md
Last active September 19, 2023 19:20
Privacy Community feedback on the state of WKWebView

Privacy Community feedback on the state of WKWebView

We are developers working on ways to empower users on the Web and help them protect their privacy. Based on our collective experience of creating privacy-preserving technologies for iOS, we have collected and curated a list of the most pressing short-comings of WKWebView (i.e. WebKit WebView). If addressed, these have the potential to positively impact the ecosystem at large, and benefit all users.

Our hope is that this work, supported by some of the most well-known companies

@devnoname120
devnoname120 / My macOS setup.md
Last active March 20, 2025 11:25
My macOS setup

ℹ️ Enable iCloud end-to-end encryption:

  • Nobody knows that, but iCloud actually supports end-to-end encryption (see “Advanced Data Protection for iCloud”) but it's disabled by default. If you care about data privacy, you should turn it on.
    • System settingsApple IDiCloud → Set Advanced Data Protection to On.
    • System settingsApple IDiCloud → Disable Access iCloud Data on the Web.
  • It supports almost all the native Apple apps, with the notable exceptions of iCloud Mail, Contacts, and Calendars. See official data protection matrix for more info.

Table of Contents

@DamnedScholar
DamnedScholar / language-sampleGrammar.cson
Last active July 28, 2024 08:43
Grammar boilerplate with annotations.
# TextMate tutorial: http://manual.macromates.com/en/language_grammars
# Regex to convert keys to unquoted: '(include|match|captures|begin|end|beginCaptures|endCaptures|name|patterns|0|1|2|3|4|5|6|7|8|9|comment|fileTypes|scopeName|repository|contentName|firstLineMatch|foldingStartMarker|foldingStopMarker)':
scopeName: 'source.<scope>' # <scope> should be a short, unique indicator for the language ("js", "php", "c", etc.)
name: '<name>' # The title that will show up in grammar selection and on your status bar.
fileTypes: [ # An array of file extensions.
'txt'
'exif'
]
@StepS-
StepS- / twitch.py
Last active October 14, 2019 14:04
import hexchat
__module_name__ = 'Twitch'
__module_author__ = 'TingPing, frumpy4, StepS'
__module_version__ = '6.8'
__module_description__ = 'Better integration with Twitch.tv'
# Commands from http://help.twitch.tv/customer/portal/articles/659095-chat-moderation-commands
# Enable the "commands" and "membership" caps for the best effect
# See https://github.com/justintv/Twitch-API/blob/master/chat/capabilities.md for an up-to-date list.
@atErik
atErik / HexChat-USB.cmd
Last active August 29, 2015 14:10
Windows Batch Script, For Portable HexChat With Portable Perl Support
@echo off
@rem | | | | | | | |
@rem A windows batch/cmd script to run HexChat from USB/Portable drive, with
@rem portable perl support. HexChat is IRC Client/communication software.
@rem This script also allows to run a second HexChat in same computer,
@rem without conflicting with system/default/full installed/other HexChat.
@rem HexChat is based on XChat software.
@rem |
@rem When installing HexChat, you must select "Portable" option, if you want
@rem to run HexChat from a USB drive or from your own choice of sub-folder,
@jbenet
jbenet / simple-git-branching-model.md
Last active March 19, 2025 16:09
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

@LifeIsPain
LifeIsPain / whybanned.pl
Last active December 18, 2015 15:29
XChat script to determine and list why a user is unable to join or speak on a channel
# Name: whybanned.pl
# Version: 004
# Author: LifeIsPain < idontlikespam (at) orvp [dot] net >
# Date: 2013-07-12
# Description: Determine and list why a user is unable to join or speak on a channel
# License: zlib (text at end of file)
# Version History
# 001 2013-06-18 Initial Code
# 002 2013-06-18 Fix issue where only worked if in channel (increased priority)
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: