Skip to content

Instantly share code, notes, and snippets.

View orsenthil's full-sized avatar
🏠
Working from home

Senthil Kumaran orsenthil

🏠
Working from home
View GitHub Profile
@orsenthil
orsenthil / deployment.yaml
Created March 26, 2024 05:50 — forked from lvthillo/deployment.yaml
Example of NodePort service in Kubernetes
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-app
spec:
selector:
matchLabels:
run: my-app
replicas: 2
template:
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css">
<script src="http://cmx.io/v/0.1/cmx.js" charset="utf-8"></script>
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style>
<body>
<div style="max-width:900px; -webkit-transform:rotate(0deg)">
<scene id="scene1">
<label t="translate(0,346)">
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css">
<script src="http://cmx.io/v/0.1/cmx.js" charset="utf-8"></script>
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style>
<body>
<div style="max-width:900px; -webkit-transform:rotate(0deg)">
<scene id="scene1">
<label t="translate(0,346)">
[poll type=multiple results=always min=1 max=3 public=true close=2019-07-30T06:46:00.000Z]
* August 17, Saturday
* August 24, Saturday
* August 25, Sunday
[/poll]
@orsenthil
orsenthil / gist:6a851be3d0a4a631a94a7c5feb20a1b0
Created January 4, 2019 14:13
feeds_translations_helper.tmpl
## -*- coding: utf-8 -*-
## Handles both feeds and translations
<%def name="head(classification=None)">
% if rss_link:
${rss_link}
% endif
% if len(translations) > 1:
% for language in sorted(translations):
% if classification:
# dcos-e2e error message
Step 1. Created Python3.5 Virtual Environment
Step 2. Built DC/OS
Step 3. Installed DC/OS E2E
pip3 install --upgrade git+https://github.com/dcos/dcos-e2e.git@2018.12.10.0
```
@orsenthil
orsenthil / Price Breakdown.md
Created November 19, 2017 02:04 — forked from justjanne/Price Breakdown.md
Server Price Breakdown: DigitalOcean, Amazon AWS LightSail, Vultr, Linode, OVH, Hetzner, Scaleway/Online.net:

Server Price Breakdown: DigitalOcean, Amazon AWS LightSail, Vultr, Linode, OVH, Hetzner, Scaleway/Online.net:

$5/mo

Provider Type RAM Cores Storage Transfer Network Price
LightSail vps 512MB 1 20GB SSD 1TB 1000M 5.00$
DO vps 512MB 1 20GB SSD 1TB 1000M 5.00$
d0cb085a Update version string to 1.8.10
65d66d7f Merge pull request #1663 from mesosphere/1.8.9-train-167
7c21459e Merge #1651
cd817432 upgrade navstar and minuteman to support 1k node cluster
f0b3f784 Merge pull request #1602 from mesosphere/1.8.9-train-166
f612621c Merge #1594
de6384eb Merge #1584
541afd21 Merge #1582
e1f2c91d Merge #1581
670e0bc1 Merge #1570
@orsenthil
orsenthil / production.py
Created September 12, 2017 20:40
Using Mock
class Production:
def call_one(self, arg1, arg2):
return arg1 + arg2
def call_two(self, arg1, arg2, arg3):
return self.call_one(str(arg1), str(arg2) + str(arg3))
$ make
centos-7 -> FROM centos:7
coreos -> FROM jess/coreos
debian-jessie -> FROM debian:jessie
fedora-23 -> FROM fedora:23
ubuntu-xenial -> FROM ubuntu:xenial
+ Building the centos-7 base image
Sending build context to Docker daemon 3.072kB
Step 1/2 : FROM centos:7
---> 8140d0c64310