This file contains hidden or 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
{ | |
"Logging": { | |
"LogLevel": { | |
"Default": "Information" | |
}, | |
"Debug": { | |
"LogLevel": { | |
"Default": "Information" | |
} | |
}, |
This file contains hidden or 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
using Microsoft.ApplicationInsights.Channel; | |
using Microsoft.ApplicationInsights.Extensibility; | |
using Microsoft.Extensions.DependencyInjection; | |
public class Startup | |
{ | |
public void ConfigureServices(IServiceCollection services) | |
{ | |
// Add Application Insights telemetry | |
services.AddApplicationInsightsTelemetry(); |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Text.RegularExpressions; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
class Program | |
{ | |
static void Main() |
This file contains hidden or 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 tableToCSV(table) { | |
let rows = table.querySelectorAll('tr'); | |
let csv = []; | |
// Iterate through rows | |
rows.forEach((row) => { | |
let csvRow = []; | |
let cells = row.querySelectorAll('td, th'); | |
// Iterate through cells |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Azure.Storage.Blobs; | |
using Microsoft.EntityFrameworkCore; | |
namespace BlobStorageExample |
This file contains hidden or 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
#!/bin/bash | |
# Get the currently configured project from gcloud | |
CURRENT_PROJECT=$(gcloud config get-value project) | |
# Check if a project ID argument is provided, otherwise use the current project | |
PROJECT_ID="${1:-$CURRENT_PROJECT}" | |
# Ensure that a project ID is set | |
if [ -z "$PROJECT_ID" ]; then |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
[ | |
{ | |
"id": 11409, | |
"name": "Tarot", | |
"symbol": "TAROT", | |
"slug": "tarot", | |
"tags": [], | |
"cmcRank": 6233, | |
"marketPairCount": 1, | |
"circulatingSupply": 0, |
This file contains hidden or 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
Implement RestAPI server to allow you retrieve DVCH VN | |
## Database provided | |
- Mongo DB | |
mongodb+srv://user_ro:<password>@cluster0-b0cl8.gcp.mongodb.net/dvch?retryWrites=true&w=majority | |
- password: o7vv7XCpbHwJxwVW | |
This user is readonly user. it can't insert or update or delete any data from above database | |
This file contains hidden or 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
set e | |
s3_folder=s3://you-bucker/your-folder | |
sftp=user@IP:/FOLDER/ | |
GPG_KEY_NAME="GPG_KEY_NAME"; | |
rm -rf ./encrypted ./csvs ./zip | |
aws s3 cp $s3_folder ./csvs --recursive | |
mkdir ./zip || true |
This file contains hidden or 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
[ | |
"fun", | |
"people", | |
"outside", | |
"lot", | |
"boat", | |
"footy", | |
"bear", | |
"dead", | |
"special", |
NewerOlder