This pattern is useful for I/O intensive tasks (e.g. HTTP requests and file system interactions).
import concurrent.futures
import logging
import random
import sys
import time
#!/bin/bash | |
if [ "$EUID" -ne 0 ] | |
then echo "error: you must be root to run this script" | |
exit | |
fi | |
FILENAME=/tmp/azuredatastudio-latest.deb | |
LINK=$(curl -s "https://docs.microsoft.com/en-us/sql/azure-data-studio/download-azure-data-studio?view=sql-server-2017" | hxnormalize -x | hxselect 'table a[data-linktype="external"]' | sed -r 's/(.*)(<a[^>]*>.deb<\/a>)(.*)/\2/' | sed -r 's/(.*)href="([^"]*)"(.*)/\2/') |
Check the docs tutorial in here: https://docs.gitlab.com/ee/user/ssh.html
These are the main steps:
# the "-C" parameter is a comment to remind you about this key
ssh-keygen -t ed25519 -C " at gitlab" -f $HOME/.ssh/my_gitlab_eddsa
Run the following code with: go test -v -run TestFooInPlace
package foo
import (
"fmt"
"log"
"math/rand"
"testing"
A collection of commands useful to do things in the Azure cloud.
$ # Check the state of a SQL Server instance
$ # https://docs.microsoft.com/en-us/cli/azure/sql/server?view=azure-cli-latest#az-sql-server-show
$ az sql server show --name ${SQL_SERVER_NAME} --resource-group ${RESOURCE_GROUP_NAME} | jq .state
On SQL Server 2016 and Azure SQL database it's possible to treat JSON objects stored a strings inside a table. Cf. this: https://docs.microsoft.com/en-us/sql/relational-databases/json/json-data-sql-server?view=sql-server-2017
DROP TABLE IF EXISTS SeriesInfo;
GO