Skip to content

Instantly share code, notes, and snippets.

View normancapule's full-sized avatar

John Norman Capule normancapule

View GitHub Profile
@thebucknerlife
thebucknerlife / authentication_with_bcrypt_in_rails_4.md
Last active July 10, 2024 00:17
Simple Authentication in Rail 4 Using Bcrypt

#Simple Authentication with Bcrypt

This tutorial is for adding authentication to a vanilla Ruby on Rails app using Bcrypt and has_secure_password.

The steps below are based on Ryan Bates's approach from Railscast #250 Authentication from Scratch (revised).

You can see the final source code here: repo. I began with a stock rails app using rails new gif_vault

##Steps

@paulanthonywilson
paulanthonywilson / funcs.el
Created January 26, 2018 13:59
Added to a Spacemacs layer to `mix format` on save
;;; Mostly nicked from https://github.com/jasongoodwin/emacs-elixir-formatter/blob/master/elixir-formatter.el
;;; I followed instructions from http://www.cultivatehq.com/posts/spacemacs-shared-config/ to add a Spacemacs
;;; layer, and just added this as a funcs.el file.
;;;
;;; (I still don't know what I'm doing.)
(defcustom
mix-location
"~/.asdf/shims/mix"
@BigNerd
BigNerd / k9s.txt
Last active July 25, 2024 13:48
K9s column descriptions
View: Pods(<namespace>)[number of pods listed]
NAME pod name
READY number of pods in ready state / number of pods to be in ready state
RESTARTS number of times the pod has been restarted so far
STATUS state of the pod life cycle, such as Running | ... | Completed
CPU current CPU usage, unit is milli-vCPU
MEM current main memory usage, unit is MiB
%CPU/R current CPU usage as a percentage of what has been requested by the pod
%MEM/R current main memory usage as a percentage of what has been requested by the pod