I was in a pinch. I needed to import 12.000+ files with different filetypes into a Wordpress Media Library. The easy part, uploading the files with the folder structure to
wp-content/uploads was done quickly, but Wordpress Media Library didn’t “see” the files.
After some quick reading I found out that they need to be imported into the Library, and after some more reading I found wp-cli works with ‘xargs’ in Bash.
The command I ended using is as follows through SSH:
find /tmp -name '*.pdf' -or -name '*.doc' -or -name '*.jpg' -or -name…
To have another Google Chrome instance (or many) running alongside your main instance allows you to separate accounts, plugins and bookmarks.
In this case, I wanted to use a just-for-work Mac for personal use, but I didn’t want to mix bookmarks, plugins and accounts. I do have other devices in which I run Chrome with my Google account, and I do like the sync feature, but I don’t like the idea of syncing my personal data to the main instance of Chrome on this specific Mac as this is not its main use.
That said, here is a way of…
Include directive to include an external config file in the main (default) ssh config file.
for example, if we have a config file in
Include ~/Documents/.ssh/config in your main
As I mentioned in How to use multiple SSH keys on a Mac with GitHub or GitLab my objective is to s separate personal projects from work projects.
In this case, I can use a ssh config file for work and another file for my projects, and then…
Why would you want to use multiple keys on a machine you ask? There are several reasons, one being perceived security and another being convenience. Using just one Identity makes everything easier and you don’t have to manage several Identities You can read more here and here.
My use case would be that of convenience. I just want to separate work from personal projects and I would like to use a separate key (non-work related) with those projects
ssh-keygen -t rsa -C "firstname.lastname@example.org"
This public key can be in any path, not just in
~/.ssh/ as default/ recommended.
I wrote about how to create a SSH Tunnel with ngrok on Ubuntu Server (aka ssh access to your local server in local network with dynamic ip) in another article. If you haven’t installed ngrok yet, please read that guide first.
After I had access to my Ubuntu Server through SSH, the next logical step (at least for me) was to enable Jupyter Notebooks running inside TORUS (Docker) to be reachable from a remote browser. That way I’m able to run python code on the server while using my browser as if it was locally installed.
To run ngrok for…
I have a server at home running Ubuntu 18.04 LTS (normal local network, behind a router with firewall activated, no DMZ) and I wanted to be able to access it though ssh. You can think of it as a TeamViewer alternative for port redirection.
Secure Shell (SSH) is a cryptographic network protocol for operating network services securely over an unsecured network. Typical applications include remote command-line login and remote command execution, but any network service can be secured with SSH. — Wikipedia
Public URLs for exposing your local web server.
Spend more time programming. …
Suele pasar… todos hablan de los grandes emprendimientos, de las grandes innovaciones, de las personas que crearon productos y servicios maravillosos. Todos hablan y pocos hacen. Hacer es más complicado que hablar, y al hacer descubres que mucho de lo que hablaste lo hiciste sin una pizca de experiencia de lo que realmente sucede antes de lanzar una maravilla al mercado. Esa maravilla es el resultado de una serie infinita de acciones y conflictos, tanto internos como externos, por llevarle la contra al mundo. …