Install the following BWA dependencies in Cygwin:
- git
- gcc-core
- zlib-devel
Compile BWA.
cygwin$ git clone https://github.com/lh3/bwa.git
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Image Transform with TensorFlow.js</title> | |
<!-- Load TensorFlow.js library --> | |
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tf.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tf-tflite.min.js"></script> | |
</head> | |
<body> | |
<h1>Image Transform with TensorFlow.js</h1> |
#!/bin/python | |
import glob | |
import pathlib | |
import os | |
import textdistance | |
import sys | |
""" | |
Author: Hugh Pearse | |
requirements.txt: textdistance==4.3.0 |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.nio.file.StandardOpenOption; | |
class FileIO { | |
public static void main(String[] args) { | |
try { | |
Files.write(Paths.get("output/example.yaml"), new String("Hello, ").getBytes()); | |
Files.write(Paths.get("output/example.yaml"), new String("World!").getBytes(), StandardOpenOption.APPEND); |
Show Code
foo@bar$ git clone https://github.com/hughpearse/kafka-example.git
foo@bar$ cd kafka-example
foo@bar$ vim ./bartender/app.py
foo@bar$ vim ./waiter/app.py
This explains how to set up Code Ready Containers (CRC) with kubernetes Operators.
https://cloud.redhat.com/openshift/create/local
Install and launch
foo@bar$ open ~/Downloads/crc-macos-amd64.pkg
foo@bar$ crc setup
This explains how to set up your serverless (FaaS) environment to run Lithops multicloud library. This allows you to avoid vendor lock-in and offboard your serverless code from cloud services.
foo@bar$ export KUBECONFIG=
foo@bar$ minikube stop
foo@bar$ minikube delete --all
How to compile the linux kernel, launch it as a process and boot into Alpine linux | |
Command + Shift + 5 | |
Host -> Docker GCC -> UML w/ Alpine | |
# get docker for compiling | |
foo@host:~$ docker pull gcc | |
# launch new container | |
foo@host:~$ docker run --privileged --name gcc -it gcc /bin/bash |
import requests | |
import json | |
headers = {'Accept': 'application/json', 'User-Agent': 'Hugh'} | |
url = "https://reddit.com/r/worldnews.json" | |
r = requests.get(url, headers=headers) | |
print(r.json()['data']) |