- Command settings
.bashrc
- Aliases - place the following on a new line in the .bashrc file
alias [alias-name]='[alias command(s)]
- Ex:
alias ls='ls -lh'
- Aliases - place the following on a new line in the .bashrc file
.profile
or.bash_profile
- Add folders to you path
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget \ | |
--recursive \ | |
--no-clobber \ | |
--page-requisites \ | |
--html-extension \ | |
--convert-links \ | |
--restrict-file-names=windows \ | |
--domains website.org \ | |
--no-parent \ | |
www.website.org/tutorials/html/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# UPDATE AND UPGRADE | |
alias update='sudo apt-get update' | |
alias upgrade='sudo apt-get upgrade' | |
# PACKAGE MANAGEMENT | |
alias install='sudo apt-get install' | |
alias uninstall='sudo apt-get remove' | |
alias aptsearch='sudo apt-cache search' | |
alias addkey='sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com' | |
alias finstall='sudo apt-get -f install' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Echo to nowhere for a more beautiful console output | |
sudo echo > /dev/null | |
# Add nodejs and sublime text ppa | |
echo ':: adding ppas' | |
sudo add-apt-repository -y ppa:chris-lea/node.js > /dev/null 2>&1 | |
sudo add-apt-repository -y ppa:webupd8team/sublime-text-3 > /dev/null 2>&1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Ubuntu 13.10 and 14.04 should work perfectly with this script. | |
# PPAS | |
## Essentials | |
sudo add-apt-repository -y "deb http://archive.canonical.com $(lsb_release -sc) partner" | |
sudo add-apt-repository -y ppa:mc3man/mpv-tests # MPV (ffmpeg version) | |
sudo add-apt-repository -y ppa:atareao/nautilus-extensions # Nautilus Image Extensions | |
sudo add-apt-repository -y ppa:ubuntu-wine/ppa # Updated Wine Packages from Wine Developers | |
sudo add-apt-repository -y ppa:webupd8team/y-ppa-manager # Namely for YAD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# BEGIN Expire headers | |
AddDefaultCharset UTF-8 | |
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresDefault "access plus 7200 seconds" | |
ExpiresByType image/x-icon "access plus 2592000 seconds" | |
ExpiresByType image/jpeg "access plus 2592000 seconds" | |
ExpiresByType image/png "access plus 2592000 seconds" | |
ExpiresByType image/gif "access plus 2592000 seconds" | |
ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html class="no-js"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>Plantilla HTML5</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width"> | |
<link rel="stylesheet" href="css/normalize.css"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/ This template produces an EXACT replica of the `index.html` file found in HTML5 Boilerplate v4.3.0 | |
/ The official distribution is located at: https://github.com/h5bp/html5-boilerplate/blob/v4.3.0/index.html | |
/ | |
/ For a more elegant way to generate the HTML tags within IE conditional comments, see the abstraction | |
/ in my gist at: https://gist.github.com/SteveBenner/a71f41e175f135b7d69b | |
/ | |
doctype html | |
/ The min and max values of the version range actually represent all values below or above the limit | |
- ie_versions = 6..9 # A minimum value of 6 for example, translates into 'less than 7' | |
- for version in ie_versions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |