Change OldExtension and NewExtension :
find . -type f -name *.mqh -exec sh -c 'mv "$1" "${1%.OldExtension}.NewExtension"' _ {} \;
using System.Collections.Generic; | |
using System.Linq; | |
// https://www.nuget.org/packages/TestStack.White | |
using TestStack.White; | |
using TestStack.White.UIItems; | |
using TestStack.White.UIItems.Finders; | |
namespace MTBacktester | |
{ |
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 | |
{ |
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
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 |
# 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 |
//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); | |
} |
<!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> |
{ | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
".hg", | |
"CVS", | |
"node_modules", | |
"bower_components", | |
"tmp" |
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), |