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
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
package main | |
import ( | |
"bufio" | |
"flag" | |
"fmt" | |
"log" | |
"math/rand" | |
"os" | |
"strings" |
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
# top-most EditorConfig file | |
root = true | |
[*] | |
indent_style = space | |
indent_size = 4 | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |
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
; 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' |
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
#!/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 |
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
package main | |
import ( | |
"bufio" | |
"fmt" | |
"net" | |
"regexp" | |
"runtime" | |
"strconv" | |
"strings" |
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
<?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> |
I hereby claim:
- I am vdvm on github.
- I am vdvm (https://keybase.io/vdvm) on keybase.
- I have a public key whose fingerprint is 6B4F 9ACB A175 F1F3 12CF 9817 D4F5 10F1 A8EA B676
To claim this, I am signing this object:
Set root password:
UPDATE mysql.user SET Password=PASSWORD('mysecret') WHERE User='root';
FLUSH PRIVILEGES;
Remove anonymous users:
anwsers.txt:
mysecret
mysecret
n
NewerOlder