Compare commits

...

3 Commits

Author SHA1 Message Date
c07eb0b9f9 create notes on thread modelling 2021-07-27 21:09:23 +01:00
43ae2da10a add notes on go 2021-07-27 21:09:06 +01:00
5deb7a4d0e create notes file on git 2021-07-27 21:07:51 +01:00
3 changed files with 65 additions and 0 deletions

25
git.md Executable file
View File

@ -0,0 +1,25 @@
---
author: Alvie Rahman
date: \today
title: Git notes
---
# Fix detached head
From https://stackoverflow.com/a/10229202 :
## To Delete Changes
```
git checkout main
```
## To Keep Changes
```
git branch temp
git checkout main
git pull . temp
git branch -D temp
```

21
go.md Executable file
View File

@ -0,0 +1,21 @@
---
author: Alvie Rahman
date: \today
title: Go (golang)
---
# Getting Up to Speed With Go
Probably the most useful resoure I found was the [Tour of Go](https://tour.golang.org/).
It's easy to understand and teaches you all you need to know.
# Making a web api
> We need to memorize the `Handler` interface.
> ```go
> type Handler interface {
> ServerHTTP(ResponseWriter, *Request)
> }
> ```

19
threat_modelling.md Executable file
View File

@ -0,0 +1,19 @@
---
author: Alvie Rahman
date: \today
title: Threat Modelling and Designing for Security Notes
---
# Using STRIDE to Find Threats
> STRIDE is a mnemonic for things that go wrong in security
- **Spoofing** is pretending to be something or someone you're not
- **Tampering** is modifying something you're not supposed to
- **Repudiation** is means claiming you didn't do something, regardless of whether you did or not
- **Information Disclosure** is about exposing information to people who are not authorized to see
it
- **Denial of Service** are attacks designed to prevent a system from providing service, including
by crashing it, making it unusably slow, or filling all its storage
- **Elevation of Privilege** is when a program or user is technically able to do things that they're
not supposed to do