Compare commits
3 Commits
58c7334d86
...
c07eb0b9f9
Author | SHA1 | Date | |
---|---|---|---|
c07eb0b9f9 | |||
43ae2da10a | |||
5deb7a4d0e |
25
git.md
Executable file
25
git.md
Executable 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
21
go.md
Executable 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
19
threat_modelling.md
Executable 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
|
Loading…
Reference in New Issue
Block a user