Monday, December 23, 2019
Tuesday, December 17, 2019
Sunday, December 15, 2019
Saturday, December 14, 2019
Structure and Interpretation of Computer Programs, JavaScript Adaptation
Structure and Interpretation of Computer Programs, JavaScript Adaptation
https://sicp.comp.nus.edu.sg/index.html
https://sicp.comp.nus.edu.sg/index.html
Thursday, December 12, 2019
Tuesday, December 10, 2019
Monday, December 9, 2019
Ruby: see source code of a method
https://stackoverflow.com/questions/3393096/how-can-i-get-source-code-of-a-method-dynamically-and-also-which-file-is-this-me
$ rails console
> require 'method_source'
> I18n::Backend::Simple.instance_method(:lookup).source.display
class A
def foo
end
end
file, line = A.instance_method(:foo).source_location
# or
file, line = A.new.method(:foo).source_location
Sunday, December 1, 2019
Shell Scripting Tutorial
Tutorial:
https://www.shellscript.sh/
How to provide SSH password inside a script or oneliner:
https://srvfail.com/how-to-provide-ssh-password-inside-a-script-or-oneliner/
https://www.shellscript.sh/
How to provide SSH password inside a script or oneliner:
https://srvfail.com/how-to-provide-ssh-password-inside-a-script-or-oneliner/