If root had a name, what would it be like?
$ getent passwd root | awk -F : '{print $5}'
Charlie rootAnd would you call it to his face
If root had a name, what would it be like?
$ getent passwd root | awk -F : '{print $5}'
Charlie rootAnd would you call it to his face
| # Create @moodle bare git repository for local dev and testing | |
| # | |
| # Andres Hernandez - tonejito | |
| # Released under the BSD license | |
| # | |
| # We only care about releases between past and current LTS | |
| # 3.1 LTS to 3.5 LTS at the time of writing | |
| # https://docs.moodle.org/dev/Releases#Version_support | |
| # | |
| # After running this script we push this repo to our GitLab instance |
| #!/bin/bash | |
| # fix-locale - Configure system messages in en_US and use other locale for everything else | |
| # Andres Hernandez - tonejito | |
| # https://gist.github.com/tonejito/f4bcde9e6bfb7e8c9df2612d588d41ea | |
| # https://www.debian.org/doc/manuals/debian-reference/ch08.en.html#_the_locale | |
| # https://www.debian.org/doc/manuals/debian-reference/ch09.en.html#_customized_display_of_time_and_date | |
| # https://help.ubuntu.com/community/Locale | |
| # https://stackoverflow.com/a/16553351 |
| #!/bin/bash | |
| # = ^ . ^ = | |
| # https://gist.github.com/tonejito/e86774218d796d0960b999ec367d17c4 | |
| # check-dns-name - Check name on internal and external DNS servers | |
| # Andres Hernandez - tonejito | |
| INT_NS=192.168.1.1 | |
| EXT_NS=203.0.113.254 |
| #!%SystemRoot%\System32\WindowsPowerShell\v1.0\PowerShell.exe | |
| # | |
| # Check-VMware-vCenter-Services | |
| # Display status of VMware vCenter Server services and dependencies | |
| # Andres Hernandez - April 2018 | |
| # | |
| # https://docs.microsoft.com/en-us/powershell/scripting/powershell-scripting?view=powershell-3.0 | |
| # http://adamringenberg.com/powershell2/ | |
| # https://allunifiedcom.files.wordpress.com/2010/07/powershell_v2_owners_manual.pdf |
| #!/usr/bin/env perl | |
| # = ^ . ^ = | |
| # greppy - Save grep matched and not matched lines to STDOUT and STDERR | |
| # Andres Hernandez - tonejito | |
| # | |
| # https://gist.github.com/tonejito/c9c0bffd75d8c81483f9107c609439e1 | |
| # | |
| # This script is released under the BSD 3-clause license | |
| # https://opensource.org/licenses/BSD-3-Clause |
| #!/bin/bash | |
| # = ^ . ^ = | |
| printf '\t%s\n' "Insert coin" > /etc/issue.net && \ | |
| sed -i 's/^#\(Banner\)/\1/g' /etc/ssh/sshd_config && \ | |
| service ssh reload && \ | |
| systemctl --full status ssh | |
| cat << EOF |
| #!/bin/bash -v | |
| # = ^ . ^ = | |
| # https://gist.github.com/tonejito/696cdc3939728e54fa051196a4de845c | |
| HOME_PREFIX=/home | |
| HTTPD_VHOST_CONF=/etc/httpd/conf.d/zz-99-vhost.conf | |
| HTTPD_USER=apache | |
| PUBLIC_HTML_LIST=public_html.log | |
| PUBLIC_HTML_SELINUX_TYPE=httpd_user_content_t |
| #!/bin/bash | |
| # = ^ . ^ = | |
| # 0755 root:root /etc/cron.hourly/rdate.cron | |
| # | |
| # Query periodically the first server listed on ntp.conf and update the time accordingly | |
| ( grep -m 1 '^server' /etc/ntp.conf | awk '{print $2}' | xargs -r rdate -n ) &>/dev/null |