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
import * as path from 'path'; | |
import { fs, log } from "vortex-api"; | |
import { IExtensionApi } from "vortex-api/lib/types/api"; | |
type TranslationLanguage = {code: string, content: string}; | |
/** | |
* Loads extension-specific translation files directly into `i18next` | |
* |
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
{ | |
"strongly-typed-id": { | |
"prefix": "typedid", | |
"scope": "csharp", | |
"body": [ | |
"[JsonConverter(typeof(${1:TypedId}JsonConverter))]", | |
" [TypeConverter(typeof(${1:TypedId}TypeConverter))]", | |
" public readonly struct ${1:TypedId} : IComparable<${1:TypedId}>, IEquatable<${1:TypedId}>", | |
" {", | |
" public Guid Value { get; }", |
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
# This is pretty trimmed down, but is the basic idea, at least | |
docker ps -a -q -f status=exited | xargs -r docker rm | |
git reset --hard | |
git checkout stage-$1 |
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
public bool Match(Path path, VersionSpec version) | |
{ | |
var platform = GetPlatform(version); | |
_logger.LogTrace("Invoking Cake matcher for '{0}' (inferred '{1}' platform); matching against '{2}'", version.Summary, platform, path.ToString()); | |
var name = path.GetFilenameWithoutExtension(); | |
return name.Contains($"Cake-{platform}") && name.Contains($"-{version}"); | |
} | |
private string GetPlatform(VersionSpec version) { | |
var minor = int.Parse(version.ToString().TrimStart('v').Split('.')[1]); |
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
version: '2' | |
services: | |
proxy: | |
image: jwilder/nginx-proxy | |
container_name: nginx-proxy | |
ports: | |
- '80:80' | |
- '443:443' | |
volumes: | |
- /var/run/docker.sock:/tmp/docker.sock:ro |
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
[Route("{prefix?}")] | |
public class ApiController : Controller {} |
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.yml | |
services: | |
# trimmed | |
nginx: | |
# trimmed | |
volumes: | |
- shared:/path/in/container | |
volumes: |
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
Microsoft Visual Studio Solution File, Format Version 12.00 | |
# Visual Studio 15 | |
VisualStudioVersion = 15.0.26228.4 | |
MinimumVisualStudioVersion = 10.0.40219.1 | |
Global | |
GlobalSection(SolutionProperties) = preSolution | |
HideSolutionNode = FALSE | |
EndGlobalSection | |
EndGlobal |
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
networks: | |
default: | |
external: | |
name: nginx-proxy |
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
#!/usr/bin/env bash | |
for i in $(docker ps -q);do | |
echo "Container $i" | |
docker inspect -f '{{ json .Mounts }}' $i | python -m json.tool | |
echo "-------------------" | |
done |
NewerOlder