echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # How to run debuild with lintian on ubuntu | |
| # fixes error: bad-distribution-in-changes-file unstable | |
| # Finished running lintian. | |
| debuild -us -uc --lintian-opts --profile debian |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.gold" 20 | |
| update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.bfd" 10 | |
| update-alternatives --config ld | |
| ld --version | |
| GNU gold | |
| export CPP=cpp-5 gcc-5 g++-5 | |
| env CXXFLAGS='-march=native -flto -fuse-linker-plugin' cmake .. -DCMAKE_BUILD_TYPE=Release |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defaults | |
| timeout connect 5s | |
| timeout client 24h | |
| timeout server 24h | |
| global | |
| log /dev/log local0 | |
| frontend ssl | |
| log global |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| net.ipv4.tcp_fastopen=3 | |
| net.ipv4.tcp_fastopen_key=b9b738a4-9cad4a74-4c832cbf-e20f561f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| net.ipv4.tcp_fastopen=3 | |
| net.ipv4.tcp_fastopen_key=b9b738a4-9cad4a74-4c832cbf-e20f561f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.nohope.antlr4; | |
| import org.antlr.v4.runtime.BailErrorStrategy; | |
| import org.antlr.v4.runtime.FailedPredicateException; | |
| import org.antlr.v4.runtime.InputMismatchException; | |
| import org.antlr.v4.runtime.NoViableAltException; | |
| import org.antlr.v4.runtime.Parser; | |
| import org.antlr.v4.runtime.ParserRuleContext; | |
| import org.antlr.v4.runtime.RecognitionException; | |
| import org.antlr.v4.runtime.Token; |
This note tries to document the output of PrintCompilation flag in HotSpot VM. It was originally intended to be a reply to a blog post on PrintCompilation from Stephen Colebourne. It's kind of grown too big to fit as a reply, so I'm putting it here.
Written by: Kris Mok [email protected]
Most of the contents in this note are based on my reading of HotSpot source code from OpenJDK and experimenting with the VM flags; otheres come from HotSpot mailing lists and other reading materials listed in the "References" section.
This
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.nohope; | |
| import org.openjdk.jmh.annotations.Benchmark; | |
| import org.openjdk.jmh.annotations.BenchmarkMode; | |
| import org.openjdk.jmh.annotations.Mode; | |
| import org.openjdk.jmh.annotations.OperationsPerInvocation; | |
| import org.openjdk.jmh.annotations.OutputTimeUnit; | |
| import org.openjdk.jmh.infra.Blackhole; | |
| import java.io.IOException; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static Object[] lazyHtmlEscape(final String... args) { | |
| Object[] result = new Object[args.length]; | |
| for (int i = 0; i < args.length; i++) { | |
| result[i] = new Object { | |
| @Override | |
| public String toString() { | |
| // here argument will be escaped only if | |
| // toString method will be called | |
| // (that happens if loglevel is enabled) | |
| return HtmlUtil.htmlEscape(e); |
NewerOlder
