- 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
jcanfield at schatzbook in ~/.apps | |
$ curl -fsSL https://raw.githubusercontent.com/Falkor/dotfiles/master/install.sh | bash -s -- --all | |
=> About to install Falkor's dotfiles from /Users/jcanfield/.dotfiles.falkor.d | |
[WARNING] Are you sure you want to continue? [Y|n] Submodule '.submodules/Makefiles' (https://github.com/Falkor/Makefiles.git) registered for path '.submodules/Makefiles' | |
Submodule '.submodules/gitstats' (https://github.com/hoxu/gitstats.git) registered for path '.submodules/gitstats' | |
Submodule 'oh-my-zsh/custom/plugins/zsh-completions' (https://github.com/zsh-users/zsh-completions) registered for path 'oh-my-zsh/custom/plugins/zsh-completions' | |
Submodule 'oh-my-zsh/custom/themes/powerlevel9k' (https://github.com/bhilburn/powerlevel9k.git) registered for path 'oh-my-zsh/custom/themes/powerlevel9k' | |
Submodule 'tests/helpers/assertions' (https://github.com/jasonkarns/bats-assert) registered for path 'tests/helpers/assertions' | |
Cloning into '/Users/jcanfield/.dotfiles.falkor.d/.submodules/Makefiles'... | |
C |
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 | |
# Synopsis: The concept is to allow for a Bash $Variable to quickly name Harddrives & Folders where you store your Media. After re-installation or changes to your OS. sometimes permissions and ownership can be modified the wrong way. | |
find $1 -type f print0 | xargs -0 chmod -Rc 644 # Change all files recusively to 644 | |
find $1 -type d -print0 | xargs -0 chmod-Rc 755 # Change all directories recursively to 755 | |
chown $USER -R $1 # Change ownership to current user |
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 |
Re: Repairing "old" HP Desktop which serves as a 'headless-linux' server for over 8 years now
Pasted via Hastebin.com
[ 1264.077530] nouveau E[ PFIFO][0000:02:00.0] DMA_PUSHER - ch 4 [webbrowser-app[5933]] get 0x002005488c put 0x00200548a0 ib_get 0x0000014e ib_put 0x0000014f state 0x80000000 (err: INVALID_CMD) push 0x00400040
[ 1264.078772] nouveau E[ PGRAPH][0000:02:00.0] DATA_ERROR INVALID_ENUM
[ 1264.078791] nouveau E[ PGRAPH][0000:02:00.0] ch 4 [0x000f97f000 webbrowser-app[5933]] subc 3 class 0x8397 mthd 0x15dc data 0x00107b00
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"> |