Skip to content

Instantly share code, notes, and snippets.

View thuanpham582002's full-sized avatar
🍀
cosmic signal

thuanpham582002

🍀
cosmic signal
View GitHub Profile
@thuanpham582002
thuanpham582002 / .conf
Created July 8, 2024 23:04
Nginx File Hosting
server {
listen 80;
listen [::]:80;
server_name localhost;
#access_log /var/log/nginx/host.access.log main;
#location / {
# root /usr/share/nginx/html;
# index index.html index.htm;
@thuanpham582002
thuanpham582002 / SDPFactory.kts
Last active January 27, 2024 09:32
SDP, SSP Gradle Script, Built on sdp of intuit
abstract class SDPFactory : DefaultTask() {
companion object {
private const val MIN_DPI = 300
private const val MAX_DPI = 1080
private const val DPI_STEP = 30
}
@Input
var positiveMax = 600
@thuanpham582002
thuanpham582002 / google_translate.py
Created November 10, 2022 10:22
google_translate
# coding:utf-8
# author LuShan
# version : 1.1.9
import json
# import urllib3
import logging
import random
import re
import requests
from urllib.parse import quote