Skip to content

Instantly share code, notes, and snippets.

View trietptm's full-sized avatar
💭
Information Security Consulting, Threat Hunting

Minh-Triet Pham Tran trietptm

💭
Information Security Consulting, Threat Hunting
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="LeakedIn: Is your password safe?">
<title>LeakedIn: Is your password safe?</title>
<style type="text/css">
body {
background: #fff;
text-align: left;
<base href="https://lastpass.com"/><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>LastPass - LinkedIn Password Checker</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="google-site-verification" content="javca5HBxgBLuV22DtLne4GLKzApk0CFjtw0Dqn9l5Y" />
<meta name="Keywords" content="last password, last pass, remember password, remember passwords, password manager, online password manager, password, password management, password recovery, recover password, export passwords, form fill, formfill, form filler, safe password, local encryption, generate password, password generator,identity theft protection" />
<meta name="description" content="LastPass is an online password manager and form filler that makes web browsing easier and more secure." />
@trietptm
trietptm / gist:2996889
Created June 26, 2012 16:28
Mọi người đều phải chết. Cantor là người.
nguoi('Cantor').
chet(X) :- nguoi(X).
@trietptm
trietptm / gist:2997924
Created June 26, 2012 18:50
Tính giá trị giai thừa của một số nguyên bất kỳ
giaithua(0, 1) :- !.
giaithua(X, Y) :- X1 is X-1, giaithua(X1, Y1), Y is X*Y1.
@trietptm
trietptm / gist:2998022
Created June 26, 2012 18:59
Back-Tracing (Quay lui)
nguoi('Socrates').
nguoi('Xeda').
vua('Xeda').
sungsuong(X) :- nguoi(X), vua(X).
@trietptm
trietptm / gist:2998196
Created June 26, 2012 19:20
Khống chế số lượng lời giải
p(X):-q(X), !.
p(3).
q(1).
q(2).
@trietptm
trietptm / gist:2998275
Created June 26, 2012 19:31
Vị từ findall
findall(X, member(X, [(1, a), (2, b), (3, c)]), Xs)
@trietptm
trietptm / gist:3023628
Created June 30, 2012 12:39
Prolog test case
room(300,400,500).
object(monkey).
object(key).
object(cabinet).
object(box(b1,20)).
object(box(b2,40)).
at(loc(20,20,0),monkey).
at(loc(20,20,30),key).
at(loc(20,40,0),cabinet).
on(b2,floor).
@trietptm
trietptm / gist:3870310
Created October 11, 2012 05:14
PHP PCRE Regular expression for {tag}content content{/tag}{tag}content bla bla {/tag}
{tag}([^{]|({tag[^}])|({ta[^g].)|({t[^a]..)|({[^t]...)|([^{]tag})|(.[^t]ag})|(..[^a]g})|(...[^g]}))*{/tag}
@trietptm
trietptm / gist:4112850
Created November 19, 2012 18:54
Stack Pointer Push Pop
#include <iostream>
using namespace std;
int main()
{
/*
*--ESP = value; // push
value = *ESP++; // pop
*/