Skip to content

Instantly share code, notes, and snippets.

@kimschles
kimschles / deployment.yml
Created December 20, 2018 17:27
deployment example for beginners_guide_to_k8s
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: dvlp-app
spec:
selector:
matchLabels:
app: dvlp-app
template:
metadata:
@kimschles
kimschles / namespace.yml
Created December 19, 2018 17:52
namespace example for beginners_guide_to_k8s
apiVersion: v1
kind: Namespace
metadata:
name: dvlp-k8s
/*
LilyPad_touch_LED
When readPin (A4) is connected to ground, LED connected to ledPin (9) will light up.
*/
int ledPin9 = 9;
int ledPin10 = 10;
int ledPin11 = 11;
int ledPin1 = 1;
@kimschles
kimschles / LilyPad_light_sensor_blink_LED.ino
Last active November 23, 2018 20:09
When the sensor is covered, an LED will blink
@kimschles
kimschles / LilyPad_blink_alternating.ino
Last active November 23, 2018 19:46
Two alternating lights on LilyPad
@kimschles
kimschles / manual_approval_workflow_yml
Created October 17, 2018 03:35
Example of circleci workflow with manual approval
version: 2
jobs:
build_and_test:
docker:
- image: cypress/base:8
steps:
- checkout
- restore_cache:
keys:
- v1-npm-deps-{{ checksum "package.json" }}
@kimschles
kimschles / hamburger_helper.md
Created August 30, 2018 03:57
Hamburger Helper

Before you start:

  • Change the password in connection.js to an empty string ""

Running the app on your computer

  1. Open up mysql and create the burgers_db database
  • mysql -u root -p
  • CREATE DATABASE burgers_db;
  1. Exit out of mysql
  • hit control + d once or twice
@kimschles
kimschles / ro-shell-commands.sh
Last active June 20, 2018 22:29
RO Onboarding Shell Commands Part 1
# Window 1
echo 'this is file one' > one.txt
echo 'this is file two' >> two.txt
cat one.txt two.txt
cat > three.txt
'this is file three'
^d
echo 'i am adding this to file three' >> three.txt
echo 'here is an additional line' >> three.txt
echo 'and another one...' >> three.txt
@kimschles
kimschles / installing-node-with-nvm.md
Created June 4, 2018 19:32 — forked from d2s/installing-node-with-nvm.md
Installing Node.js for Linux & macOS with nvm
@kimschles
kimschles / Simplest-Express-Server.md
Last active June 15, 2018 22:19
Simplest Express Server
  1. Make a directory
  2. Change into the directory
  3. Create a file called index.js
  4. Install the Express package with npm install express
  5. Copy and paste the Express Server Code
  6. Run your server with node index.js
  7. Look at what's being served up at localhost:3000
  8. Make a change to serve JSON instead of text