Skip to content
Snippets Groups Projects
Commit 46ff7a06 authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

Merge branch 'master' of gitlab.com:JiriKalvoda/userconfig

parents a36af6bf e1453167
No related branches found
No related tags found
No related merge requests found
......@@ -155,14 +155,21 @@ l(){
}
######################### vim
if which nvim >/dev/null 2>/dev/null
then
EDITOR=nvim
else
EDITOR=vim
fi
export EDITOR
e(){
nvim "$@"
$EDITOR "$@"
}
vi(){
nvim "$@"
e "$@"
}
view(){
nvim -R "$@"
e -R "$@"
}
######################### ping, traceroute
......
\def\AllMode{}
\def\maph{16}
\def\mapw{14}
......@@ -49,6 +51,7 @@
\def\ModeName{#1}
\bindnullkeys
#2
\AllMode
\if\isFirstPrintKeyboard 1 \PrintKeyboard{\allmod} \fi
\csname onModeEnd\endcsname
}
......
#!/bin/bash
echo -e "$1" | mosquitto_pub -h `cat ~/.secret/mqtt/rpi0-all.addres` -u `cat ~/.secret/mqtt/rpi0-led-daemon.user` -P `cat ~/.secret/mqtt/rpi0-led-daemon.passwd` -t cm -s -r
#echo -e "$1" | mosquitto_pub -h `cat ~/.secret/mqtt/rpi0-all.addres` -u `cat ~/.secret/mqtt/rpi0-led-daemon.user` -P `cat ~/.secret/mqtt/rpi0-led-daemon.passwd` -t cm -s -r
echo -e "$1" | mqtt-pub jug9 jk/cm
adate="date +%Y-%m-%d___%H:%M:%S"
$adate
sudo date -s "$(wget -qSO- --max-redirect=0 kam.mff.cuni.cz 2>&1 | grep Date: | cut -d' ' -f5-8)Z"
sudo hwclock --systohc
$adate
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment