Skip to content

Instantly share code, notes, and snippets.

View ctsstc's full-sized avatar
🔥
me = new Person(new Year(2019+5));

Cody Swartz ctsstc

🔥
me = new Person(new Year(2019+5));
View GitHub Profile
@ctsstc
ctsstc / kube_commands.rb
Last active October 17, 2019 22:25 — forked from levibrown/kube_commands.rb
A CLI for Common G5 Kube Commands
#!/usr/bin/env ruby
# Setup:
# 1) `gem install highline`
# 2) save this file to a local folder
# 3) rename the file to remove extension `mv kube_commands.rb kube_command`
# 4) change permissions `chmod 755 kube_commands`
# 5) link to your /usr/local/bin `ln -s $PWD/kube_command /usr/local/bin/`
# 6) in a new shell you should now be able to run `kube_commands`
# 7) add new commands and add to this gist
const express = require('express');
const router = express.Router();
const Product = require('../models/Product');
router.get('/', function (req, res, next) {
let perPage = 3;
let page = parseInt(req.query.page) || 0;
let pages = 0;
let nextUrl = '';