Top Nav

Drupal Admin Password Reset With Drush

SSH into the website document root and install drush:

Use drush to reset admin user password:

 

0

nodejs Install Via NVM On Shared Hosting

Node can be installed on a shared hosting account if you have SSH but no root access. Using Node Version Manager (NVM) makes it easy to install and manage different node versions.

Here’s the NVM project page:

https://github.com/creationix/nvm

To install get the curl or wget command from here:

https://github.com/creationix/nvm#install-script

Will be something like:

The install may advise you to create or update your .bash_profile with something like:

Immediately after install you may need to run:

Now you can use NVM to:

List available node version:

Install node version:

List locally installed version:

Use node version:

Set the default version:

0

Downloading RackSpace CloudFiles Container with Swiftly

Swiftly is a handy utility for managed RackSpace CloudFiles containers from the Linux command line. You can easily download an entire container with a simple command line. Here’s the project page on Github:

https://github.com/gholt/swiftly

And here’s the documentation:

http://gholt.github.io/swiftly/

Installation through a package manager is as follows:

Ubuntu

  1. Update the apt-get database.
  2. Install the Python installer, pip, using apt-get.
  3. Install Swiftly using pip.

CentOS

  1. Install the Python installer, pip, using yum.
  2. Install swiftly using pip.

After installation you can start transferring files. Here’s an example:

The entire [container] will be downloaded to [destfolder].

Check the Swiftly documentation for a wide range of options. You can select with precision which files to download.

0

Create Clonezilla USB Stick

This article describes the steps to create a bootable Clonezilla USB stick. This stick can be used to boot a computer and create or restore a cloned image.

The USB stick should be a minimum of 1GB in size. It will be totally overwritten and erased so make sure there is nothing of value on the stick.

This procedure assumes you’re working from a Windows PC. Additionally, this procedure uses the Rufus open-source utility to burn the Clonezilla ISO to the USB stick and make it bootable.  There are other utilities that can be used for this procedure for non-Windows environments.

  1. Download and install the Rufus utility from here: https://rufus.ie
  2. Download the alternative stable Clonezilla ISO image. Select the “amd64” CPU architecture and ISO file type from here: https://clonezilla.org/downloads.php
  3. Insert the USB stick.
  4. Start the Rufus utility.
  5. In the Device field, select the USB stick.
  6. Click the SELECT button and choose the Clonezilla ISO.
  7. Click the START button.

The process will take about a minute to complete. When finished remove the USB stick and close the Rufus utility.

0

Disable OPTIONS method in NGINX

To disable the OPTIONS method in Nginx add the following config:

The result can be tested with curl:

 

1