865 reputation
725
bio website ali.moeeny.com
location Washington, DC
age 36
visits member for 3 years, 8 months
seen Sep 7 at 14:05

I love to build things that people love to use.
I like scientific data analysis.
I've spent most of my life in medicine and neuroscience!
I like: vim, zsh, golang, debian, python I am addicted to writing code! and learning new things!!


Dec
17
comment Write all tmux scrollback to a file
And if you are already in your tmux window and don't want to restart just do a [PrefixKey] : to get to the tmux command line, and then paste the whole line, then you just do a [Prefix] P it is capital P and you are good to go.
Nov
29
comment Close ssh session that has ControlPersist and is kept alive in the background
so basically you are saying ControlPersist works only by keeping the ssh processes running in the background?
Oct
5
comment Close ssh session that has ControlPersist and is kept alive in the background
I don't want to kill the ssh process, as I usually have multiple ssh connections at the same time, and I am not sure even killing the ssh process closes the sessions that are kept alive with the ControlPersist thing, there should be a way to ask ssh to close these.
Jul
10
comment how can I make cron run a job right now, for testing/debugging? without changing the schedule!
This is exactly what I ended up doing, but I wondered if there is a way to tell cron you want a test run on job no 7 ! Surely others have had this problem/request/wish before!
Jul
10
comment how can I make cron run a job right now, for testing/debugging? without changing the schedule!
I know the command works when enter it in shell (my shell), but I want to know if it works when cron runs it, it could be affected by ENV or shell specific stuff (~ expansion) or ownership and permission stuff or ...
Feb
17
comment Monitor what is being sent to /dev/null?
Just like that I can recreate /dev/null ?! there is no magic about it?
Feb
3
comment In zsh how can I list all the environment variables?
@glennjackman that's very useful, people like me who havent' spent their child hood at a unix terminal don't know these things. I was messing with DOS and Windows 3.11!
Feb
3
comment In zsh how can I list all the environment variables?
I mean if I didn't have internet connection! I know I would die in a few days without Internet connection, but in those few days how can I look this up in the documentation/man...?
Feb
3
comment In zsh how can I list all the environment variables?
that was embarrassing! Thanks. But now that we are on it, if I didn't have anyone to ask, how could I have found this?
Feb
1
comment I messed up my zshrc on a remote server and now I can't run any commands!
Yes that works fine! Thanks. Although I use a "key" to login and for me it looks like: ssh servername 'mv .zshrc .zshrc.broken'
Jan
27
comment How to enable reverse search in zsh?
@maxschlepzig sorry what is the difference between the two?
Jan
25
comment What is the main problem someone migrating from bash to zsh should face?
+2 for the zsh-lovers
Jan
12
comment How to start plasma-desktop from SSH-console on desktop session?
On the machine (not ssh) do alt-F2 then kstart plasma-desktop
Dec
29
comment What's the motivation behind kfreebsd
Yep, so it is mostly a matter of tast, plus some legal/licence issues?
Dec
29
comment What's the motivation behind kfreebsd
Thanks, still, as I understand, all these are arguments in favor of FreeBSD, not kFreeBSD, I mean if you want these, why you not use FreeBSD as a whole, or may be I am missing something here?
Dec
25
comment Why is the following command killing a system?
Which OS is not protected against this?
Dec
18
comment Any (text based) plotting tools in unix toolbox?
By "generic" I mean, multipurpose tools, things like awk and sed which are not "specific", not designed for a specific use case. Sorry if it's confusing. basically I want to make very simple bar plots in the terminal. That's all.
Dec
16
comment Any (text based) plotting tools in unix toolbox?
thanx, I had no idea, I need to try this, although I'v never used R but should be easy for mp simple use case.
Dec
16
comment Any (text based) plotting tools in unix toolbox?
thanks, but I don't want to use any GUI, not for writing the code nor for showing the plots, I want to do it entirely in the terminal. Besides, I'd rather be able to run it without any need to sudo (for installation of anything).
Dec
13
comment How does this vim command work `:g/#/+1t.`
That's exactly what I don't understand. So t which is the same thing as co, here is used with range 1 and address .?