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 docker.io/library/wordpress:6.0.2 | |
# See https://www.shellhacks.com/create-csr-openssl-without-prompt-non-interactive/ | |
RUN openssl req -new -newkey rsa:2048 -days 1095 -nodes -x509 -keyout /etc/ssl/private/wp.key -out /etc/ssl/private/wp.crt -subj "/C=ID/ST=Surabaya/L=Surabaya/O=ISTTS/OU=IT Department/CN=stts.edu" | |
RUN a2enmod ssl | |
COPY ./wp-ssl.conf /etc/apache2/sites-available/wp-ssl.conf | |
RUN a2ensite wp-ssl | |
EXPOSE 80 | |
EXPOSE 443 |
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
#!/bin/sh | |
record=$(pgrep -a ffmpeg | grep x11grab | awk "{print \$1}" | xargs -I {} echo {}) | |
if [ -z $record ]; | |
then | |
xwininfo | { | |
while IFS=: read -r k v; do | |
case "$k" in | |
*"Absolute upper-left X"*) x=$v;; | |
*"Absolute upper-left Y"*) y=$v;; | |
*"Border width"*) bw=$v ;; |
OlderNewer