Difference between revisions of "User:Saul"

From Organic Design wiki
(Added random password snippet.)
Line 12: Line 12:
 
<source lang="BASH">
 
<source lang="BASH">
 
echo "alias COMMANDNAME=\"COMMAND\";" >> ~/.bashrc;
 
echo "alias COMMANDNAME=\"COMMAND\";" >> ~/.bashrc;
 +
</source>
 +
 +
==== Random Password Generation ====
 +
A useful command to generate a random password of 10 characters:
 +
<source lang="BASH">
 +
</dev/urandom tr -dc 'A-Za-z0-9!"#$%&'\''()*+,-./:;<=>?@[\]^_`{|}~' | head -c 10 ; echo
 
</source>
 
</source>
  
 
=== CSS: ===
 
=== CSS: ===
 +
 
==== CSS Sticky Footer: ====
 
==== CSS Sticky Footer: ====
 
<source lang="CSS">
 
<source lang="CSS">

Revision as of 20:14, 13 March 2018

I like to be making notes for mysql php and other technologys, and am a friend to linux and open-source programs.

Snippets:

BASH:

Alias

To save a command run:

alias COMMANDNAME="COMMAND";

This will be lost on reboot however so to save it run:

echo "alias COMMANDNAME=\"COMMAND\";" >> ~/.bashrc;

Random Password Generation

A useful command to generate a random password of 10 characters:

</dev/urandom tr -dc 'A-Za-z0-9!"#$%&'\''()*+,-./:;<=>?@[\]^_`{|}~' | head -c 10 ; echo

CSS:

CSS Sticky Footer:

body .site{
	display: flex !important;
	min-height: 100vh !important;
	flex-direction: column !important;
}

#content {
	flex: 1 !important;
}

CSS Same Height Columns:

.Container{
	display: flex;
}

.Column{
	flex: 1; /* optional to equalize widths */
}

Useful links in this wiki