cs50 security
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- we can connect to intenet using DSL modem, which is connectd through ISP (internet service provider). | |
- we can use home Router to brodcast wi-fi signal around the area. | |
- every computer on the network (ex: internet) must has an IP address | |
- ISP can provide a unique IP address using DHCP server (Dynamic Host Configuration Protocol) | |
- inside home area (within wi-fi network) your router could assign IP addresses to multiple devices (labtops, phones, ...) | |
- DNS servers (Domain Name System) maps an IP address of a website (which is running on some machine on the internet) | |
into human-readable names (like facebook.com, ....) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Audio: | |
- MIDI (Musical Instrumental Digital Interface): compuer-generated audio standard | |
- audio file formats: | |
- .WAV (uncomressed) | |
- .mp3/.MPEG (compressed) | |
- .AAC | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://stackoverflow.com/questions/45400361/why-is-gitignore-not-ignoring-my-files | |
git rm -r --cached . | |
git add . | |
git commit -m "Untrack files in .gitignore" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. compromised database | |
- strongly encrypt passwords with salt and hash (bcrypt) | |
- strongly encrypt password reset tokens (sha256) | |
2. brute-force attacks | |
- use bcrypt (to make login request slow) | |
- implement rate limiting (express-rate-limit) | |
- implement maximum login attempts | |
3. cross-site scripting (xss) attacks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
** Maurach's SQL Server 2012 for Developers | |
- Queries: | |
(select, distinct, where) | |
(AND, OR, NOT) | |
(like, IsNull) | |
(orderby) | |
- Joins: | |
(inner, outer, cross, self) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://stackoverflow.com/questions/31960433/adding-asp-net-mvc5-identity-authentication-to-an-existing-project/31963828 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://developercommunity.visualstudio.com/t/error-encountered-while-pushing-to-the-remote-repo-3/308898 | |
Solution for me: | |
Close VS | |
Delete (or rename) folder "C:\Program Files (x86)\Microsoft Visual Studio\2017{Community|Professional|Enterprise}\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git" | |
Open VS and try to push a commit to a remote repo! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/microsoft/TypeScript/issues/35606 | |
run this command on powershell | |
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git init | |
git add README.md | |
git commit -m "first commit" | |
git branch -M main | |
git remote add origin {github repo}.git | |
git push -u origin main |