Skip to content

Instantly share code, notes, and snippets.

@nicolasdao
nicolasdao / docker_guide.md
Last active May 2, 2024 02:16
Docker Guide. Keywords: docker

DOCKER GUIDE

Docker is a tool that follows the Cattle, no pets DevOps mantra. It describes your hosting environment via a Dockerfile. Each system deployment results in an entirely new reprovisionned hosting environment while the other is decommissioned in the background. Docker achieves this by making it cheap to create new system images to spawn fleets of new containers.

Table of contents

@nicolasdao
nicolasdao / google_cloud_run_guide.md
Last active May 2, 2024 02:16
Google Cloud Run. Keywords: google cloud run cloudrun googlecloudrun googlecloud
@nicolasdao
nicolasdao / netcore_guide.md
Last active May 2, 2024 02:16
.NET Core guide. Keywords: c# .net dotnet core netcore
@nicolasdao
nicolasdao / windows_server_guide.md
Last active May 2, 2024 02:16
Windows server in the Cloud. Keywords: microsoft windows server cloud ec2

GUIDE TO WINDOWS SERVER IN THE CLOUD

Table of contents

Connecting to a MSSQL server

Testing MSSQL server is accessible

The easiest way to test the VM has access to a specific MSSQL server is to run a dummy query against it. The best tool to do this is the sqlcmd Utility. Google download sqlcmd Utility to find the link where this command line tool can be installed. Once installed, this utility is usually installed under a path similar to C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\sqlcmd.exe.

@nicolasdao
nicolasdao / typescript_guide.md
Last active May 2, 2024 02:15
Typescript guide. Keywords: typescript type script ts
@nicolasdao
nicolasdao / Checkmark.vue
Last active May 2, 2024 02:15
Checkmark animation in vue. Keywords: checkmark vtick tick v-tick vue vuejs
<template>
<div :id="id" class="circle-loader" :class="style.class" :style="style.theme">
<div class="circle-filler" v-if="!style.class.outline"></div>
<div class="draw" :class="style.checkmark.class"></div>
</div>
</template>
<script>
/**
* <checkmark :status="pending" :options="{ 'color':{ 'primary': 'blue', 'danger':'red' } }"></checkmark>
@nicolasdao
nicolasdao / online_security_guide.md
Last active May 2, 2024 02:14
Online security guide. Keywords: security
@nicolasdao
nicolasdao / http_protocol_and_codes.md
Last active May 2, 2024 02:14
HTTP protocol. Keywords: http code url

HTTP PROTOCOL & CODES

Table of contents

URL

URLs are broken down as follow:

@nicolasdao
nicolasdao / UserInStrategy.js
Last active May 2, 2024 02:14
UserIn strategy template. Keywords: userin
/**
* Copyright (c) 2020, Cloudless Consulting Pty Ltd.
* All rights reserved.
*
* To use this template, follow the next steps:
*
* 1. Install 'userin-core': npm i userin-core
* 2. Set the constant variable 'STRATEGY' to your liking.
* 3. Rename the class 'YourStrategy' to your liking.
* 4. Implement all the following functions: