Skip to content

Instantly share code, notes, and snippets.

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

Arjun Dandagi ArjunDandagi

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am arjundandagi on github.
  • I am arjundandagi (https://keybase.io/arjundandagi) on keybase.
  • I have a public key whose fingerprint is 778B 3355 74A7 0B37 E12D 77B3 972E 9814 C4DA 4A49

To claim this, I am signing this object:

apiVersion: v1
data:
configManagementPlugins: |
- name: decider2
generate:
command: ["/bin/bash","-c",'rgrep prod ../apps/ &>/dev/null || exit 0 ; for i in *.yaml;do cat $i;echo ---;done']
kind: ConfigMap
metadata:
labels:
app.kubernetes.io/name: argocd-cm
@ArjunDandagi
ArjunDandagi / ecr-cred-updater.sh
Created October 5, 2021 08:15 — forked from cablespaghetti/ecr-cred-updater.sh
Automatic Updating Amazon ECR Credentials in Kubernetes
#!/bin/bash
# Get directory of script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [[ $# -ne 1 ]]
then
echo "ERROR: This script expects the namespace name to be given as an argument"
echo "e.g. ./ecr-cred-updater.sh my-namespace"
exit 1
@ArjunDandagi
ArjunDandagi / hoge.rb
Created August 24, 2021 21:07 — forked from ZPascal/hoge.rb
Using GitHubPrivateRepositoryReleaseDownloadStrategy removed in brew v2
require "formula"
require_relative "lib/private_strategy"
class Hoge < Formula
homepage "https://github.com/yourcompany/hoge"
url "https://github.com/yourcompany/hoge/releases/download/v0.1.0/hoge_v0.1.0_darwin_amd64.tar.gz", :using => GitHubPrivateRepositoryReleaseDownloadStrategy
sha256 "6de411ff3e4b1658a413dd6181fcXXXXXXXXXXXXXXXXXXXX"
head "https://github.com/yourcompany/hoge.git"
version "0.1.0"
@ArjunDandagi
ArjunDandagi / pom.xml
Last active October 3, 2020 12:01
settings file for publishing to maven
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.2.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
@ArjunDandagi
ArjunDandagi / git-maven-howto.md
Created September 27, 2020 17:36 — forked from fernandezpablo85/git-maven-howto.md
how to create your own maven repository on github

How to create a maven repository for your github project step by step

Clone your project in a separate folder

(note: replace ORGANIZATION and PROJECT)

git clone git clone git@github.com:ORGANIZATION/PROJECT.git my-repository

Cd into it

@ArjunDandagi
ArjunDandagi / dockerhub-v2-api-user.sh
Created September 27, 2020 10:52 — forked from kizbitz/dockerhub-v2-api-user.sh
Get the list of images and tags for a Docker Hub user account.
#!/bin/bash
# Example for the Docker Hub V2 API
# Returns all imagas and tags associated with a Docker Hub user account.
# Requires 'jq': https://stedolan.github.io/jq/
# set username and password
UNAME=""
UPASS=""
@ArjunDandagi
ArjunDandagi / dockerhub-v2-api-organization.sh
Created September 27, 2020 10:52 — forked from kizbitz/dockerhub-v2-api-organization.sh
Get the list of images and tags for a Docker Hub organization account
#!/bin/bash
# Example for the Docker Hub V2 API
# Returns all images and tags associated with a Docker Hub organization account.
# Requires 'jq': https://stedolan.github.io/jq/
# set username, password, and organization
UNAME=""
UPASS=""
ORG=""
@ArjunDandagi
ArjunDandagi / follow_n_people.py
Last active October 12, 2020 18:03
Follow 101 COOL DevOps account in twitter - tweepy
import tweepy
class TwitterFollow(object):
def __init__(self):
consumer_key = "GYYNimu/ExAMPLE/"
consumer_secret = "QYRC39S84T8zycck2/EXAMPLE/"
access_token = "417735939-tfBA/EXAMPLE/"
access_token_secret = "59kGZexvIRJE/EXAMPLE/"
auth = tweepy.OAuthHandler(consumer_key,consumer_secret)
auth.set_access_token(access_token,access_token_secret)