This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker network create wp | |
docker run -itd --name db1 --network wp \ | |
-v /docker_data/db1:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=Redhat1! \ | |
-e TZ="Asia/Taipei" mariadb --character-set-server=utf8mb4 \ | |
--collation-server=utf8mb4_unicode_ci | |
docker run -it --name wordpress -p 80:80 --network wp \ | |
-v /docker_data/wordpress:/var/www/html \ | |
-e WORDPRESS_DB_NAME=wp \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from playwright import sync_playwright | |
import io | |
import time | |
with sync_playwright() as p: | |
rand_file = io.FileIO("accupass", 'w') | |
writer = io.BufferedWriter(rand_file, buffer_size=100000000) | |
for browser_type in [p.chromium]: | |
browser = browser_type.launch() | |
page = browser.newPage() | |
for i in range(180): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.camel.builder.RouteBuilder | |
import org.apache.camel.impl.DefaultCamelContext | |
import org.apache.camel.main.Main | |
import java.text.SimpleDateFormat | |
import java.util.* | |
fun getCurrentDate():String{ | |
val sdf = SimpleDateFormat("yyyyMMdd") | |
return sdf.format(Date()) | |
} |
OlderNewer