Skip to content

Instantly share code, notes, and snippets.

View tecnocrata's full-sized avatar
:octocat:
Working from home

Enrique Ortuño tecnocrata

:octocat:
Working from home
View GitHub Profile
@tecnocrata
tecnocrata / enable-iis-windows-10.ps1
Created August 29, 2020 20:06 — forked from yetanotherchris/enable-iis-windows-10.ps1
Powershell script to enable all IIS, MSMQ and WCF features on Windows 8 and 10.
Import-Module Dism
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerRole
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServer
Enable-WindowsOptionalFeature -Online -FeatureName IIS-CommonHttpFeatures
Enable-WindowsOptionalFeature -Online -FeatureName IIS-HttpErrors
Enable-WindowsOptionalFeature -Online -FeatureName IIS-HttpRedirect
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ApplicationDevelopment
Enable-WindowsOptionalFeature -Online -FeatureName IIS-NetFxExtensibility
Enable-WindowsOptionalFeature -Online -FeatureName IIS-NetFxExtensibility45
Enable-WindowsOptionalFeature -Online -FeatureName IIS-HealthAndDiagnostics
@tecnocrata
tecnocrata / minikube-hyperkit.sh
Created August 23, 2020 15:08 — forked from manojkarthick/minikube-hyperkit.sh
Use Hyperkit with minikube instead of virtualbox
#!/bin/bash
# Works with:
# Docker 18.06.1-ce, build e68fc7a
# Kubernetes v1.10.0
# minikube v0.30.0
# Download minikube hyperkit driver and install
curl -LO https://storage.googleapis.com/minikube/releases/latest/docker-machine-driver-hyperkit \
@tecnocrata
tecnocrata / bootstrapwindows10.ps1
Created August 22, 2020 04:48 — forked from zloeber/bootstrapwindows10.ps1
Boxstarter Windows 10 Configuration
<#
The command to run, built from the raw link of this gist
Win+R
iexplore http://boxstarter.org/package/url?<RAW GIST LINK>
OR (if you don't like the way the web launcher force re-installs everything)
@tecnocrata
tecnocrata / shapes.ts
Created July 7, 2019 15:47
Typescript entendiendo Shapes
//Shapes no esta directamente relacionado a la herencia
interface Mamifero{
cantidad:number
}
interface Comedor{
comida:string,
comer():number
}
class Animal implements Mamifero, Comedor{
@tecnocrata
tecnocrata / launch.protractor.json
Created August 20, 2018 19:46
VisualStudio Code - launch.json file for protractor debugging
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [{
"name": "Debug Protractor",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/protractor/bin/protractor",
#!/bin/bash
# ===================
# INFO PRE-REQUISITES
# ===================
echo
echo "Welcome to my environment configuration"
echo "===================================================="
echo
echo "NOTE: Before starting to take these pre-requisites into account"
@tecnocrata
tecnocrata / Max Number with es6
Created January 31, 2018 15:37 — forked from JasonDeving/Max Number with es6
FInd the max number with es6 with an array.
let numbers = [4,6,3,8];
let max = Math.max(...numbers);
console.log(max);
@tecnocrata
tecnocrata / install-docker.sh
Created July 3, 2017 22:38 — forked from frgomes/install-docker.sh
Debian - install docker in Debian Jessie
#!/bin/bash
# compiled from https://docs.docker.com/engine/installation/linux/debian/#/debian-jessie-80-64-bit
sudo apt-get update
sudo apt-get dist-upgrade -y
sudo apt-get install apt-transport-https ca-certificates -y
sudo sh -c "echo deb https://apt.dockerproject.org/repo debian-jessie main > /etc/apt/sources.list.d/docker.list"
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
@tecnocrata
tecnocrata / server.js
Created January 18, 2017 14:42
Simple Nodejs web app
const http = require('http');
const handleRequest = (request, response) => {
console.log('Received request for URL: ' + request.url);
response.writeHead(200);
response.end('Hello World!');
};
const www = http.createServer(handleRequest);
www.listen(8080);
@tecnocrata
tecnocrata / Dockerfile-nodejs
Created July 28, 2016 14:33 — forked from dweinstein/Dockerfile-nodejs
Install node modules before copying over your working code so that node_modules are built (and cached) before you change your service code!
# ...
ADD package.json /tmp/package.json
RUN cd /tmp && npm install && \
mkdir -p /opt/app && cp -a /tmp/node_modules /opt/app/
# ...
WORKDIR /opt/app
ADD . /opt/app