Set root password:
UPDATE mysql.user SET Password=PASSWORD('mysecret') WHERE User='root';
FLUSH PRIVILEGES;
Remove anonymous users:
{ | |
"translate_tabs_to_spaces": true, | |
"indent_to_bracket": true, | |
"highlight_line": true, | |
"trim_trailing_white_space_on_save": true, | |
"ensure_newline_at_eof_on_save": true | |
} |
package main | |
import ( | |
"log" | |
"net/http" | |
"os" | |
) | |
func main() { | |
cwd, _ := os.Getwd() |
Set root password:
UPDATE mysql.user SET Password=PASSWORD('mysecret') WHERE User='root';
FLUSH PRIVILEGES;
Remove anonymous users:
I hereby claim:
To claim this, I am signing this object:
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Inc//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>PayloadVersion</key> | |
<integer>1</integer> | |
<key>PayloadUUID</key> | |
<string>{{ UUID_1 }}</string> | |
<key>PayloadType</key> | |
<string>Configuration</string> |
cat > /etc/yum.repos.d/pcextreme.repo << EOL
[pcextreme-main]
name=PCextreme Software Repository for CentOS 6 - \$basearch
baseurl=http://packages.pcextreme.nl/centos/6/main/\$basearch/
enabled=1
gpgcheck=1
gpgkey=https://www.pcextreme.nl/pcextreme_signing.key
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-pcextreme
package main | |
import ( | |
"bufio" | |
"fmt" | |
"net" | |
"regexp" | |
"runtime" | |
"strconv" | |
"strings" |
<?php | |
return array( | |
'includes' => array('_aws'), | |
'services' => array( | |
'default_settings' => array( | |
'params' => array( | |
'key' => 'KEY', | |
'secret' => 'SECRET', | |
'base_url' => 'http://o.auroraobjects.eu' |
#!/usr/bin/env bash | |
set -e | |
if [[ -e /home/core/volumes/consul/raft/peers.json ]] && [[ $(cat /home/core/volumes/consul/raft/peers.json | jq '. | length') -ge 3 ]]; then | |
echo "CONSUL_BOOTSTRAP=\"\"" > /tmp/consul-env | |
exit | |
fi | |
if [[ MACHINES=$(etcdctl ls /consul.io/machines | grep -v ${HOSTNAME}) ]] && [[ ${#MACHINES[@]} -ge 1 ]]; then | |
for MACHINE in "$MACHINES"; do |
; Start a new pool named 'www'. | |
; the variable $pool can we used in any directive and will be replaced by the | |
; pool name ('www' here) | |
[www] | |
; Per pool prefix | |
; It only applies on the following directives: | |
; - 'slowlog' | |
; - 'listen' (unixsocket) | |
; - 'chroot' |