Skip to content

Instantly share code, notes, and snippets.

@ruvnet
ruvnet / *specification.md
Last active March 17, 2026 17:31
TikTok-like recommender Algorithm

Detailed Technical Algorithm for a TikTok-like Recommendation System


1. Introduction

The objective is to develop a recommendation system that maximizes user engagement by analyzing a multitude of user interaction signals to present the most appealing content. The system optimizes for two key metrics:

  • User Retention: Encouraging users to return to the platform.
  • Time Spent: Increasing the duration users spend on the platform per session.
@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

@usamaahmadkhan
usamaahmadkhan / ex280.md
Last active February 20, 2026 22:27
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
@luckylittle
luckylittle / RH342.md
Last active December 1, 2025 13:46
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

@cvarjao
cvarjao / .gitignore
Last active December 19, 2024 16:28
OpenShift oc command line cheatsheet
images/
layers/
node_modules/
.cache/
manifests/
@rafaeltuelho
rafaeltuelho / openshift-cheatsheet.md
Last active March 18, 2026 15:51
My Openshift Cheatsheet

My Openshift Cheatsheet

List all non openshift/kube namespaces

requires jq CLI

oc get namespaces -o json | jq '[.items[] | select((.metadata.name | startswith("openshift") | not) and (.metadata.name | startswith("kube-") | not) and .metadata.name != "default" and (true)) | .metadata.name ]'

Project Quotes, Limits and Templates

@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
@adamjohnson
adamjohnson / publickey-git-error.markdown
Last active July 7, 2025 18:00
Fix "Permission denied (publickey)" error when pushing with Git

"Help, I keep getting a 'Permission Denied (publickey)' error when I push!"

This means, on your local machine, you haven't made any SSH keys. Not to worry. Here's how to fix:

  1. Open git bash (Use the Windows search. To find it, type "git bash") or the Mac Terminal. Pro Tip: You can use any *nix based command prompt (but not the default Windows Command Prompt!)
  2. Type cd ~/.ssh. This will take you to the root directory for Git (Likely C:\Users\[YOUR-USER-NAME]\.ssh\ on Windows)
  3. Within the .ssh folder, there should be these two files: id_rsa and id_rsa.pub. These are the files that tell your computer how to communicate with GitHub, BitBucket, or any other Git based service. Type ls to see a directory listing. If those two files don't show up, proceed to the next step. NOTE: Your SSH keys must be named id_rsa and id_rsa.pub in order for Git, GitHub, and BitBucket to recognize them by default.
  4. To create the SSH keys, type ssh-keygen -t rsa -C "your_email@example.com". Th