Skip to content

Instantly share code, notes, and snippets.

View fabriciosanchez's full-sized avatar

Fabrício Sanchez fabriciosanchez

View GitHub Profile
@fabriciosanchez
fabriciosanchez / RecommenderController.cs
Created March 10, 2017 14:31
Classe RecommenderController do IPR no projeto Arda.Intelligence.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using Newtonsoft.Json;
using System.Data.SqlClient;
@fabriciosanchez
fabriciosanchez / VirtualizationCPUSupport.sh
Created April 26, 2017 22:57
This command verifies the CPU support to virtualization in a Linux machine.
egrep -c ‘(svm|vmx)’ /proc/cpuinfo
@fabriciosanchez
fabriciosanchez / InstallKVM.sh
Created April 26, 2017 23:06
This command install KVM and its associated packages.
sudo apt-get install qemu-kvm libvirt-bin bridge-utils virt-manager
@fabriciosanchez
fabriciosanchez / AddingUserLibvirtdGroup.sh
Created April 26, 2017 23:11
This command adds a new admin user to libvirtd group.
sudo adduser {seu-usuário} libvirtd
@fabriciosanchez
fabriciosanchez / VerifyingKVM.sh
Created April 26, 2017 23:16
Verifying if KVM is correctly running.
virsh -c qemu:///system list
@fabriciosanchez
fabriciosanchez / InstallingKubectl.sh
Created April 26, 2017 23:35
Installing Kubectl on Ubuntu.
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
@fabriciosanchez
fabriciosanchez / GivingPermissionToKubectl.sh
Created April 26, 2017 23:52
Giving permission and moving kubectl executable to bin directory.
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
@fabriciosanchez
fabriciosanchez / InstallingMinikubeOnLinux.sh
Created April 27, 2017 00:35
Installing Minikube on Linux.
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.18.0/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
@fabriciosanchez
fabriciosanchez / dotnetpublish.sh
Created May 14, 2017 21:35
Publishing a .NET Core application locally.
dotnet publish
@fabriciosanchez
fabriciosanchez / Dockerfile
Created May 14, 2017 21:51
Dockerfile of LearningKubernetes project.
#Pointint to standard .net core image on docker hub
FROM microsoft/dotnet:1.0.4-runtime
#Defining default directory to ASP.NET Core app inside container
WORKDIR /app
#Copying the entire application files to /app directory
COPY ./bin/Debug/netcoreapp1.0/publish .
#Exposing the application to the internet through port 80