Skip to content

Instantly share code, notes, and snippets.

View swt02026's full-sized avatar

LEE KUANTING swt02026

  • Sinopac Securities
View GitHub Profile
@swt02026
swt02026 / wordpress_in_docker.sh
Last active September 19, 2020 06:14
create wordpress in docker network
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 \
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):
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())
}