Various things (aliases, vimrc, scripts, readme)
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
// ADOBE SYSTEMS INCORPORATED
|
||||
// Copyright 2008-2017 Adobe Systems Incorporated
|
||||
// All Rights Reserved
|
||||
//
|
||||
// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the
|
||||
// terms of the Adobe license agreement accompanying it. If you have received this file from a
|
||||
// source other than Adobe, then your use, modification, or distribution of it requires the prior
|
||||
// written permission of Adobe.
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Works around the lack of a permanently enabled "Show Items from Subfolders" option (aka flat view).
|
||||
// The default behaviour is to turn off the option when changing folders. This extension enables the
|
||||
// flat view when the app starts and then keeps it enabled when changing folders. You can disable this
|
||||
// behaviour by disabling the "Always Show Items from Subfolders" option.
|
||||
|
||||
function AlwaysFlatViewSetting() {
|
||||
this.requiredContext = "\tAdobe Bridge must be running.\n";
|
||||
this.menuID = "alwaysFlatViewSetting";
|
||||
}
|
||||
|
||||
AlwaysFlatViewSetting.prototype.run = function() {
|
||||
if (!this.canRun()) return false;
|
||||
|
||||
var toggleFlatView = function(enable) {
|
||||
var task = 'MenuElement.find("FlatView").checked = ' + (enable ? 'true' : 'false');
|
||||
app.scheduleTask(task, 0, false);
|
||||
}
|
||||
|
||||
var label = "Always Show Items from Subfolders";
|
||||
var menuItem = new MenuElement( "command", label, "after FlatView");
|
||||
menuItem.canBeChecked = true;
|
||||
menuItem.checked = true;
|
||||
menuItem.onSelect = function() {
|
||||
menuItem.checked = !menuItem.checked;
|
||||
toggleFlatView(menuItem.checked);
|
||||
}
|
||||
|
||||
// Triggered when changing folders or selecting some menu option.
|
||||
onSelectItem = function(event) {
|
||||
if (event.object instanceof Document && event.type == "selectionsChanged") {
|
||||
if (menuItem.checked) {
|
||||
toggleFlatView(true);
|
||||
}
|
||||
return {handled:false}; // continue handling all other event handlers
|
||||
}
|
||||
}
|
||||
app.eventHandlers.push({handler: onSelectItem});
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
AlwaysFlatViewSetting.prototype.canRun = function() {
|
||||
if (BridgeTalk.appName == "bridge") {
|
||||
if (MenuElement.find(this.menuID)) {
|
||||
return false; // Item already exists.
|
||||
}
|
||||
return true;
|
||||
}
|
||||
$.writeln("ERROR:: Cannot run AlwaysFlatViewSetting");
|
||||
$.writeln(this.requiredContext);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (typeof(AlwaysFlatViewSetting_unitTest ) == "undefined") {
|
||||
new AlwaysFlatViewSetting().run();
|
||||
}
|
||||
2
windows/disable-windows-error-reporting-dialog.bat
Normal file
2
windows/disable-windows-error-reporting-dialog.bat
Normal file
@@ -0,0 +1,2 @@
|
||||
reg add "HKLM\Software\Microsoft\Windows\Windows Error Reporting" /v "Disabled" /t REG_DWORD /d 1 /f
|
||||
reg add "HKLM\System\CurrentControlSet\Services\WerSvc" /v "Start" /t REG_DWORD /d 4 /f
|
||||
@@ -19,6 +19,9 @@
|
||||
* AFAIK this only works for Intel CPUs; not sure how to do the same thing on AMD.
|
||||
* In the power plan set the processor min/max speed to 99%.
|
||||
|
||||
* Disable Windows error reporting dialog so that when stuff crashes you can get to a debugger faster.
|
||||
* Open an admin cmd prompt and run the file `disable-windows-error-reporting-dialog.bat` from this directory.
|
||||
|
||||
* Optional: disable Windows Defender real-time protection:
|
||||
* This can speed up compilation times since Defender will scan every file written to disk. I was
|
||||
able to shave off ~2-5 seconds in a particular project.
|
||||
@@ -106,8 +109,11 @@ processor time and is generally useless.
|
||||
* Install the Windows SDK https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk
|
||||
* Download [O&O ShutUp10](https://www.oo-software.com/en/shutup10) and disable things.
|
||||
|
||||
## Setup up Unix-like Shell
|
||||
## Setup Terminal
|
||||
* Install [MSYS2 w/ MinGW-w64](http://www.msys2.org/) to `C:\msys64`
|
||||
* MinGW is intended for developing native Windows applications. MSYS is for developing software
|
||||
that runs inside of the MSYS2 posix-like env with FHS style filesystem naming (i.e. MSYS2
|
||||
tools/packages).
|
||||
* Open `C:\msys64\mingw64.exe`
|
||||
* Run `pacman -Syu`, then restart the terminal and run `pacman -Su`.
|
||||
* Run `pacman -S base-devel mingw-w64-x86_64-toolchain git bc`
|
||||
|
||||
Reference in New Issue
Block a user