Skip to content

Instantly share code, notes, and snippets.

@leonardofed
leonardofed / README.md
Last active April 24, 2024 01:47
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.


#!/bin/bash
vrake=`readlink $0`
expected_dir="${vrake%/*}/www/"
expected_dir_length=${#expected_dir}
dirname=${PWD##*/}
if [[ "${PWD:0:$expected_dir_length}" != "$expected_dir" ]]; then
echo "You need to be inside a directory in $expected_dir"
echo "You are in $PWD"

Vagrant SSH Helper

This is specifically for https://github.com/madebymade/vagrant-dev

Usage

Inside your vagrant-dev directory you might run your tests normally like this:

vagrant ssh -c "cd /var/www/my-project && rake"
@xpepper
xpepper / download_rubytapas.rb
Last active January 1, 2019 01:37
This script will download all the published rubytapas. Each episode, with all the attachments, will be downloaded in a folder named after the episode number. For example, in the folder "64" will be downloaded: 064-yield-or-enumerate.html, 064-yield-or-enumerate.mp4, 064-yield-or-enumerate.rb You need to set your credentials (username and passwor…
# username = "my_username"
# pwd = "my_password"
# target_path = "my_target_path"
# saving auth cookie
system %Q{wget --save-cookies /tmp/cookie.txt --keep-session-cookies --post-data "username=#{username}&password=#{pwd}" -O - \
https://rubytapas.dpdcart.com/subscriber/login?__dpd_cart=d08391e6-5fe2-4400-8b27-2dc17b413027}
(25..600).each do |i|