Skip to content

Instantly share code, notes, and snippets.

View ZaydH's full-sized avatar

Zayd Hammoudeh ZaydH

View GitHub Profile
@matteoferla
matteoferla / IP_check.py
Last active August 30, 2021 05:41
A script to be run as, say, an hourly cron job to check wheather the IP address of the machine has changed.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
__description__ = \
"""
A script to check if the IP address is running.
Use it add your settings to the fields below.
Once you are sure you have all the right keys and it works, install an hour cron job thusly:
$sudo nano crontab -e
0 * * * * python3 ~/Coding/IP_check/IP_check.py >> ~/Coding/IP_check/log.txt
@vext01
vext01 / vimura.md
Last active February 14, 2024 03:36
Vim+Zathura+Synctex

Vim+Zathura+Synctex

  • In a script called 'vimura':
#!/bin/sh
echo $1
zathura -s -x "gvim --servername $1 -c \"let g:syncpdf='$1'\" --remote +%{line} %{input}" $*

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: