- Download Fedora 25 iso, create a usb bootable media
- Use
diskutil list
to figure out which drive is the usb, on macbook pro with 1 hardrive, the usb is/dev/disk2
- Umount the disk using
diskutil unmountDisk /dev/disk2
or use Mac's Disk Utility (just umount, don't eject, umount removes it from directory structure and eject disconncet it altogether) - Use
dd
(a low levelcp
) to write iso content into the usb drive,sudo dd if=~/Downloads/Fedora-Live-Desktop-x86_64-20-1.iso of=/dev/rdisk2 bs=8m
, this will take a bit of time, make sure you wait until it's done, additionally compare the size or checksum to make sure all has been copied (not that necessary since if it weren't copied, it'll err at boot time) - Use Disk Utility to shrink Mac's harddrive to create partition for the subsequent fedora installation
- Boot to recovery mode (cmd+r) and disable SIP (termina
This file contains 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
# TODO: write the help | |
# TODO: support SSL self-signed certs | |
# TODO: need to validate JSON, and/or add a new param set that accepts hashtable and | |
# convert internally. | |
# TODO: support RAW mode | |
# TODO: refactor to use EC batch (concatenated events in one HTTP request) instead of | |
# PowerShell pipelines which will do a request per object (event payload) on the pipeline | |
# TODO: think about load balancing per Geoffrey Martins. | |
This file contains 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
# /etc/systemd/system/haproxy.service.d/haproxy_cluster_vars.conf | |
[Service] | |
Environment="PIDFILE=/run/haproxy.pid" | |
Environment="HAPROXY_SOCKET=/var/run/haproxy/socket" | |
# Get rid of the socket on start/stop | |
ExecStartPre=/bin/bash -c "rm -f $HAPROXY_SOCKET" | |
ExecStopPost=/bin/bash -c "rm -f $HAPROXY_SOCKET" | |
# XXX: Do seamless reloads |
This file contains 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
curl -G -H "Accept: application/json" http://localhost:8080/pdb/query/v4/resources --data-urlencode 'query=["=","exported", true]' |
This file contains 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
watch -n 1 'echo "show table http" | socat unix:/var/run/haproxy.sock -' | |
watch -n 1 'echo "show table public" | socat unix:/var/run/haproxy.sock -' |
This file contains 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
--- | |
# ^^^ YAML documents must begin with the document separator "---" | |
# | |
#### Example docblock, I like to put a descriptive comment at the top of my | |
#### playbooks. | |
# | |
# Overview: Playbook to bootstrap a new host for configuration management. | |
# Applies to: production | |
# Description: | |
# Ensures that a host is configured for management with Ansible. |
This file contains 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
--- | |
# ^^^ YAML documents must begin with the document separator "---" | |
# | |
#### Example docblock, I like to put a descriptive comment at the top of my | |
#### playbooks. | |
# | |
# Overview: Playbook to bootstrap a new host for configuration management. | |
# Applies to: production | |
# Description: | |
# Ensures that a host is configured for management with Ansible. |
This file contains 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 - http://davidssysadminnotes.blogspot.com/2016/01/installing-apache-kafka-and-zookeeper.html | |
[smack1]# vi /etc/systemd/system/kafka-zookeeper.service | |
[Unit] | |
Description=Apache Zookeeper server (Kafka) | |
Documentation=http://zookeeper.apache.org | |
Requires=network.target remote-fs.target | |
After=network.target remote-fs.target | |
[Service] | |
Type=simple |
This file contains 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 - http://davidssysadminnotes.blogspot.com/2016/01/installing-apache-kafka-and-zookeeper.html | |
[smack1]# vi /etc/systemd/system/kafka-zookeeper.service | |
[Unit] | |
Description=Apache Zookeeper server (Kafka) | |
Documentation=http://zookeeper.apache.org | |
Requires=network.target remote-fs.target | |
After=network.target remote-fs.target | |
[Service] | |
Type=simple |
This file contains 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
# Copy big files, ignoring timestamps. | |
# -a, --archive | |
# * Equivalent to -rlptgoD (no -H,-A,-X) | |
# * Does not preserve hardlinks | |
# -r, --recursive | |
# -l, --links. Copy symlinks as symlinks. | |
# -p, --perms. Preserve permissions. | |
# -t, --times. Preserve modification times. | |
# -g, --group. Preserve group. | |
# -o, --owner. Preserve owner (super-user only). |
OlderNewer