Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Dou Yutao yutaodou

🎯
Focusing
View GitHub Profile
@jsbonso
jsbonso / AWS Certified Solutions Architect-Professional SAP-C01 New Feb 2019 Version Exam Notes.txt
Last active Dec 24, 2021
AWS Certified Solutions Architect-Professional SAP-C01 New Feb 2019 Version Exam Notes
View AWS Certified Solutions Architect-Professional SAP-C01 New Feb 2019 Version Exam Notes.txt
# AWS Certified Solutions Architect-Professional SAP-C01 New Feb 2019 Version Exam
## Final Tips:
1. Don't cram! If you are not ready to take the SAP-C01 exam, then just re-schedule it to a later date. Haste makes waste!
2. Read the question first and then look at the options. Most of the time, you will notice that there are two seemingly similar options which only differs in one or several keywords. This will help you eliminate the wrong options much easier.
3. Take the free AWS Exam Readiness course in https://aws.training and other free courses/videos there.
## Exam Notes:
- The new exam has *75* questions that you have to finish within *3* hours (180 minutes) with a minimum passing score of 750 out of 1000. The official AWS exam page says the exam is 170 minutes, but that is actually incorrect. I took the exam and it is 180 minutes and not 170 minutes.
@vasanthk
vasanthk / System Design.md
Last active Jan 20, 2022
System Design Cheatsheet
View System Design.md

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@midwire
midwire / reset_routing_table.sh
Last active Aug 31, 2021
[Reset routing table on OSX] #osx #devops #networking
View reset_routing_table.sh
#!/usr/bin/env bash
# Reset routing table on OSX
# display current routing table
echo "********** BEFORE ****************************************"
netstat -r
echo "**********************************************************"
for i in {0..4}; do
sudo route -n flush # several times
@Kartones
Kartones / postgres-cheatsheet.md
Last active Jan 19, 2022
PostgreSQL command line cheatsheet
View postgres-cheatsheet.md

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)
View Pretty Map Literals for Java 8
public class EZMap<T> {
public static void main(String[] args) {
Map<String,Object> m = hashMap(
bob -> 5,
TheGimp -> 8,
incredibleKoolAid -> "James Taylor",
heyArnold -> new Date()
);
System.out.println(m);
}
@datagrok
datagrok / git-serve.md
Last active Nov 16, 2021
How to easily launch a temporary one-off git server from any local repository, to enable a peer-to-peer git workflow.
View git-serve.md
@kevinSuttle
kevinSuttle / meta-tags.md
Last active Dec 9, 2021 — forked from lancejpollard/meta-tags.md
List of Usable HTML Meta and Link Tags
View git-cheat-sheet.md

Setup

git clone <repo>

clone the repository specified by ; this is similar to "checkout" in some other version control systems such as Subversion and CVS

Add colors to your ~/.gitconfig file: