gunzip -c /media/data/IMAGE_NAME.img.tgz | dd of=/dev/sda
dd if=/dev/sda conv=sync,noerror bs=1k | gzip -c > IMAGE_NAME.img.tgz
sudo lvremove /dev/ubuntuvg/rootsnap
| #!/usr/bin/python | |
| import sys | |
| import os | |
| import getpass | |
| from subprocess import call, PIPE, Popen | |
| if (len(sys.argv) == 1 or sys.argv[1] == 'help'): | |
| print "Usage is:\n\tsudo a2addsite <site-name> [--mysql]" | |
| print "Parameters:" |
| <snippet> | |
| <content><![CDATA[ | |
| console.log(${1:'${2:}'}); | |
| ]]></content> | |
| <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
| <tabTrigger>con</tabTrigger> | |
| <!-- Optional: Set a scope to limit where the snippet will trigger --> | |
| <scope>source.js</scope> | |
| </snippet> |
| function problem4(input) { | |
| var matches = [], | |
| players = []; | |
| // create matches from input | |
| for (var i = input.length - 1; i >= 0; i--) { | |
| var line = input[i]; | |
| var match = { | |
| playerA: getFirstPlayer(line), | |
| playerB: getSecondPlayer(line), |
| { | |
| "folder_exclude_patterns": | |
| [ | |
| ".svn", | |
| ".git", | |
| ".hg", | |
| "CVS", | |
| "node_modules", | |
| "bower_components", | |
| "tmp" |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="description" content="Ember testing approaches"> | |
| <meta charset="utf-8"> | |
| <title>Ember Testing</title> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.js"></script> | |
| <script src="http://builds.emberjs.com/tags/v1.10.0/ember-template-compiler.js"></script> |
| //Lets require/import the HTTP module | |
| var http = require('http'); | |
| //Lets define a port we want to listen to | |
| const PORT=8080; | |
| //We need a function which handles requests and send response | |
| function handleRequest(request, response){ | |
| response.end('It Works!! Path Hit: ' + request.url); | |
| } |
| # Restore a complete copy of the SSD (sda device) | |
| gunzip -c /media/data/IMAGE_NAME.img.tgz | dd of=/dev/sda | |
| # Create and compress complete backup of sda (the SSD) disk | |
| dd if=/dev/sda conv=sync,noerror bs=1k | gzip -c > IMAGE_NAME.img.tgz | |
| # Remove LVM the snapshot | |
| sudo lvremove /dev/ubuntuvg/rootsnap | |
| # Create LVM snapshot |
| MAKESELFPATH=/home/alx/bin/makeself | |
| PAYLOADFOLDER=$(readlink -e $1) | |
| OUTPUTFILENAME=$(pwd)/$2 | |
| LABEL=$3 | |
| INSTALLER=$(readlink -e $4) | |
| cd $MAKESELFPATH | |
| echo "Executing: sh makeself.sh $PAYLOADFOLDER $OUTPUTFILENAME $LABEL $INSTALLER" | |
| sh makeself.sh $PAYLOADFOLDER $OUTPUTFILENAME $LABEL $INSTALLER |
gunzip -c /media/data/IMAGE_NAME.img.tgz | dd of=/dev/sda
dd if=/dev/sda conv=sync,noerror bs=1k | gzip -c > IMAGE_NAME.img.tgz
sudo lvremove /dev/ubuntuvg/rootsnap
| using System; | |
| using System.Text; | |
| using System.Runtime.InteropServices; | |
| using RGiesecke.DllExport; // https://www.nuget.org/packages/UnmanagedExports - required for the functions to be consumed by native code | |
| namespace Testme | |
| { | |
| class Test | |
| { |