The first thing to do is to install Git on the remote server.
Once you do that the rest of the process is split into three sections:
- Server set-up
- Local set-up (push commits)
- Server (pull commits)
<persistence xmlns="http://java.sun.com/xml/ns/persistence" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" | |
version="2.0"> | |
<persistence-unit name="org.hibernate.tutorial.jpa" transaction-type="RESOURCE_LOCAL"> | |
<description> | |
Persistence unit for the JPA tutorial of the Hibernate Getting Started Guide | |
</description> | |
<provider>org.hibernate.ejb.HibernatePersistence</provider> |
cat | grep foo | |
{ cat aabsdf.xx 2>&1 ; } 2>/dev/null | |
# http://stackoverflow.com/questions/2342826/how-to-pipe-stderr-and-not-stdout?rq=1 | |
# http://www.gnu.org/software/bash/manual/bashref.html#Redirections | |
# http://mywiki.wooledge.org/Redirection |
package com.example.miniscout.client; | |
import org.eclipse.ui.plugin.AbstractUIPlugin; | |
import org.osgi.framework.BundleContext; | |
import com.example.miniscout.client.services.LocalDatabaseService; | |
import com.example.miniscout.shared.IDatabaseService; | |
public class Activator extends AbstractUIPlugin { |
from PIL import ImageGrab | |
import time | |
import smtplib | |
import os | |
import threading | |
import email | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.base import MIMEBase | |
from email.mime.text import MIMEText | |
from email.utils import COMMASPACE, formatdate |
pv ubuntu-14.10-desktop-amd64.img.dmg | sudo dd of=/dev/rdisk3 bs=1m | |
pv ~/Desktop/linuxmint.iso | sudo dd of=/dev/sdx oflag=direct bs=1048576 |
#/bin/sh | |
RESTART="/etc/init.d/networking restart" | |
FILEPATH="/etc/network/interfaces" | |
BACKUPPATH="$FILEPATH.BAK" | |
RESET_TIME="now + ${1:-5min}" | |
sudo cp -fp $FILEPATH $BACKUPPATH && \ | |
sudoedit $FILEPATH && \ | |
sudo bash -c "echo 'cp -fp $BACKUPPATH $FILEPATH && $RESTART' | at $RESET_TIME" && \ |
# This file should be placed on the directory of ~/blog/config | |
upstream unicorn { | |
server unix:/tmp/unicorn.todo.socket fail_timeout=0; | |
} | |
server { | |
listen 80 default; | |
#server_name example.com; | |
root /home/username/blog/public; |