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
| - job_name: consul_discovery | |
| consul_sd_configs: | |
| - server: 'consul.redacted.com:8500' | |
| services: ["node", "elasticsearch", "rabbitmq"] | |
| relabel_configs: | |
| - source_labels: ['__meta_consul_node'] | |
| regex: '(.*)' | |
| target_label: 'instance' | |
| replacement: '$1' | |
| - source_labels: ['__meta_consul_service'] |
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
| #http://pastebin.com/xGt6vv9R from yardenbar | |
| output { | |
| if [type] == "postfix" { | |
| elasticsearch { | |
| host => [ "ES_HOSTNAME" ] | |
| protocol => "transport" | |
| cluster => "elasticsearch" | |
| index => "postfix-%{+YYYY.MM.dd}" | |
| manage_template => true | |
| template_overwrite => 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
| { | |
| "title": "Syslog", | |
| "services": { | |
| "query": { | |
| "list": { | |
| "0": { | |
| "query": "severity=info", | |
| "alias": "", | |
| "color": "#7EB26D", | |
| "id": 0, |
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 ubuntu | |
| RUN apt-get install -y x11-apps | |
| ENV USER=myuser UID=1000 GID=1000 | |
| RUN addgroup --gid ${GID} ${USER} | |
| RUN adduser --home /home/${USER} --shell /bin/bash --uid ${UID} --gid ${GID} --disabled-password ${USER} | |
| RUN echo "${USER} ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/${USER} | |
| RUN chmod 0440 /etc/sudoers.d/${USER} |
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
| [Unit] | |
| Description=Demonstrate Bash | |
| [Service] | |
| ExecStartPre=/usr/bin/bash -c "/usr/bin/systemctl set-environment MYVAR=$(( 2 + 2 ))" | |
| ExecStart=/usr/bin/echo "2 + 2 = ${MYVAR}" |
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
| Over time, I collected some options to make Firefox really fast. | |
| WARNING! NO WARRANTY, use on your own risk! | |
| If you know what you're doing, go to 'about:config' and edit the listed values accordingly. | |
| Hint: Double-click boolean values to toggle true/false. | |
| ########################### | |
| If mouse-wheel scrolling is slow, try |
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/bash | |
| aptitude -y install expect | |
| // Not required in actual script | |
| MYSQL_ROOT_PASSWORD=abcd1234 | |
| SECURE_MYSQL=$(expect -c " | |
| set timeout 10 |
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
| --- | |
| #### | |
| #### THIS IS OLD AND OUTDATED | |
| #### LIKE, ANSIBLE 1.0 OLD. | |
| #### | |
| #### PROBABLY HIT UP https://docs.ansible.com MY DUDES | |
| #### | |
| #### IF IT BREAKS I'M JUST SOME GUY WITH | |
| #### A DOG, OK, SORRY | |
| #### |
NewerOlder