mirror of
https://github.com/tiyn/wiki.git
synced 2026-01-10 08:39:45 +01:00
Compare commits
7 Commits
142bb5e8fd
...
0e2428f56e
| Author | SHA1 | Date | |
|---|---|---|---|
| 0e2428f56e | |||
| bb030e70d5 | |||
| 0e0a9527c9 | |||
| f5bae3580d | |||
| 52aa5b2433 | |||
| 52b46126ab | |||
| 4b4a0b3080 |
55
wiki/anki.md
Normal file
55
wiki/anki.md
Normal file
@@ -0,0 +1,55 @@
|
||||
# Anki
|
||||
|
||||
[Anki](https://apps.ankiweb.net/) is a flashcard program for learning.
|
||||
|
||||
## Setup
|
||||
|
||||
Anki can be split up into client and server software.
|
||||
The server software is fully optional, handles the syncing between multiple clients and can also be
|
||||
done via the official Anki website.
|
||||
|
||||
### Setup Client
|
||||
|
||||
The default Anki client is made for computer systems and can be installed from source as described
|
||||
[on GitHub](https://github.com/ankitects/anki).
|
||||
Alternatively some [Linux](/wiki/linux.md) [package managers](/wiki/linux/package_manager.md)
|
||||
package the Anki client in the `anki` package.
|
||||
|
||||
Adding to the Computer clients there are various possible clients for other platforms.
|
||||
|
||||
- [AnkiDroid](https://f-droid.org/de/packages/com.ichi2.anki/) is a client for
|
||||
[Android](/wiki/android.md).
|
||||
|
||||
### Setup Server
|
||||
|
||||
The syncserver can be installed to handle the syncing of data in a self-hosted way.
|
||||
It is described [on GitHub](https://github.com/ankitects/anki/tree/main/docs/syncserver) and can be
|
||||
setup via [Docker](/wiki/docker.md) using
|
||||
[the official manually build container](/wiki/docker/ankitects_-_syncserver.md).
|
||||
|
||||
## Usage
|
||||
|
||||
This section addresses the usage of Anki.
|
||||
|
||||
### Add Backwards Cards
|
||||
|
||||
When setting up a new deck and sometimes when importing a deck only cards for one-way learning are
|
||||
added.
|
||||
This guide assumes the default Anki client is used.
|
||||
To change this select `Browse` and then navigate to the `Note Type` the deck to add backwards cards
|
||||
uses.
|
||||
Right click the note type and select `Cards`.
|
||||
Afterwards the cards for backwards learning can be added by `Options` and `Add Card Types...`.
|
||||
You can confirm the fields have been setup correctly by clicking through the card types and
|
||||
verifying it.
|
||||
|
||||
### Make New Cards Gather Order Random
|
||||
|
||||
This section is based on a
|
||||
[Anki forum entry by NameLessGO](https://forums.ankiweb.net/t/what-are-the-best-settings-here-to-review-cards-in-random-order/27112).
|
||||
By default new cards are gathered in order and then also shown in order.
|
||||
Most of the time it is useful for them to be gathered in order as it conserves the learning units
|
||||
for example.
|
||||
To change this navigate to the `Options` of a deck and then change `New card sort order` to
|
||||
`Random` to randomize them before showing them without gathering them randomly.
|
||||
To change this the `New card gather order` can also be set to `Random notes` or `Random cards`.
|
||||
@@ -78,13 +78,15 @@ If you want to keep your system clean of much data, you can use this kind of
|
||||
setup.
|
||||
There are differences depending on your preffered software interface.
|
||||
|
||||
### Digital Audio Workstations
|
||||
### Digital Audio Workstations and Recording Software
|
||||
|
||||
Digital Audio Workstations - short DAWs - is an application that can be used to record, edit or
|
||||
produce audio files.
|
||||
|
||||
- [LMMS](https://lmms.io/) is a free and cross-platform DAW that is highly compatible with
|
||||
[Linux-based systems](/wiki/linux.md).
|
||||
- [Audacity](https://www.audacityteam.org/) is an open source and cross-platform software to record
|
||||
and edit audio.
|
||||
|
||||
### Software for Music/Podcasts/Audiobooks
|
||||
|
||||
|
||||
58
wiki/docker/ankitects_-_syncserver.md
Normal file
58
wiki/docker/ankitects_-_syncserver.md
Normal file
@@ -0,0 +1,58 @@
|
||||
# ankitects - anki
|
||||
|
||||
This is a [Docker](/wiki/docker.md) container for a [Anki syncserver](/wiki/anki.md#setup-server).
|
||||
The official container is part of the
|
||||
[Anki GitHub repository](https://github.com/ankitects/anki/tree/main/docs/syncserver) and has to be
|
||||
build manually.
|
||||
|
||||
The syncserver can be installed to handle the syncing of data in a self-hosted way.
|
||||
It is described [on GitHub](https://github.com/ankitects/anki/tree/main/docs/syncserver) and can be
|
||||
setup via [Docker](/wiki/docker.md).
|
||||
|
||||
## Set-up
|
||||
|
||||
Due to the syncserver having to be set up manually first navigate to the
|
||||
[Anki syncserver GitHub subpage](/wiki/anki.md#setup-server).
|
||||
From there download the `Dockerfile` and the `entrypoints.sh`.
|
||||
Then create the file `rebuild.sh`.
|
||||
Change the settings according to your needs and run `./rebuild.sh` afterwards.
|
||||
Especially set the `<version>` (for example `24.11`) aswell as the `<user>` and `<password>`.
|
||||
|
||||
## Environment-variables
|
||||
|
||||
Set the following variables with the -e tag.
|
||||
|
||||
| Name | Usage | Default |
|
||||
| -------------- | -------------------------------------------------------- | ------- |
|
||||
| `SYNC_USER1` | contains the `<user>` and `<password>` of the first user | |
|
||||
|
||||
## Ports
|
||||
|
||||
Set the following ports in the `ports:` section.
|
||||
|
||||
| Container Port | Recommended outside port | Protocol | Description |
|
||||
| -------------- | ------------------------ | --------- | ------------- |
|
||||
| `27701` | `8080` | TCP | Default port |
|
||||
|
||||
## Volumes
|
||||
|
||||
Set the following volumes with the -v tag.
|
||||
|
||||
| Outside mount/volume name | Container mount | Description |
|
||||
| ------------------------- | --------------- | ------------- |
|
||||
| `akni-sync-server-data` | `/anki-data` | Data storage |
|
||||
|
||||
## rebuild.sh
|
||||
|
||||
```sh
|
||||
#!/bin/sh
|
||||
docker stop anki-sync-server
|
||||
docker rm anki-sync-server
|
||||
docker build -f ./Dockerfile --no-cache --build-arg ANKI_VERSION=<version> -t anki-sync-server .
|
||||
docker run -d \
|
||||
-e "SYNC_USER1=<user>:<password>" \
|
||||
-p 27701:8080 \
|
||||
--mount type=volume,src=anki-sync-server-data,dst=/anki_data \
|
||||
--name anki-sync-server \
|
||||
anki-sync-server
|
||||
```
|
||||
@@ -1,6 +1,6 @@
|
||||
# Disk Management
|
||||
|
||||
This article focusses on non-LVM and non-MDADM storage.
|
||||
This article focusses on non-LVM and non-MDADM storage including swap.
|
||||
For [LVM](lvm.md), [NTFS](./ntfs.md), [Samba](./samba.md), [MDADM](./mdadm.md) and [LUKS volumes](./dm-crypt.md) there
|
||||
are separate entries.
|
||||
|
||||
@@ -8,6 +8,36 @@ are separate entries.
|
||||
|
||||
This section focusses on various usages for disk management related topics.
|
||||
|
||||
### Increasing Swap File Size
|
||||
|
||||
The size of a swap file can easily be increased using the following steps.
|
||||
Using the following commands currently active swaps can be shown and the usage of them can be
|
||||
checked.
|
||||
|
||||
```sh
|
||||
swapon --show
|
||||
free -h
|
||||
```
|
||||
|
||||
Then the swap file can be changed using the following commands.
|
||||
`<location>` is the location of the swap file (for example `/swap.img`).
|
||||
`<size>` describes the new size of the swap file (for example `16G`)
|
||||
|
||||
|
||||
```sh
|
||||
swapoff <location>
|
||||
fallocate -l <size> <location>
|
||||
chmod 600 <location>
|
||||
mkswap <location>
|
||||
swapon <location>
|
||||
```
|
||||
|
||||
Finally the swap can be checked again to confirm that it is online and has the correct size
|
||||
|
||||
```sh
|
||||
swapon --show
|
||||
```
|
||||
|
||||
### Benchmarking Data Transfer Rates
|
||||
|
||||
Real data transfer rates can easily be checked using the program `pv`.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# GPG
|
||||
|
||||
[GNU Privacy Guard](https://gnupg.org/) - short GnuPG or just GPG - is a free and open-source
|
||||
implementation of OpenPGP from [RFC 4880](https://datatracker.ietf.org/doc/html/rfc4880).
|
||||
implementation of [OpenPGP](/wiki/openpgp.md).
|
||||
It is used to savely encrypt and decrypt messages or files using assymetric encryption.
|
||||
|
||||
## Setup
|
||||
@@ -13,6 +13,15 @@ Sometimes it is also called `gnupg2`.
|
||||
|
||||
This section addresses the usage of the Open GPG.
|
||||
|
||||
### List or Find a Key
|
||||
|
||||
To find a key use the following command.
|
||||
`<query>` is a search string and is optional.
|
||||
|
||||
```sh
|
||||
gpg --list-keys <query>
|
||||
```
|
||||
|
||||
### Generating a Key Pair
|
||||
|
||||
A fast way to generate a key pair is by running the following command.
|
||||
@@ -104,6 +113,27 @@ gpg --recv-key <id>
|
||||
gpg --lsign <id>
|
||||
```
|
||||
|
||||
### Managing Multiple Users and E-Mails of an Existing Secret Key
|
||||
|
||||
A secret key can have more than one e-mail assigned to it.
|
||||
After generating the key however only a single user is added by default.
|
||||
|
||||
To add another one use the following command where `<key-id>` is the id of the key to add the
|
||||
e-mail to.
|
||||
|
||||
```sh
|
||||
gpg --edit-key <key-id>
|
||||
```
|
||||
|
||||
Afterwards a console will open.
|
||||
Using `adduid` another user can be added by following the on-screen instructions.
|
||||
Afterwards `save` will save the progress and exit from the console.
|
||||
|
||||
To delete an existing user and e-mail also open the edit-console.
|
||||
Then list the existing users using the command `uid` and select the user id of the key to delete
|
||||
with `uid <id>` where `<id>` is the key to delete.
|
||||
Then delete it with `deluid` and save with `save`.
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
This section will focus on errors and the fixing of errors of GPG.
|
||||
|
||||
11
wiki/openpgp.md
Normal file
11
wiki/openpgp.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# OpenPGP
|
||||
|
||||
[OpenPGP](https://www.openpgp.org/) is the most widely used encryption standard proposed in from
|
||||
[RFC 4880](https://datatracker.ietf.org/doc/html/rfc4880).
|
||||
|
||||
## Setup
|
||||
|
||||
There are different implementations of OpenPGP.
|
||||
Many [Linux](/wiki/linux.md) [package managers](/wiki/linux/package_manager.md)
|
||||
package the implementation called [Gnu Privacy Guard](/wiki/linux/gpg.md) in the `gnupg` or
|
||||
sometimes also `gpg` or `gpg2` package.
|
||||
@@ -71,6 +71,38 @@ python3.9 --version
|
||||
|
||||
## Usage
|
||||
|
||||
This section addresses the usage of Python.
|
||||
|
||||
### Convert `.ipynb` Files to `.py` Files and Back
|
||||
|
||||
Jupyter notebooks in the `.ipynb` format can easily be converted to normal Python files using
|
||||
[jupytext](https://jupytext.readthedocs.io/en/latest/).
|
||||
This can sometimes be useful when trying to avoid using notebooks.
|
||||
|
||||
The following command will convert the file `<file>.ipynb` to a normal Python file.
|
||||
`<input-file>` describes the path without the file extension.
|
||||
|
||||
```sh
|
||||
jupytext --to py <input-file>.ipynb
|
||||
```
|
||||
|
||||
The same also works the other way around.
|
||||
|
||||
```sh
|
||||
jupytext --to ipynb <input-file>.py
|
||||
```
|
||||
|
||||
Using `md` in the `--to` option the notebook can also be converted to a
|
||||
[markdown](/wiki/markup_language.md) file and back.
|
||||
|
||||
Alternatively [notedown](https://pypi.org/project/notedown/) can also convert to markdown using the
|
||||
following commands.
|
||||
`<output-file>` is the path to the output file again without the extension.
|
||||
|
||||
```sh
|
||||
notedown <input-file>.ipynb --to markdown > <output-file>.md
|
||||
```
|
||||
|
||||
### Create a requirements file
|
||||
|
||||
To automatically create a `requirements.txt` of your current project, navigate
|
||||
@@ -90,10 +122,10 @@ following command.
|
||||
```sh
|
||||
source ./bin/activate
|
||||
```
|
||||
|
||||
|
||||
And it can be disabled by running the following.
|
||||
|
||||
```sh
|
||||
```sh
|
||||
deactivate
|
||||
```
|
||||
|
||||
@@ -154,7 +186,7 @@ This should give back `True`.
|
||||
|
||||
This section addresses the [TensorFlow module](https://www.tensorflow.org/).
|
||||
|
||||
#### Basic Usage of TensorFlow
|
||||
#### Basic Usage of TensorFlow
|
||||
|
||||
The basic usage of TensorFlow is described in
|
||||
[the official guide](https://www.tensorflow.org/guide/keras/serialization_and_saving).
|
||||
|
||||
@@ -7,7 +7,25 @@ numerous e-mail addresses, calendars, todos and contacts.
|
||||
|
||||
The following section addresses different uses and add-ons of Thunderbird.
|
||||
|
||||
### Changing the (dark/light) Theme
|
||||
### Use PGP Key for Encryption, Decryption and Signing
|
||||
|
||||
Thunderbird can use [OpenPGP](/wiki/openpgp.md) to sign, encrypt or decrypt mails.
|
||||
To add this navigate to the `Account Settings` under `Edit` and then select the mail to add the PGP
|
||||
key to and `End-to-End Encryption`.
|
||||
There keys can be added by selecting `Add Keys...` and afterwards the private key can be selected
|
||||
for encryption, decryption and signing.
|
||||
This however is only possible if the key is issued to the same e-mail it should be added to.
|
||||
|
||||
### Enable Spell Checking of a Specific Language
|
||||
|
||||
Spell checking can be changed in the `Settings` from the `Edit` tab.
|
||||
The configuration can be done under `Composition` in the `Spelling` section.
|
||||
There are two checkboxes to specify when the spell checking should occur.
|
||||
And under `Languages:` various and also multiple languages can be checked.
|
||||
To add another language follow the link and navigate to the language to install.
|
||||
Then install only dictionary since the language pack is not needed.
|
||||
|
||||
### Changing the (Dark/Light) Theme
|
||||
|
||||
This section is based on a
|
||||
[superuser comment by blnks](https://superuser.com/questions/1757333/how-can-i-view-thunderbird-in-full-dark-mode).
|
||||
|
||||
@@ -15,6 +15,9 @@ The following is a list of VNC clients.
|
||||
|
||||
- [AVNC](https://github.com/gujjwal00/avnc) is a VNC client for [Android](/wiki/android.md)
|
||||
devices.
|
||||
- bvnc is a VNC client for [Linux](/wiki/linux.md).
|
||||
- Vinagre is a VNC client for [Linux](/wiki/linux.md).
|
||||
- gvnc is a VNC client for [Linux](/wiki/linux.md).
|
||||
|
||||
## VNC Server
|
||||
|
||||
|
||||
Reference in New Issue
Block a user