Skip to content

Instantly share code, notes, and snippets.

@ddlingo
ddlingo / ex280.md
Created August 20, 2024 04:39 — forked from usamaahmadkhan/ex280.md
Openshift Commands cheat sheet for Redhat Exam EX280

EX280 Useful Commands


Create Htpasswd IdentityProvider

Create Htpasswd file

sudo dnf install httpd_tools
htpasswd -c -b -B passwdfile usama pass123  # -c Create new file, -B Use bcrypt algo, -b use password from command rather then stdin htpass
htpasswd -b passwdfile ahmad pass321        # Append credentials in the same file, notice absent of -c flag
@ddlingo
ddlingo / openshift-cheatsheet.md
Created March 20, 2024 02:41 — forked from rafaeltuelho/openshift-cheatsheet.md
My Openshift Cheatsheet

My Openshift Cheatsheet

Project Quotes, Limits and Templates

  • Cluster Quota
oc create clusterquota env-qa \
    --project-label-selector environment=qa \
    --hard pods=10,services=5
    
oc create clusterquota user-qa \
@ddlingo
ddlingo / .gitignore
Created February 4, 2024 22:21 — forked from cvarjao/.gitignore
OpenShift oc command line cheatsheet
images/
layers/
node_modules/
.cache/
manifests/
@ddlingo
ddlingo / Instructions.md
Created December 19, 2023 16:55 — forked from ruvnet/*specification.md
Config for a TikTok-like recommender on Azure, detailing services for real-time training, data management, model updates, and CI/CD.

To implement the TikTok-like Recommender System on Azure, follow this structured approach using the services outlined in the updated TOML configuration:

  1. Azure Event Hubs: Set up for real-time data streaming to handle user interaction events.

  2. Azure Machine Learning: Use for training models with real-time data flow and trigger model training events per new data.

  3. Azure Blob Storage: Employ for storing batch data with geo-redundant configuration for resilience.

  4. Azure Kubernetes Service (AKS): Deploy model servers and manage containerized applications, with auto-scaling enabled for efficiency.

@ddlingo
ddlingo / RH342.md
Created February 7, 2023 19:16 — forked from luckylittle/RH342.md
Red Hat RH342 Notes

Red Hat Enterprise Linux Diagnostics & Troubleshooting (RH342)

Last update: Fri Jul 26 08:23:20 UTC 2019 by @luckylittle


1. Troubleshooting principles

2. Generic issues

Install Minikube with virtual-box VM driver

$ brew update && brew install kubectl && brew cask install docker minikube virtualbox
$ brew cask reinstall minikube
$ minikube delete
$ rm -fr ~/.minikube/
@ddlingo
ddlingo / Vagrantfile
Created February 13, 2020 13:35 — forked from hodak/Vagrantfile
Add SSH key as authorized key for Vagrant's root
Vagrant.configure(2) do |config|
...
id_rsa_pub = File.read("#{Dir.home}/.ssh/id_rsa.pub")
config.vm.provision "copy ssh public key", type: "shell",
inline: "echo \"#{id_rsa_pub}\" >> /home/vagrant/.ssh/authorized_keys"
end
@ddlingo
ddlingo / .bash_profile
Created August 29, 2017 14:05 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
# knife cheat
## Search Examples
knife search "name:ip*"
knife search "platform:ubuntu*"
knife search "platform:*" -a macaddress
knife search "platform:ubuntu*" -a uptime
knife search "platform:ubuntu*" -a virtualization.system
knife search "platform:ubuntu*" -a network.default_gateway
@ddlingo
ddlingo / edit_data_bag.rb
Created April 28, 2016 22:24 — forked from aaronjensen/edit_data_bag.rb
Edit encrypted data bags for use with chef-solo and knife-solo
#!/usr/bin/env ruby
Dir.chdir File.join(__FILE__, "../..")
unless ENV['EDITOR']
puts "No EDITOR found. Try:"
puts "export EDITOR=vim"
exit 1
end
unless ARGV.count == 2