Skip to content

Instantly share code, notes, and snippets.

View hieuhtr's full-sized avatar
🐤
solve technical problems & make things better

Thợ máy hieuhtr

🐤
solve technical problems & make things better
View GitHub Profile
@hieuhtr
hieuhtr / README.md
Created July 23, 2017 10:02 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

For more about AWS and AWS Certifications and updates to this Gist you should follow me @leonardofed


@hieuhtr
hieuhtr / opera-vpn.md
Created June 26, 2017 05:17 — forked from spaze/opera-vpn.md
Opera VPN behind the curtains is just a proxy, here's how it works

When setting up (that's immediately when user enables it in settings) Opera VPN sends few API requests to https://api.surfeasy.com to obtain credentials and proxy IPs, see below, also see The Oprah Proxy.

The browser then talks to a proxy de0.opera-proxy.net (when VPN location is set to Germany), it's IP address can only be resolved from within Opera when VPN is on, it's 185.108.219.42 (or similar, see below). It's an HTTP/S proxy which requires auth.

When loading a page with Opera VPN enabled, the browser sends a lot of requests to de0.opera-proxy.net with Proxy-Authorization request header.

The Proxy-Authorization header decoded: CC68FE24C34B5B2414FB1DC116342EADA7D5C46B:9B9BE3FAE674A33D1820315F4CC94372926C8210B6AEC0B662EC7CAD611D86A3 (that's sha1(device_id):device_password, where device_id and device_password come from the POST /v2/register_device API call, please note that this decoded header is from another Opera installation and thus contains

@hieuhtr
hieuhtr / top-manual.log
Created June 25, 2017 11:44
top(1) - Linux manual page
TOP(1) User Commands TOP(1)
NAME
top - display Linux processes
SYNOPSIS
top -hv|-bcHiOSs -d secs -n max -u|U user -p pid -o fld -w [cols]
@hieuhtr
hieuhtr / bash-cheatsheet.sh
Created May 24, 2017 02: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
@hieuhtr
hieuhtr / ElasticSearch.org.Website.Search.FieldNotes.markdown
Created January 11, 2017 04:31 — forked from karmi/ElasticSearch.org.Website.Search.FieldNotes.markdown
Field notes gathered during installing and configuring ElasticSearch for http://elasticsearch.org

ElasticSearch.org Website Search: Field Notes

These are field notes gathered during installation of website search facility for the ElasticSearch website.

You may re-use it to put a similar system in place.

The following assumes:

#Info: Huynh Trung Hieu - 51201076
#Reference: http://www.gamefaqs.com/pc/932088-mummy-maze-deluxe/faqs/42610
import copy, logging, math, time
#all x-y cordinates use the row-column numbers, starting from 1
#DIRECTIONS
RIGHT,DOWN,LEFT,UP,STAY=1,2,3,4,5
ExplorerMoves=[RIGHT,DOWN,LEFT,UP,STAY]
#Info: Huynh Trung Hieu - 51201076
#Reference: http://www.gamefaqs.com/pc/932088-mummy-maze-deluxe/faqs/42610
import copy, logging, math, time
#all x-y cordinates use the row-column numbers, starting from 1
#DIRECTIONS
RIGHT,DOWN,LEFT,UP,STAY=1,2,3,4,5
ExplorerMoves=[RIGHT,DOWN,LEFT,UP,STAY]
#MSSV: 51201076
#Name: Huynh Trung Hieu
#Reference: greg9381
import operator
import time
class IllegalMoveException(Exception):
pass