-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
149 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
dist/ | ||
*.tar.gz | ||
*.zip | ||
src/modified.json | ||
|
||
# dependencies | ||
node_modules/ | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
tags: | ||
- security | ||
- opsec | ||
--- | ||
|
||
# The Basics | ||
|
||
List all your keys. | ||
|
||
```sh | ||
gpg -K | ||
gpg -K --keyid-format=long # Long version shows the key id | ||
``` | ||
|
||
Create a new key. | ||
|
||
```sh | ||
gpg --full-generate-key | ||
``` | ||
|
||
# Isolation | ||
|
||
Gpg has a global configuration directory where all the keys go by default which can | ||
make it hard to manage subkeys. | ||
|
||
```sh | ||
mkdir /tmp/gpg | ||
sudo mount -t ramfs -o size=2M ramfs /tmp/gpg | ||
sudo chown "$USER:$USER" /tmp/gpg | ||
gpg --homedir /tmp/gpg --import /path/to/other/keys | ||
gpg --homedir /tmp/gpg --list-secret-keys | ||
``` | ||
|
||
It is best practice to keep a root signing key in an air-gaped environment and to use it | ||
to sign additional encryption keys called subkeys. | ||
|
||
# References | ||
|
||
- [Creating the Perfect GPG KeyPair][1] | ||
- [Subkeys - Debian][2] | ||
- [Creating newer ECC keys for GnuPG][3] | ||
|
||
[1]: https://alexcabal.com/creating-the-perfect-gpg-keypair "Creating the Perfect GPG KeyPair" | ||
[2]: https://wiki.debian.org/Subkeys "Subkeys - Debian" | ||
[3]: https://www.gniibe.org/memo/software/gpg/keygen-25519.html "Creating newer ECC keys for GnuPG" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
tags: | ||
- computer-science | ||
--- | ||
|
||
## The Inverted Index | ||
|
||
See this [natural language processing playlist](https://www.youtube.com/playlist?list=PLLssT5z_DsK8HbD2sPcUIDfQ7zmBarMYv). | ||
|
||
- [TF*IDF](https://en.wikipedia.org/wiki/Tf%E2%80%93idf) | ||
|
||
## Web Crawling | ||
|
||
[[Web Crawler|Web crawlers]] are just programs that download webpages, collect all the | ||
links, and visit all those links to repeat the process. This understates the potential | ||
complexity of the process quite a bit. There are many other additions and features to be | ||
added to a web crawler. | ||
|
||
To figure out what features a [[Web Crawler|web crawler]] must implement you need to | ||
produce a list of characteristics for the system. This can be difficult because many | ||
characteristics interfere with one another leading to trade-offs. | ||
|
||
### Features and Characteristics | ||
|
||
- **Scalability**: the web is absolutely enormous and indexing any sizable portion | ||
requires a scalable system. Having a [[Web Crawler#Distributed Web Crawlers|distributed web crawler]] | ||
- is a good strategy for scalability. | ||
- **Niceness**: It is considered rude for a crawler to send very frequent requests to a | ||
given server, some might even block the crawler's IP if it is running too fast | ||
- **Freshness**: The web is always changing so keeping the index up to date is ideal | ||
- **Robustness**: The web can have _spider traps_ either put there maliciously to stop | ||
web crawlers or created on accident. A crawler should be resilient when finding these traps. | ||
- **Extensibility**: The web is always changing and a web crawler should be able to adapt easily [1]. | ||
|
||
## Related | ||
|
||
- [[Search Engine]] | ||
|
||
## References | ||
|
||
- [Stanford textbook on Information Retrieval][1] | ||
|
||
[1]: https://nlp.stanford.edu/IR-book/ "Stanford Information Retrieval Book" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[[Open Source|Open source]] maintenance can be difficult. A [common half-joke](https://xkcd.com/2347/) in the tech industry is that everyone | ||
eventually relies a little open source project that has one single | ||
person who has been working without pay since 1990 to maintain their small hobby | ||
project. This dynamic between people who use software and people who build it | ||
poses many issues for the software industry but one of them is maintainer | ||
burnout, where the maintainer either cannot or will not continue to work on | ||
their project. This is much more common than you might imagine. Even slightly | ||
popular open source projects will see a huge number of people who have not | ||
integrated into the projects by reading contributor documentation try to open | ||
issues and pull requests demanding that their issue be fixed. This causes some | ||
projects to be abandoned by their owners and never touched again. | ||
|
||
A method of mitigating this that has been gaining popularity recently is | ||
[Open source but closed contribution](https://changelog.com/news/open-source-but-closed-to-contributions-jGyl): | ||
Open source project that you can use freely and fork but the maintainer will not | ||
do the difficult part; reviewing pull requests, getting feature requests, and answering questions. |
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
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