1
0
mirror of https://github.com/tiyn/wiki.git synced 2025-04-02 15:07:45 +02:00

Compare commits

...

5 Commits

Author SHA1 Message Date
tiyn
f6ebee5187 Merge branch 'master' of github.com:tiyn/wiki 2025-03-26 05:26:14 +01:00
tiyn
c4c592b84c programming language: renamed folder 2025-03-26 05:26:06 +01:00
tiyn
95bb67a9e7 programming languages: cleaned up 2025-03-26 05:25:26 +01:00
tiyn
afdcc39018 linux: added scc 2025-03-26 05:24:57 +01:00
tiyn
a395b7a03e linux: added power management 2025-03-26 05:24:45 +01:00
8 changed files with 26 additions and 34 deletions

View File

@ -0,0 +1,12 @@
# Power Management
This entry addresses the saving of battery usage aswell as battery care.
Other than this it also focusses on the general management and usage of power.
## Programs
The following list consists of programs that work as battery saver or battery care.
- [TLP](/wiki/linux/tlp.md) is a utility for saving battery.
- [PowerTOP](https://github.com/fenrus75/powertop) is a program to display and analyze power usage.
- [tp-battery-mode](https://github.com/zhanghai/tp-battery-mode) is a tool to set battery thresholds.

9
wiki/linux/scc.md Normal file
View File

@ -0,0 +1,9 @@
# SCC
[SCC](https://github.com/boyter/scc) is a tool to count lines of code accurately.
## Installation
On some [Linux](/wiki/linux.md) distributions SCC is available in a package called `scc`.
If this is not the case it can easily be installed from the
[Github Repository](https://github.com/boyter/scc).

View File

@ -1,7 +1,7 @@
# TLP
[TLP](https://linrunner.de/tlp) is a linux command line utility for saving
laptop battery power aswell as optimizing battery life.
[TLP](https://linrunner.de/tlp) is a linux command line utility for
[saving laptop battery power](/wiki/linux/battery_saving.md) aswell as optimizing battery life.
## Setup
@ -11,7 +11,7 @@ Afterwards the TLP
started and enabled.
In contrast to other
[SystemD services](/wiki/linux/systemd.md#startstopenabledisable-a-service) this
can be done by running `sudo tlp start`.
can be done by running `sudo tlp start` and running `systemctl enable tlp.service`.
## Configure Battery Charge Thresholds
@ -30,3 +30,5 @@ Search and edit the following lines according to your needs.
START_CHARGE_THRESH_BAT0=75
STOP_CHARGE_THRESH_BAT0=80
```
This can also be achieved by using [tp-battery-mode](/wiki/linux/battery_saving.md#programs)

View File

@ -8,7 +8,3 @@ To get c working you basically just need to install a compiler.
To get a compiler for c there are a few options.
- [GNU compiler collection](https://gcc.gnu.org)
### Vim
The steps to make Vim a c IDE are described in [the vim section of this wiki](../linux/vim/c-language.md).

View File

@ -15,7 +15,3 @@ export PATH="${GOBIN}:${PATH}"
```
You can move the `GOPATH` where you want.
## Vim
The steps to make Vim a Go IDE are described in [the vim section of this wiki](../linux/vim/golang.md).

View File

@ -8,8 +8,3 @@ language.
You can install nim using choosenim with
`curl https://nim-lang.org/choosenim/init.sh -sSf | sh`.
If you're on an arch-based machine you can also run `yay -S choosenim` (install `yay` if necessary).
## Vim
The steps to make Vim a nim IDE are described in
[the vim section of this wiki](../linux/vim/nim.md).

View File

@ -66,20 +66,6 @@ Afterwards you can check if the Pyhton version is installed using the following
python3.9 --version
```
### Vim
The steps to make Vim a python IDE are described in
[the vim section of this wiki](../linux/vim/python.md).
Additionally make sure to add
```vimscript
let g:python_host_prog = "/usr/bin/python2"
let g:python3_host_prog = "/usr/bin/python3"
```
to your `init.vim` to avoid usage of `pyenv`s version of python in autocompletion.
## Usage
### Create a requirements file

View File

@ -7,10 +7,6 @@ VHDL is a hardware description language.
To simulate a VHDL project get [GHDL](https://github.com/ghdl/ghdl).
After simulating you can view the simulation with [GTKWave](https://github.com/gtkwave/gtkwave).
### Vim
The steps to make Vim VHDL-ready are described in [the vim section of this wiki](../linux/vim/vhdl.md).
## Usage
### Makefile for basic project