[TOC]
Documentation: Using Powermock with Mockito
| # dependencies | |
| brew install --cask macfuse | |
| brew install gromgit/fuse/ntfs-3g-mac | |
| # create a new mounting point | |
| sudo mkdir /Volumes/NTFS | |
| # find your disk | |
| diskutil list |
| #!/bin/bash | |
| IFS=' | |
| ' | |
| files_arr=($(ls | grep .ape)) | |
| for file_name in ${files_arr[@]}; do | |
| filename_without_extension=$(basename "$file_name" ".ape") | |
| ffmpeg -i "$filename_without_extension".ape -map_metadata 0 "$filename_without_extension".flac | |
| done |
[TOC]
Documentation: Using Powermock with Mockito
| threads = {} | |
| setup = function (thread) | |
| local counter_504 = 0 | |
| local counter_404 = 0 | |
| table.insert(threads,thread) | |
| thread:set("counter_504",counter_504) | |
| thread:set("counter_404",counter_404) | |
| end |
| #!/usr/bin/python | |
| import sys | |
| import re | |
| ''' | |
| Read a Markdown file via standard input and tidy the containing | |
| Multimarkdown footnotes. The reference links will be numbered in | |
| the order they appear in the text and placed at the bottom | |
| of the file. |
| # -*- coding: utf-8 -*- | |
| from crossplane.analyzer import register_external_directives | |
| from crossplane.lexer import register_external_lexer | |
| from crossplane.parser import register_external_parser | |
| from crossplane.builder import register_external_builder | |
| from crossplane.ext.abstract import CrossplaneExtension | |
| class LuaPlugin(CrossplaneExtension): | |
| directives = { |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| public class DoUKnowThis { | |
| public static void main(String[] args) { | |
| ArrayList<Integer []> a = new ArrayList<>(); | |
| ArrayList<Integer []> b = new ArrayList<>(); | |
| Integer []g = new Integer[2]; | |
| Integer []h = new Integer[2]; |
[TOC]
For power users and beginners:
“For those who have tried, writing Kubernetes manifests in YAML is unforgiving if you get it wrong. With Rancher, you benefit from Kubernetes immediately, without worrying about YAML. You can launch your applications and wire them together quickly at production level. You won’t need to know everything there is to know about Kubernetes before you can even begin.” >
| #!/bin/sh | |
| # remove older versions | |
| sudo apt-get remove docker docker-engine docker.io containerd runc -y | |
| # Install docker via USTC mirror | |
| # sudo apt-get update -y | |
| # sudo apt-get install -y \ | |
| # apt-transport-https \ | |
| # ca-certificates \ |