All posts tagged #ubuntu all posts RSS-feed

"Invite" someone to ssh into your machine without port forwarding or firewall changes

If you want to let someone log into your machine or you want to log back into your machine from your server for some reason, normally you'd just set up port forwarding and connect to your IP. But there is another way: you can use ssh to create a connection to a remote machine, which that person can then use to log into your machine. Advantages: No need to set up port forwarding if you're on a network. No need... full post»
by Mark,

Logging to files

Logging the output of a shell script is easy enough: ./script.sh 1> log.out 2> log.err But if it the output is long and you find an error, you might want to know which output corresponds to it. Logging errors to one file, and output+errors to another is a little more tricky. And there are other potentially useful features: Truncate the log file if it gets too long. Keep the last part, and ideally whole lines. Add timestamps to each line... full post»
by Mark,

Ubuntu macros

The macro feature of Notepad++ was really useful. On Ubuntu I've had to do without Notepad++, and anyway it would be better to have something that works inn any program. I've found/made something today, and since StackOverflow locks all questions about such things, I'll post it here. First, install xmacro using sudo apt-get install -y xmacro. The basic commands are xmacrorec2 > "$macrofile" and xmacroplay "$DISPLAY" < "$macrofile". I've made a few small improvements: Assigned hotkeys so I can use... full post»
by Mark,

The markv.nl blag!

#imadethis, #coding, #tools, #python, #bash, #machine-learning, #ubuntu, #music, #django, #focus, #fortran, #backup, #chinese, #charity, #learning, #travel, #order-of-magnitude, #R, #programming-languages, #javascript, #personal, #cross-validation, #china, #data-science, #discussion, #data-analysis, #effecive-altruism, #games

Comments

  1. Rainbow colormap in javascript @Mark The post has been expanded to include non-rainbow colorm...
  2. "Invite" someone to ssh into your machine without port forwarding or firewall changes @Mark Added details about how to use the established tunnel in...
  3. Rainbow colormap in javascript @Mark Now finally with color-coded source!
  4. Bye Make, hello SCons (Fortran) @Mark For SCons' own comparison against alternatives, have a l...
  5. Ubuntu macros @Mark Macro locks have been made more reliable, to prevent any...
  6. Dory backup scripts @Mark I've added some functionality to remove old backups! htt...
  7. Ubuntu macros @Mark Updated after moving the files to https://github.com/mve...
  8. Concentration noise @Mark Sorry if you're in China and can't access Youtube. If th...