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
| --- | |
| - name: enable automatic updates | |
| hosts: all | |
| tasks: | |
| - name: rhel updates | |
| ansible.builtin.package: | |
| name: dnf-automatic | |
| state: present | |
| become: true | |
| when: ansible_facts['os_family'] == "RedHat" |
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
| BIND=5:rush | |
| OPTIONS=autodig | |
| OPTIONS=autopickup | |
| OPTIONS=autoquiver | |
| OPTIONS=checkpoint | |
| OPTIONS=nocmdassist | |
| OPTIONS=color | |
| OPTIONS=confirm | |
| OPTIONS=DECgraphics | |
| OPTIONS=symset:DECgraphics |
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
| # podman version 3.3.1 | |
| version: "3" | |
| networks: | |
| root_traefik-net: | |
| name: root_traefik-net | |
| external: false | |
| services: |
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
| var CollapsibleTree = function(elt) { | |
| var m = [20, 120, 20, 120], | |
| w = 1280 - m[1] - m[3], | |
| h = 580 - m[0] - m[2], | |
| i = 0, | |
| root, | |
| root2; | |
| var tree = d3.layout.tree() |
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 | |
| # blinkstick.sh - sets a Datto BlinkSticks color based on the zpool status | |
| # wmassingham@gmail.com 2018-09-16 | |
| # | |
| # Datto has something special about their BlinkSticks. They are both inverted | |
| # (0x00=white, 0xff=black) and in BGR order. We wrap the blinkstick | |
| # command-line tool to make it easier to set the correct color. | |
| set_color() { | |
| r=$3 |
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
| /* Set all fonts to sans-serif */ | |
| *, textarea, div, div div { font-family: sans-serif !important; } | |
| /* Make client-responded tickets more visible */ | |
| .boldMultilineClickable { background-color: #93bdf1; } | |
| /* Set text fields in configs to monospace */ | |
| .mm_textArea *, | |
| .mm_textField * { | |
| font-family: monospace !important; |
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 | |
| export PATH="$HOME/bin:/usr/share/bin:/usr/share/sbin:/usr/bin:/usr/sbin:/bin:/sbin:$PATH" | |
| [[ -f /etc/bashrc ]] && . /etc/bashrc | |
| [[ -f /etc/bash_completion ]] && . /etc/bash_completion | |
| colordiff() { | |
| sed -r -e 's/^-/\x1b[31m-/' \ | |
| -e 's/^\+/\x1b[32m+/' \ |
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
| <?php | |
| /* | |
| * SQL QUERY TEMPLATES | |
| * Note: if there is ANY user input in a query string, | |
| * ALWAYS use a parameterized query. | |
| */ | |
| // Non-parameterized query, no results: | |
| $result = mysqli_query($dbc, '') or die('Failed to execute query:' . mysqli_error($dbc)); |