Skip to content

Instantly share code, notes, and snippets.

View lyf-is-coding's full-sized avatar
💓
Live Laugh Love

lyf-is-coding

💓
Live Laugh Love
View GitHub Profile
@KangHidro
KangHidro / banks.md
Last active October 3, 2024 15:40
Đăng ký tài khoản ngân hàng để tối ưu trải nghiệm sử dụng và các loại phí

Đăng ký tài khoản ngân hàng để tối ưu trải nghiệm sử dụng và các loại phí

Link bài viết này (để copy cho nhanh ý mà :v): http://bit.ly/optimizeBanks

  • Cách mình trình bày dưới đây chỉ mang tính chất chia sẻ kinh nghiệm nhé!
  • Tuy các giao dịch mình làm qua app, online, ít khi phải ra ngân hàng nhưng vì giờ đa số các ngân hàng đã miễn hầu hết các loại phí nên mình sẽ bàn thêm về trải nghiệm CSKH và một số tiện ích khác nữa.
  • Chắc chắn tuỳ khu vực sẽ có "chỗ this chỗ that" rồi, nên nếu bạn ưng bụng ngân hàng nào trước rồi thì cứ dùng thôi nhé!

TLDR → BÀI KHÁ DÀI, NẾU KHÔNG MUỐN ĐỌC HẾT THÌ MÌNH SẼ CHỌN NHANH COMBO CHO BẠN

@lyf-is-coding
lyf-is-coding / ADB get list of installed packages (apps)
Last active July 22, 2021 03:59 — forked from creativcoder/gist:5dc5c2e35cd218ce9b5d
ADB get list of installed packages (apps)
Issue this command to terminal with your device connected :
$ adb shell pm list packages
If that doesn't work, then:
$ adb shell
$ su
$ pm list packages
@lyf-is-coding
lyf-is-coding / get_pid_by_process_name.cpp
Last active April 21, 2025 17:05
C++ Get ProcessID by searching process name in a snapshot of runing processes
// https://docs.microsoft.com/en-us/windows/win32/toolhelp/taking-a-snapshot-and-viewing-processes
#include <windows.h> // Must include before TlHelp32.h
#include <TlHelp32.h>
DWORD GetPIDByProcessName(const wchar_t* processName)
{
DWORD PID = 0;
HANDLE hProcessSnapshot;
PROCESSENTRY32 PE32;
@6rube
6rube / msg.cs
Last active April 23, 2023 09:51
C# .net 6.0 Messagebox for console applications
using System.Runtime.InteropServices;
//Call Win32 API for opening a Messagebox (This does not require any other libarys)
[DllImport("user32.dll", CharSet = CharSet.Unicode)]
static extern int MessageBox(IntPtr hWnd, String text, String caption, uint type);
MessageBox(new IntPtr(0), "Message", "Title", 0);
@lyf-is-coding
lyf-is-coding / VirtualKeyCodes.h
Created July 23, 2022 06:37
C++ Enum Windows Virtual-Key Codes
#pragma once
#ifndef _VIRTUALKEYCODES_H_
#define _VIRTUALKEYCODES_H_
enum VK
{
LBUTTON = 0x01, // Left mouse button
RBUTTON = 0x02, // Right mouse button
CANCEL = 0x03, // Control-break processing