For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Tuesday Nov 13 | |
| This script is to rename all files in a directory according to a pattern without changing file extension | |
| @author: Rex Low | |
| @github: rexlow | |
| """ | |
| import os |
| Process: Python [23472] | |
| Path: /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python | |
| Identifier: Python | |
| Version: 3.7.0 (3.7.0) | |
| Code Type: X86-64 (Native) | |
| Parent Process: zsh [22997] | |
| Responsible: Python [23472] | |
| User ID: 501 | |
| Date/Time: 2018-10-09 14:39:32.725 +0800 |
| from collections import Counter | |
| a, b = int(input()), list(map(int, input().split())) | |
| d = dict(Counter(b)) | |
| print(min(d, key=lambda k: d[k])) |
| import React, { Component } from 'react'; | |
| import { NetInfo, View, Text } from 'react-native'; | |
| import { connect } from 'react-redux'; | |
| import { Actions } from 'react-native-router-flux'; | |
| import { updateNetworkStatus, updateTabbar, initInitialScreen, pullUserData } from '../../actions' | |
| import firebase from 'react-native-firebase'; | |
| import type { Notification } from 'react-native-firebase'; | |
| import { BottomNavigation } from 'react-native-paper'; |
For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
| clear all | |
| close all | |
| clc | |
| elon_ori = imread('elon.jpg'); | |
| elon = elon_ori(:, :, 1); | |
| filter_size_3 = 3; | |
| filter_size_7 = 7; | |
| filter_size_13 = 13; |
| #include <iostream> | |
| #include <algorithm> | |
| #include <iterator> | |
| #include <vector> | |
| #include <cstdlib> | |
| #include <chrono> | |
| using namespace std; | |
| // constant | |
| const int NUM_OF_GENE = 5; |
| // random_shuffle example | |
| #include <iostream> // std::cout | |
| #include <algorithm> // std::random_shuffle | |
| #include <vector> // std::vector | |
| #include <ctime> // std::time | |
| #include <cstdlib> // std::rand, std::srand | |
| using namespace std; | |
| const int SIZE = 5; |
| ## | |
| # This is an adoption from Oh My Zsh for Google Cloud Shell | |
| # author - bobvanluijt | |
| # source - https://github.com/bobvanluijt/google-cloud-shell-pro-zsh | |
| ## | |
| main() { | |
| # Install zsh | |
| sudo apt-get -qq update |
| bash Miniconda3-latest-MacOSX-x86_64.sh | |
| // append env path | |
| conda install jupyter matplotlib pandas scipy Pillow scikit-learn | |
| conda install -c conda-forge keras tensorflow | |
| // for some reasons tensorflow installed = 1.0.0, update here |