Permission Cheat Sheet
You will use this one a lot in Wordpress :P
chown -R www-data:www-data ./
// set the proper owner
Permission Cheat Sheet
You will use this one a lot in Wordpress :P
chown -R www-data:www-data ./
// set the proper owner
#!/bin/bash | |
# Sometimes you need to move your existing git repository | |
# to a new remote repository (/new remote origin). | |
# Here are a simple and quick steps that does exactly this. | |
# | |
# Let's assume we call "old repo" the repository you wish | |
# to move, and "new repo" the one you wish to move to. | |
# | |
### Step 1. Make sure you have a local copy of all "old repo" | |
### branches and tags. |
I wrote this gist to record the steps I followed to get docker running in my Raspberry Pi 3. The ARM ported debian version (Jessie) comes with an old version of docker. It is so old that the docker hub it tries to interact with doesn't work anymore :)
Hopefully this gist will help someone else to get docker running in their Raspberry Pi 3.
From original instructions at http://blog.hypriot.com/post/run-docker-rpi3-with-wifi/
# Dockerfile for Node-RED - pulls latest master code from git | |
# Use the node.js v0.10.36 engine | |
FROM node:0.12-slim | |
MAINTAINER ceejay | |
# download latest stable node-red | |
RUN npm install -g node-red | |
# use external storage for the user directory | |
VOLUME /root/.node-red |
The steps below assume that you are using minishift (https://github.com/minishift/minishift) to run an Openshift cluster locally.
Prefereably, these steps need to be carried out before initiating an application with the template above. If not, the PostgreSQL database pod will not start up and you will have to re-deploy the PostgreSQL pod after carrying out the steps below. It's not a major problem. But why panick unnecessarily? :)
The Django persistent template can be found at https://github.com/openshift/django-ex
A minishift openshift cluster can be created with cluster metrics installed. Although I couldn't find a way to add metrics to an already created minishift VM instance, the steps below helped to get a new instance up and running easily.
Create a fresh minishift VM with an openshift cluster using the below command. The --metrics parameter is the only additional thing I had to provide for minishift to start installing cluster metrics and Hawkular.
$minishift start —metrics
These are the steps I followed to get Ubuntu installed in my Window 10 system.
PS> Start-Process powershell -Verb runAs
PS> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
`PS> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
I have an old HP Officejet 2620 printer that works perfectly. Unfortunately Apple and HP do not support this printer in Big Sur onwards.
Instead of throwing away a perfectly working printer, I re-purposed one of my old Raspberry Pi 2 units and plugged the printer to it using the USB cable. Below are the steps I ended up following to convert the setup into an Air Print server.
Follow instructions from https://pimylifeup.com/raspberry-pi-airprint/ to set up your Raspberry Pi.
Before adding your HP Printer using the ttps://192.168.0.40:631 web UI, install HP Cups Drivers as below;
sudo apt update
To speed up SMB file browsing, you can prevent macOS from reading .DS_Store files on SMB shares. This makes the Finder use only basic information to immediately display each folder's contents in alphanumeric order. Use this Terminal command:
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE
Then log out of your macOS account and log back in.
To reenable sorting, use this command: