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 |
Step-by-step debugging and stack navigation for JRuby code.
Problem: the common tools byebug and pry-byebug are MRI-only.
Force JRuby to run in fully interpreted mode:
(otherwise next
would behave like step
)
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 |
Improved YARD CHEATSHEET http://yardoc.org
forked from https://gist.github.com/chetan/1827484 which is from early 2012 and contains outdated information.
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
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 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 [email protected].
- The samAccountName attribute is the user logon name used to support clients and servers from a previous version of Windows ( Pre-Windows 2000).
- The user logon name format is : DomainName\testUser.
- The samAccountName must be unique among all security principal objects within the domain.
- The samAccountName should be less than 20 characters.
- Query for the new name against the domain to verify that the samAccountName is unique in the domain.
The standard names for indexes in PostgreSQL are:
{tablename}_{columnname(s)}_{suffix}
where the suffix is one of the following:
pkey
for a Primary Key constraint;key
for a Unique constraint;excl
for an Exclusion constraint;idx
for any other kind of index;
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/[email protected]
:
:: if the service is run in Session 0 then open a console for that session and run it from there | |
:: e.g. %PsExec% -s -h -d -i 0 cmd.exe | |
:: set the paths for your environment | |
set PsExec=C:\Apps\SysInternals\PsExec.exe | |
set JAVA_HOME=C:\Apps\Java\jdk1.8.0_121 | |
set DUMP_DIR=C:\temp | |
@echo off |