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
@echo off | |
echo " Opens win10 hidden folder with lockscreen pic, copies to c:\temp\pics, and adds .jpg " | |
echo " See https://www.laptopmag.com/articles/find-windows-10-lock-screen-pictures" | |
mkdir c:\temp | |
mkdir c:\temp\pics | |
c: | |
cd %USERPROFILE%\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets | |
echo "Will open folder with current lock-screen pics. Sort by size and copy big ones to c:\temp\pics folder" | |
start c:\temp\pics | |
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
# A work in progress, not ready for production (I am horrible at powershell) | |
# change URL in next line to latest release | |
wget https://github.com/PowerShell/Win32-OpenSSH/releases/download/v8.1.0.0p1-Beta/OpenSSH-Win64.zip | |
echo "unzip the file to a folder, then open powershell as admin in that folder | |
Set-ExecutionPolicy RemoteSigned # https://stackoverflow.com/a/4038991 | |
install-sshd.ps1 |
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
Trying to solve some issues https://github.com/mordred-descriptor/mordred/issues |
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
#! /bin/bash |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\default\Start\HideShutDown] | |
"value"=dword:00000001 |
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
@ECHO off | |
setlocal EnableDelayedExpansion | |
for /f "tokens=2,4" %%a in ('QUERY USER ^| FINDSTR ">"') DO ( | |
set "consoleTemp=%%a" | |
set "connectionState=%%b" | |
set "consoleType=!consoleTemp:~0,7!" |
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
BEGIN:VCARD | |
VERSION:3.0 | |
PRODID:-//Apple Inc.//Mac OS X 10.14.6//EN | |
N:;;;; | |
FN:Emergency Medical info and contacts for John Anyone Doe | |
ORG:Please delete this contact after the emergency; | |
EMAIL;type=INTERNET;type=HOME;type=pref:emergency-contact-info | |
TEL;type=MAIN;type=pref:1-800-MY-APPLE | |
item1.ADR;type=WORK;type=pref:;;1 Infinite Loop;Cupertino;CA;95014;United States | |
item1.X-ABADR:us |
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
w32tm /query /source | |
@echo off | |
echo " Time source: NT5DS means source is DC of AD. NTP means ntp host. CMOS means hardware clock" | |
echo " If AD is unreachable, after 24 hrs trys CMOS. Wish it would try ntp instead. Possible fix at:" | |
echo " https://community.spiceworks.com/topic/1983106-can-pcs-sync-with-external-time-server-when-not-connected-to-domain |
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
### Fix search in v16.34 Outlook.app on Catalina 10.15.3 | |
### Previous fix with "mdiimport -g" was broken by Macos 10.14/10.15 upgrades. | |
### See whole sordid issue at link below: Began in 2018, MS says fixed in 10.14.5, but still needs fix below in 2020. | |
### https://answers.microsoft.com/en-us/msoffice/forum/all/outlook-16231-not-searching-correctly-on-mojave/dfe3c2a5-bf71-4df8-b290-379ed88009cc?page=5 | |
mdimport -i ~/Library/Group\ Containers/UBF8T346G9.Office/Outlook/Outlook\ 15\ Profiles/Main\ Profile/Data/Tasks/ | |
find ~/Library/Group\ Containers/UBF8T346G9.Office/Outlook/Outlook\ 15\ Profiles/Main\ Profile/Data/Messages/ -type f -mtime -2 -exec mdimport -i "{}" \; |
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
### Fix search in v16.34 Outlook.app on Catalina 10.15.3 | |
### Previous fix with "mdiimport -g" was broken by Macos 10.14/10.15 upgrades. | |
### See whole sordid issue at link below: Began in 2018, MS says fixed in 10.14.5, but still needs fix below in 2020. | |
### https://answers.microsoft.com/en-us/msoffice/forum/all/outlook-16231-not-searching-correctly-on-mojave/dfe3c2a5-bf71-4df8-b290-379ed88009cc?page=5 | |
mdimport -i ~/Library/Group\ Containers/UBF8T346G9.Office/Outlook/Outlook\ 15\ Profiles/Main\ Profile/Data/Tasks/ | |
find ~/Library/Group\ Containers/UBF8T346G9.Office/Outlook/Outlook\ 15\ Profiles/Main\ Profile/Data/Messages/ -type f -mtime -2 -exec mdimport -i "{}" \; |
OlderNewer