Install git:
sudo apt-get install git
Configure Git:
touch ~/.gitignore_global
git config --global core.excludesfile ~/.gitignore_global
git config --global user.name "Your Name"
git config --global user.email "Your Email"
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Title</title> | |
| <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <h1>MVVM</h1> |
| #!/bin/bash | |
| #http://askubuntu.com/questions/462547/webcam-flipped-aka-v4l1compat-so-troubles | |
| #sudo apt-get install libv4l-dev | |
| killall skype | |
| sleep 3 | |
| bash -c 'LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l1compat.so skype' |
Install git:
sudo apt-get install git
Configure Git:
touch ~/.gitignore_global
git config --global core.excludesfile ~/.gitignore_global
git config --global user.name "Your Name"
git config --global user.email "Your Email"
#Introduction If you're a php developer on ubuntu, there comes the time where you have to install/reinstall your system. I did it already a few times and i decided to write down the steps for a typical web developer stack with php. This is for a developer machine and not for a live environment!
I hope it helps you too!
fyi @mheiniger and me started with an installer here: https://github.com/mheiniger/webdev-setup
| #!/usr/bin/env bash | |
| set -e | |
| DEBUG=1 | |
| DST=your_destination_path | |
| SRC=$(dirname "$0") | |
| declare -a EXCLUDE=( | |
| /.git/ | |
| /web/assets/* |
| # | |
| # Working with branches | |
| # | |
| # Get the current branch name (not so useful in itself, but used in | |
| # other aliases) | |
| branch-name = "!git rev-parse --abbrev-ref HEAD" | |
| # Push the current branch to the remote "origin", and set it to track | |
| # the upstream branch | |
| publish = "!git push -u origin $(git branch-name)" |
| # rename origin remote | |
| git remote rename origin server1name | |
| # add the gitlab remote (for the love of everything that’s holy, use ssh) | |
| git remote add server2name <remote link for server2> | |
| # push existing code to new remote | |
| git push -u server2name —all | |
| <script src="http://code.jquery.com/ui/1.9.0/jquery-ui.js"></script> | |
| <!-- Check loaded lib --> | |
| <script> | |
| !window.jQuery && document.write('<script src="js/jquery.js"></script>') | |
| </script> |
| #include <netdb.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <errno.h> | |
| #define CANARY "in_the_coal_mine" | |
| struct { | |
| char buffer[1024]; |