In Ruby, technically, everything is a monkey-patch.
For example, on a class definition, it reopens/patches the Object class.
Every class is a private constant in Object.
class MyClassIn Ruby, technically, everything is a monkey-patch.
For example, on a class definition, it reopens/patches the Object class.
Every class is a private constant in Object.
class MyClass| package main | |
| import ( | |
| "fmt" | |
| "syscall" | |
| //~ "time" | |
| "unsafe" | |
| "golang.org/x/sys/windows" | |
| ) |
| /** | |
| * Copyright (c) 2006, Nicolas Hillegeer | |
| * All rights reserved. | |
| * | |
| * Redistribution and use in source and binary forms, with or without | |
| * modification, are permitted provided that the following conditions are met: | |
| * * Redistributions of source code must retain the above copyright | |
| * notice, this list of conditions and the following disclaimer. | |
| * * Redistributions in binary form must reproduce the above copyright | |
| * notice, this list of conditions and the following disclaimer in the |
This is a sequel to "Postfix: relay to authenticated SMTP".
I would like to send mail from two different Gmail accounts using Postfix. Here is the relevant section in the Postfix documentation: Configuring Sender-Dependent SASL authentication.
As a concrete example, here's how to set up two Gmail accounts (only relevant sections of the config files are listed below):
/etc/postfix/main.cf:
# sender-dependent sasl authentication
smtp_sender_dependent_authentication = yes
sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay
| echo "actionSystem.suspendFocusTransferIfApplicationInactive=false" >> jetbrains_app/bin/idea.properties | |
| echo "export XMODIFIERS=\"\"" >> jetbrains_app/bin/rubymine.sh |
| { | |
| "bold_folder_labels": true, | |
| "color_scheme": "Packages/User/Monokai (SL).tmTheme", | |
| "fallback_encoding": "Cyrilyc (Windows 1251)", | |
| "fade_fold_buttons": false, | |
| "font_size": 11, | |
| "highlight_line": true, | |
| "highlight_modified_tabs": true, | |
| "soda_classic_tabs": true, | |
| "theme": "Soda Dark.sublime-theme", |
| ctags -e --exclude=.git --exclude='*.log' -R * `bundle show --paths; pwd` | |
| ctags -R --exclude=.git --exclude=log --exclude=tmp --exclude=autotest --exclude=db -f .tags * ~/.rvm/gems/`rvm current` |
| (require 'package) | |
| (add-to-list 'package-archives | |
| '("melpa" . "http://melpa.milkbox.net/packages/") t) | |
| (package-initialize) | |
| (put 'set-goal-column 'disabled nil) | |
| (setq auto-save-default nil) | |
| (setq auto-save-list-file-name nil) | |
| (global-linum-mode t) | |
| (ido-mode t) |