Taken from [here][1] but in a more comprehensive format
Switch to root:
su root
# more concise and refreshes screen | |
watch "aws ec2 describe-instances --filter 'Name=tag-key,Values=Name' 'Name=tag-value,Values=$INSTANCE_NAME' 'Name=instance-state-name,Values=pending,running,shutting-down,stopping,stopped' | jq '.Reservations[].Instances[] | {state: .State.Name, instanceId: .InstanceId}'" |
# start minikube, use embedded docker | |
minikube start | |
eval $(minikube docker-env) | |
# k8s dashboard | |
minikube dashboard |
#!/bin/sh | |
HOST=$1 | |
echo "HOST=$HOST" | |
openssl s_client -connect $HOST:443 -servername $HOST -showcerts </dev/null 2>/dev/null | openssl x509 -text -noout | |
😬 |
server { | |
listen 80 default_server; | |
server_name _; | |
root /home/server/htdocs/projects/default; | |
location ~ ^/\. { | |
deny all; | |
} |
On CentOS
error_log
/etc/php-fpm.conf
, disable line error_log = /var/log/php-fpm/error.log
/etc/php-fpm.d/www.conf
, disable line starting with php_admin_value[error_log] = ...
systemctl restart php-fpm
<!doctype html> | |
<html> | |
<head> | |
<title>Canvas Painter Demo</title> | |
<style> | |
#container {position: relative;} | |
#imageView {border: 1px solid #000;} | |
</style> | |
</head> | |
<body> |
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
var val int | |
for i := 1; i <= 50; i++ { | |
val = i << 1 |