Skip to content

Instantly share code, notes, and snippets.

View kellyfire611's full-sized avatar
🙃
On the new way, fly to NenTang zone !!!

Dương Nguyễn Phú Cường kellyfire611

🙃
On the new way, fly to NenTang zone !!!
View GitHub Profile
@tduyng
tduyng / scrapy-tuto.md
Last active February 20, 2024 07:06
Tutorial scrapy in vietnamese

Scrapy

This is source code crawl data vietnamnet paper using Scrapy

Github

  • Hello

1. Đặt vấn đề

1.1. Web crawler

@tannerlinsley
tannerlinsley / README.md
Last active April 12, 2024 17:04
Replacing Create React App with the Next.js CLI

Replacing Create React App with the Next.js CLI

How dare you make a jab at Create React App!?

Firstly, Create React App is good. But it's a very rigid CLI, primarily designed for projects that require very little to no configuration. This makes it great for beginners and simple projects but unfortunately, this means that it's pretty non-extensible. Despite the involvement from big names and a ton of great devs, it has left me wanting a much better developer experience with a lot more polish when it comes to hot reloading, babel configuration, webpack configuration, etc. It's definitely simple and good, but not amazing.

Now, compare that experience to Next.js which for starters has a much larger team behind it provided by a world-class company (Vercel) who are all financially dedicated to making it the best DX you could imagine to build any React application. Next.js is the 💣-diggity. It has amazing docs, great support, can grow with your requirements into SSR or static site generation, etc.

So why

@jtlimson
jtlimson / Interopfix.md
Last active August 9, 2024 13:05
Microsoft Office Interop Related Issues.

Microsoft Office Interop Related Issues during IIS deployment

80070005 Access denied

This error basically means that the web site is definitely finding the COM objects related to the MS Office application you want to execute, but the Application Pool in charge of the running process doesn’t have permissions to use them. In order to fix that, follow these steps:

  • Open IIS Manager > Application Pools and identify the identity assigned to the Application Pool assigned to the web application (it’s in the Advanced Properties tab). Keep a note of that user (or system) account, because you’ll need it later on. If you fond the ApplicationPoolIdentity there, you need to do some little extra-work: as you might know, that user it’s a dynamically created, unprivileged account: to change its permissions in the following steps, you’ll need to look-up for the IIS AppPool[AppPoolName] role. If that’s too much for you to handle, you can change the identity to a “static” account… but you shouldn’t do that, as the Ap
@sanrandry
sanrandry / nginx_sites-available_folder_not_found.md
Last active February 2, 2025 15:14
nginx sites-available folder not found

nginx sites-available folder not found

create the sites-available and sites-enabled folder

sudo mkdir /etc/nginx/sites-available
sudo mkdir /etc/nginx/sites-enabled

edit the http block inside /etc/nginx/nginx.conf and add this line

include /etc/nginx/sites-enabled/*;
@housamz
housamz / index.pug
Last active October 23, 2024 09:22
Raffle Draw Lucky wheel
.controls-container
h3#headline Insert Names Here
small#subheader (separated by commas or new lines)
span#counter
textarea#names(rows="10", cols="40").
Ben, David, Declan, Housam, Jeongtae, Kevin, Ming, Robin
small#counter
button#spin Spin The Wheel
button#remove Remove Winner
.container
@negue
negue / example-emoji-list.ts
Last active April 25, 2020 19:08
Beware: Using this file with typescript will result in a `ERROR in Maximum call stack size exceeded` Error :D
export const emojiExampleList = ':100:\n' +
':1234:\n' +
':+1:\n' +
':-1:\n' +
':1st_place_medal:\n' +
':2nd_place_medal:\n' +
':3rd_place_medal:\n' +
':8ball:\n' +
':a:\n' +
':ab:\n' +
@suicao
suicao / clean_test.py
Created May 2, 2019 13:02
Clean file test cho contest thêm dấu tiếng Việt
from tqdm import tqdm
input_path = "./test_word_per_line.txt"
output_path = "./test_cleaned.txt"
curr_id = ""
curr_sent = []
with open(output_path,mode="wt", encoding="utf-8") as f:
lines = open(input_path).readlines()
for idx, line in tqdm(enumerate(lines)):
if idx == 0:
@Aarbel
Aarbel / embedded-file-viewer.md
Last active September 30, 2024 13:50 — forked from tzmartin/embedded-file-viewer.md
Free desktop and mobile files viewers and editors: Google Drive, OneDrive, Zoho public viewers and editors.

Desktop / Web

Office Web Apps Viewer

('.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx')

Format :

    http://view.officeapps.live.com/op/view.aspx?src=[ONLY_OFFICE_FILE_URL_ENCODED]
    
 
@yidas
yidas / laravel-server-config.md
Last active September 21, 2023 03:49
Laravel Server Configuration for Nginx & Apache (Subdirectory)

Laravel Server Configuration for Nginx & Apache (Subdirectory)

It's easy to configurate a Laravel server site with directory protection:

Laravel Web Server Configuration

Sub Directory Site Application

Laravel smartly detects the current base url so that you don't need to set the base url for subdirectoy:

@yidas
yidas / nginx-config-guide.md
Last active January 12, 2022 07:10
[Nginx] Nginx Configuration Guide & Samples (Subdirectory with PHP)

Nginx Configuration Guide & Samples

Subdirectory using Alias

root /var/www/html;

location /site2/ {
    
    alias /srv/www/project2/;