1,116 reputation
411
bio website nullroute.eu.org/~grawity
location Lithuania
age 22
visits member for 4 years, 2 months
seen 2 days ago

Mantas Mikul─Śnas aka grawity.

Sysadmin by day, IRC tech support by night.

“ When you're laying on the ground just remember to
  Breathe, just breathe, just breathe, just breathe ”


Dec
18
answered How to run systemd user service to trigger on sleep (aka. suspend, hibernate)?
Nov
14
comment Find files whose basenames are the same, but their ext names are not
@mr.spuratic: Well, printf '%s\0' * is fine, and there's a very small chance that even '%s\n' would break (I mean, who uses newlines in file names?) But it's still unnecessary.
Nov
14
comment Find files whose basenames are the same, but their ext names are not
Might as well use for (glob("*")) { ... } in that case, no?
Oct
12
revised Are there alternatives to using `udev`?
added 112 characters in body
Oct
12
revised How can I prepend a tag to the beginning of several files?
added 70 characters in body
Oct
12
comment Are there alternatives to using `udev`?
@Graeme: Approximately 2.6.32.
Oct
12
comment Are there alternatives to using `udev`?
@Graeme: No, it cannot. It is a bit like trying to reduce complexity of a car by removing the wheels. If you're fine with booting with systemd (which does a lot), but are seriously concerned about the complexity of udev (which does less and less), then you have things really confused.
Oct
12
answered Are there alternatives to using `udev`?
Oct
5
awarded  Yearling
May
14
comment Will there be always a pair of same UID and GID?
In the second example, were you looking for id -g username?
May
14
comment What does “${-#*i}” != “$-” mean?
It is POSIX-compatible, though.
Apr
28
comment Path independent shebangs
Are you sure env isn't in both /bin and /usr/bin? Try which -a env to confirm.
Apr
15
answered `ls -l` of a file and all the directories leading to it?
Mar
20
comment What does exec 3<&1 do?
No, but it is the same as exec 3>&1.
Mar
20
comment What does exec 3<&1 do?
@orion: Internally, the same dup2() syscall is used for any kind of file descriptor; bash's x>&y vs x<&y is just syntax sugar. Also, when stdio is attached to a tty, the tty device is very often opened for read+write and just duplicated from 0 to 1 and 2.
Mar
8
revised What is the name of the formatting output from man?
Minor clarification
Mar
8
comment What is the name of the formatting output from man?
@jcubic: Not everything in the world has a name. It might easily have been "that odd thing some terminals do".
Mar
8
answered What is the name of the formatting output from man?
Mar
8
revised Starting NetworkManager before gdm.service with systemd
Unit files should always have the canonical names. I'm not sure if omitting the type even works.
Mar
8
suggested approved edit on Starting NetworkManager before gdm.service with systemd