Skip to content

Instantly share code, notes, and snippets.

View bc-lee's full-sized avatar

Byoungchan Lee bc-lee

  • Hyperconnect. LLC.
  • Seoul, Korea
  • 12:49 (UTC +09:00)
View GitHub Profile
@bc-lee
bc-lee / check_elf_page_size.py
Last active August 3, 2024 06:46
check_elf_page_size.py
#!/usr/bin/env python3
# Released into the public domain. No attribution required.
__doc__ = """
This script reads an ELF file and prints the page size of the first LOAD segment.
"""
import os
import sys
@bc-lee
bc-lee / firefox-nightly.desktop
Last active June 6, 2024 02:21 — forked from zzag/firefox-nightly.desktop
Firefox Nightly desktop file
[Desktop Entry]
Version=1.0
Name=Firefox Nightly
GenericName=Web Browser
Comment=Browse the Web
Exec=/path/to/firefox-nightly/firefox --name firefox-nightly --class firefox-nightly %u
Icon=/path/to/firefox-nightly/browser/chrome/icons/default/default128.png
Terminal=false
Type=Application
@bc-lee
bc-lee / parse-compile-commands.json
Created May 16, 2024 23:08
parse-compile-commands
#!/usr/bin/env python3
# SPDX-FileCopyrightText: 2024 Byoungchan Lee
# SPDX-FileContributor: Byoungchan Lee
# SPDX-License-Identifier: MIT
__doc__ == """
This script cleans up the compile_commands.json file generated by gn or other
build systems. It removes flags that are not essential for understanding
@bc-lee
bc-lee / CheckAudioEffectActivity.kt
Created February 6, 2024 09:31
Check Audio Effect
package com.example.checkaudioeffect
import android.Manifest
import android.content.pm.PackageManager
import android.media.AudioFormat
import android.media.AudioRecord
import android.media.MediaRecorder
import android.media.audiofx.AudioEffect
import android.os.Build
import android.os.Bundle
@bc-lee
bc-lee / result.json
Last active September 25, 2023 12:18
Compares ELF files in two directories
[
{
"left": {
"path": "swift-5.9-RELEASE-centos7/usr/bin/clang",
"glibc_version": "2.16",
"libstdcpp_version": "3.4.19",
"shared_objects": [
"libtinfo.so.5"
]
},
@bc-lee
bc-lee / analyze.py
Created August 16, 2023 04:58
Analyze Go package dependencies.
#!/usr/bin/env python3
__doc__ = """Analyze Go package dependencies."""
import argparse
import json
import os
import shlex
import subprocess
import sys
@bc-lee
bc-lee / .gitconfig
Created May 5, 2023 01:36
My .gitconfig
[core]
precomposeunicode = true
autocrlf = false
[rebase]
abbreviateCommands = true
[merge]
renameLimit = 1048576
ff = no
@bc-lee
bc-lee / README.md
Created August 25, 2022 12:20
Expansion of googletest assertion macro

.

@bc-lee
bc-lee / print_podfile_dependency.py
Created February 17, 2022 10:31
print_podfile_dependency.py
#!/usr/bin/env python3
import argparse
import sys
import re
# third_party
import graphviz # pip3 install graphviz
import yaml # pip install pyyaml
@bc-lee
bc-lee / Xcode11.7 iOS
Last active May 18, 2021 06:07
libc++1.1.tbd
--- !tapi-tbd-v3
archs: [ armv7, armv7s, arm64, arm64e ]
uuids: [ 'armv7: B41C63AE-D89D-3E89-9582-FA88DFB4A813', 'armv7s: 8D4659D4-1F05-3002-AD00-9152E1483631',
'arm64: 23B2D15C-5687-3176-BB4F-2BF05FC942BB', 'arm64e: C4263B03-FE8A-37A2-AC08-E77C7082038F' ]
platform: ios
install-name: '/usr/lib/libc++.1.dylib'
current-version: 902
exports:
- archs: [ armv7, armv7s ]
symbols: [ __ZNKSt3__18messagesIcE6do_getEiiiRKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE,