{
"message" => "hello world",
"@version" => "1",
"@timestamp" => "2014-04-22T23:03:14.111Z",
"type" => "stdin",
"host" => "hello.local"
}
{ | |
"cmd": ["$file"], | |
"working_dir": "$file_path", | |
"selector": "source.dosbatch" | |
} |
URL: http://teamcity:8111/httpAuth/app/rest/projects/
Method: POST
Accept: application/xml
import json, datetime | |
class RoundTripEncoder(json.JSONEncoder): | |
DATE_FORMAT = "%Y-%m-%d" | |
TIME_FORMAT = "%H:%M:%S" | |
def default(self, obj): | |
if isinstance(obj, datetime.datetime): | |
return { | |
"_type": "datetime", | |
"value": obj.strftime("%s %s" % ( |
These instructions build on those provided here and here.
Before doing the following, create a new virtual disk and attach it to your VM. The size of the virtual disk just depends on what you intend to use/run and how many containers you intend to run. The default, 8 GB, is probably more than enough and is reasonable to use if in doubt since the default mode dynamically allocates the drive as needed.
Boot the VM and run just
fdisk -l
To see the disk device name(s) and their size. In this case it's the /dev/sda
shown here that has 8 GB capacity:
<filetype binary="false" description="PowerShell" name="PowerShell"> | |
<highlighting> | |
<options> | |
<option name="LINE_COMMENT" value="#" /> | |
<option name="COMMENT_START" value="<#" /> | |
<option name="COMMENT_END" value="#>" /> | |
<option name="HEX_PREFIX" value="" /> | |
<option name="NUM_POSTFIXES" value="" /> | |
<option name="HAS_BRACES" value="true" /> | |
<option name="HAS_BRACKETS" value="true" /> |
Git for Windows comes bundled with the "Git Bash" terminal which is incredibly handy for unix-like commands on a windows machine. It is missing a few standard linux utilities, but it is easy to add ones that have a windows binary available.
The basic idea is that C:\Program Files\Git\mingw64\
is your /
directory according to Git Bash (note: depending on how you installed it, the directory might be different. from the start menu, right click on the Git Bash icon and open file location. It might be something like C:\Users\name\AppData\Local\Programs\Git
, the mingw64
in this directory is your root. Find it by using pwd -W
).
If you go to that directory, you will find the typical linux root folder structure (bin
, etc
, lib
and so on).
If you are missing a utility, such as wget, track down a binary for windows and copy the files to the corresponding directories. Sometimes the windows binary have funny prefixes, so
DWTFYW
Disclaimer:
- no warranty this will work for you!
- I'm not responsible of how you use this!
- READ, VERIFY and TEST the CODE before using!
$( document ).ready(function() { | |
var bbox_re = /bbox (\d+) (\d+) (\d+) (\d+)/i; | |
var posr = function(i) { | |
var t = $(this).attr('title'); | |
var result = t.match(bbox_re); | |
if ( result ) { | |
var top = result[2] / 3; | |
var left = result[1] / 3; |
import { | |
Injectable, | |
Injector, | |
ComponentFactoryResolver, | |
EmbeddedViewRef, | |
ApplicationRef | |
} from '@angular/core'; | |
@Injectable() | |
export class DomService { |