Skip to content

Instantly share code, notes, and snippets.

View jesusjimsa's full-sized avatar
💳

Jesús Jiménez Sánchez jesusjimsa

💳
View GitHub Profile
# Decompile
dtc -I dtb -O dts -o devicetree.dts /boot/dtb/<your_devicetree_file_name>.dtb
# Compile
dtc -I dts -O dtb devicetree.dts -o <your_devicetree_file_name>.dtb
# Merge with DTBO
fdtoverlay -i modified-base.dtb -o modified-full.dtb /boot/tegra194-p3668-all-p3509-0000-user-custom.dtbo
# DTS from fs
@williamoconnorme
williamoconnorme / openTwitterFunc.swift
Last active July 18, 2023 19:32
Open the twitter app from your own app using Swift
func openOnTwitter() {
let screenName = "jack"
let appURL = URL(string: "twitter://user?screen_name=\(screenName)")!
let webURL = URL(string: "https://twitter.com/\(screenName)")!
let application = UIApplication.shared
if application.canOpenURL(appURL) {
application.open(appURL, options: [:], completionHandler: nil)
} else {
@iamnewton
iamnewton / bash-colors.md
Last active May 29, 2025 03:19
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@davidnunez
davidnunez / gist:1404789
Created November 29, 2011 13:20
list all installed packages in android adb shell
pm list packages -f