-
After installing mitmproxy run it (just type
mitmproxy
) in a terminal session and quit. This will create the necessaries certificates files at~/.mitmproxy
. -
Extract the certificate to
.crt
format:
openssl x509 -in ~/.mitmproxy/mitmproxy-ca.pem -inform PEM -out ca.crt
-
Trust the certificate into CA:
sudo trust anchor ca.crt
-
Run the
mitmproxy
again
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Expanding Demo', | |
theme: ThemeData( |
In some applications of machine learning/TensorFlow, it is desirable to start multiple processes, and have separate training procedures running concurrently in each of those processes. A useful Python method for achieving this is the multiprocessing.pool.Pool.map()
method (or the equivalent starmap()
method when the target function takes multiple arguments; see the section "Process Pools" from the description of the multiprocessing module in the Python Library Reference).
The Pool.map()
method takes a target-function and a list (or more generally an iterable) of arguments, and returns an equivalent iterable of the results of the function evaluated on each member of the argument-list (which is similar to the [built-in Python function map()
#!/bin/bash | |
# | |
# This version uses Debian Stretch, please use that version. | |
# Usage: curl -sSL https://gist.githubusercontent.com/aceisace/b53e93924c969ac47e2333e970c132b0/raw/b4fbeed6cbe74d306c1951dc03435b38132b034e/Raspberry-AP-Setup.sh | bash | |
echo -p "Please enter a SSID for your AP, followed by [ENTER]:" | |
read APSSID | |
echo "Your AP will be named $APSSID" | |
echo -p "Please enter a password for your AP, followed by [ENTER]:" |
Content moved to: https://github.com/tonyxu-io/pkce-generator/blob/master/index.html
package main | |
import ( | |
"crypto/md5" | |
"encoding/hex" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"os" | |
"path/filepath" |
FROM node | |
RUN mkdir -p /usr/src/app | |
COPY index.js /usr/src/app | |
EXPOSE 8080 | |
CMD [ "node", "/usr/src/app/index" ] |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Desi Developer</title> | |
<style> | |
*{ | |
margin: 0; |
jq will sort (-S
) the whole file (.
) and compare STDOUT (<()
) with diff
diff <(jq -S . A.json) <(jq -S . B.json)