sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -restart -agent| session=lxqt | |
| geometry=1920x1080 | |
| localhost # comment this out to allow connections from anywhere | |
| alwaysshared |
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # | |
| # Copyright (C) 2015-2019 Bitergia | |
| # | |
| # This program is free software; you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation; either version 3 of the License, or | |
| # (at your option) any later version. | |
| # |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.
| #!/usr/bin/env bash | |
| # SOURCE: https://gist.github.com/Koze/2e1a9bf967b2bf865fc9 | |
| # close all windows (e.g., thousands of finder windows from unarchiver) | |
| osascript -e 'tell application "Finder" to close windows' | |
| ## index 1 is frontmost window | |
| # osascript 'tell application "Finder" to close window 1' |
| #!/usr/bin/env python3 | |
| """ | |
| NOTE: | |
| Extended into a full repo at https://github.com/pythoninthegrass/convert_html_md | |
| Any future work will be posted there. | |
| SOURCES: | |
| https://gist.github.com/aolle/6e595650391deef79ffb1c9bb38fb6e9 | |
| https://dev.to/kcdchennai/python-decorator-to-measure-execution-time-54hk |
Multipass can launch and run virtual machines and configure them with cloud-init like a public cloud
brew install multipass libvirt
brew services start libvirt
multipass set local.passphrase=<foo> # `multipass set local.passphrase` avoids stdout creds
multipass authenticate
multipass get local.driver
Ansible has various ways of looking up data from outside sources, including plain text password files, CSV files and INI files. But it doesn't seem to have a lookup for .env files, as used in Laravel projects, also available for PHP, Ruby, Node.js, Python and others.
One option is to launch Ansible with the Ruby dotenv command line script... But that requires Ruby, which seems like overkill to me.
So here is a simpler solution that I use. It consists of:
- The
.envfile itself - A small shell script that loads the
.envfile into environment variables -ansible-playbook.sh
| ; Diablo II LoD | |
| ; | |
| ; Instructions: | |
| ; | |
| ; 1) Start the game in windowed mode (eg. "-sndbkg -skiptobnet -w" options in shortcut). | |
| ; | |
| ; 2) Press Ctrl Alt f , Ctrl Alt h to set game to 1600x1200 centered on the desktop. | |
| ; | |
| ; | |
| ; Ctrl Alt f Toggle active window title bar. |