Skip to content

Instantly share code, notes, and snippets.

View worldofprasanna's full-sized avatar
🔥
Game is on

Prasanna worldofprasanna

🔥
Game is on
View GitHub Profile
| id | name | parent |
|----|--------------------------|--------|
| 1 | Apple Inc | (null) |
| 2 | Google Inc | (null) |
| 3 | Apple India | 1 |
| 4 | Google India | 2 |
| 5 | Apple Chennai | 3 |
| 6 | Apple Bangalore | 3 |
| 7 | Apple Chennai - Ascendas | 5 |
@worldofprasanna
worldofprasanna / pipeline-setup-with-approval-circleci.yml
Last active April 26, 2019 02:01
Pipeline setup with Approval process
...
workflows:
version: 2
sample_pipeline:
jobs:
- linting
- unit_test
- build_artifact:
requires:
- unit_test
@worldofprasanna
worldofprasanna / pipeline-setup-circleci.yml
Created April 26, 2019 01:47
Complete Pipeline setup in CircleCI
version: 2
jobs:
unit_test:
docker:
- image: busybox:latest
steps:
- run:
name: Unit Test
command: echo "Going to run Unit Test"
linting:
@worldofprasanna
worldofprasanna / first-workflow-circleci.yml
Last active April 26, 2019 01:44
First workflow - medium post
version: 2
jobs:
unit_test:
docker:
- image: busybox:latest
steps:
- run:
name: Unit Test
command: echo "Going to run Unit Test"
linting:
@worldofprasanna
worldofprasanna / first-job-circleci.yml
Created April 26, 2019 01:35
First Job in CircleCI
version: 2
jobs:
build:
docker:
- image: busybox:latest
steps:
- run:
name: Hello World
command: echo "Hello World"
@worldofprasanna
worldofprasanna / circleci.yml
Created March 3, 2019 03:03
Example Circle CI Configuration
version: 2
jobs:
test_setup:
docker:
- image: circleci/ruby:2.5.3-node-browsers
steps:
- run:
name: Test the CircleCI
command: echo "Testing the circle ci"
workflows:
@worldofprasanna
worldofprasanna / pod-lifecycle.yml
Created February 18, 2019 14:55
Lifecycle of k8s pod
kind: Deployment
apiVersion: apps/v1beta1
metadata:
name: lifecycle
spec:
replicas: 1
template:
metadata:
labels:
app: lifecycle
@worldofprasanna
worldofprasanna / terminal-capture.md
Last active April 30, 2024 20:54
Multiple screen terminal capture using asciinema & tmux

Commands Reference

  1. Start a new tmux named session tmux new -s terminal-capture
  2. Split the screen using these commands,
  • vertical split <C-b>"
  • horizontal split <C-b>%
  1. To navigate between the panes,
  • To goto Left pane <C-b> left-key
  • To goto Right pane <C-b> right-key
  • To goto Top pane up-key
@worldofprasanna
worldofprasanna / .tigrc
Created January 23, 2019 06:41
tig configuration
# tig configuration
set main-view-author-display = full
set main-view-date-display = relative
set split-view-width = 80%
@worldofprasanna
worldofprasanna / readability.rb
Created January 9, 2019 02:14
For blog on things I like about ruby
# Functions with ?
a = 0
a.zero?
a.nil?
# Loop statement
10.times do
puts "Hello Ruby !!!"
end