Skip to content

Instantly share code, notes, and snippets.

Avatar
👻
DevOps

Abderrazak BOUADMA abderrazak-bouadma

👻
DevOps
  • Kyriba
  • Paris
View GitHub Profile
@abderrazak-bouadma
abderrazak-bouadma / convert-vmdk-to-fixed-vhd.ps1
Created Sep 11, 2018
converts a VMware vmdk to an Azure compatible fixed VHD
View convert-vmdk-to-fixed-vhd.ps1
# converts a VMware vmdk to an Azure compatible fixed VHD
# to use the VHD you've then to upload into a storage container as a BlobPage
# then create a Managed Disk
# then create a VM from that Managed Disk
#
ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath disk1.vmdk -VhdType Fixed -VhdFormat vhd -destination disk1.vhd
View keybase.md

Keybase proof

I hereby claim:

  • I am abderrazak-bouadma on github.
  • I am jpuzzler (https://keybase.io/jpuzzler) on keybase.
  • I have a public key ASDQQyOW1YOL26kKf-TMH2jUitWwS_nC5AdmeDklVYWQfAo

To claim this, I am signing this object:

View configAKSwithACR.sh
#!/bin/bash
AKS_RESOURCE_GROUP=DIOR-AKS-CLUSTER-RG
AKS_CLUSTER_NAME=akscluster
ACR_RESOURCE_GROUP=DIOR-CONTAINER-REGISTRY-RG
ACR_NAME=dioracr
# Get the id of the service principal configured for AKS
CLIENT_ID=$(az aks show --resource-group $AKS_RESOURCE_GROUP --name $AKS_CLUSTER_NAME --query "servicePrincipalProfile.clientId" --output tsv)
View k8s-pim.yml
kind: Service
apiVersion: v1
metadata:
name: pim-service
spec:
type: LoadBalancer
ports:
- port: 8080
selector:
app: pim
@abderrazak-bouadma
abderrazak-bouadma / jenkins-api-start-and-monitor-a-build
Last active Jan 16, 2018 — forked from dapplebeforedawn/jenkins-api-start-and-monitor-a-build
Start a job with the Jenkins API and monitor it's console output
View jenkins-api-start-and-monitor-a-build
#! /usr/bin/env bash
JENKINS_URL="localhost:8080"
JOB_NAME="YourJobName
USER_NAME="api"
USER_TOKEN="f6706YOURUSERTOKENd2c51"
QUEUE_URL=$(curl --silent "http://${JENKINS_URL}/job/${JOB_NAME}/build" \
--user "${USER_NAME}:${USER_TOKEN}" \
--data "token=${JOB_TOKEN}" -XPOST \
View xcopy-schtasks-howto.txt
schtasks /run /s srvclddtld161 /tn soa-java-product-stop
xcopy bin/*.* \\srvclddtld161\d$\Homeware\apps\showcase\java\product
schtasks /run /s srvclddtld161 /tn soa-java-product-start
View todo.html
<head>
<title>todo</title>
</head>
<body>
{{> hello}}
</body>
<template name="hello">
<h1>Hello World!</h1>
View todo.js
if (Meteor.isClient) {
Template.hello.greeting = function () {
return "Welcome to todo.";
};
Template.hello.events({
'click input' : function () {
// template data, if any, is available in 'this'
if (typeof console !== 'undefined')
console.log("You pressed the button");
View AppConfig.java
@Configuration
public class AppConfig {
@Bean
public TransferService transferService() {
return new TransferServiceImpl();
}
}
You can’t perform that action at this time.