** Replace $(...)
with information of yours.
First create the san.conf
[ req ]
default_bits = 2048
distinguished_name = req_distinguished_name
2022-08-25:19:32:49,109 INFO [config.py:17] Updating logging exporter | |
2022-08-25:19:32:49,110 INFO [config.py:20] Updating otlp exporter | |
2022-08-25T19:32:49.780Z info service/telemetry.go:103 Setting up own telemetry... | |
2022-08-25T19:32:49.783Z info service/telemetry.go:138 Serving Prometheus metrics {"address": ":8888", "level": "basic"} | |
2022-08-25T19:32:49.784Z debug components/components.go:28 Stable component. {"kind": "exporter", "data_type": "traces", "name": "otlp", "stability": "stable"} | |
2022-08-25T19:32:49.786Z debug components/components.go:28 Stable component. {"kind": "processor", "name": "batch", "pipeline": "traces", "stability": "stable"} | |
2022-08-25T19:32:49.786Z info components/components.go:30 In development component. May change in the future. {"kind": "processor", "name": "spanmetrics", "pipeline": "traces", "stability": "in development"} | |
2022-08-25T19:32:49.786Z info [email protected]/processor.go:93 Building spanmetricsprocessor {"kind": "processor", "name": "spanmetric |
// auth.js in nuxtjs/store | |
export const state = () => { | |
return { | |
session: { | |
user: null, | |
token: null | |
} | |
} | |
} |
.PHONY: githooks | |
githooks: | |
@git config core.hooksPath .githooks |
Running the SQL SERVER container | |
docker run -e ACCEPT_EULA=Y -e MSSQL_SA_PASSWORD=teste123$ --name medizin -p 1400:1433 -v data:/var/opt/mssql -dd mcr.microsoft.com/mssql/server:2017-latest | |
Change SA user password | |
docker exec -it medizin /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U SA -P ‘teste123$’ -Q 'ALTER LOGIN SA WITH PASSWORD=“teste123$”’ | |
Creating backup folder inside the container |
import logging | |
import math | |
import mimetypes | |
from multiprocessing import Pool | |
import os | |
from boto.s3.connection import S3Connection | |
from filechunkio import FileChunkIO | |
require 'csv' | |
namespace :user_importer do | |
desc "Import users from a CSV file" | |
task :import, [:csv_file] => [:environment] do |_, args| | |
abort "Please specify the CSV file to import" if args[:csv_file].blank? | |
CSV.foreach(args[:csv_file], col_sep: ';', headers: true) do |new_user| | |
user = User.find_by_email(new_user['email']) | |
if user |
import cProfile | |
import pstats | |
from io import StringIO | |
import logging | |
import os | |
import time | |
PROFILE_LIMIT = int(os.environ.get("PROFILE_LIMIT", 30)) | |
PROFILER = bool(int(os.environ.get("PROFILER", 1))) |
"""Reading a csv file from an url.""" | |
import csv | |
import codecs | |
import requests | |
url = '' | |
response = requests.get(url, stream=True, timeout=300) | |
csv_reader = csv.reader( |