Skip to content

Instantly share code, notes, and snippets.

View loweryaustin's full-sized avatar

Austin Lowery loweryaustin

View GitHub Profile
@loweryaustin
loweryaustin / cPanel BASH One Liners
Created April 12, 2020 18:57
cPanel BASH One Liners
## The following one line commands are **NOT** created by or suported by cPanel.
## If you are unsure about how to use these commands, please reach out to a systems administrator to learn how to use them.
## Check the A records of every domain on a cPanel server. This one liner will query both Cloudlfare and Google DNS resolvers and provide the A record for each domain.
for i in $(cut -d : -f 1 /etc/trueuserdomains ) ; do echo ${i}; printf "8.8.8.8 -> A -> "; paste <(dig @8.8.8.8 ${i} A +short) ;echo;printf "1.1.1.1 -> A -> ";paste <(dig @1.1.1.1 ${i} A +short); echo '==========';echo ; done
## I'll try add other one liners later as time allows.

Keybase proof

I hereby claim:

  • I am loweryaustin on github.
  • I am loweryaustin (https://keybase.io/loweryaustin) on keybase.
  • I have a public key ASC_1S0PtqoSA7lpGkYoEUlBxeUmqSKuY2NZ6aFl7p6FCgo

To claim this, I am signing this object:

@loweryaustin
loweryaustin / hugoHook
Created April 11, 2021 22:04
A POSIX shell script designed to hook onto the hugo binary to enable immediate editing of newly created markdown files / posts.
#!/bin/sh
### The MIT License (MIT)
### Copyright © 2021 Austin Lowery
###
### Permission is hereby granted, free of charge, to any person obtaining a copy
### of this software and associated documentation files (the “Software”), to deal
### in the Software without restriction, including without limitation the rights
### to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
### copies of the Software, and to permit persons to whom the Software is furnished
@loweryaustin
loweryaustin / qutebrowser-live-reload.sh
Last active February 8, 2023 09:13
Qutebrowser Live Reload UserScript - Enables automatic web page reloads in Qutebrowser for faster, easier, local web development
#!/bin/bash
######
#
# The MIT License (MIT)
#
# Copyright (c) 2021 Austin Lowery
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in