/mouse enable
Okey this is not the easiest way of running Hadoop on your local computer and probably you should instead just install it locally.
However if you really insist doing this here's how:
- Install kubectl, minikube and Docker if you don't already have it. I recommend using package-manager like Chocolatey. Minikube should install with VirtualBox as default driver which I recommend. When starting minikube we should increase its memory limit since our Hadoop node's pods need at least 2GB:
minikube --memory 4096 --cpus 2 start
(minikube's default is 1GB). NOTE: actually the Hadoop cluster by default uses about 10GB in memory limits and about 3GB running memory. From what I looked my k8s will overprovision to 300% of its capacity limits but use far less. - Install helm. Then run
helm init
. - Now you
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# !!WARNING!! | |
# This will DELETE all efforts you have put into configuring nix | |
# Have a look through everything that gets deleted / copied over | |
nix-env -e '.*' | |
rm -rf $HOME/.nix-* | |
rm -rf $HOME/.config/nixpkgs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########################################################### | |
# Automation of Everything # | |
# How To Combine Argo Events, Workflows, CD, and Rollouts # | |
# https://youtu.be/XNXJtxkUKeY # | |
########################################################### | |
# Requirements: | |
# - k8s v1.19+ cluster with nginx Ingress | |
# Replace `[...]` with the GitHub organization or the username |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
class Node: | |
def __init__(self, name, x, y, indexloc=None): | |
self.name = name | |
self.x = x | |
self.y = y | |
self.index = indexloc |
I hereby claim:
- I am thpham on github.
- I am thpham (https://keybase.io/thpham) on keybase.
- I have a public key ASCd3T9dbXe-wHz-vuyelTDv_S7Jnj2lvFvqy9xW-yE-6wo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ stdenv, fetchFromGitHub, fetchzip }: | |
stdenv.mkDerivation rec { | |
pname = "it930x-firmware"; | |
version = "1"; | |
src = fetchFromGitHub { | |
owner = "nns779"; | |
repo = "px4_drv"; | |
rev = "90e0a4b30b812e7e5fff4483144f165de8914157"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
# Set the hostname for this machine (takes precedence over hostname assigned by DHCP lease). | |
hostname: myhost | |
# Authorize SSH keys for the `rancher` sudoer user | |
ssh_authorized_keys: | |
- ssh-rsa AAA...ZZZ example1@rancher | |
These are my notes on instaling NixOS 16.03 on a Lenovo ThinkPad X1 Carbon (4th generation) with an encrypted root file system using UEFI.
Most of this is scrambled from the following pages:
In order to install NixOS behind corporate proxy do the usual stuff but before running nixos-install
set this environment variable:
export CURL_NIX_FLAGS="-x http://user:password@proxy:port/"
In addition in case you have ties to cloning from GitHub (like vim plugins), you should export proxy related variables:
export HTTP_PROXY=http://user:password@proxy:port/