Vim sheet

A Great Vim Cheat Sheet

Note: If you’re decent at vim and want your mind blown, check out Advanced Vim.

I’ve compiled a list of essential vim commands that I use every day. I then give a few instructions on how to making vim as great as it …

plus ...

CPU governor

Certains serveurs ont par défaut un governor ondemand. Ce inline permet d'avoir toute la fréquence du CPU.

echo performance| tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor >/dev/null
plus ...

Qtile config file

from libqtile import bar, hook, layout, widget
from libqtile.command import lazy
from libqtile.config import Click, Drag, Group, Key, Screen

import subprocess
import os

def autostart():
    home = os.path.expanduser('~/.config/qtile/')[home])

def dbus_register():
        x = os.environ['DESKTOP_AUTOSTART_ID …
plus ...

Using GIT

We will not be using ilearn in this class. Instead, we will be using a version control system called git. Version control systems are widely used in industry and in open source projects. They are the tool that lets many programmers work together on large, complex software. I don't know …

plus ...

Using sed


 # double space a file
 sed G

 # double space a file which already has blank lines in it. Output file
 # should contain no more than one blank line between lines of text.
 sed '/^$/d;G'

 # triple space a file
 sed 'G;G'

 # undo double-spacing (assumes even-numbered lines are always …
plus ...

1er Note

J'ai mis en place ce blog afin de conserver mes veilles techno et de partager mes (re)découvertes.

plus ...