- Open Terminal App; enter this command
sudo nano /etc/hosts- Drop fllowing line into the end of the file and save it
0.0.0.0 ocsp.apple.comsudo nano /etc/hosts0.0.0.0 ocsp.apple.com| // The MediaRecorder formula is compatible with various Android versions and high-quality audio recorder, | |
| // Tested on Android 21 to 28 | |
| mediaRecorder = MediaRecorder().apply { | |
| setAudioSource(MediaRecorder.AudioSource.MIC) | |
| setOutputFormat(MediaRecorder.OutputFormat.MPEG_4) | |
| setAudioEncoder(MediaRecorder.AudioEncoder.HE_AAC) | |
| setOutputFile(filePath) | |
| setAudioEncodingBitRate(320000) |
| package oogaday.commons.enums | |
| enum class StatusCode(val code: Int) { | |
| Continue(100), | |
| SwitchingProtocols(101), | |
| Processing(102), | |
| OK(200), | |
| Created(201), | |
| Accepted(202), |
| import android.content.Context | |
| import android.content.res.Resources | |
| import android.util.DisplayMetrics | |
| /** | |
| * Provides utilities for metrics. | |
| * | |
| * Original at: | |
| * @see <a href="https://stackoverflow.com/a/9563438/8877070">stack overflow answer</a> | |
| * |
| ffmpeg -i in.mkv -f srt -i in.srt -map 0:0 -map 0:1 -map 1:0 -c:v copy -c:a copy -c:s srt out.mkv |
| #!/bin/bash | |
| # OpenVPN road warrior installer for Debian, Ubuntu and CentOS | |
| # This script will work on Debian, Ubuntu, CentOS and probably other distros | |
| # of the same families, although no support is offered for them. It isn't | |
| # bulletproof but it will probably work if you simply want to setup a VPN on | |
| # your Debian/Ubuntu/CentOS box. It has been designed to be as unobtrusive and | |
| # universal as possible. | |
go test -bench=. -benchmem
BenchmarkTypeof-4 10000000 153 ns/op 16 B/op 1 allocs/op
BenchmarkReflectTypeOf-4 50000000 27.4 ns/op 0 B/op 0 allocs/op
PASS
ok github.com/mrap/bench/typeof 3.099s