-
Create a new keypair in AWS Console
-
Start a new temporary recovery EC2 instance
-
Stop the lost keypair instance
-
Detach the EBS drive from the lost keypair instance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Make sure to install @vue/cli-service-global first--> | |
<!--Serve this up using `vue serve` at the command line--> | |
<!--Details here: https://cli.vuejs.org/guide/prototyping.html --> | |
<template> | |
<h1>Hello {{name}}</h1> | |
</template> | |
<script> | |
export default { | |
data() { |
I hereby claim:
- I am jensendarren on github.
- I am jensendarren (https://keybase.io/jensendarren) on keybase.
- I have a public key ASCUxtscnfGIjSlMCwIboYoEa2sGTmteWlwklL9PgF72xAo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'observer' | |
class CoffeeShop | |
include Observable | |
attr_reader :customers | |
def initialize(name, capacity) | |
@name = name | |
@capacity = capacity | |
@customers = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Coffee | |
attr_accessor :name | |
attr_accessor :strength | |
def initialize(name, strength) | |
@name = name | |
@strength = strength | |
end | |
def <=>(other_coffee) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def cmd(c) | |
system c | |
end | |
namespace :tddium do | |
desc "post_build_hook" | |
task :post_build_hook do | |
# This build hook should only run after CI builds. | |
# | |
# There are other cases where we'd want to run something after every build, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add this to your ~/.bashrc file then run `source ~/.bashrc` | |
alias gs='git status ' | |
alias ga='git add ' | |
alias gb='git branch ' | |
alias gc='git commit' | |
alias gd='git diff' | |
alias gg='git grep -i' | |
alias go='git checkout ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if test "$#" = 0; then | |
( | |
git diff | |
git ls-files --others --exclude-standard | | |
while read -r i; do git diff -- /dev/null "$i"; done | |
) | |
else | |
git diff "$@" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'uri' | |
require 'open-uri' | |
google_url = "http://google.com/" | |
url = URI.parse(google_url) | |
# Get the hostname | |
puts "The hostname is #{url.hostname}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://www.ruby-doc.org/stdlib-2.1.0/libdoc/logger/rdoc/Logger.html | |
require 'logger' | |
class CoffeeShop | |
attr_reader :logger | |
def initialize(name) | |
@name = name | |
@menu = [] | |
@logger = Logger.new(STDOUT) |