This file contains 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
static Type[] GetAllTypesThatHaveBenchmarkMethods() | |
{ | |
return Assembly.GetExecutingAssembly().GetTypes().Where( | |
type => type.GetMethods().Any( | |
method => method.GetCustomAttributes(typeof(BenchmarkAttribute)).Any() | |
) | |
).ToArray(); | |
} | |
var benchmarkTypes = GetAllTypesThatHaveBenchmarkMethods(); |
This file contains 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
# use /MT:1 when the files are big, otherwise if you cancel you'll have 128 big unfinished files instead of a few finished ones | |
Robocopy.exe /MIR /MT:128 /R:1 /W:1 /LOG:nul /NFL /NDL /NJH /NJS /nc /ns /np <SRC> <DEST> |
This file contains 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
https://download.docker.com/win/stable/Docker%20for%20Windows%20Installer.exe |
This file contains 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
// Add this in your global gradle.properties file | |
// at ~/.gradle/gradle.properties | |
// Enable Gradle Daemon | |
org.gradle.daemon=true | |
// Enable Configure on demand | |
org.gradle.configureondemand=true | |
//Enable parallel builds | |
org.gradle.parallel=true | |
// Enable Build Cache | |
android.enableBuildCache=true |
This file contains 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
git clone https://github.com/Kitware/CMake.git | |
cd CMake | |
./bootstrap --parallel=4 | |
make -j 4 | |
sudo make install |
This file contains 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
<Target Name="NSwag Debug" AfterTargets="Build" Condition="'$(Configuration)'=='DEBUG'"> | |
<Exec Command="$(NSwagExe) run Debug.nswag" /> | |
</Target> | |
<Target Name="NSwag Release" AfterTargets="Build" Condition="'$(Configuration)'=='RELEASE'"> | |
<Exec Command="$(NSwagExe) run Release.nswag" /> | |
</Target> |
This file contains 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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\bash] | |
@="Open bash shell here" | |
"Icon"="%USERPROFILE%\\AppData\\Local\\lxss\\bash.ico" | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\bash\command] | |
@="C:\\Windows\\System32\\bash.exe" | |
This file contains 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
#include <execinfo.h> | |
#include <stdio.h> | |
#include <signal.h> | |
/** | |
* Outputs the backtrace if the application crashes | |
* @param signal The signal that was sent when the application crashed | |
*/ | |
void exception_signal_handler(int signal) { | |
const int num_backtraces = 20; |
This file contains 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
var code_blocks = $("pre > code"); | |
code_blocks.prepend("1\t"); | |
for (var b = 0; b < code_blocks.length;b++) { | |
var newlines = $(code_blocks[b]).find("span.pln"); | |
var c = 1; | |
for (var i=0;i < newlines.length;i++) { | |
newlines[i].innerHTML = newlines[i].innerHTML.replace(/(?:\r\n|\r|\n)/g, function(x) { | |
return "\n" + ++c + "\t"; | |
}); | |
} |
This file contains 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
adb shell "run-as package.name chmod 666 /data/data/package.name/databases/file" | |
adb pull /data/data/package.name/databases/file . | |
adb shell "run-as package.name chmod 600 /data/data/package.name/databases/file" |
NewerOlder