2,688 karma · joined Jun 6, 2012 (14y ago) · 1,369 submissions
comment 7y ago · link · parent
You never have to do this, because it's virtually impossible to screw up a git repo with git commands, to the point it can't be easily fixed. And I'll tell you why and how.
As you no doubt know, all commits in git are hashed. This means that you can't change a commit in any way, only ever add a new one. Neither can you insert a commit into an existing chain: you have to rewrite the whole chain with new commits.
As a consequence, if your `master` branch, for example, is pointing to commit `aa33bf`, there will be a unique chain of commits leading back to the original commit which can't be altered.
It doesn't matter if you cherry-pick, merge, rebase or dance the fandango...if you point `master` back to `aa33bf` it will look exactly the same as it did before.
You can usually find what the branch was pointing before with `git reflog`. But you were going to clone it from github again, right? So, `origin/master` is pointing to the right commit, and you can just reset it back to that (remember to first commit any random stuff in your working dir that you want to keep):
git checkout master
git reset --hard origin/master
And, obviously, you can do exactly the same with any other branches that have been messed up.There you go. Now you too are a "git hot shot" and can wow your friends with your amazing skills. ;)
comment 7y ago · link · parent
for set in *_data.csv; do
[[ -f "${set/data/A}" ]] || echo "${set%_data.csv}"
done
Edit: though I just write it out like this for formatting on HN. In real life, that would just be a one-liner:for set in *_data.csv; do [[ -f "${set/data/A}" ]] || echo "${set%_data.csv}"; done
comment 8y ago · link · parent
As for understanding; the stack exchange question on whether it's coincidence that the value of G is approximately pi squared is one of these things I bear in mind whenever I think I understand something. : )
Edit: and if I'm not mistaken, you once spent far more time than I would have the patience for explaining how this worked to a rather offensive young person. I admired your patience there. It was more than I had and had better results.
comment 8y ago · link · parent
Now YouTube has decided unilaterally this is not Fair Use and they will not pass the counter notification on.
437.
YouTube Shuts Down Scottish Independence Channel(wingsoverscotland.com ↗)
2 points · by phaemon · 8y ago · 1 comment
comment 8y ago · link · parent
442.
How to Get a Big-Budget Song in Your Low-Budget Indie Film(nofilmschool.com ↗)
2 points · by phaemon · 8y ago · 1 comment
comment 8y ago · link · parent
The classic example of BBC lies would be Nick Robinson of course: https://www.youtube.com/watch?v=K_XhTALHQzI
If you want a more recent example of BBC bias, try: https://wingsoverscotland.com/the-bad-losers/
comment 8y ago · link · parent
You can see plenty examples of this at Wings Over Scotland (which I know is biased, but is also scrupulously accurate)
comment 8y ago · link · parent
It seems the tougher part is getting me to pay at all! After that, I'm happy to pay a reasonable amount.
comment 8y ago · link · parent
Options:
A) Sure, here you go. Oh wait! I didn't mean to send you those. You tricked me and stole my information. I'm going to send 15 police officers round to arrest you and then you're going to prison for years.
B) No, that's confidential.
^^ Which option do you think is more reasonable?
comment 8y ago · link · parent
No you didn't. I posted those figures exactly once in this comment: https://news.ycombinator.com/item?id=16585982
which you did not reply to. Stop lying.
> You've used that statistic in the past to
Another lie.
> Based on previous discussions, I can predict
Not had previous discussions with you. Exactly one, the previous one which you did not reply to.
And seriously, you think $70 Billion is a massive cost for the world's governments? You really need to learn some basic arithmetic.
I suggest you stop and think instead of posting these mindless talking points. Go look up the numbers for yourself.