327 karma · joined February 12, 2015
Put those in your ~/.gitconfig:
[alias]
fu = "!f() { local msg=\"fixup! $(git log --oneline -n1 | cut -d ' ' -f2-)\"; git commit -am \"${msg}\" && git rebase -i --autosquash HEAD~2; }; f"
fuc = "!f() { local msg=\"$(git log --oneline -n1 | cut -d ' ' -f2-)\"; if [[ \"${msg}\" != "fixup!"* ]]; then msg=\"fixup! ${msg}\"; fi; git commit -am \"${msg}\"; }; f"
xx = "!f() { git reset --hard && git clean -f -d; }; f"
From now on:git fu = (git fix up) combines last commit and all staged changes into one commit with the last commit message
git fuc = (git fix up comment) commits all staged changes as a new commit with the last commit message, but prefixed with "fixup!". Except if the last commit message is already prefixed with "fixup!". Now you can work on the same thing but commit incremental steps. In the end you just do: git rebase -i master (or similar) and they will be all in one commit.
git xx = get rid off all unstaged/uncommited changes in current directory. Very destructive, very useful.
Last but not least. If you have a lot of "fixup!" or "squash!" commits and need to interactively rebase without autosquashing them do:
git rebase --no-autosquash -i master
I read the news when it was discovered that our intelligence service regularly updated NSA selectors to spy on internet users and never looked into what they were updating. Suddenly they "found out" that the US wasn't looking as much for terrorists but more for industrial secrets. Ups, who would've thought.
I don't want to spied on by the Chinese government but it doesn't matter much when I'm 100% spied on by at least the USA and the UK.
> For example, the number of random version-4 UUIDs which need to be generated in order to have a 50% probability of at least one collision is 2.71 quintillion [...] This number is equivalent to generating 1 billion UUIDs per second for about 85 years, and a file containing this many UUIDs, at 16 bytes per UUID, would be about 45 exabytes, many times larger than the largest databases currently in existence, which are on the order of hundreds of petabytes.
https://en.wikipedia.org/wiki/Universally_unique_identifier#...
The probability that they generated the same text 1:1 and a UUID in it by random chance is very, very, very, very slim.
https://www.forbes.com/sites/anthonykosner/2013/11/30/jony-i...
Ah the only second ISO Standard for the same thing. With transparent definitions like: if option XYZ is set, render the output like Word 97.
Blatant corruption by a standard gremium.
I mean this is a company that currently releases a multiplayer game without any anti-cheat, anti-tamper technology. Cheating in Fallout 76 will be as hard as locating the config files and changing them with your text editor.
Bethesda is really bad at tech. They use a ancient engine that binds physics calculation to frames and can't go over 60 FPS. They warned Fallout 76 fans during the Beta that they should not click the "Update" button (big download, game screwed). They trust the game client 100%. You can hack/cheat in this multiplayer game by changing INI files with a text editor.
BUT AFAIK you can make legal copies for Backup purposes of your legally acquired software.
Also AFAIK a restriction to run Software on a certain type of Hardware is not valid in Germany. For example I'm pretty sure that Apple can't do anything against Hackintoshs here.
Communism was never tried. The experiments never got over the socialism phase. I bet that we going to end up with communism down the line somewhere when we overcome resource scarcity. See Star Trek for example. Currently socialism did not work at all tough.
I'll take a guess: Money.
How do you generate profit if you built something wonderful but the competition already built everything around it that you wanted to sell later (Kubernetes & Co)? User data.
300 hours of video are uploaded to youtube every minute in 2018
A couple of years ago I've seen a Google talk with a youtube admin/engineer. He said that in the beginning they had huge issues because they could not order servers fast enough for the demand. Money seems to never have played a role in those decisions (I can't find the link to the talk anymore).
If a video gets uploaded it will be stored in multiple resolutions and formats. So a video is probably stored as ~20 files which makes the space requirements even more mind boggling.
Another commentor in this thread wrote that VS Code is incredible efficient for a Electron app.
Basically I'm fine with Electron apps but I have yet to find one that I need and can't be replaced by a browser tab.