Skip to content

Instantly share code, notes, and snippets.

View tonythell's full-sized avatar

Tony Thell tonythell

View GitHub Profile
This is a walk through of this github repo: https://github.com/kurokobo/awx-on-k3s
Thanks to @kurokobo for making these steps. Check his github on the link above.
Links:
Rancher: https://rancher.com/docs/k3s/latest/en/
### My setup:
* VM - 6 vCPU / 10GB mem
* Rocky Linux 8

Conventional Commit Messages

See how a minor change to your commit message style can make a difference. Examples

Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs

Commit Formats

Default

@tonythell
tonythell / gist:24525f4ed2d324f8274885f4cdcfa4bc
Last active October 2, 2021 11:19
resize a virtualdisk disk (vdi)

The steps below only work on dynamic disks with no snapshots.

Make a backup of the of the existing vdi file.

Increase the size of the vdi file.

VBoxManage modifyhd <absolute path to file> --resize <size in MB>

Boot the VM and expand the disk via the OS (eg. partx/parted or windows disk mgmt).

Recently, Everyday Hero has been doing a heap of work around the automation and provisioning of resources with AWS cloud services. This entails working frequently with the AWS API.

A useful filter we have been using in Ansible is taking output from a shell action and turning it into something we can consume via variables.

An example playbook is below:

@tonythell
tonythell / remove_replace_with_vim.md
Last active January 30, 2017 02:00
remove and/or replace content with a line using vim.

Remove content from within a line.

Remove the UUID number, which will be replaced later.

KERNEL=="dm-*", ENV{DM_UUID}=="part1-mpath-360060e80100a82f00530203700000055", SYMLINK+="asm-data001", OWNER="grid", GROUP="oinstall", MODE="0660"
KERNEL=="dm-*", ENV{DM_UUID}=="part1-mpath-360060e80100a82f00530203700000056", SYMLINK+="asm-data002", OWNER="grid", GROUP="oinstall", MODE="0660"
KERNEL=="dm-*", ENV{DM_UUID}=="part1-mpath-360060e80100a82f00530203700000057", SYMLINK+="asm-data003", OWNER="grid", GROUP="oinstall", MODE="0660"
KERNEL=="dm-*", ENV{DM_UUID}=="part1-mpath-360060e80100a82f00530203700000058", SYMLINK+="asm-data004", OWNER="grid", GROUP="oinstall", MODE="0660"
@tonythell
tonythell / gist:825b77d8b3b128c80649d37a8f7f1e7c
Created September 6, 2016 16:15
vivaldi web browser yum/dnf repo config file
[vivaldi]
name=Vivaldi
baseurl=http://repo.vivaldi.com/stable/rpm/x86_64
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-vivaldi
exclude=vivaldi-snapshot
@tonythell
tonythell / gist:f76e2a658e16a30bf5aaee435e355ca1
Last active September 6, 2016 16:10
create a rss feed from any youtube channel
A quick summary of steps to creating a rss feed from any youtube channel.
Steps taken from this article:
http://www.makeuseof.com/tag/how-to-create-an-rss-feed-for-any-youtube-channel/
1. View the source code of a particular youtube channel home page.
2. Search for "data-channel-external-id" parameter and copy its value.
3. Append the value to the following URL and submit it to your reader:
https://www.youtube.com/feeds/videos.xml?channel_id=
@tonythell
tonythell / gist:f51be2948804d4137138
Created February 15, 2016 14:58 — forked from tankchintan/gist:1335220
Procedure for installing and setting Sun JDK Java on Default Amazon Linux AMI
# First verify the version of Java being used is not SunJSK.
java -version
# Get the latest Sun Java SDK from Oracle http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u1-download-513651.html
wget http://download.oracle.com/otn-pub/java/jdk/7u1-b08/jdk-7u1-linux-i586.rpm
# Rename the file downloaded, just to be nice
mv jdk-7u1-linux-i586.rpm\?e\=1320265424\&h\=916f87354faed15fe652d9f76d64c844 jdk-7u1-linux-i586.rpm
# Install Java
@tonythell
tonythell / 0_reuse_code.js
Created November 5, 2015 12:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@tonythell
tonythell / oracle_java_linux_alternatives
Last active October 23, 2015 10:46
oracle_java_linux_alternatives
# Untar Oracle tarball under /opt/jdk.
# Create 'latest' symlink to the latest (or whatever) JDK version directory.
$ sudo alternatives --install /usr/bin/java java /opt/jdk/latest/bin/java 2
$ sudo alternatives --set java /opt/jdk/latest/bin/java
$ sudo alternatives --install /usr/bin/javac javac /opt/jdk/latest/bin/javac 2
$ sudo alternatives --set javac /opt/jdk/latest/bin/javac
$ sudo alternatives --install /usr/bin/javaws javaws /opt/jdk/latest/bin/javaws 2