Skip to content

Instantly share code, notes, and snippets.

View farhadkzm's full-sized avatar

Farhad Kazemi farhadkzm

View GitHub Profile
CICD as Product
CLI
- Main function: Bootstrap projects with the given tech stack
- Architecture: Requirements of the tool
- Plugin-based Architecture:
- Functionalities can be added to the cli mostly without touching/breaking other parts of it

Setting up Jenkins on Kubernetes behind a corporate proxy

The purpose of this document is to guide you through challenges you might face with setting up Jenkins on Kubernetes while behind a proxy. Some corporate proxies intercept httpS communications by changing the cert, this causes Jenkins and other tools to fail while trying to connect to target urls. A proper way to fix issues with self-sign certificate (which is the case if your corporate proxy intercepts httpS communications) is to add the corporate' certs to Jenkins JVM as well as its OS. However, to begin with, we first start with a quick fix: Adding proxy configs and forcing Jenkins to get updates from http://updates.jenkins.io (Notice it's not a httpS endpoint).

persistence:
  enabled: true
  storageClass: local-storage
  • Gatsby and Netlify with a sample form that is handled by Netlify Function
  • A defined workflow for testing & previewing a new change in the website before publishing it to production
  • A simple way for a non-technical user to add a new formatted blog post
  • SEO friendly
  • Supporting Persian content
  • PageSpeed score above 90
  • Mobile first
  • Home page similar to the current one
  • A sample page with the following formattings:
  • List items with bullets
Privacy Policy
Magny Ltd. built the Magny app as a Freemium app. This SERVICE is provided by Magny Ltd. at no cost and is intended for use as is.
This page is used to inform visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service.
If you choose to use our Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that we collect is used for providing and improving the Service. We will not use or share your information with anyone except as described in this Privacy Policy.
The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Magny unless otherwise defined in this Privacy Policy.
@farhadkzm
farhadkzm / DM for K8S
Last active September 18, 2018 03:05
def GenerateConfig(context):
"""Generate YAML resource configuration."""
cluster_name = context.properties['CLUSTER_NAME']
cluster_zone = context.properties['CLUSTER_ZONE']
number_of_nodes = context.properties['NUM_NODES']
resources = []
resources.append({
'name': cluster_name,
https://library.educause.edu/topics/teaching-and-learning/online-teaching-strategies
@farhadkzm
farhadkzm / rest_design_guide.md
Last active September 15, 2017 02:14
Notes on designing of a REST API. Mostly from Google's Design Guide for REST APIs
  • The core principle is to define named resources that can be manipulated using a small number of methods.
  • resources and methods are nouns and verbs of the API
  • resource names map to URLs and methods map to HTTP methods.