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 / 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 / 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
@tecnocrata
tecnocrata / tmux_install.sh
Created May 28, 2016 02:06 — forked from P7h/tmux__CentOS__build_from_source.sh
tmux 2.0 installation steps for Ubuntu
# tmux v2.0 installation steps for Ubuntu 14.04 (Trusty Tahr)
tmux -V
sudo apt-get update
sudo apt-get install -y python-software-properties software-properties-common
sudo add-apt-repository -y ppa:pi-rho/dev
sudo apt-get update
sudo apt-get install -y tmux
tmux -V
# tmux v1.9 installation steps for Ubuntu 14.04 (Trusty Tahr)
@tecnocrata
tecnocrata / node-and-npm-in-30-seconds.sh
Created April 1, 2016 20:51 — forked from isaacs/node-and-npm-in-30-seconds.sh
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh