Skip to content

Instantly share code, notes, and snippets.

Avatar
🇪🇸
Living life my way

Juan Manuel Rey jreypo

🇪🇸
Living life my way
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am jreypo on github.
  • I am jreypo (https://keybase.io/jreypo) on keybase.
  • I have a public key ASD3xugQdQNn1V_bE7Ra38ASzJarqSm7v6Y9Da58ZWUVIwo

To claim this, I am signing this object:

@jreypo
jreypo / boxstarter.ps1
Last active May 19, 2020
Boxstarter script for quick Windows 10 setup
View boxstarter.ps1
# Description: Boxstarter Script
# Author: Juan Manuel Rey <juanmanuel.reyportal@gmail.com>
#
# Heavily based on Jess Frazz Boxstarter gist https://gist.github.com/jessfraz/7c319b046daa101a4aaef937a20ff41f
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
View kubeadm-docker-install.sh
#!/bin/bash
#
# Script to install Docker and Kubeadm in Ubuntu 18.04
#
# Written by Juan Manuel Rey <juanmanuel.reyportal@gmail.com>
# Based on Kubernetes official doc
#
echo "Installing Docker..."
View windows_cmd_commands.md

CMD useful comands

  • tasklist - To list the tasks running
  • taskkill - To kill a task

Examples

Search for a task

@jreypo
jreypo / devstack_local.conf
Last active Jan 16, 2017
My DevStack local.conf file
View devstack_local.conf
[[local|localrc]]
ADMIN_PASSWORD=vmware
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=$ADMIN_PASSWORD
HOST_IP=192.168.82.20
# VMware Nova Info
VIRT_DRIVER=vsphere
View rally_deployment.json
{
"type": "ExistingCloud",
"auth_url": "http://172.16.98.7:5000/v2.0",
"region_name": "RegionOne",
"admin": {
"username": "admin",
"password": "redhat",
"tenant_name": "admin"
}
}
View power_off_ironic_nodes.sh
for node in $(ironic node-list | egrep "power on" | awk '{print $2}'); do
echo "Powering off $node"
ironic node-set-power-state $node off
done
View reconfigure_host_for_ha.py
#!/usr/bin/env python
#
# Written by Juan Manuel Rey
# Github: https://github.com/jreypo
# Blog: http://blog.jreypo.io/
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
@jreypo
jreypo / cbm_db_create.sql
Last active Jan 2, 2016
SQL script to create the vCenter Chargeback database in Microsoft SQL Server
View cbm_db_create.sql
use [master]
GO
CREATE DATABASE [CBDB] ON PRIMARY
(NAME = N'CBDB', FILENAME = N'E:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\CBDB.mdf' , SIZE = 200000KB , FILEGROWTH = 10% )
LOG ON
(NAME = N'CBDB_log', FILENAME = N'E:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\CBDB.ldf' , SIZE = 20000KB , FILEGROWTH = 10%)
COLLATE SQL_Latin1_General_CP1_CI_AS
GO
use [CBDB]
@jreypo
jreypo / nsx_ctrl_syslog.xml
Created Sep 30, 2015
REST API call to configure remote syslog serve in NSX for vSphere Controllers
View nsx_ctrl_syslog.xml
<controllerSyslogServer>
<syslogServer>192.168.1.30</syslogServer>
<port>514</port>
<protocol>UDP</protocol>
<level>INFO</level>
</controllerSyslogServer>