Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Dieu Doan dieudv

🏠
Working from home
View GitHub Profile
View jetson_opencv_install.sh
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
View keybase.md

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 Feb 25, 2019
Windows clean scripts. Save with .bat and run as administrator!
View clean.bat
@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
)
View linkedin-auto-script.js
/**
* 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 Jan 6, 2019 — forked from silverwolfceh/fbtokenlogin.js
Login Facebook using Token
View fbtokenlogin.js
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 Dec 17, 2020
Press F12 -> Console and patse this code for android or for ios. (Cre: dieudv)
View get-facebook-token-console-android.js
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 Nov 20, 2018 — forked from andepzai/remove-ua-friends.js
remove friends no longer exists from facebook
View remove-ua-friends.js
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
View wifi_wordlist_vi.txt
12345678
123456789
88888888
99999999
1234567890
999999999
11111111
khongbiet
hoilamgi
66668888
You can’t perform that action at this time.