Skip to content

Instantly share code, notes, and snippets.

Disable vim automatic visual mode on mouse select
issue: :set mouse-=a
add to ~/.vimrc: set mouse-=a
my ~/.vimrc for preserving global defaults and only changing one option:
source $VIMRUNTIME/defaults.vim
set mouse-=a
@idem2lyon
idem2lyon / outgress.py
Created October 19, 2020 06:34 — forked from haxwithaxe/outgress.py
An adapter from outgress to IFTTT Maker action. Use as a cgi and set the destination to it in outgress.
import cgi
import requests
__author__ = 'haxwithaxe <spam@haxwithaxe.net>'
__license__ = 'GPLv3'
IFTTT_TRIGGER = '<your maker action name here>'
@idem2lyon
idem2lyon / MySqlBackup.bat
Last active March 22, 2016 13:00 — forked from adityasatrio/MySqlBackup.bat
Mysql Backup Script For Windows
@echo off
set dbUser=root
set dbPassword=password
set backupDir="F:\AdityaSatrioNugroho\testbackupDb-bat\"
set mysqldump="C:\xampp\mysql\bin\mysqldump.exe"
set mysqlDataDir="C:\xampp\mysql\data"
set zip="C:\Program Files\7-Zip\7z.exe"
:: get date
@idem2lyon
idem2lyon / OmegaPhilipsHue.py
Created December 2, 2015 13:24 — forked from youngsoul/OmegaPhilipsHue.py
Example python script to turn on Philips Hues lights with Onion Omega board
__author__ = 'youngsoul'
import time
import random
from string import Template
import urllib2
"""
Dev Note:
#
# This is an example VCL file for Varnish.
#
# It does not do anything by default, delegating control to the
# builtin VCL. The builtin VCL is called when there is no explicit
# return statement.
#
# See the VCL chapters in the Users Guide at https://www.varnish-cache.org/docs/
# and http://varnish-cache.org/trac/wiki/VCLExamples for more examples.
#! /bin/sh
(sleep 5;
mount -t nfs 192.168.1.6:/home/media/games -o rw,nolock,tcp,soft,posix,noatime,nodiratime,timeo=600,actimeo=0,nfsvers=3,async,rsize=131072,wsize=131072 /storage/games
mount -t nfs 192.168.1.6:/export/music -o rw,nolock,tcp,soft,posix,noatime,nodiratime,timeo=600,actimeo=0,nfsvers=3,async,rsize=131072,wsize=131072 /storage/music
mount -t nfs 192.168.1.6:/export/videos -o rw,nolock,tcp,soft,posix,noatime,nodiratime,timeo=600,actimeo=0,nfsvers=3,async,rsize=131072,wsize=131072 /storage/videos) &