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:01 (UTC +09:00)
View GitHub Profile
@bc-lee
bc-lee / compile_commands-new.json
Last active January 7, 2025 17:50
compare compile_commands.json
This file has been truncated, but you can view the full file.
[
{
"file": "../../flutter/shell/platform/glfw/client_wrapper/flutter_engine_unittests.cc",
"directory": "/path/to/flutter/engine/src/out/host_debug_unopt",
"command": "../../flutter/buildtools/mac-x64/clang/bin/clang++ -MMD -MF obj/flutter/shell/platform/glfw/client_wrapper/client_wrapper_glfw_unittests.flutter_engine_unittests.o.d -DFLUTTER_DESKTOP_LIBRARY -DUSE_OPENSSL=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_LIBCPP_DISABLE_AVAILABILITY=1 -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -D_DEBUG -DSK_TYPEFACE_FACTORY_CORETEXT -DSK_FONTMGR_CORETEXT_AVAILABLE -DSK_GL -DSK_METAL -DSK_ENABLE_DUMP_GPU -DSK_CODEC_ENCODES_JPEG -DSK_CODEC_ENCODES_PNG -DSK_CODEC_ENCODES_PNG_WITH_LIBPNG -DSK_CODEC_ENCODES_WEBP -DSK_CODEC_DECODES_JPEG -DSK_CODEC_DECODES_PNG -DSK_CODEC_DECODES_ICO -DSK_CODEC_DECODES_PNG_WITH_LIBPNG -DSK_CODEC_DECODES_WEBP -DSK_HAS_WUFFS_LIBRARY -DSK_CODEC_DECODES_GIF -DSK_XML -DFLUTTER_RUNTIME_MODE_DEBUG=1 -DFLUTTER_RUN
@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