Skip to content

Instantly share code, notes, and snippets.


Ryan Hoshor russianryebread

View GitHub Profile
russianryebread /
Created Apr 18, 2020
Quick way to exec into a pod in K8s
# Usage:
# ./ api
CONTAINER_NAME=$(kubectl get pods -n $NAMESPACE | awk -v pattern="$1" '$0 ~ pattern { print $1 }')
kubectl -n $NAMESPACE exec -it $CONTAINER_NAME /bin/bash
russianryebread / index.html
Last active Jul 15, 2020
Random string generator written in Vue.js
View index.html
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Random String Generator</title>
<link rel="stylesheet" href="">
<style type="text/css">
.randomString {
russianryebread / 500.html
Last active Apr 17, 2019
Clean Error Page
View 500.html
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Internal Server Error</title>
<!-- Fonts -->
<link rel="dns-prefetch" href="//">

Ask the Duck

January 6th, 2012

When I was a younger person, my first full-time adult-type job was designing automatic fire sprinkler systems. It was an eye-opening and educational experience, and even though the job basically sucked, I learned all kinds of crazy stuff in that job that I use daily in my present-day non-sucky job, so I can't complain.

One interesting lesson was learned at the hand of the Chief Superintendant, Bob. Bob was in charge of installing the systems that me and my group designed. People who put things in, I quickly learned, have a wealth of knowledge and experience about things that people who only design never gain. As a result, when I first started in that job, I wound up going and bugging Bob for answers on a regular basis.

This annoyed Bob. Bob liked to sit in his office and shoot the shit with his buddies on the topics of fishing or hunting. He did not like fielding questions from young designers. This was especially true becaus

russianryebread / easing.js
Created Jan 24, 2019 — forked from gre/easing.js
Simple Easing Functions in Javascript - see
View easing.js
* Easing Functions - inspired from
* only considering the t value for the range [0, 1] => [0, 1]
EasingFunctions = {
// no easing, no acceleration
linear: function (t) { return t },
// accelerating from zero velocity
easeInQuad: function (t) { return t*t },
// decelerating to zero velocity
russianryebread / conn_count.sql
Created Dec 24, 2018
Get connection counts by user in MySQL
View conn_count.sql
SELECT USER, count(*) AS connection_count
FROM information_schema.processlist
ORDER BY connection_count DESC;
View cursor.png

Keybase proof

I hereby claim:

  • I am russianryebread on github.
  • I am russianryebread ( on keybase.
  • I have a public key ASC4FhSiTzX7QH7KPHz0N9L-qEBfxpQs0X10F4ItgI65MAo

To claim this, I am signing this object:

russianryebread / phptags.php
Created Jul 14, 2017
PHP Whitespace Detector (phptags) [Requires PHP 5]
View phptags.php
#!/usr/bin/php -qCdshort_open_tag=1
* api: cli
* type: application
* title: PHP tag tidier
* description: Rewrites PHP scripts' short/long open tags, close tags, apply whitespace fixes
* version: 1.1
* license: Public Domain
* author: mario <mario#include-once:org>
russianryebread /
Last active Feb 10, 2021
Docker Disk Management

See Used Space

docker system df         # Show docker disk usage, including space reclaimable by pruning

Reclaim Disk Space

docker container prune   # Remove all stopped containers
docker volume prune      # Remove all unused volumes

docker image prune # Remove unused images