Skip to content

Instantly share code, notes, and snippets.

@tuxitop
tuxitop / kerio-login.ps1
Created October 22, 2025 12:00
Automate kerio login in windows
## Author: Ali Mousavi
## Last Updated: 2025-10-22
## Description: This script checks the SSID of the Wifi network and
## if it matches, trys to log in with kerio.
## Hint: Further automation can be made using windows task scheduler.
## e.g. run the script on network change.
$Ssid = '' # SSID of the wifi
$KerioURL = '' # https://kerio.example.com
$KerioUser = ''
@tuxitop
tuxitop / Eyeballing-This.md
Created October 18, 2019 08:51 — forked from zcaceres/Eyeballing-This.md
Understanding Binding and 'this' in Javascript

How to Eyeball Your ‘This’ Context in Javascript

The early programmer struggles with the Javascript keyword this. But understanding your this context is easier than it seems.

This is all about where a function is invoked. Often, early programmers worry about where the function was declared. Perhaps the function was declared in a specific file or a particular object. Surely this changes it's this!

Nope.

To understand this, we need to see where it is invoked. Nothing else matters, with one exception which we'll cover in a moment.

@tuxitop
tuxitop / conv2mkv.sh
Created April 20, 2016 17:25
Converts video files to mkv using ffmpeg.
#! /bin/sh
# filename: conv2mkv
# description: converts video files to mkv using ffmpeg. for usage and setting check below
# Author: Ali Mousavi [[email protected]]
################
### USAGE ###
################
# if a filename is given as an argument it will convert it.