Skip to content

Instantly share code, notes, and snippets.

View udoyen's full-sized avatar

george udosen udoyen

View GitHub Profile
@udoyen
udoyen / 1.mongodb-aws-setup-guide.md
Created July 11, 2022 13:51 — forked from calvinh8/1.mongodb-aws-setup-guide.md
MongoDB Setup Guide for AWS EC2 Instances with Auth Enabled

MongoDB AWS EC2 Setup Guide

You can see my latest update in my blog here https://medium.com/@calvin.hsieh/steps-to-install-mongodb-on-aws-ec2-instance-62db66981218

Credits:

Big thanks to Elad Nava and Shane Rainville for writing the above articles that allow me to conduct this guide. If by all means that I violated original post's copyright, please contact me.

@udoyen
udoyen / git-pushing-multiple.rst
Created May 9, 2021 15:49 — forked from rvl/git-pushing-multiple.rst
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just

@sotolucas
sotolucas / odoo.conf
Last active May 30, 2023 01:42 — forked from Guidoom/gist:d5db0a76ce669b139271a528a8a2a27f
Sample odoo.conf file
[options]
#
# WARNING:
# If you use the Odoo Database utility to change the master password be aware
# that the formatting of this file WILL be LOST! A copy of this file named
# /etc/odoo/openerp-server.conf.template has been made in case this happens
# Note that the copy does not have any first boot changes
#-----------------------------------------------------------------------------
# Odoo Server Config File - TurnKey Linux
@HacKanCuBa
HacKanCuBa / gunicorn.py
Last active March 17, 2024 07:01 — forked from kodekracker/gunicorn.py
A config file of gunicorn(http://gunicorn.org/) contains fundamental configuration.
"""Gunicorn config file.
by HacKan (https://hackan.net)
Find it at: https://gist.github.com/HacKanCuBa/275bfca09d614ee9370727f5f40dab9e
Based on: https://gist.github.com/KodeKracker/6bc6a3a35dcfbc36e2b7
Changelog
=========
See revisions to access other versions of this file.
@anabadce
anabadce / alb-redirect-only.yaml
Created March 21, 2019 02:10
AWS CloudFormation template: ALB (Application Load Balancer) that only redirects requests (http and https) to new host, no targets
AWSTemplateFormatVersion: '2010-09-09'
Description: 'ALB Application Load Balancer for redirection only'
Parameters:
MyALBName:
Type: 'String'
Default: 'alb-redirect'
VPC:
Type: 'AWS::EC2::VPC::Id'
Default: 'vpc-********'
@DazWilkin
DazWilkin / kubernetes_deployment_ingress.py
Created June 12, 2018 16:40
Cloud Deployment Manager & Kubernetes
def GenerateConfig(context):
"""Generate YAML resource configuration."""
cluster_types_root = '{}/kubernetes'.format(context.env['project'])
cluster_types = {
'Service': '{}-v1:/api/v1/namespaces/{{namespace}}/services'.format(cluster_types_root),
'Deployment': '{}-v1beta1-apps:/apis/apps/v1beta1/namespaces/{{namespace}}/deployments'.format(cluster_types_root),
'Ingress': '{}-v1beta1-extensions:/apis/extensions/v1beta1/namespaces/{{namespace}}/ingresses'.format(cluster_types_root),
}
@DazWilkin
DazWilkin / kubernetes_engine_regional_cluster.py
Last active May 14, 2021 07:09
Cloud Deployment Manager & Kubernetes
def GenerateConfig(context):
"""Generate YAML resource configuration."""
cluster_name = context.properties['CLUSTER_NAME']
cluster_region = context.properties['CLUSTER_ZONE']
number_of_nodes = context.properties['NUM_NODES']
resources = []
outputs = []
@DazWilkin
DazWilkin / kubernetes_deployment.py
Last active May 14, 2021 07:10
Cloud Deployment Manager & Kubernetes
def GenerateConfig(context):
"""Generate YAML resource configuration."""
cluster_types_root = '{}/kubernetes'.format(context.env['project'])
cluster_types = {
'Service': '{}-v1:/api/v1/namespaces/{{namespace}}/services'.format(cluster_types_root),
'Deployment': '{}-v1beta1-apps:/apis/apps/v1beta1/namespaces/{{namespace}}/deployments'.format(cluster_types_root)
}
name = context.properties['name']
@DazWilkin
DazWilkin / generate_cluster_and_types.yaml
Last active May 14, 2021 07:14
Cloud Deployment Manager & Kubernetes
imports:
- path: kubernetes_engine.py
- path: kubernetes_engine_apis.py
resources:
- name: cluster
type: kubernetes_engine.py
properties:
CLUSTER_NAME: [[YOUR-CLUSTER-NAME]]
CLUSTER_ZONE: [[YOUR-CLUSTER-ZONE]]
@harry-cpp
harry-cpp / VSCodeExtension.py
Last active November 17, 2023 16:21
VSCode extension for Nautilus
Moved to:
https://github.com/cra0zy/code-nautilus
since people want to add features to it and no notification arrive from comments on gist.