Skip to content

Instantly share code, notes, and snippets.

View KangHidro's full-sized avatar
🙏
Siêu độ chúng bugs

Kang Hidro KangHidro

🙏
Siêu độ chúng bugs
  • HCMC University of Technology and Education
  • Vietnam
  • Facebook Kang.Hidro
View GitHub Profile
@KangHidro
KangHidro / iphone-auto-click-en.md
Last active July 10, 2026 09:23
Native way to auto click on iPhone/iPad

iOS Auto Click Setup Guide Using Voice Control and Siri

This method allows you to create automated action sequences (macros) directly via voice commands by utilizing the built-in gesture recording feature of the iOS operating system.

Phase 1 - System Configuration

Step 1 - Configure Siri and Voice Control

  • Turn on the Siri virtual assistant to support quickly turning the control feature on or off.
  • Turn off the confirmation mode when disabling Voice Control by going to Settings → Accessibility → Voice Control → Commands → Accessibility → Turn Off Voice Control, and then switching off the Ask for Confirmation option. This ensures that the automated click sequence stops immediately upon command without being interrupted by a system confirmation dialog box.
  • Enable the notification sound when the device successfully recognizes a command by going to Settings → Accessibility → Voice Control, and switching on the Play Sound option.
@KangHidro
KangHidro / unlimited_trials_babeledit.txt
Created July 3, 2026 03:30 — forked from hannojg/unlimited_trials_babeledit.txt
Activate BabelEdit temporarily / Unlimited trial
Obviously for educative purposes only.
Furthermore, this DOESN'T activate BabelEdit permanently.
If you like the software, buy it, the devs deserve it.
Since I have no money to buy it, I discovered a workaround for unlimited trials.
It's quite a annoying workaround, but ... it works!
Firstly go to "c:\windows\system32\drivers\etc\" and open the "hosts" file in Notepad/Notepad++/VSCode/Sublime/Atom/whatever as admin (if you don't open it as admin, it won't let you save it).
Add this line at the end of the file:
@KangHidro
KangHidro / angular-tinymce-self-host.ts
Last active May 29, 2026 07:41
Angular component for TinyMCE Editor
import { HttpClient } from '@angular/common/http';
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, forwardRef, inject } from '@angular/core';
import { ControlValueAccessor, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
import { EditorModule } from '@tinymce/tinymce-angular';
import { lastValueFrom } from 'rxjs';
interface TinyMceBlobInfo {
id: () => string;
name: () => string;
filename: () => string;
@KangHidro
KangHidro / auth.service.ts
Created February 9, 2026 03:42
Angular 12- Google Login
...
getGoogleUser(accessToken: string): Observable<PeopleGoogle> {
const httpOptions = {
headers: new HttpHeaders({
'Content-Type': 'application/json',
Authorization: 'Bearer ' + accessToken
})
};
return this._http.get<PeopleGoogle>
('https://people.googleapis.com/v1/people/me?personFields=names,photos,emailAddresses', httpOptions);
@KangHidro
KangHidro / cke-editor.component.css
Last active July 23, 2025 07:43
Angular CK-Editor Standalone component
/* @import 'ckeditor5/ckeditor5.css'; */
@media print {
body {
margin: 0 !important;
}
}
.ck-content {
font-family: 'Lato';

CKEditor 5 editor generated with the online builder

  • Step 1: Import this cURL to Postman:
curl 'https://cke5-online-builder.cke-cs.com/build' \
  -H 'authority: cke5-online-builder.cke-cs.com' \
  -H 'accept: */*' \
  -H 'accept-language: en-US,en;q=0.9,vi;q=0.8' \
  -H 'content-type: application/json' \
  -H 'dnt: 1' \

Angular obfuscator guide

Tested Angular 15

Install Deps

npm i -D @angular-builders/custom-webpack@<same-with-angular-ver> webpack-obfuscator

Tested: @angular-builders/custom-webpack@15 and webpack-obfuscator@3.5.1

@KangHidro
KangHidro / how-to-use-megui.md
Created January 20, 2024 18:37
How to use MeGUI (2944) - update 2024
@KangHidro
KangHidro / web-crypto-angular-comp.ts
Last active April 12, 2024 03:42 — forked from pedrouid/webcrypto-examples.md
Web Cryptography API Examples
import { HttpClient } from '@angular/common/http';
import { Component, OnInit } from '@angular/core';
import { CryptoWebService } from './crypto-web.service';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
})
@KangHidro
KangHidro / 1. demo angular 17+ (Standalone app) structure.txt
Last active January 21, 2025 04:12
Demo Angular Structure. Angular 14 introduced standalone component, so I make some changes in "shared" folder. Angular 17 introduced standalone application, so I make breaking change in all structure project.
src
├─ app
│ ├─ auth (Folder)
│ │ ├─ auth routes config (File)
│ │ ├─ login (Standalone-Component)
│ │ ├─ register (Standalone-Component)
│ │ └─ ...
│ │
│ ├─ core (Folder)
│ │ ├─ core providers config (File)