apt-get install neovim
mkdir -p ~/.config/nvim
ln -s ~/.vimrc ~/.config/nvim/init.vim
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
import configparser | |
from dataclasses import dataclass | |
@dataclass | |
class Sections: | |
raw_sections: dict | |
def __post_init__(self): | |
for section_key, section_value in self.raw_sections.items(): |
[Unit] | |
Description=Add iptables rules | |
After=systemd-sysctl.service | |
Before=sysinit.target | |
[Service] | |
Type=oneshot | |
ExecStart=/sbin/iptables-restore /etc/iptables.up.rules | |
ExecReload=/sbin/iptables-restore /etc/iptables.up.rules | |
RemainAfterExit=yes |
apt-get install neovim
mkdir -p ~/.config/nvim
ln -s ~/.vimrc ~/.config/nvim/init.vim
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
import timeit | |
timeit.timeit(fct, number=10) |
def test1(): | |
g = 'gg' | |
s = 'toto' + g | |
def test2(): | |
g = 'gg' | |
s = 'toto%s' % g | |
def test3(): | |
g = 'gg' |
dt = datetime.datetime.strptime("2015-01-08T01:50:11.719671Z", "%Y-%m-%dT%H:%M:%S.%fZ") | |
dt.timestamp() |
cat /etc/squid/squid.conf | egrep -v "(^#.*|^$)"