call other.cmd
if %ERRORLEVEL% == 0 GOTO PASSED
rem Do something..
...
This file contains 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
""" | |
Original Location: http://www.robotics.net/wp-content/uploads/xenmigrate.py | |
Quote from the Documentation: http://www.robotics.net/2009/06/06/converting-citrix-xva-to-xenorg-img/ : | |
'The file formats of the commercial and open source Xen are totally different. | |
The open source is a standard image file, you can mount it, fdisk it, whatever you would like. | |
The Citrix Xen Virtual Appliance .XVA file is quite different. It is actually a tar file | |
with ova.xml meta data and directories starting with Ref full of 1M files that make up the | |
rive volumes of the virtual image. |
This file contains 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
{ | |
"port": 7001, | |
"bugtracking": false, | |
"autoStashAndPop": false, | |
"launchBrowser": false | |
} |
This file contains 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
-module(health). | |
-behaviour(gen_server). | |
-export([start_link/0, | |
check/0, alert/0, dump/0, | |
threshold/1, poll/1, url/1 | |
]). | |
-export([init/1, handle_call/3]). |
This file contains 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
Reusing an AngularJS Directive core code. The idea is to: | |
** 1. conceal the actual directive behaviour in a separate JS "class", | |
** 2. store that in an Angular service, | |
** 3. inject that service into an Angular directive, | |
** 4. just have the directive factory function return the constructed instance of the "class". | |
That is to separate the directive core code from the actual directive factory. | |
Then one actually wants to inherit a directive core "class" from another. It's not really a matter of JS inheritance, but more on how to inject one into the other by means of Angular modules, without actually instantiating none of them until needed, |
This file contains 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
// Define core directive code + attributes and store that as a module value | |
angular.module('com.namespace.directives').value('MyDirectiveCore', MyDirectiveCore); | |
function MyDirectiveCore($compile) { | |
this.restrict = 'A'; | |
this.priority = 10; | |
this.link = postLink; | |
return this; | |
This file contains 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
sudo lshw|more | |
sudo dmidecode|more | |
lspci -v | |
hwinfo --bios | grep Manufacturer | |
hwbrowser |
This file contains 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
# Visualizing branch topology in git on the commandline | |
git log --graph --oneline --full-history --all | |
git log --graph --full-history --all --pretty=format:"%h%x09%d%x20%s" | |
# With colors in Bash: | |
git log --graph --full-history --all --color --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s" |
This file contains 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
< /dev/urandom tr -dc A-Za-z0-9 | head -c8 | |
#or | |
echo $RANDOM |
NewerOlder