Skip to content

Instantly share code, notes, and snippets.

View ngocjohn's full-sized avatar
💭
🍜

Viet Ngoc ngocjohn

💭
🍜
  • 13:14 (UTC +02:00)
View GitHub Profile
@ngocjohn
ngocjohn / AdbCommands
Created May 23, 2026 22:47 — forked from Pulimet/AdbCommands
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.
// place this file in www folder and add to configuration.yaml
// frontend:
// extra_module_url:
// - /local/empty-quickbar-fix.js
const getHa = () => document.querySelector('home-assistant');
const waitForQuickBar = (ha, timeoutMs = 2000) =>
new Promise((resolve) => {
const find = () => ha?.renderRoot?.querySelector('ha-quick-bar');
@ngocjohn
ngocjohn / dashboard_card.yaml
Created April 2, 2026 17:12 — forked from therealakahn/dashboard_card.yaml
Real-time Synced Lyrics for Home Assistant Media Players (No Spotify/API Keys Required)
# =========================================================================================
# HOME ASSISTANT DASHBOARD CARD (Synched Lyrics)
# -----------------------------------------------------------------------------------------
# INSTRUCTIONS:
# 1. Replace 'media_player.YOUR_ENTITY_ID' with your actual media player.
# 2. Add this as a 'Manual' card in your Lovelace dashboard.
# =========================================================================================
type: conditional
conditions:
let _cachedQuickBarDialogImport = null;
let _quickBarImportPromise = null;
const getHa = () => document.querySelector('home-assistant');
const dispatchQuickBar = (ha, dialogImport, mode) => {
ha.dispatchEvent(
new CustomEvent('show-dialog', {
bubbles: true,
cancelable: false,
@ngocjohn
ngocjohn / index.html
Created October 4, 2024 21:16
Responsive Dashboard with Sliders and Music Player
<body>
<main>
<nav class="main-menu">
<div>
<div class="user-info">
<img
src="https://github.com/ecemgo/mini-samples-great-tricks/assets/13468728/37e5ccfa-f9ee-458b-afa2-dcd85b495e4e"
alt="user" />
<p>Jane Wilson</p>
</div>
@ngocjohn
ngocjohn / GitCommitEmoji.md
Created July 10, 2024 19:06 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
import os
import requests
# Configuration
api_key = "[YOUR_API_KEY]]"
vehicle_id = "[YOUR_VEHICLE_VIN_ID]"
base_url = "https://api.mercedes-benz.com/vehicle_images/v2"
image_params = {
"roofOpen": "false",
"night": "false",
@ngocjohn
ngocjohn / index.html
Created April 29, 2024 14:34
TMDB Movie App UI
<i title="Go to top" onclick="topFunction()" id="myBtn" class="fa fa-arrow-up" aria-hidden="true"></i>
<div class="container">
<div class="sidebar">
<div class="sidebar-container">
<a class="logo-link" href="#" onclick="sortMovies('popularity')">
<img src="https://i.imgur.com/AYldSBG.png" class="logo-image">
</a>
<h2 class="title-genre">Discover</h2>
<a class="category-link current" href="#" onclick="sortMovies('popularity')">
<div class="genre">Popular</div>
@ngocjohn
ngocjohn / dailyui-025-tv-app.markdown
Created April 28, 2024 17:10
DailyUI #025 - TV App