Skip to content

Instantly share code, notes, and snippets.

View kiemrong08's full-sized avatar

Quan Tien kiemrong08

View GitHub Profile
@kiemrong08
kiemrong08 / gist:eec5a1bf9bf37a68170d8065f1e6a38a
Last active April 17, 2025 05:30
get facebook page post
// Script lấy nội dung bài viết Facebook (phiên bản tránh xung đột)
// Đóng gói tất cả trong một IIFE (Immediately Invoked Function Expression)
// để tránh xung đột với các biến và hàm toàn cục đã tồn tại
(async function() {
// Cấu hình
const CONFIG = {
scrollDelay: 1500, // Thời gian chờ sau mỗi lần cuộn (ms)
maxScrollAttempts: 10, // Số lần cuộn tối đa nếu không tìm thấy bài mới
waitAfterClick: 500, // Thời gian chờ sau khi click "Xem thêm" (ms)
@kiemrong08
kiemrong08 / telegram-shell.py
Created February 7, 2025 09:25
command prompt telegram bot
from telegram.ext import Application, CommandHandler
from telegram import Update
import subprocess
import logging
from typing import List
# Enable logging
logging.basicConfig(
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
level=logging.INFO
@kiemrong08
kiemrong08 / mousecrosshair
Created February 5, 2025 09:35
display mouse crosshair autohotkey
#Include, Gdip.ahk
#NoEnv
#SingleInstance, Force
SetBatchLines, -1 ; Tối ưu hiệu năng CPU
SetWinDelay, -1 ; Giảm độ trễ của GUI
SetControlDelay, -1
SendMode Input
SetWorkingDir %A_ScriptDir%
@kiemrong08
kiemrong08 / allXImageURL.js
Last active October 16, 2024 05:16
Script Get all image URL of x.com twitter profile chrome devtool
// Array to store image URLs
let imageUrls = [];
// Function to get image URLs from the current page
function getImageUrls() {
const imgElements = document.querySelectorAll('img[src^="https://pbs.twimg.com/media/"]');
let newUrls = [];
imgElements.forEach(img => {
const src = img.src;
if (src.includes('name=')) {
class Solution {
public int[] twoSum(int[] nums, int target) {
Map<Integer,Integer> map=new HashMap<>();
int arr[]=new int [2];
for(int i=0;i<nums.length;i++) {
@kiemrong08
kiemrong08 / factorialbig.cpp
Created March 28, 2020 16:57
#thuattoan #giaithua
#include<iostream>
using namespace std;
#define MAX 500
int multiply(int x, int res[], int res_size);
void factorial(int n)
{
int res[MAX];

Keybase proof

I hereby claim:

  • I am kiemrong08 on github.
  • I am quanntvt (https://keybase.io/quanntvt) on keybase.
  • I have a public key ASCg31kxJsgBlP3Vp7xtMF4QOkuqKtXsEvs3DGL-FVDCQgo

To claim this, I am signing this object:

@kiemrong08
kiemrong08 / bash-cheatsheet.sh
Created June 8, 2017 00:43 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@kiemrong08
kiemrong08 / 1
Created February 20, 2016 10:10
#dota2 #hack
http://ensage-forum.ru/account-confirmation/9464/email?c=--rIZSdF2fjSxYbK