Skip to content

Instantly share code, notes, and snippets.

View nhtua's full-sized avatar
👨‍✈️
looking for a co-pilot

Liam Nguyen nhtua

👨‍✈️
looking for a co-pilot
View GitHub Profile
@nhtua
nhtua / nginx-rtmp.conf
Created December 14, 2020 16:56
Config Nginx Rtmp
events {}
rtmp {
server {
listen 1935;
chunk_size 4096;
application multiple {
live on;
record off;
push rtmp://a.rtmp.youtube.com/live2/<live-stream-id>;
@nhtua
nhtua / clean-Instagram-profile.js
Created April 2, 2025 03:44
Script to clean up your Instagram following accounts (so your wife won't kill you!!)
// Following these steps to clean up your Instagram profile, just in case it has followed thoudsand of accounts. Now you don't want anybody knows that, so clean it up.
// 1. Open your profiles account
// 2. Click on Following button (link) to open the pop-up pane. Keep scroll down to list all the following account.
// 2. Press F12
// 3. Copy and past the code bellow into console. Enter.
// 4. Keep the window open for few hours, or days in some cases to finish the job. Don't try to speed up as Instagram has rate limit on unfollow requests;
function findElementsByInnerText(textToFind, tagName) {
const elements = document.getElementsByTagName(tagName); // Get all elements of the specified tag
const matchingElements = []; // Initialize an empty list to store matching elements