This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a gist with snippets of code demonstration how to easily add an APM such as Opentelemetry to a Buildpack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat my-app.py | |
from flask import Flask, request, render_template | |
import gunicorn | |
import platform | |
import subprocess | |
app = Flask(__name__) | |
@app.route("/") | |
def hello(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
login: 'holbertonschool' | |
password: 'mysecretpassword!' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ find . -name .svn -type d -exec rm -f {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder