Skip to content

Instantly share code, notes, and snippets.

View riy's full-sized avatar

Rias A. Sherzad riy

View GitHub Profile
@riy
riy / GVLKs for KMS.txt
Created October 22, 2019 18:26 — forked from CHEF-KOCH/GVLKs for KMS.txt
Microsoft Office 2019 Build 10730.20102 RTM
Source:
https://docs.microsoft.com/en-us/DeployOffice/vlactivation/gvlks
GVLKs for Office 2019
=====================
Office Professional Plus 2019
NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP
Office Standard 2019
@riy
riy / README.md
Last active August 3, 2018 10:30 — forked from jimzucker/README.md
Install Oracle instant client (sqlplus) v12.1 on MacOSX

Install Oracle instant client (sqlplus) on MacOSX (including High Sierra, as of August 2018)

  1. Get the Oracle instant client for MacOSX
  1. Unarchive downloaded zip files into the same directory
  • ex: $HOME/Downloads/instantclient_12_2
  1. Create install.sh, copy the content below into that file, run chmod +x install.sh and execute it as sudo.
@riy
riy / README.md
Created August 3, 2018 10:11 — forked from mmasashi/README.md
Install Oracle instant client (sqlplus) v12.1 on MacOSX

Install Oracle instant client (sqlplus) on MacOSX

  1. Get Oracle instant client for MacOSX
  1. Unarchive downloaded zip files into a same directory
  • ex: $HOME/Downloads/instantclient_12_1
  1. Create install.sh and copy the following code and past it on that file.
@riy
riy / install-rabbitmq.sh
Created July 4, 2018 11:57 — forked from yetanotherchris/install-rabbitmq.sh
RabbitMQ on Docker with admin UI
# AWS specific install of Docker
sudo yum update -y
sudo yum install -y docker
sudo service docker start
sudo usermod -a -G docker ec2-user
# exit the SSH session, login again
# Docker
docker run -d --hostname my-rabbit --name some-rabbit -p 4369:4369 -p 5671:5671 -p 5672:5672 -p 15672:15672 rabbitmq
ant.copy(todir: '/copy/to/dir', encoding: 'UTF-8', outputEncoding: 'Windows-31J') {
fileset(dir: '/copy/from/dir')
}
@riy
riy / stop-old-containers.sh
Created June 6, 2018 11:04 — forked from ewjoachim/stop-old-containers.sh
Stop docker containers older than 1 day old
#!/bin/bash -eux
yesterday=$(date -d yesterday +%s)
# dnsdock should not be stopped : we limit to the containers created after it
docker ps --filter since=dnsdock -q --format "{{.ID}} {{.CreatedAt}}" | while read line
do
# line looks like:
# 123456789abcdef 2017-01-01 00:00:00 +02:00 CEST
set $line
id=$1
@riy
riy / jenkins-plugins-batch-install.md
Created May 3, 2018 13:34 — forked from hgomez/jenkins-plugins-batch-install.md
Mass install/update of Jenkins Plugins

Scripted Jenkins Plugins install

Jenkins has a very rich catalog of plugins and it's quite easy to install and update them via UI. BTW, when you want to add tons of plugin via UI, it's a fairly long and boring procedure.

Hopefully, mass installation (or update) could be easy using a simple bash script (curl/python required) :

Create a file containing plugins to be installed (or updated), ie iplugins :

## Useful Commands
Get kubectl version
kubectl version
Get cluster info:
@riy
riy / generate_docker_cert.sh
Created February 13, 2018 13:54 — forked from bradrydzewski/generate_docker_cert.sh
Generate trusted CA certificates for running Docker with HTTPS
#!/bin/bash
#
# Generates client and server certificates used to enable HTTPS
# remote authentication to a Docker daemon.
#
# See http://docs.docker.com/articles/https/
#
# To start the Docker Daemon:
#
# sudo docker -d \
@riy
riy / generate_docker_keys.sh
Last active January 16, 2016 20:01
Create Docker Certificate Authority, Server and Client Certificates
#!/bin/bash
HOST_IP=`ifconfig eth0| awk '/inet addr/{print substr($2,6)}'`
mkdir docker-ca
chmod 0700 docker-ca
cd docker-ca
openssl genrsa -aes256 -out ca-key.pem 2048
openssl req -new -x509 -days 365 -key ca-key.pem -sha256 -out ca.pem
openssl genrsa -out server-key.pem 2048
openssl req -subj "/CN=${HOST_IP}" -new -key server-key.pem -out server.csr