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
// See https://aka.ms/new-console-template for more information | |
Console.WriteLine("Hello, World!"); | |
var dict = new Dictionary<string, int> | |
{ | |
["euwe-0"] = 0, | |
["euno-0"] = 0, | |
["euwe-1"] = 0, | |
["euno-1"] = 0, |
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
<!-- | |
To know <sourcepath> you might just select proprties of the file in Visual Studio and select "Copy To Output Directory = Copy if Newer" | |
It will add record to csproj with <sourcepath> included. | |
<targetpath> is the path from the build directory <projectsrc>/bin/x64/Debug/* | |
--> | |
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
function onOpen() { | |
var ui = DocumentApp.getUi(); | |
ui.createMenu('Services') | |
.addItem('Add Day', 'addNewDay') | |
.addToUi(); | |
} | |
function formatTwoDigit(n) { | |
return n < 10 ? '0' + n : '' + n; |
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 config resolves different containers depending on route path, not on ips/domains | |
# on top of that it uses dynamic resolving, meaning that if some docker containers are not alive | |
# nginx will still work. It is achieved by using variables which makes nginx resolve host on runtime and not on start. | |
# frontend dev env | |
server { | |
# nginx container port | |
listen 3001; | |
server_name localhost; |
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
ping.exe -t google.com|Foreach{"{0} - {1}" -f (Get-Date),$_} |
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
** run these commands inside your machine | |
docker run -v /srv/gitlab-runner/config:/etc/gitlab-runner --name runner -v /var/run/docker.sock:/var/run/docker.sock -d gitlab/gitlab-runner | |
docker exec -it runner bash | |
gitlab-runner register -n \ | |
--url "https://gitlab.com/" \ | |
--registration-token "qSf6YzdsXjMug69WxVTt" \ | |
--executor "docker" \ |