Categories
Terminal

Basic Terminal Commands

Moving up a directory:

cd ..

Moving to the root:

cd

See where on the filesystem you are:

pwd

Check permissions on a specific folder:

ls -ld directory

Changing permissions (read, write and execute) for files and folder recursively:

chmod -R 777 /Users/Test/Desktop/PATH

or when inside the folder:

sudo chmod -R 777 .

Check permissions of a file/directory:

ls -la

Who you are and your group:

whoami
id

Change directory to .SSH and list keys

cd ~/.ssh/
ssh-add -l

Categories
Color Palettes

Deep Lake 6 – Color Palette

Deep Lake 6

Categories
Server

Basic Authentication with .htaccess and .htpasswd

An .htaccess file in the folder you require the authentication with the following:

AuthUserFile "/home/yoursite/.public_html_wp-admin"
AuthName "Password Protected Area"
AuthType Basic
Require valid-user

An .htpasswd file (referenced in AuthUserFile in the .htaccess file) containing usernames and hashed passwords. Example:

admin:$1$M4XwC9m$e.hXbJvFOZ7n8zN0pf4Yu0

Generate hashed passwords using the MD5 algorithm here.

Categories
GIT

Useful GIT commands

Check the status of the repo

git status

List all the settings of the repository

git config --list

Set global (or local) account variables

git config --global user.name "Firstname Lastname"
git config --global user.email "your_email@youremail.com"

Change the URI (URL) for a remote Git repository

git remote set-url origin git://new.url.here

Force Git to overwrite local files on pull

git fetch --all
git reset --hard origin/master

Delete untracked files

git clean -fd
Categories
Color Palettes

Performance – Color Palette

Performance

Categories
Color Palettes

Run – Color Palette

Run

Categories
Tools

CSS Tools: Reset CSS

Eric Meyer’s reset: “The goal of a reset stylesheet is to reduce browser inconsistencies in things like default line heights, margins and font sizes of headings, and so on.”

CSS Tools: Reset CSS

Categories
Tools

ColorSchemer – Online Color Scheme Generator

ColorSchemer – Online Color Scheme Generator

Categories
Color Palettes

Striped – Color Palette

Striped

Categories
Tools

Shrink PNG files

Shrink PNG files

Design a site like this with WordPress.com
Get started