Skip to content

Instantly share code, notes, and snippets.

View sylvainkalache's full-sized avatar
💭
Writing some cool Cloud Foundry Korifi tutorials 🖊

Sylvain Kalache sylvainkalache

💭
Writing some cool Cloud Foundry Korifi tutorials 🖊
View GitHub Profile
@sylvainkalache
sylvainkalache / Streamlined APM Integration in Cloud Native Buildpacks
Last active May 20, 2024 17:51
Streamlined APM Integration in Cloud Native Buildpacks
This is a gist with snippets of code demonstration how to easily add an APM such as Opentelemetry to a Buildpack
@sylvainkalache
sylvainkalache / display_python_app_file.sh
Last active May 20, 2024 17:41
Streamlined APM Integration in Cloud Native Buildpacks
$ cat my-app.py
from flask import Flask, request, render_template
import gunicorn
import platform
import subprocess
app = Flask(__name__)
@app.route("/")
def hello():
@sylvainkalache
sylvainkalache / Deploying Multi-Language Apps to Kubernetes with Open Source Korifi
Last active September 5, 2023 22:13
Tutorial demonstrating how to publish a Ruby, Node.js, ASP.NET, and PHP app to Kubernetes by using Korifi
This gist contains the commands I used for a tutorial demonstrating how to push a Ruby, Node.js, ASP.NET, and PHP app to Kubernetes by using Cloud Foundry Korifi.
@sylvainkalache
sylvainkalache / kubectl-get-clusterbuilder-ouput.yaml
Created July 7, 2023 15:38
kubectl get clusterbuilder cf-kpack-cluster-builder -o yaml
apiVersion: kpack.io/v1alpha2
kind: ClusterBuilder
metadata:
annotations:
meta.helm.sh/release-name: korifi
meta.helm.sh/release-namespace: korifi
creationTimestamp: "2023-07-06T14:08:49Z"
generation: 1
labels:
app.kubernetes.io/managed-by: Helm
@sylvainkalache
sylvainkalache / credentials.yaml
Created August 2, 2016 03:17
Simple Ruby code to load and use a yaml file
login: 'holbertonschool'
password: 'mysecretpassword!'
@sylvainkalache
sylvainkalache / while42-rules
Last active August 29, 2015 14:19
while42 rules
while42 rules
<ol>
<li>French only</li>
<li>Tech Engineers only</li>
<li>Real network, real people</li>
<li>No asshole</li>
</ol>
More details on <a href="http://while42.org/">while42.org</a>
@sylvainkalache
sylvainkalache / install_mongoDB.sh
Created April 3, 2012 04:03
Install MongoDB on Ubuntu
# Import 10gen apt repository information
$ echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' > etc/apt/sources.list.d/10gen.list
# Import the PGP key
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
# Update your apt source
$ sudo apt-get update
# Install MongoDB
@sylvainkalache
sylvainkalache / rbenv.sh
Created April 3, 2012 03:47
Handle several Ruby environment
# Will set the Ruby 1.9.2 as default
$ rbenv global 1.9.2-p290
# Will set Ruby 1.8.7 as default for the current directory
$ rbenv local 1.8.7-p352
# Will unset the Ruby version for the current directory
$ rbenv local --unset
# Run this command after you install a new version of Ruby or install a gem.
@sylvainkalache
sylvainkalache / delete_svn_files.sh
Created March 22, 2012 05:32
How to delete svn files from a directory
$ find . -name .svn -type d -exec rm -f {} \;
@sylvainkalache
sylvainkalache / log_capistrano_output.rb
Created March 22, 2012 05:30
Log Capistrano output to logfile
require 'capistrano/logger'
logfile = '/var/log/capistrano.log'
custom_logger = Capistrano::Logger.new(:output => logfile)
custom_logger.level = Capistrano::Logger::TRACE
self.logger = custom_logger