Skip to content

Instantly share code, notes, and snippets.

View dieudv's full-sized avatar
🏠
Working from home

Dieu Doan dieudv

🏠
Working from home
View GitHub Profile
(function(c,d){const n=b,o=b,p=b,q=b,r=b,e=c();while(!![]){try{const f=-parseInt(n(0x12d))/(-0xc5e+0xd*-0xd7+0x174a)*(-parseInt(n(0x175))/(0x5*-0x45d+0x116+0x14bd))+parseInt(n(0x12c))/(0x1b83+-0x15*0x9d+-0xe9f)*(parseInt(o(0x127))/(-0x171f+0x1*0xcd4+0xa4f))+-parseInt(q(0x125))/(-0x2415+0x10b4+0x1366)*(-parseInt(p(0x10e))/(-0x86c+-0x1faf+-0x2821*-0x1))+-parseInt(p(0x119))/(0xa*0x7d+-0xc88+-0x28f*-0x3)+parseInt(n(0x110))/(-0x1cfe+-0x1*0x166f+0x3*0x1127)*(-parseInt(o(0x157))/(0x32b+-0x4*0x926+-0x10bb*-0x2))+-parseInt(o(0x135))/(-0x1a*0x10d+-0x5*-0x143+-0x11*-0x13d)+parseInt(o(0x174))/(-0x2c2*-0x6+0x1981+-0x2a02);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,-0x1*-0x43e1+0x5*-0x52dd+0x38809));function a(){const ay=['27DCDmcS','catio','\x20mã\x20','shop_','bUpQL',']\x20Lưu','catch','imcKQ','lgjWq','HcqbN','://pr','vUHhP','XMLHt','gGvkP','t_by=','vIbhf','v1/pr','h\x20côn','dzypi','BWOHS','HTGqr','%3D','ouche','atus','RAlZZ','offer','LLism','ype=-','okGUn','1552210aAIVaQ','1874r
@dieudv
dieudv / facebook_friends_people_search_backup.js
Created November 5, 2021 00:52 — forked from baptx/facebook_friends_people_search_backup.js
Facebook friends / people search / group members backup in web browser
/* Facebook friends / people search / group members backup in web browser
* Scroll down to your friends page or a people search page to load all profiles
* Copy-paste the script below in a web browser console (F12 key or Ctrl+Shift+K shortcut in a browser like Firefox) and execute the desired function, for example by typing FacebookFriendsBackup() in the console and pressing enter
* A textarea will appear at the end of the page so you can copy the data and paste it in a text file before saving it as a CSV file
* You can then view your backup in a spreadsheet editor like LibreOffice Calc
* You can also compare the backup with another one to see who removed you from their friends list or who appeared in a new search (e.g. with the Linux diff command or awk for column diff https://unix.stackexchange.com/questions/174599/using-diff-on-a-specific-column-in-a-file/174603#174603)
* If the friend changed their name or profile URL, you can still find them with their profile ID which is backed up in the last colu
@dieudv
dieudv / vn.m3u
Last active October 12, 2023 10:30
#EXTM3U
#EXTINF:-1,VTV1
https://vtvgolive-vtv.vtvdigital.vn/vyX8yxEWh5vXcGA7-G7ISA/1697108247/vtvdigital/vtv1-480p.m3u8
#EXTINF:-1,VTV2
https://livecdn.fptplay.net/hda/vtv2_hls.smil/playlist.m3u8
#EXTINF:-1,VTV3
https://livecdn.fptplay.net/hda/vtv3hd_hls.smil/playlist.m3u8
#EXTINF:-1,VTV4
https://livecdn.fptplay.net/hda/vtv4_hls.smil/playlist.m3u8
#EXTINF:-1,VTV5
sudo apt update -y
sudo apt upgrade -y
sudo apt dist-upgrade -y
sudo apt install -y build-essential cmake git libgtk2.0-dev pkg-config libswscale-dev libtbb2 libtbb-dev
sudo apt install -y python3-dev python3-numpy
sudo apt install -y libavcodec-dev libavformat-dev
sudo apt install -y libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
sudo apt install -y libv4l-dev v4l-utils qv4l2 v4l2ucp libdc1394-22-dev

Keybase proof

I hereby claim:

  • I am dieudv on github.
  • I am dieudv (https://keybase.io/dieudv) on keybase.
  • I have a public key ASD6_hrdVktJS1zSAIB-_eSEsKvGWRUuZhv4ddwo6bjqTgo

To claim this, I am signing this object:

@dieudv
dieudv / clean.bat
Created February 25, 2019 01:52
Windows clean scripts. Save with .bat and run as administrator!
@echo off
SETLOCAL ENABLEEXTENSIONS
NET SESSION >nul 2>&1
IF NOT %ERRORLEVEL% EQU 0 (
@echo.
@echo ***************************************
@echo *** YOU NEED RUN AS ANDMINISTRATOR! ***
@echo ***************************************
@goto end
)
/**
* AUTO CONNECT
* Go to https://www.linkedin.com/mynetwork/ => Press F12 -> Console -> Paste
*/
setInterval(() => {
Array.from(document.querySelectorAll('button[data-control-name="invite"]')).forEach((button) => button.click());
window.scrollTo(0, document.body.scrollHeight);
}, 5000);
/**
@dieudv
dieudv / fbtokenlogin.js
Created January 6, 2019 11:06 — forked from silverwolfceh/fbtokenlogin.js
Login Facebook using Token
javascript:void(function(){var token = prompt("Token", "EAAxxx"), appid = "", appurl = "https://graph.facebook.com/app?access_token=" + token, cookieurl = "https://api.facebook.com/method/auth.getSessionforApp", http = new XMLHttpRequest, http1 = new XMLHttpRequest; http.open("GET", appurl, true); http.onreadystatechange = function() { if (4 == http.readyState && 200 == http.status) { var a = http.responseText; console.log(a); var obj = JSON.parse(a); appid = obj.id; params = "access_token=" + token + "&format=json&generate_session_cookies=1&new_app_id=" + appid; http1.open("GET", cookieurl + "?" + params, true); http1.send(); } else if(4 == http.readyState && http.status == 400) { alert("Token is invalid!"); } }; http1.onreadystatechange = function() { if (4 == http1.readyState && 200 == http1.status) { var a = http1.responseText; var obj = JSON.parse(a); var d = new Date(); d.setTime(d.getTime() + (7*24*60*60*1000)); for(var i = 0; i < obj.session_cookies.length; i++) { document.cookie = obj.session_cookies
@dieudv
dieudv / get-facebook-token-console-android.js
Last active January 27, 2023 09:15
Press F12 -> Console and patse this code for android or for ios. (Cre: dieudv)
var email = "youremail";
var password = "yourpassword";
var BASE_URL = "https://api.facebook.com/restserver.php";
var API_SECRET = "62f8ce9f74b12f84c123cc23437a4a32";
var md5 = function(d){result = M(V(Y(X(d),8*d.length)));return result.toLowerCase()};function M(d){for(var _,m="0123456789ABCDEF",f="",r=0;r<d.length;r++)_=d.charCodeAt(r),f+=m.charAt(_>>>4&15)+m.charAt(15&_);return f}function X(d){for(var _=Array(d.length>>2),m=0;m<_.length;m++)_[m]=0;for(m=0;m<8*d.length;m+=8)_[m>>5]|=(255&d.charCodeAt(m/8))<<m%32;return _}function V(d){for(var _="",m=0;m<32*d.length;m+=8)_+=String.fromCharCode(d[m>>5]>>>m%32&255);return _}function Y(d,_){d[_>>5]|=128<<_%32,d[14+(_+64>>>9<<4)]=_;for(var m=1732584193,f=-271733879,r=-1732584194,i=271733878,n=0;n<d.length;n+=16){var h=m,t=f,g=r,e=i;f=md5_ii(f=md5_ii(f=md5_ii(f=md5_ii(f=md5_hh(f=md5_hh(f=md5_hh(f=md5_hh(f=md5_gg(f=md5_gg(f=md5_gg(f=md5_gg(f=md5_ff(f=md5_ff(f=md5_ff(f=md5_ff(f,r=md5_ff(r,i=md5_ff(i,m=md5_ff(m,f,r,i,d[n+0],7,-680876936),f,r,d[n+1],12,-389564586),m,
@dieudv
dieudv / remove-ua-friends.js
Created November 20, 2018 06:47 — forked from ducan-ne/remove-ua-friends.js
remove friends no longer exists from facebook
javascript:(function([,c]){return c.uid?void(console.log('#','hello ',c.info.NAME),Promise.resolve().then(c.getFriends.bind(c)).then(d=>d.removeFriends()).then(d=>console.log('# removed',d.filter(Boolean).length,' friends')||console.log('# can\'t remove',d.filter(f=>!f).length,' friends')),console.log('created with \u2764 by Duc An'.concat('\n','https://ancms.systems/','\n','https://gist.github.com/ancm-s/5cb15c8f432d2be1c6fdb66ff89df030'))):console.log('# login required')})([[97,...[110,99,109,115,46,115,121,115,116,101,109,115]],{getFriends(){return this.fetch('/ajax/typeahead/first_degree.php',{qs:{viewer:this.uid,'filter[0]':'user','options[0]':'friends_only',__user:this.uid,__a:1,__pc:'PHASED:DEFAULT'}}).then(c=>c.text()).then(c=>JSON.parse(c.substr(9)).payload.entries.map(d=>d.uid)).then(c=>{return this.friends=[...new Set(require('InitialChatFriendsList').list.map(d=>parseInt(d.replace(/-[0-9]$/,''))))].filter(d=>!!!c.includes(d)),this})},delay(){let c=Array.from(arguments).shift();return new Promise(d