Skip to content

Instantly share code, notes, and snippets.

View tyluudinh's full-sized avatar
:octocat:
Focusing

Ty Luu Dinh tyluudinh

:octocat:
Focusing
  • Localhost
View GitHub Profile
@tyluudinh
tyluudinh / find_email.py
Created February 21, 2024 01:54 — forked from banhbaochi3n/find_email.py
Check for existing email
#!/bin/python3
import httpx
import trio
from ghunt.helpers.gmail import is_email_registered
def gen_email():
email_list = []
for dd in range(1, 32):
@tyluudinh
tyluudinh / script.js
Last active June 29, 2023 06:38
TicketBox Script Auto Buy
class TicketBox {
eventId = null;
bookingId = null;
order = null;
recapchaKey = null;
resultStep1 = {};
resultStep2 = {};
resultStep3 = {};
email = null;
phoneNumber = null;
@tyluudinh
tyluudinh / .htaccess
Created October 19, 2021 15:10
Apache2 + angular + prerender.io
<IfModule mod_rewrite.c>
RewriteEngine On
<IfModule mod_proxy_http.c>
RewriteCond %{HTTP_USER_AGENT} googlebot|bingbot|yandex|baiduspider|facebookexternalhit|twitterbot|rogerbot|linkedinbot|embedly|quora\ link\ preview|showyoubot|outbrain|pinterest\/0\.|pinterestbot|slackbot|vkShare|W3C_Validator|whatsapp [NC,OR]
RewriteCond %{QUERY_STRING} _escaped_fragment_
RewriteCond %{REQUEST_URI} ^(?!.*?(\.js|\.css|\.xml|\.less|\.png|\.jpg|\.jpeg|\.gif|\.pdf|\.doc|\.txt|\.ico|\.rss|\.zip|\.mp3|\.rar|\.exe|\.wmv|\.doc|\.avi|\.ppt|\.mpg|\.mpeg|\.tif|\.wav|\.mov|\.psd|\.ai|\.xls|\.mp4|\.m4a|\.swf|\.dat|\.dmg|\.iso|\.flv|\.m4v|\.torrent|\.ttf|\.woff|\.svg))
RewriteRule ^(index\.html|index\.php)?(.*) https://service.prerender.io/%{REQUEST_SCHEME}://%{HTTP_HOST}/$2 [P,END,L]
@tyluudinh
tyluudinh / apache2.conf
Created October 19, 2021 15:08
Apache2 + prerender.io
LoadModule headers_module /usr/lib/apache2/modules/mod_headers.so
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so
LoadModule ssl_module /usr/lib/apache2/modules/mod_ssl.so
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.4/ for detailed information about
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific
@tyluudinh
tyluudinh / git-revert.md
Last active June 9, 2021 04:03
Git revert commit and push to remote
  1. git log to check commit [ID]
  2. git reset --hard [commit ID]
  3. git commit -m "Commit message"
  4. git push -f origin [remote branch]
@tyluudinh
tyluudinh / reactjs-interview-tips.md
Created July 6, 2020 07:02 — forked from paulnguyen-mn/reactjs-interview-tips.md
Bí kíp cho buổi phỏng vấn ReactJS thành công 🎉

Bí kíp cho buổi phỏng vấn ReactJS thành công 🎉

From unplash.com

AGENGA:

  1. Một vài lưu ý chung
  2. Ôn tập kiến thức JS/ReactJS
  3. Cày thuật toán, giải thuật
  4. Tìm hiểu về công ty mà mình xin ứng tuyển
@tyluudinh
tyluudinh / ffmpeg_tuts.md
Created January 1, 2020 10:11 — forked from tingplenting/ffmpeg_tuts.md
ffmpeg cli for youtube

Extract audio from a YouTube video file

ffmpeg -i INPUT.mp4 -ab 256k OUTPUT.mp3

Cut 3s length

ffmpeg -y -ss 00:00:03 -i INPUT.mp4 -codec copy OUTPUT.mp4
@tyluudinh
tyluudinh / normalizeVietNamText.js
Created August 5, 2019 08:17
Chuyển các kí tự đặc biệt về dạng biến thể của nó: đ -> d, ê -> e ....
return str
.normalize('NFD')
.replace(/[\u0300-\u036f]/g, '')
.replace(/đ/g, 'd')
.replace(/Đ/g, 'D');
@tyluudinh
tyluudinh / media-query.css
Created June 5, 2019 04:45 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@tyluudinh
tyluudinh / upload_image_aws_s3.sh
Created May 23, 2019 09:43
Upload Image to AWS S3
#!/bin/bash
# Define Color text
NONE='\033[00m'
RED='\033[01;31m'
GREEN='\033[01;32m'
YELLOW='\033[01;33m'
PURPLE='\033[01;35m'
CYAN='\033[01;36m'
WHITE='\033[01;37m'
BOLD='\033[1m'