Skip to content

Instantly share code, notes, and snippets.

View abderrazak-bouadma's full-sized avatar
👻
DevOps

Abderrazak BOUADMA abderrazak-bouadma

👻
DevOps
  • Binance
View GitHub Profile

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:

#!/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)
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 January 16, 2018 21:56 — forked from markjlorenz/jenkins-api-start-and-monitor-a-build
Start a job with the Jenkins API and monitor it's console output
#! /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 \
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
<head>
<title>todo</title>
</head>
<body>
{{> hello}}
</body>
<template name="hello">
<h1>Hello World!</h1>
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");
@Configuration
public class AppConfig {
@Bean
public TransferService transferService() {
return new TransferServiceImpl();
}
}