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 |
| Meta (Instagram, Facebook) | |
| // Узлы | |
| 157.240.253.174, 157.240.253.172, 157.240.253.167, 157.240.253.63, 157.240.253.32 | |
| 157.240.252.174, 157.240.252.172, 157.240.252.167, 157.240.252.63, 157.240.252.38 | |
| 57.144.112.34, 57.144.110.1, 157.240.205.174, 87.245.223.97 | |
| // Подсети | |
| 213.102.128.0/24 | |
| 204.15.20.0/22 | |
| 199.201.0.0/16 |
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: