Skip to content

Instantly share code, notes, and snippets.

View MnifR's full-sized avatar
🎯
Focusing

Raouf MnifR

🎯
Focusing
View GitHub Profile
@MnifR
MnifR / Jenkinsfile
Created March 17, 2020 10:10 — forked from oifland/Jenkinsfile
Loops in Jenkinsfiles
// Related to https://issues.jenkins-ci.org/browse/JENKINS-26481
abcs = ['a', 'b', 'c']
node('master') {
stage('Test 1: loop of echo statements') {
echo_all(abcs)
}
stage('Test 2: loop of sh commands') {
@MnifR
MnifR / Jenkinsfile
Created April 10, 2020 17:06 — forked from sambott/Jenkinsfile
Example Jenkinsfile
#!groovy
String GIT_VERSION
node {
def buildEnv
def devAddress
stage ('Checkout') {
@MnifR
MnifR / Jenkinsfile
Created April 10, 2020 17:06 — forked from bvis/Jenkinsfile
Jenkin pipeline definition example to be integrated with Docker Swarm cluster in our CI/CD environment
pipeline {
agent { node { label 'swarm-ci' } }
environment {
TEST_PREFIX = "test-IMAGE"
TEST_IMAGE = "${env.TEST_PREFIX}:${env.BUILD_NUMBER}"
TEST_CONTAINER = "${env.TEST_PREFIX}-${env.BUILD_NUMBER}"
REGISTRY_ADDRESS = "my.registry.address.com"
SLACK_CHANNEL = "#deployment-notifications"
@MnifR
MnifR / nginx_deployment.yaml
Created May 27, 2020 17:58 — forked from petitviolet/nginx_deployment.yaml
sample Nginx configuration on Kubernetes using ConfigMap to configure nginx.
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-conf
data:
nginx.conf: |
user nginx;
worker_processes 3;
error_log /var/log/nginx/error.log;
events {
@MnifR
MnifR / Jenkinsfile
Created May 27, 2020 18:12 — forked from merikan/Jenkinsfile
Some Jenkinsfile examples
Some Jenkinsfile examples
@MnifR
MnifR / nginx-socketio-ssl-reverse-proxy.conf
Created October 5, 2020 15:23 — forked from gmanau/nginx-socketio-ssl-reverse-proxy.conf
How to setup nginx as nodejs/socket.io reverse proxy over SSL
upstream upstream-apache2 {
server 127.0.0.1:8080;
}
upstream upstream-nodejs {
server 127.0.0.1:3000;
}
server {
listen 80;
@MnifR
MnifR / sql-mongo_comparison.md
Created March 18, 2021 10:18 — forked from aponxi/sql-mongo_comparison.md
MongoDb Cheat Sheets

SQL to MongoDB Mapping Chart

SQL to MongoDB Mapping Chart

In addition to the charts that follow, you might want to consider the Frequently Asked Questions section for a selection of common questions about MongoDB.

Executables

The following table presents the MySQL/Oracle executables and the corresponding MongoDB executables.

@MnifR
MnifR / mac-setup-redis.md
Created April 5, 2021 17:07 — forked from tomysmile/mac-setup-redis.md
Brew install Redis on Mac

type below:

brew update
brew install redis

To have launchd start redis now and restart at login:

brew services start redis
@MnifR
MnifR / README.md
Created April 16, 2021 08:54 — forked from hofmannsven/README.md
Git Cheatsheet
@MnifR
MnifR / eks.sh
Created May 31, 2021 10:59 — forked from vfarcic/eks.sh
####################
# Create a cluster #
####################
# Follow the instructions from https://github.com/weaveworks/eksctl to intall eksctl if you do not have it already
export AWS_ACCESS_KEY_ID=[...] # Replace [...] with the AWS Access Key ID
export AWS_SECRET_ACCESS_KEY=[...] # Replace [...] with the AWS Secret Access Key