Skip to content

Instantly share code, notes, and snippets.

View eggplants's full-sized avatar
🏠
Working from home

haruna eggplants

🏠
Working from home
View GitHub Profile
@kconner
kconner / macOS Internals.md
Last active April 22, 2024 21:28
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:

@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created March 4, 2023 05:15
Kindle v1.40.65535 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-495946453-372035899-1808473673-1000</user>
<keys>
<key installerType="Unknown" displayName="Amazon Kindle" displayVersion="1.40.1.65535">
<RegistryView>Registry32</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Amazon Kindle</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[]]></InstallLocation>
<UninstallString><![CDATA[C:\Program Files (x86)\Amazon\Kindle\uninstall.exe]]></UninstallString>
@mala
mala / meety_vuln.md
Last active December 18, 2023 05:36
Meety脆弱性 2022-11

Meety脆弱性 2022-11

文責 mala

経緯:

  • Meety退会しようと思ったがアカウントがなかったので、退会するためにアカウントを作ることにした。

免責:

  • 気になった範囲ですぐに見つかったもののうち、悪用可能なものを記載しています。
  • 好ましくないが仕様だろうというものは書いていません。
@buzztaiki
buzztaiki / rust_source_based_coverage.md
Last active February 12, 2024 11:03
Rust の Source-based code coverage をお手軽に使う

Rust の Source-based code coverage をお手軽に使う

1.60 で Source-based code coverage が安定化した (stable で使えるようになった)。

どうやって使うのかといった話は リリースノート に書いてある通り。なんだけど、ちょっと面倒くさい。

簡単に使うには https://github.com/taiki-e/cargo-llvm-cov の力を借りる。

まずは、llvm-tools-previewcargo-llvm-cov を入れておく:

@sneakers-the-rat
sneakers-the-rat / clean_pdf.sh
Last active February 14, 2024 16:52
Strip PDF Metadata
# --------------------------------------------------------------------
# Recursively find pdfs from the directory given as the first argument,
# otherwise search the current directory.
# Use exiftool and qpdf (both must be installed and locatable on $PATH)
# to strip all top-level metadata from PDFs.
#
# Note - This only removes file-level metadata, not any metadata
# in embedded images, etc.
#
# Code is provided as-is, I take no responsibility for its use,
@cfreshman
cfreshman / wordle-answers-alphabetical.txt
Last active March 9, 2024 17:43
Original Wordle answers from source code in alphabetical order. And if you write a solver, here's a leaderboard! https://freshman.dev/wordle/leaderboard Additional allowed guesses: https://gist.github.com/cfreshman/cdcdf777450c5b5301e439061d29694c NYTimes version: https://gist.github.com/cfreshman/a7b776506c73284511034e63af1017ee
aback
abase
abate
abbey
abbot
abhor
abide
abled
abode
abort
[% aregeword = ['アレゲはアレゲ以上のなにものでもなさげ -- アレゲ研究家',
'吾輩はリファレンスである。名前はまだ無い -- perlの中の人',
'犯人は巨人ファンでA型で眼鏡をかけている -- あるハッカー',
'犯人はmoriwaka -- Anonymous Coward',
'クラックを法規制強化で止められると思ってる奴は頭がおかしい -- あるアレゲ人',
'日本発のオープンソースソフトウェアは42件 -- ある官僚',
'あつくて寝られない時はhackしろ! 386BSD(98)はそうやってつくられましたよ? -- あるハッカー',
'未知のハックに一心不乱に取り組んだ結果、私は自然の法則を変えてしまった -- あるハッカー',
'皆さんもソースを読むときに、行と行の間を読むような気持ちで見てほしい -- あるハッカー',
'ナニゲにアレゲなのは、ナニゲなアレゲ -- アレゲ研究家',
@KOBA789
KOBA789 / bunkai-kei.js
Last active November 7, 2021 18:48
http://bunkai-kei.com/ の試聴プレイヤーを dewplayer(Flash 製)から HTML5 Audio に置き換えるブックマークレット
[...document.querySelectorAll('object[data*="/dewplayer.swf"]')].forEach(dew=>{const a=new Audio(new URL(dew.data).searchParams.get('mp3'));a.controls=true;a.style.width='200px';a.style.height='20px';dew.replaceWith(a);})
@dreamcat4
dreamcat4 / wayland-global-hotkey-instructions.md
Last active May 2, 2023 09:06
wayland gnome - how to setup a global hotkey, to trigger something useful inside of an application, etc.

Global Hotkeys in Wayland (Gnome) - 2021

1st task - Configure just 1 global hotkey

  • Figure out how to set up 1 global hotkey in your chosen desktop environment,
  • Assign to it some simple dummy target ommand. Which you know always works. And is easily verified

That will ensure you can check and test that a specific hotkey assignment is actually definately working independantly of the specific desired action. This is important because the desktop environment can also occupy pre-configured 'system keys' and if they are already being mapped to something other default system wide actions then (likely) will silently be ignored.

So being independant here from the subsequent specific desired target actions in some special app or whatever. Which themselves definately might have other own different issues or not behave correctly. And especially when being invoked from the compositor via this method (rather than a logged in user terminal etc.)