Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
// Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0.0 TEL | Telepresence 0.102-55-g5505f67 launched at Mon Oct 28 10:39:13 2019
0.0 TEL | /usr/share/cellery/telepresence-0.101/bin/tel-0.102-55-g5505f67 --deployment telepresence--telepresence-deployment
0.0 TEL | Using images version 0.102 (dev)
0.0 TEL | uname: uname_result(system='Linux', node='asma-ThinkPad-X1-Carbon-5th', release='4.10.0-37-generic', version='#41~16.04.1-Ubuntu SMP Fri Oct 6 22:42:59 UTC 2017', machine='x86_64', processor='x86_64')
0.0 TEL | Platform: linux
0.0 TEL | WSL: False
0.0 TEL | Python 3.5.3+ (default, Nov 29 2017, 08:55:08)
0.0 TEL | [GCC 5.4.0 20160609]
0.0 TEL | BEGIN SPAN main.py:40(main)
0.0 TEL | BEGIN SPAN startup.py:83(set_kube_command)
apiVersion: v1
clusters:
- cluster:
certificate-authority-data:
server: https://35.199.158.254
name: k8s
contexts:
- context:
cluster: k8s
user: teleport
dist: xenial
services:
- docker
cache:
directories:
- .autoconf
before_install:
- curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
- chmod +x ./kubectl
- sudo mv ./kubectl /usr/local/bin/kubectl
// Cell file for Hello world Sample
import ballerina/config;
import celleryio/cellery;
public function build(cellery:ImageName iName) returns error? {
// Hello Component
// This Components exposes the HTML hello world page
cellery:Component helloComponent = {
name: "hello",
source: {
@azinneera
azinneera / aws-copy-amis.sh
Last active August 2, 2018 19:01
Script to copy AMIs across regions using the AWS CLI
#!/bin/bash
####################################################################################
# Gets the list of AMIs from us-east-1 region and copies them to all other regions #
####################################################################################
set -o xtrace
sourceRegion="us-east-1"
@azinneera
azinneera / uuid-gen.xslt
Last active February 12, 2024 10:17
XSLT generate unique UUID
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:math="http://exslt.org/math" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:uuid="http://www.uuid.org" version="2.0">
<xsl:output method="xml" encoding="UTF-8"/>
<xsl:template match="/">
<Payment xmlns="http://ws.apache.org/ns/synapse">
<xsl:for-each select="//Order/lunch">
<discount>
<li>
<xsl:attribute name="uid" select="uuid:get-uuid(drinkName)"/>
<xsl:value-of select="drinkName"/>
<span>
@azinneera
azinneera / threaddump-jstack.bat
Last active November 4, 2021 10:15
Windows .bat file to generate thread dumps for java process
REM This batch script generates a given number of thread dumps at a given interval in seconds
REM To generate 4 thread dumps at 15s intervals for the java process with id 1234
REM execute the script as
REM threaddump-jstack.bat 1234 4 15
for /L %%i in (1,1,%2) do (
echo Taking Thread Dump %%i
jstack -l %1 > thread-dump-%%i.txt
timeout %3