Skip to content

Instantly share code, notes, and snippets.

@qh-huang
qh-huang / firefox_docker.sh
Created May 19, 2019 17:54 — forked from mreichelt/firefox_docker.sh
Run Firefox in Docker image on Mac with X11 forwarding to XQuartz
#!/bin/bash
# allow access
xhost +
# run firefox with X11 forwarding and keep running until it quits
docker run -e DISPLAY=host.docker.internal:0 jess/firefox
1. 10 秒規則
花 10 ~ 20 秒瀏覽你的履歷,假裝你對你所使用的技術或術語一無所知。
想想它描繪了關於這個人的什麼畫面。
如果你申請的是軟件工程師的職位,不要使用“聯合投資人”或任何其他不相關的頭銜。
Take a 10~20 seconds glance to your resume and pretending you know nothing about the technology or terms you're using. Think of what picture it paints about this person.
If you're applying a role of software engineer, take off "co-fundder" or any other unrelevant titles.
@qh-huang
qh-huang / delete_non-code_files.py
Last active July 24, 2023 11:39
Trim tools for large code base trim to avoid massive processing time for other software to process
#!/usr/bin/env python3
import os
import sys
from tqdm import tqdm # Import tqdm for the progress bar
def is_code_file(file_path):
code_file_names = {"Makefile", "configure", "Kconfig", ".gitignore", ".gitmodules", "CMakeFile"} # Add more conventional file names as needed
code_file_extensions = {".c", ".cc", ".cpp", ".h", ".hh", ".hpp", ".inc", ".java", ".dts", ".dtsi", ".log", ".conf",
".ini", ".xml", ".yaml", ".xls", ".csv", ".js", ".py", ".s", ".gitmodules", ".cmake", ".gn", ".md", ".m4", ".m", ".diff",