mirror of
https://github.com/tiyn/wiki.git
synced 2025-04-02 15:07:45 +02:00
Compare commits
5 Commits
0a1a76d11e
...
f6ebee5187
Author | SHA1 | Date | |
---|---|---|---|
|
f6ebee5187 | ||
|
c4c592b84c | ||
|
95bb67a9e7 | ||
|
afdcc39018 | ||
|
a395b7a03e |
12
wiki/linux/power_management.md
Normal file
12
wiki/linux/power_management.md
Normal 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
9
wiki/linux/scc.md
Normal 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).
|
@ -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)
|
||||
|
@ -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).
|
@ -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).
|
@ -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).
|
@ -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
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user