I hereby claim:
- I am ebrucucen on github.
- I am ebrucucen (https://keybase.io/ebrucucen) on keybase.
- I have a public key ASDzWyx8JE7ZlqLUclZkr4OMqRc-xtbuWpxCXJ-mP_Iq6go
To claim this, I am signing this object:
public static void main(String[] args) throws Exception { | |
Configuration conf = new Configuration(); | |
String[] otherArgs = new GenericOptionsParser(conf, args).getRemainingArgs(); | |
if (otherArgs.length != 2) { | |
System.err.println("Usage: ratemovie <in> <out>"); | |
System.exit(2); | |
} | |
Job job = new Job(conf, "rate movie"); | |
job.setJarByClass(MovieRating.class); | |
job.setMapperClass(TokenizerMapper.class); |
def reducer(self, word, counts): | |
yield word, sum(counts) |
def mapper(line): | |
words = line.split() | |
for word in words: | |
yield word.lower(), 1 |
from mrjob.job import MRJob | |
class WordOccurence(MRJob): | |
def mapper(self, _, line): | |
words = line.split() | |
for word in words: | |
yield word.lower(), 1 | |
def reducer(self, word, counts): | |
yield word, sum(counts) |
#==================== | |
#Step0: Define Variables | |
#==================== | |
rgName="rg-core" | |
kvName="kv-core-20200125" | |
appName="demo_backend_spn" | |
spnCertName="SpnCoreCert" | |
location="ukwest" | |
#===================== | |
#Step1: Create Resource Group and KeyVault |
provider "azurerm" { | |
version="=1.36.1" | |
} | |
resource azurerm_resource_group "rg_demo_backend" { | |
name="rg-demo-backend" | |
location="ukwest" | |
} | |
resource azurerm_storage_account "sa_demo_backend" { |
I hereby claim:
To claim this, I am signing this object:
# Configure the Microsoft Azure Provider | |
provider "azurerm" { | |
subscription_id="xxxxyyyy-xxyy-xxyy-xxyy-xxxxxxyyyyyy" | |
tenant_id="xxxxyyyy-xxyy-xxyy-xxyy-xxxxxxyyyyyy" | |
client_id="xxxxyyyy-xxyy-xxyy-xxyy-xxxxxxyyyyyyyy" | |
client_secret="xxxxxxxxxxxxxxxxxxxxxxxxx" | |
} | |
resource "azurerm_resource_group" "test" { | |
name = "demo-rg-test" | |
location = "West Europe" |
############################################### | |
function Add-Account { | |
param( | |
[string]$AzureTenantId, | |
[string]$AzureServicePrincipalName, | |
[string]$AzureSPNPassword | |
) | |
############################################### | |
##Step1: Get Variables |
function New-AzureSpn{ | |
param([string]$Subscriptionid , | |
[string]$environmentName, | |
[string]$ApplicationName, | |
[string]$resourceGroupName, | |
[string]$location, | |
[string]$password | |
) | |
#Login-AzureRmAccount |