Skip to content

Instantly share code, notes, and snippets.

View apiri's full-sized avatar
😲
😱

Aldrin Piri apiri

😲
😱
View GitHub Profile
@apiri
apiri / add_epel.sh
Last active August 29, 2015 14:04
CentOS 6.x EPEL Install
#!/bin/bash
echo Installing EPEL Repository
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo rpm -Uvh epel-release-6*.rpm
sudo yum update
@apiri
apiri / docker_group.sh
Created October 17, 2014 00:03
Add user to docker group to avoid sudo
sudo groupadd docker
sudo gpasswd -a ${USER} docker
sudo {service,systemctl} docker restart
# User logout/login needed for group to apply
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.19370138645172119</real>
<key>Green Component</key>
<real>0.15575926005840302</real>
@apiri
apiri / jdk_download.sh
Created February 16, 2016 05:08 — forked from P7h/jdk_download.sh
Script to download JDK / JRE / Java binaries from Oracle website from terminal / shell / command line / command prompt
##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### #####
### Shell script to download Oracle JDK / JRE / Java binaries from Oracle website using terminal / command / shell prompt using wget.
### You can download all the binaries one-shot by just giving the BASE_URL.
### Script might be useful if you need Oracle JDK on Amazon EC2 env.
### Script is updated for every JDK release.
### Features:-
# 1. Resumes a broken / interrupted [previous] download, if any.
# 2. Renames the file to a proper name with including platform info.
@apiri
apiri / docker_sftp.sh
Created February 17, 2016 15:08
Start a docker container to evaluate SFTP using a cert
#!/bin/sh
docker run \
-v $(greadlink -f ~/.ssh/id_rsa.pub):/home/foo/.ssh/keys/id_rsa.pub:ro \
-v /tmp/temp_sftp_share:/home/foo/share \
--name sftp
@apiri
apiri / verify-apache-nifi-release.sh
Last active March 26, 2016 16:21
Provides an automated means for getting the information necessary for carrying out the verification of an Apache NiFi release
#!/bin/bash -e
# Adapted from the guidance provided at http://nifi.apache.org/development/release-guide.html
repository=orgapachenifi-1079
version=0.6.0
base_url=https://repository.apache.org/service/local/repositories/${repository}/content/org/apache/nifi/nifi/${version}
release_file=nifi-${version}-source-release.zip
release_git_commit_hash=0b9bd20d31d7f805300254da768d91b973480151
@apiri
apiri / nginx_modsite
Created May 12, 2016 00:11
Wrapper script that performs analogous functionality to a2ensite/a2dissite
#!/bin/bash
##
# Originally from: http://serverfault.com/a/562210
#
# File:
# nginx_modsite
# Description:
# Provides a basic script to automate enabling and disabling websites found
# in the default configuration directories:
@apiri
apiri / keybase.md
Created July 19, 2016 20:34
Keybase GitHub verification

Keybase proof

I hereby claim:

  • I am apiri on github.
  • I am aldrin (https://keybase.io/aldrin) on keybase.
  • I have a public key whose fingerprint is 200D BBC8 8E11 000D E8E7 739A 531A EBAA 4CFE 5D00

To claim this, I am signing this object:

@apiri
apiri / config
Created November 3, 2016 18:43
Include PRs in fetch for a repository
[remote "github"]
url = git@github.com:<user>/<repo>.git
fetch = +refs/heads/*:refs/remotes/github/*
fetch = +refs/pull/*/head:refs/remotes/github/pr/*
@apiri
apiri / Shared_Processing_Singleton_-_Nested_PGs.xml
Created December 27, 2016 15:58
Apache NiFi Template showing nested PGs with a shared PG for common functionality like enrichment or standard data tagging.
<?xml version="1.0" ?>
<template encoding-version="1.0">
<description>Template showing nested PGs with a shared PG for common functionality like enrichment or standard data tagging.</description>
<groupId>cfed8382-0158-1000-1395-192d30f8b560</groupId>
<name>Shared Processing Singleton - Nested PGs</name>
<snippet>
<labels>
<id>0159100e-2bd2-10fc-0000-000000000000</id>
<parentGroupId>cfed8382-0158-1000-0000-000000000000</parentGroupId>
<position>