Last active
July 7, 2021 21:52
-
-
Save zetekla/7ffa7ce2871d9feca2635768198abfcd to your computer and use it in GitHub Desktop.
Windows 10 bs troubleshoots
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
http://portableapps.com/apps/utilities/java_portable | |
https://sourceforge.net/projects/eclipse-neon-portable/files/Final%20Versions/Eclipse%20OXYGEN%204.7%20Platform%20Runtime%20Binary%20%5BPortable%5D.paf.exe/download |
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
Run Git Bash as administrator as always, to enable that do the following: | |
1. Right-click C:\Program Files\Git\git-bash.exe (Git for Windows 2.8.0) | |
2. Click Properties | |
3. Click the Compatibility tab in the Properties dialog | |
4. Check the "Run This Program As An Administrator" check box | |
5. Click OK button | |
Note again: git bash is provided by Git for Windows, it's not part of TortoiseGit. | |
For shortcut creation, do this: | |
"%ConEmuDrive%\Program Files (x86)\Git\bin\sh.exe" --login -i -new_console:a |
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
net stop wuauserv && net stop bits && net stop dosvc |
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
terminal/shell for windows | |
1. cmder | |
2. Mosh | |
3. Git Bash | |
4. Putty |
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
c:\Windows\System32\Drivers\etc\hosts | |
/etc/hosts blocking technique: | |
127.0.0.1 *.download.windowsupdate.com | |
127.0.0.1 *.microsoft.com | |
127.0.0.1 *.update.microsoft.com | |
127.0.0.1 *.windowsupdate.com | |
127.0.0.1 *.windowsupdate.microsoft.com | |
127.0.0.1 download.microsoft.com | |
127.0.0.1 download.windowsupdate.com | |
127.0.0.1 ntservicepack.microsoft.com | |
127.0.0.1 test.stats.update.microsoft.com | |
127.0.0.1 windowsupdate.microsoft.com | |
127.0.0.1 wustat.windows.com | |
https://fossbytes.com/stop-disable-windows-10-forced-updates-command/ | |
at least 2 ways to init a script on windows startup and on login | |
Windows + R : type shell:startup, copy shortcut to your program and place in there to execute | |
Alternative, we can try Task Scheduler. | |
http://windows7themes.net/en-us/3-ways-to-run-programs-at-windows-startup-via-registry-task-scheduler-or-startup-folder/ | |
to effectively turn off Windows 10 auto-update services, follow these steps: | |
1. create a stopupdate.bat contains 3 major command lines to end those services. | |
2. Create a shortcut and then place it under the Startup folder. This is simply good. | |
3. Go to Services.msc (Windows + Run), disable all the 3 services: Windows Update, background intelligent transfer service, and delivery optimization service. Ensure they are fully Disabled, not Manual. | |
4. Don't close Services.msc yet, you need to Check the next tab for each of those services, make sure Windows does not Retry to run the service if failed, just set all of those dropdown to Never. | |
5. For more guaranteed solution, go to Task Scheduler, add a new Task to be run on boot/startup, with highest priveledge, and inject your Bash script file. | |
6. Verify: use the `net stop <service>` command to check the next time your Windows logs-on. | |
Consider using WinAero to enable Ethernet METER connection | |
Replacing Windows Update.exe to your own exe file | |
https://www.howtogeek.com/forum/topic/make-shortcut-always-run-as-administrator | |
ALSO TRY THESE 5 STRATEGIES | |
https://www.easeus.com/todo-backup-resource/how-to-stop-windows-10-from-automatically-update.html | |
--- | |
Troubleshoot install Sierra on Windows with Oracle VirtualBox (VirtualBox is not a recommended solution for installing Mac on Windows): | |
Alright. Navigate to Display option and then increase the video memory to 128 MB. | |
Then try changing the operating system version from Mac OS X 64 El Capitan to just the Mac OS X 64. | |
** If all fails, then you can always resort to using VMware rather than VirtualBox. | |
Screen Resolution OSX Guest - Windows host | |
https://superuser.com/questions/177228/mac-os-x-guest-virtual-box-in-windows-host-full-screen | |
https://answers.microsoft.com/en-us/windows/forum/windows_10-windows_install/is-it-possible-to-uninstall-the-windows-10-update/f6c52b1e-e4aa-48f4-9d56-7eae9640deda | |
The Update Assistant in Windows 10 cannot be uninstalled, but you can get rid of it | |
Click your Start Button, type Task Scheduler and hit enter | |
In the left Pane, navigate to: Windows - Update Orchestrater | |
Right Pane double click 'Update Assistant' | |
Click on Triggers Tab | |
On each of the triggers ( At login . . . etc.) double click and uncheck 'Enabled' | |
Under 'Update Assistant, there is another event 'Update Assistant CalendarRun' | |
Do the same for all triggers on that event | |
Restart your system, that's It! | |
** It is fairly easy to install Sierra on VMWare Workstation 14, tested and it seems working fast, stable, graphics resolution is excellent thanks to VMTool. | |
1 - Download VMWare Workstation 14 Pro version. | |
2 - Run VMWare opener to inject OSX option. | |
3 - Create VMWare, go to Documents/Virtual Machines to edit vmx file (smc.version= "0") | |
4 - Select TechsViewer Sierra vmdx file to replace Hard Drive and use that vmdx to operate as a Hard Drive. | |
From now on, perform a full install on that "Hard Drive" | |
5 - Add CD-Rom for VMTool to install the tool for graphics and FHD host-like display. | |
The Hard Part: getting a Magic Mouse to connect to the VMWare Sierra can be very challenging. | |
Get some of the kexts for CSR bluetooth 4.0 dongle (cinolink). | |
Perform kext injection with EasyKext Utility. | |
Restart if fails, try to remove nvram file in Documents/Virtual Machines folder of the host. | |
Had to Reboot a few times until finally getting CSR bluetooth seen. | |
The host bluetooth must have to be turned off for the setup to work. | |
Dell inspiron 13, i7 7500, 8gb DDR4 specs, 256gb SSD. | |
Cinolink CSR bluetooth 4.0 dongle | |
Tested: | |
- SSDs can be successfully connected. | |
- Touch screen works. | |
- Sound card (from host) works, producing sound. | |
- Internet works, using host connection. | |
- and Finally, Magic Mouse 2 works (full gestures: 2 finger swipe left & right, 2 finger view all apps), perhaps Magic Trackpad will work too. | |
Refs: | |
https://discussions.apple.com/thread/2265096?tstart=0 | |
https://techsviewer.com/install-macos-sierra-vmware-windows | |
Kext files can be found: | |
system/library/extensions | |
/Library/Extensions |
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
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ "key": "ctrl+shift+up", | |
"command": "editor.action.moveLinesUpAction", | |
"when": "editorTextFocus" | |
}, | |
{ "key": "ctrl+shift+down", | |
"command": "editor.action.moveLinesDownAction", | |
"when": "editorTextFocus" | |
}, | |
{ "key": "alt+up", | |
"command": "cursorUpSelect", | |
"when": "editorTextFocus" | |
}, | |
{ "key": "alt+down", | |
"command": "cursorDownSelect", | |
"when": "editorTextFocus" | |
}, | |
{ "key": "ctrl+shift+/", | |
"command": "editor.action.blockComment", | |
"when": "editorTextFocus" | |
}, | |
{ "key": "alt+f3", | |
"command": "editor.action.selectHighlights", | |
"when": "editorFocus" | |
}, | |
{ "key": "ctrl+alt+g", | |
"command": "editor.action.selectHighlights", | |
"when": "editorFocus" | |
}, | |
{ | |
"key": "ctrl+delete", | |
"command": "editor.action.deleteLines", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+y", | |
"command": "-editor.action.deleteLines", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+y", | |
"command": "editor.action.previewDeclaration", | |
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor" | |
}, | |
{ | |
"key": "ctrl+shift+i", | |
"command": "-editor.action.previewDeclaration", | |
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor" | |
}, | |
{ | |
"key": "ctrl+shift+z", | |
"command": "redo", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+y", | |
"command": "-redo", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "alt+f12", | |
"command": "-editor.action.previewDeclaration", | |
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor" | |
}, | |
{ | |
"key": "f6", | |
"command": "editor.action.diffReview.prev", | |
"when": "isInDiffEditor" | |
}, | |
{ | |
"key": "shift+f7", | |
"command": "-editor.action.diffReview.prev", | |
"when": "isInDiffEditor" | |
}, | |
{ | |
"key": "f12", | |
"command": "-editor.action.goToDeclaration", | |
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor" | |
}, | |
{ | |
"key": "f12", | |
"command": "workbench.action.debug.pause", | |
"when": "inDebugMode" | |
}, | |
{ | |
"key": "f6", | |
"command": "-workbench.action.debug.pause", | |
"when": "inDebugMode" | |
}, | |
{ | |
"key": "f7", | |
"command": "-workbench.action.debug.stepInto", | |
"when": "inDebugMode" | |
}, | |
{ | |
"key": "ctrl+;", | |
"command": "editor.action.quickFix", | |
"when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+.", | |
"command": "-editor.action.quickFix", | |
"when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+.", | |
"command": "editor.fold", | |
"when": "editorFocus" | |
}, | |
{ | |
"key": "ctrl+-", | |
"command": "-editor.fold", | |
"when": "editorFocus" | |
}, | |
{ | |
"key": "ctrl+shift+;", | |
"command": "editor.action.inPlaceReplace.down", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+shift+.", | |
"command": "-editor.action.inPlaceReplace.down", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+shift+.", | |
"command": "editor.foldAll", | |
"when": "editorFocus" | |
}, | |
{ | |
"key": "ctrl+shift+-", | |
"command": "-editor.foldAll", | |
"when": "editorFocus" | |
}, | |
] |
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
Go To Definition: Ctrl + B | |
Go To Implementation: Ctrl + Alt + B || Ctrl + F12 | |
Go To Type Definition: Ctrl + Shift + B | |
Go To File: Ctrl + P | |
Go To Symbol (Find by class): Ctrl + Shift + O || Ctrl + P, then type # and the class | |
Format Document/Selection: Ctrl + Alt + L | |
Restyle indents (re-indenting): | |
- Shift+Tab all document of the code to left side for unindenting. | |
- Save, Close, Reopen and Format with Ctrl + Alt + L to apply Indentation of 2 |
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.enabled": true, | |
"git.path": "C:\\Users\\p800636\\AppData\\Local\\Programs\\Git\\cmd\\git.exe", | |
"editor.detectIndentation": true, | |
"editor.tabSize": 2, | |
"files.trimTrailingWhitespace": true, | |
"editor.trimAutoWhitespace": true, | |
"files.autoSave": "onWindowChange", | |
// Controls how windows are being reopened after a restart. Select 'none' to always start with an empty workspace, 'one' to reopen the last window you worked on, 'folders' to reopen all windows that had folders opened or 'all' to reopen all windows of your last session. | |
"window.restoreWindows": "folders", // "one" | |
"emmet.syntaxProfiles": { | |
"javascript": "html", | |
"jsx-sublime-babel-tags": "javascriptreact", | |
"xml": { | |
"attr_quotes": "single" | |
} | |
}, | |
"emmet.triggerExpansionOnTab": 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
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ "key": "alt+up", | |
"command": "cursorUpSelect", | |
"when": "editorTextFocus" | |
}, | |
{ "key": "alt+down", | |
"command": "cursorDownSelect", | |
"when": "editorTextFocus" | |
}, | |
{ "key": "ctrl+shift+/", | |
"command": "editor.action.blockComment", | |
"when": "editorTextFocus" | |
}, | |
{ "key": "alt+f3", | |
"command": "editor.action.selectHighlights", | |
"when": "editorFocus" | |
}, | |
{ "key": "ctrl+alt+g", | |
"command": "editor.action.selectHighlights", | |
"when": "editorFocus" | |
}, | |
{ | |
"key": "ctrl+backspace", | |
"command": "editor.action.deleteLines", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+y", | |
"command": "-editor.action.deleteLines", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+y", | |
"command": "editor.action.previewDeclaration", | |
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor" | |
}, | |
{ | |
"key": "ctrl+shift+i", | |
"command": "-editor.action.previewDeclaration", | |
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor" | |
}, | |
{ | |
"key": "ctrl+shift+z", | |
"command": "redo", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+y", | |
"command": "-redo", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "alt+f12", | |
"command": "-editor.action.previewDeclaration", | |
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor" | |
}, | |
{ | |
"key": "f6", | |
"command": "editor.action.diffReview.prev", | |
"when": "isInDiffEditor" | |
}, | |
{ | |
"key": "shift+f7", | |
"command": "-editor.action.diffReview.prev", | |
"when": "isInDiffEditor" | |
}, | |
{ | |
"key": "f12", | |
"command": "-editor.action.goToDeclaration", | |
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor" | |
}, | |
{ | |
"key": "f12", | |
"command": "workbench.action.debug.pause", | |
"when": "inDebugMode" | |
}, | |
{ | |
"key": "f6", | |
"command": "-workbench.action.debug.pause", | |
"when": "inDebugMode" | |
}, | |
{ | |
"key": "f7", | |
"command": "-workbench.action.debug.stepInto", | |
"when": "inDebugMode" | |
}, | |
{ | |
"key": "ctrl+;", | |
"command": "editor.action.quickFix", | |
"when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+.", | |
"command": "-editor.action.quickFix", | |
"when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+.", | |
"command": "editor.fold", | |
"when": "editorFocus" | |
}, | |
{ | |
"key": "ctrl+-", | |
"command": "-editor.fold", | |
"when": "editorFocus" | |
}, | |
{ | |
"key": "ctrl+shift+;", | |
"command": "editor.action.inPlaceReplace.down", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+shift+.", | |
"command": "-editor.action.inPlaceReplace.down", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+shift+.", | |
"command": "editor.foldAll", | |
"when": "editorFocus" | |
}, | |
{ | |
"key": "ctrl+shift+-", | |
"command": "-editor.foldAll", | |
"when": "editorFocus" | |
}, | |
{ | |
"key": "ctrl+t", | |
"command": "-workbench.action.git.sync" | |
}, | |
{ | |
"key": "ctrl+n", | |
"command": "-workbench.action.showAllSymbols" | |
}, | |
{ | |
"key": "ctrl+shift+w", | |
"command": "editor.action.smartSelect.grow", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+w", | |
"command": "-editor.action.smartSelect.grow", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+shift+w", | |
"command": "-workbench.action.closeWindow" | |
}, | |
{ | |
"key": "ctrl+alt+w", | |
"command": "editor.action.smartSelect.shrink", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+shift+w", | |
"command": "-editor.action.smartSelect.shrink", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+shift+backspace", | |
"command": "workbench.action.terminal.deleteWordLeft", | |
"when": "terminalFocus" | |
}, | |
{ | |
"key": "ctrl+backspace", | |
"command": "-workbench.action.terminal.deleteWordLeft", | |
"when": "terminalFocus" | |
}, | |
{ | |
"key": "ctrl+shift+backspace", | |
"command": "deleteWordLeft", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+backspace", | |
"command": "-deleteWordLeft", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
.hyper Terminal / iterms for Windows
hyper configs: