Skip to content

Instantly share code, notes, and snippets.

@iharosi
iharosi / Preference.sublime-settings
Last active July 25, 2019 22:57
My Sublime Text 3 settings
{
"always_show_minimap_viewport": true,
"auto_complete_commit_on_tab": false,
"auto_complete_selector": "source - comment, meta.tag - punctuation.definition.tag.begin, text.html.basic",
"auto_complete_with_fields": true,
"binary_file_patterns":
[
"node_modules/**"
],
"bold_folder_labels": true,
@iharosi
iharosi / useful-osx-commands.md
Last active September 21, 2023 07:25
Useful OS X commands

###Useful OS X commands

  1. App Store Debug menu

    Show

    defaults write com.apple.appstore ShowDebugMenu -bool true
    

    Hide

@iharosi
iharosi / smtp_generic_maps.md
Last active August 29, 2015 14:10
Postfix masquerading or changing outgoing SMTP email or mail address
@iharosi
iharosi / agnoster-iharosi.zsh-theme
Last active February 20, 2020 12:31
Oh My Zsh theme without extra features
# vim:ft=zsh ts=2 sw=2 sts=2
#
# Based on agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://gist.github.com/1595572).
#
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"ApacheConf",
"Babel",
"Babel Snippets",
How to test SMTP operations using Telnet
1. Telnet into Exchange server hosting IMS service using TCP port 25.
Command is telnet <servername> 25
2. Turn on local echo on your telnet client so that you can see what you are typing.
On Win 9x and NT 3.5/4.0 Telnet client this done by selecting the "preferences" from the "terminal" pull down menu, and checking the local echo radio button. For Windows 2000 telnet client, issue command "set local_echo", from the telnet command prompt.
3. Issue the following smtp command sequence
@iharosi
iharosi / export_and_mail.rsc
Last active January 19, 2023 10:10
MikroTik export mailing script
# MikroTik backup and export mailing script
# by Gergely Iharosi
# licensed with AGPL-3.0
#
# This script generates export file (including sesnitive data) and emails it to the given address.
# File name format will be the following: deviceIdentity-YYYYMMDD-HHmm.rsc
#
# Change the following two email addresses according to your needs:
:local toAddress