Skip to content

Instantly share code, notes, and snippets.

@thanhtoan1196
thanhtoan1196 / README.md
Created January 18, 2020 13:28
A node js server which streams mkv to just mkv supported browsers

Setup

Get nodejs from Node

To run

node server.js
@thanhtoan1196
thanhtoan1196 / Caddyfile
Created February 14, 2023 04:58 — forked from ducan-ne/Caddyfile
Dockerfile "zero-config" over 35 frameworks. "One Dockerfile to rule them all"
# The Caddyfile is an easy way to configure your Caddy web server.
#
# Unless the file starts with a global options block, the first
# uncommented line is always the address of your site.
#
# To use your own domain name (with automatic HTTPS), first make
# sure your domain's A/AAAA DNS records are properly pointed to
# this machine's public IP, then replace ":80" below with your
# domain name.
@thanhtoan1196
thanhtoan1196 / my hosts
Created May 14, 2019 07:39 — forked from ptk911/my hosts
Link tải tool getlink Fshare, 4share, tailieu, mp3/tv.zing, nhaccuatui, chiasenhac....
1. GetLink Fs4sTL:
<version1>5.7b</version1>
<download1>https://www.fshare.vn/file/GD7M96QXA84K</download1>
link tải: https://www.upload.ee/files/9691451/GetLink_Fs4sTL_5.7b.exe.html
2. Music-Video Downloader:
<version2>4.2</version2>
<download2>https://www.fshare.vn/file/CDI762GUM96U</download2>
link tải: https://www.upload.ee/files/9652713/Music-Video_Downloader_4.2.exe.html

install nodejs

sudo apt-get update
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev nodejs yarn
Note: I don't know where does this thread belongs. If I'm on the incorrect section, move it to the correct one.
Many people are literally just selling this method and I feel like sharing this out so that you don't have to pay because the seller just don't do a minute of work to get you the drive.
So moving straight towards the method:
Step I:
Go to this link: https://td.fastio.me/ (mirrors to be left at the last)
Step II:
Type your desired drive's name at the first field and your Gmail on the bottom field.
@thanhtoan1196
thanhtoan1196 / Crypt.java
Created June 14, 2021 15:35 — forked from kobeumut/Crypt.java
AES128 CBC mode in Java, Kotlin and Ruby
import javax.crypto.Cipher;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import java.util.Base64;
public class Encryptor {
public static String encrypt(String key, String initVector, String value) {
try {
Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5PADDING");
IvParameterSpec iv = new IvParameterSpec(initVector.getBytes("UTF-8"));
@thanhtoan1196
thanhtoan1196 / .eslintignore
Created September 15, 2020 12:19 — forked from heyitsarpit/.eslintignore
ESlint and Prettier for React apps (Bonus - Next.js and TypeScript)
node_modules
@thanhtoan1196
thanhtoan1196 / login_messenger.py
Created July 15, 2020 06:25 — forked from south1907/login_messenger.py
Login facebook messenger and chat
from selenium.webdriver import Chrome, ChromeOptions
from selenium.webdriver.common.keys import Keys
import time
email = 'youremail@gmail.com'
password = 'yourpassword'
browser = Chrome()
url = 'https://www.facebook.com/'
browser.get(url)
#!usr/bin/python3
# created by namph
# link lyric file: https://zingmp3.vn/api/song/get-lyric?id=ZWAFE897&ctime=1592657865&sig=a79a3de95632ac37d116c01755f216e965784f2cf2ce13dac1ced62a3f08430438691484848bf685903c363a367eec12d1379c13f6d25288488b59b2fac1b091&api_key=38e8643fb0dc04e8d65b99994d3dafff
import json
import time
import os
with open('banhmikhong.json', 'r') as f:
song = json.loads(f.read())
@thanhtoan1196
thanhtoan1196 / process_chat_song.py
Created July 15, 2020 06:24 — forked from south1907/process_chat_song.py
Process main chat song messenger facebook by selenium
#!usr/bin/python3
# created by namph
from selenium.webdriver import Chrome, ChromeOptions
from selenium.webdriver.common.keys import Keys
import time
import json
import os
email = 'email1'