mirror of
https://github.com/tiyn/wiki.git
synced 2025-04-10 02:27:45 +02:00
Compare commits
No commits in common. "f6ebee518777418e6e71b6302c9040fe30036c8f" and "0a1a76d11e09166ecb86b9193a14c044b5fcdd1a" have entirely different histories.
f6ebee5187
...
0a1a76d11e
@ -1,12 +0,0 @@
|
|||||||
# 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.
|
|
@ -1,9 +0,0 @@
|
|||||||
# 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
|
||||||
|
|
||||||
[TLP](https://linrunner.de/tlp) is a linux command line utility for
|
[TLP](https://linrunner.de/tlp) is a linux command line utility for saving
|
||||||
[saving laptop battery power](/wiki/linux/battery_saving.md) aswell as optimizing battery life.
|
laptop battery power aswell as optimizing battery life.
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
@ -11,7 +11,7 @@ Afterwards the TLP
|
|||||||
started and enabled.
|
started and enabled.
|
||||||
In contrast to other
|
In contrast to other
|
||||||
[SystemD services](/wiki/linux/systemd.md#startstopenabledisable-a-service) this
|
[SystemD services](/wiki/linux/systemd.md#startstopenabledisable-a-service) this
|
||||||
can be done by running `sudo tlp start` and running `systemctl enable tlp.service`.
|
can be done by running `sudo tlp start`.
|
||||||
|
|
||||||
## Configure Battery Charge Thresholds
|
## Configure Battery Charge Thresholds
|
||||||
|
|
||||||
@ -30,5 +30,3 @@ Search and edit the following lines according to your needs.
|
|||||||
START_CHARGE_THRESH_BAT0=75
|
START_CHARGE_THRESH_BAT0=75
|
||||||
STOP_CHARGE_THRESH_BAT0=80
|
STOP_CHARGE_THRESH_BAT0=80
|
||||||
```
|
```
|
||||||
|
|
||||||
This can also be achieved by using [tp-battery-mode](/wiki/linux/battery_saving.md#programs)
|
|
||||||
|
@ -8,3 +8,7 @@ To get c working you basically just need to install a compiler.
|
|||||||
To get a compiler for c there are a few options.
|
To get a compiler for c there are a few options.
|
||||||
|
|
||||||
- [GNU compiler collection](https://gcc.gnu.org)
|
- [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,3 +15,7 @@ export PATH="${GOBIN}:${PATH}"
|
|||||||
```
|
```
|
||||||
|
|
||||||
You can move the `GOPATH` where you want.
|
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,3 +8,8 @@ language.
|
|||||||
You can install nim using choosenim with
|
You can install nim using choosenim with
|
||||||
`curl https://nim-lang.org/choosenim/init.sh -sSf | sh`.
|
`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).
|
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,6 +66,20 @@ Afterwards you can check if the Pyhton version is installed using the following
|
|||||||
python3.9 --version
|
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
|
## Usage
|
||||||
|
|
||||||
### Create a requirements file
|
### Create a requirements file
|
@ -7,6 +7,10 @@ VHDL is a hardware description language.
|
|||||||
To simulate a VHDL project get [GHDL](https://github.com/ghdl/ghdl).
|
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).
|
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
|
## Usage
|
||||||
|
|
||||||
### Makefile for basic project
|
### Makefile for basic project
|
Loading…
x
Reference in New Issue
Block a user