Skip to content

Instantly share code, notes, and snippets.

View molayodecker's full-sized avatar
💭
Wasn’t born with a broadsword in hand but was forced to learn how to wield one

Arthur Decker molayodecker

💭
Wasn’t born with a broadsword in hand but was forced to learn how to wield one
View GitHub Profile
---
- name: Install Argo CD
hosts: localhost
become: yes
tasks:
- name: Create argocd namespace
shell: kubectl create namespace argocd
ignore_errors: yes
- name: Add Argo CD repository
@molayodecker
molayodecker / postgres-cheatsheet.md
Created March 16, 2021 03:48 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@molayodecker
molayodecker / README.md
Created October 4, 2018 18:56 — 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.


var milk = "Organic";
var last;
function outer(){
var withinOuter = "Health"
function inner(){
console.log(milk);
console.log(withinOuter);
}
last = inner;
}
var name = "Arthur";
if(name === "Arthur"){
var fullName = "Arthur Decker";
}
console.log(name);
console.log(fullName);
var name = "Arthur";
function(){
if(name === "Arthur"){
var fullName = "Arthur Decker";
}
}
console.log(fullName);
var a = 10;
function outer(){
var b = a;
console.log(b);
function inner(){
var b = 20;
var c = b;
console.log(c);
}
inner();
var name = "Elon";
function musk(name){
console.log("Hello " + name);
}
musk("Elon Musk"); // Hello Elon Musk
var icecream = "cookie & cream";
function ice(){
var icecream = "cookie & cream";
console.log(icecream);
}
console.log(icecream); // cookie & cream
function ice(){
var icecream = "cookie & cream";
console.log(icecream);
}
console.log(icecream);