Reputation
626
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
4 8
Newest
 Informed
Impact
~30k people reached

  • 0 posts edited
  • 0 helpful flags
  • 68 votes cast
Aug
14
awarded  Informed
Aug
14
comment How to check which timezone in Linux?
True, but %z works just as well for this purpose. It prints -0500 instead of -05:00. I think it's best to avoid Linux-only (or, in this case, GNU-only) things just for the sake of finesse.
Aug
14
comment How to check which timezone in Linux?
However, date +%z works fine on OS X. I suggest you modify the answer.
Jul
2
comment Leap Seconds in Windows
@BlueRaja Windows could "read the future", by using the publicly-available tzdata that contains info about future leap seconds. That's how Unix systems manage to handle leap seconds correctly. Also, NTP packets indicate when a leap second is due in the next 24 hrs. Windows 8.1 onwards does in fact use tzdata directly.
May
10
comment How to find out a file belongs to which package in Mac OS X?
With MacPorts, you can find out which port owns a particular file using port provides FILE
May
10
comment How to find out a file belongs to which package in Mac OS X?
I didn't know about pkgutil either, and it sounds pretty handy.
May
9
comment How to find out a file belongs to which package in Mac OS X?
It's not true there's no standardized package management. Mac OS X installs almost all software from packages (using the Installer) and keepsa record. See answer from @bhavin.
Mar
23
awarded  Commentator
Mar
19
comment fsck an ntfs drive in Linux
Newer versions of Debian and Ubuntu don't have this symlink. You can make it yourself, but the problem is that ntfsfix has a completely different set of arguments to the standard fsck ones. It's better to make fsck.ntfs (and fsck.ntfs-3) a script containing exec ntfsfix ${@:$#} (with a shebang of #!/bin/bash).
Jan
31
comment How do I format an SSD to be used as the hibernation drive? (Acer S3)
On my Lenovo IdeaPad U310, that GUID is used for Smart Response, not Rapid Start. It looks like you have the two terms mixed up. They are actually quite different from one another.
Sep
24
awarded  Autobiographer
Sep
11
awarded  Yearling
Feb
3
awarded  Critic
Feb
26
comment Which Debian package architecture am I using?
dpkg-architecture is in the dpkg-dev package which isn't installed by default (although it is a dependency of build-essential). However, dpkg is by definition guaranteed to be there.
Aug
26
awarded  Nice Answer
Jul
2
awarded  Yearling
Apr
4
comment Can you specify git-shell in .ssh/authorized_keys to restrict access to only git commands via ssh?
@Tim This is essentially the same solution, but squeezes the content of my ~/gitserve script into authorized keys by using perl. Personally, I prefer keeping it in a separate script.
Apr
4
revised Can you specify git-shell in .ssh/authorized_keys to restrict access to only git commands via ssh?
The original ellipsis (…) was intentional, showing that some path information may need to be inserted. Using .. for parent directory is almost certain to be incorrect.
Dec
8
awarded  Necromancer
Oct
6
answered Can you specify git-shell in .ssh/authorized_keys to restrict access to only git commands via ssh?