Compare commits
No commits in common. "c07eb0b9f98b507b3394bc2589b67edc0c0868d0" and "58c7334d86caa3bb430fb83d4dc04b9f60b421d5" have entirely different histories.
c07eb0b9f9
...
58c7334d86
25
git.md
25
git.md
@ -1,25 +0,0 @@
|
|||||||
---
|
|
||||||
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
21
go.md
@ -1,21 +0,0 @@
|
|||||||
---
|
|
||||||
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)
|
|
||||||
> }
|
|
||||||
> ```
|
|
||||||
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
|||||||
---
|
|
||||||
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…
x
Reference in New Issue
Block a user