Skip to content

Instantly share code, notes, and snippets.

@rwmotivation
rwmotivation / sources.list
Created September 4, 2020 19:01 — forked from ishad0w/sources.list
Ubuntu 20.04 LTS (Focal Fossa) -- Full sources.list
deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
@rwmotivation
rwmotivation / README.md
Created March 30, 2020 20:35 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@rwmotivation
rwmotivation / delete_iam_user.sh
Created March 20, 2020 18:39 — forked from kgmoore431/delete_iam_user.sh
Delete an IAM user with AWS CLI
#!/bin/bash
user_name="$1"
echo "Removing user: ${user_name}"
echo "Deleting Access Keys:"
keys=("$(aws iam list-access-keys --user-name "${user_name}" | jq -r '.AccessKeyMetadata[] | .AccessKeyId')")
if [[ "${#keys}" -gt "0" ]]; then
# shellcheck disable=SC2068
@rwmotivation
rwmotivation / Bigger Better Favorite Number
Last active February 6, 2020 18:25 — forked from Dgrady3/Bigger Better Favorite Number
Basic ruby program that asks for your favorite number, then tells you a better number
puts "What is your favorite number?"
num = gets.chomp
better = num.to_i + 1
puts "Your favorite number is okay, here is a bigger, better favorite number: " + better.to_s + '.'
@rwmotivation
rwmotivation / gist:e23978073ccd8014239f61f1248d77f6
Created February 6, 2020 16:49 — forked from jefferyhsu/gist:3094428
Intro to Ruby: Quiz 1 (from Jeff Hsu)
# Write a program that tells you the following:
#
# Hours in a year. How many hours are in a year? - 6pts
# Minutes in a decade. How many minutes are in a decade? - 6pts
# Your age in seconds. How many seconds old are you? - 6pts
#
# Define at least the following methods to accomplish these tasks:
#
# seconds_in_minutes(1) #=> 60 - 3pts
# minutes_in_hours(1) #=> 60 - 3pts