News for hackers. Stuff that matters.
Re:153k Ether Stolen in Parity Multi-Sig Attack by shurcooL on Wednesday July 19, 2017 @08:31PM (#14809172)
Please be aware that you can press Y before sharing a link to make it a permalink. The link you shared points to master branch, which will change over time, so the line number you pointed to will have something else.

Based on the time of your post, I suspect you meant to link to:

https://github.com/paritytech/parity/blob/4c32177ef3f4521c66...

Re:153k Ether Stolen in Parity Multi-Sig Attack by git-pull on Wednesday July 19, 2017 @11:46PM (#14809894)
Some explanation of what's happening here:

The initial poster posted this link: https://github.com/paritytech/parity/blob/master/js/src/cont...

Where "master" is the branch which normally has the latest code. And #L216 automatically scrolls down to the 216th line.

The issue is that line isn't permanent since the code in the master branch is subject to change. So in order to make a reliable link, you can link to the ref [1].

Like this: https://github.com/paritytech/parity/blob/4c32177ef3f4521c66...

You could also do it with the short ref (4c32177e): https://github.com/paritytech/parity/blob/4c32177e/js/src/co...

Normally you'd have to scroll up to the top right of the document and grab the short form it, e.g. "6b0e4f9" and replace it with master. Note that's only the ref of the last change for that blob (file) [2].

If you click the line number on a GitHub file, it will add the #LineNumber to your URL.

From there, press Y, this will replace master with the latest commit of the repo.

[1] https://git-scm.com/book/en/v2/Git-Internals-Git-References

[2] https://git-scm.com/book/en/v2/Git-Internals-Git-Objects

Re:153k Ether Stolen in Parity Multi-Sig Attack by camel_Snake on Thursday July 20, 2017 @12:38AM (#14810040)
Thank you for that thorough explanation!
Re:153k Ether Stolen in Parity Multi-Sig Attack by d21d3q on Thursday July 20, 2017 @03:10PM (#14815420)
BTW, how does y shortcut works? With what is bonded? What effects brings on other sites?
Re:153k Ether Stolen in Parity Multi-Sig Attack by roryokane on Thursday July 20, 2017 @07:46PM (#14817125)
It's only for GitHub. GitHub has custom JavaScript on their site that listens to every key press. If they detect you pressed 'y', they look up the commit hash of the version of the code you are looking at and then set the page URL to a page that shows the code for that version.
Re:153k Ether Stolen in Parity Multi-Sig Attack by nh2 on Wednesday July 19, 2017 @08:46PM (#14809238)
You just saved me hours of life time
Re:153k Ether Stolen in Parity Multi-Sig Attack by sillysaurus3 on Wednesday July 19, 2017 @09:42PM (#14809449)
That Y hotkey is immensely useful. Thanks!