Icons are known to be supported in editors StackEdit & Marxico.
Show an icon .
# syno-vpn-keepalive.sh | |
# --- | |
# Script to keep VPN alive on Synology DSM. | |
# Checks if IP is pingable and if not: | |
# disconnect VPN, reconnect VPN & add routes | |
# --- | |
# Modify vars: | |
# - CHECKIP: IP to check to be pingable before reconnecting VPN | |
# - NAME (Synology VPN name), | |
# - ID (Synology VPN ID), SSH to NAS & run this to find ID |
#/bin/bash | |
# Installs google-drive-ocamlfuse on Debian (Stretch & Buster) | |
# | |
# Run this oneliner to make it happen | |
# bash <(curl -sSL https://gist.github.com/hannesbe/6c110e9de6644f07a48eecfdbe6b728d/raw) | |
sudo apt install -y software-properties-common dirmngr | |
sudo cat > /etc/apt/sources.list.d/alessandro-strada-ubuntu-ppa-bionic.list << EOF | |
deb http://ppa.launchpad.net/alessandro-strada/ppa/ubuntu xenial main |
function hass-upgrade { | |
echo "Stopping homeassistant" | |
sudo systemctl stop home-assistant@homeassistant.service | |
sudo -u homeassistant -H /bin/bash <<EOF | |
echo "Activating virtualenv" | |
source /srv/homeassistant/bin/activate |
/** | |
Typora user config | |
C:\Users\hava\AppData\Roaming\Typora\conf\conf.user.json */ | |
{ | |
"width" : null, // Integer - Window's width in pixels. Default is null (last window width) | |
"height" : null, // Integer - Window's height in pixels. Default is null (last window height) | |
"directWrite": true, // Boolean - Enables DirectWrite font rendering system on Windows. Default is true. | |
"defaultFontFamily": { | |
"standard": null, //String - Defaults to "Times New Roman". | |
"serif": null, // String - Defaults to "Times New Roman". |
#!/bin/sh | |
# | |
# Shell script to install & configure fail2ban with firewalld actions | |
# Just one command to install & configure in a few seconds. | |
# CentOS/EL7+ required. | |
# | |
# Run this command to execute the script in one go | |
# curl -sSL https://gist.github.com/hannesbe/893476e23e637701fd88/raw/fail2ban-csf-install.sh | bash -s | |
# | |
set -e |
#!/bin/bash | |
# | |
# <c> Copyright 2012 SolidShellSecurity, LLC | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
# GNU General Public License for more details. | |
# |
// Original author fwed (contact@fwed.fr) | |
// Modified from | |
// https://gist.github.com/anonymous/2cca33d376f7f924fdaa67891ad098cc | |
// https://medium.com/@fw3d/auto-archive-emails-in-gmail-after-2-days-1ebf0e076b1c | |
function gmailAutoArchive() { | |
gmailAutoarchiveHelper(30); | |
} |
{ | |
"menulanguage": "English", | |
"name": "zzz55PUS7600/12", | |
"country": "Belgium", | |
"serialnumber_encrypted": "LLfxI4h9qmyYM2Uh0nzY18h34e4/dM07hCxEtOYsefg=\n", | |
"softwareversion_encrypted": "L+93GMOWgt1v09BCJBNdI9gZ0qeZOirAHsayGqoB7/E=\n", | |
"model_encrypted": "dFuoHbIninStfq5kYJS5ocpqNgrlAtvi4voV8778kiw=\n", | |
"deviceid_encrypted": "HgAs8D/KmX5LNOMnVUEiUTVqFQWdLCkhvEnrhb8yZ1k=\n", | |
"nettvversion": "5.2.0", | |
"epgsource": "ip", |
# Edit this file to introduce tasks to be run by cron. | |
# | |
# Each task to run has to be defined through a single line | |
# indicating with different fields when the task will be run | |
# and what command to run for the task | |
# | |
# To define the time you can provide concrete values for | |
# minute (m), hour (h), day of month (dom), month (mon), | |
# and day of week (dow) or use '*' in these fields (for 'any').# | |
# Notice that tasks will be started based on the cron's system |