Default keyboard shortcuts for Ghostty terminal emulator. Platform-specific differences are noted where applicable.
| Action | Windows/Linux | macOS |
|---|---|---|
| New window | Ctrl+Shift+N | Cmd+N |
| Close window | Alt+F4 | Cmd+Shift+W |
| exceptions = [] | |
| tree = {} | |
| ObjectSpace.each_object(Class) do |cls| | |
| next unless cls.ancestors.include? Exception | |
| next if exceptions.include? cls | |
| next if cls.superclass == SystemCallError # avoid dumping Errno's | |
| exceptions << cls | |
| cls.ancestors.delete_if {|e| [Object, Kernel].include? e }.reverse.inject(tree) {|memo,cls| memo[cls] ||= {}} | |
| end |
DidYouMean::SPELL_CHECKERS.merge deprecate warnings anymore.database.yml with aliases and secrets.yml with aliases.| Action | Command |
|---|---|
| Move to next chat | Ctrl + Tab |
| Move to next chat | Ctrl + PageDown |
| Move to next chat | Alt + Arrow Down |
| Move to previous chat | Ctrl + Shift + Tab |
| Move to previous chat | Ctrl + PageUp |
| Move to previous chat | Alt + Arrow Up |
| Go to Previous Folder | Ctrl + Shift + Arrow Up |
| Go to Next Folder | Ctrl + Shift + Arrow Down |
| if Rails.env.development? | |
| FileUtils.mkdir_p(Rails.root.join('config', 'certs')) | |
| key_path = Rails.root.join('config', 'certs', 'development.key') | |
| crt_path = Rails.root.join('config', 'certs', 'development.crt') | |
| unless File.exist?(key_path) && File.exist?(crt_path) | |
| def cert_domain | |
| 'localhost' # Setting[:cookie_domain] || 'localhost' | |
| end |
The set lines
set -euxo pipefail is short for:set -e
set -u
| # Running specific applications through a VPN with network namespaces | |
| # Initial state | |
| curl ifconfig.co/city | |
| sudo ip link list | |
| sudo ip netns list | |
| # Disable Uncomplicated Firewall (Ubuntu) | |
| sudo ufw disable |
| use std::str; | |
| fn main() { | |
| // -- FROM: vec of chars -- | |
| let src1: Vec<char> = vec!['j','{','"','i','m','m','y','"','}']; | |
| // to String | |
| let string1: String = src1.iter().collect::<String>(); | |
| // to str | |
| let str1: &str = &src1.iter().collect::<String>(); | |
| // to vec of byte |
Let Tomcat is download and installed under /opt/tomcat.
Also, let tomcat be a non-provileged user under which the server will be running.
We assume that we keep server's binaries under /opt/tomcat and we will create a server instance named foo under /var/tomcat/ (carrying its own conf, logs, webapps, work, lib directories).
See also https://dzone.com/articles/running-multiple-tomcat.
Create a template service unit file at /etc/systemd/system/tomcat@.service:
The samAccountName is the User Logon Name in Pre-Windows 2000 (this does not mean samAccountName is not being used as Logon Name in modern windows systems). The userPrincipalName is a new way of User Logon Name from Windows 2000 and later versions. user Name part can be different for the same user like DomainName\testUser and userTest@DomainName.Com.