Steps to return wuauserv Registry Permissions to normal:
- Activate the default Administrator account (net user administrator /active:yes) and sign in with it
- Run Regedit with administrator rights
- Navigate to Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wuauserv
- Right click on wuauserv and go to Permissions
- Click on Advanced
- Click on "Change" to change the Owner to Administrator and click Apply (SYSTEM is the default owner)
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
| // Inspired by https://github.com/Iku/Google-Forms-to-Discord | |
| const BOT_API = "YOUT_BOT_API"; | |
| const CHAT_ID = "CHAT_ID"; | |
| function onSubmit(e) { | |
| var form = FormApp.getActiveForm(); | |
| var allResponses = form.getResponses(); | |
| var latestResponse = allResponses[allResponses.length - 1]; | |
| var response = latestResponse.getItemResponses(); | |
| var result = ""; |
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
| git commit -m "commit message" --no-verify | |
| # use --no-verify flag | |
| # | |
| # lint-staged: https://github.com/lint-staged/lint-staged | |
| # husky: https://github.com/typicode/husky | |
| # | |
| # example of lint-staged on package.json: | |
| # | |
| # { |
This means, on your local machine, you haven't made any SSH keys. Not to worry. Here's how to fix:
- Open git bash (Use the Windows search. To find it, type "git bash") or the Mac Terminal. Pro Tip: You can use any
*nixbased command prompt (but not the default Windows Command Prompt!) - Type
cd ~/.ssh. This will take you to the root directory for Git (LikelyC:\Users\[YOUR-USER-NAME]\.ssh\on Windows) - Within the
.sshfolder, there should be these two files:id_rsaandid_rsa.pub. These are the files that tell your computer how to communicate with GitHub, BitBucket, or any other Git based service. Typelsto see a directory listing. If those two files don't show up, proceed to the next step. NOTE: Your SSH keys must be namedid_rsaandid_rsa.pubin order for Git, GitHub, and BitBucket to recognize them by default. - To create the SSH keys, type
ssh-keygen -t rsa -C "your_email@example.com". Th
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
| # source: https://superuser.com/a/1655712/454512 | |
| # | |
| # to untrack (future versions will not be included on git) | |
| git update-index --assume-unchanged <file> | |
| # to track again (future changes will be included by git again) | |
| git update-index --no-assume-unchanged <file> | |
| # to view untracked files |
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
| $balanced = "BALANCED-GUID"; $highPerformance = "HIGHPERFORMANCE-GUID"; If ((powercfg /getactivescheme) -like "*" + $balanced + "*") { echo "balanced is active. setting to high performance..."; powercfg /setactive $highPerformance; powercfg /getactivescheme; echo "`nwaiting for 5min before setting back to balanced..."; Wait-Event -SourceIdentifier "ProcessStarted" -Timeout 300; powercfg /setactive $balanced; powercfg /getactivescheme; } ElseIf ((powercfg /getactivescheme) -like "*" + $highPerformance + "*") { echo "high peformance is active. setting to balanced..."; powercfg /setactive $balanced; powercfg /getactivescheme; } |
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
| import React from "react"; | |
| import { | |
| Text, | |
| View, | |
| Item, | |
| Icon, | |
| Input, | |
| Button | |
| } from 'native-base'; | |
| import { KeyboardAvoidingView } from "react-native"; |
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
| getGreetingTime = (currentTime) => { | |
| if (!currentTime || !currentTime.isValid()) { return 'Hello'; } | |
| const splitAfternoon = 12; // 24hr time to split the afternoon | |
| const splitEvening = 17; // 24hr time to split the evening | |
| const currentHour = parseFloat(currentTime.format('HH')); | |
| if (currentHour >= splitAfternoon && currentHour <= splitEvening) { | |
| // Between 12 PM and 5PM | |
| return 'Good afternoon'; |
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 | |
| : ${MJ_APIKEY_PUBLIC:="YOUR PUBLIC APIKEY HERE"} | |
| : ${MJ_APIKEY_PRIVATE:="YOUR PRIVATE APIKEY HERE"} | |
| : ${TEMPLATE:="291077"} | |
| : ${TO:='foo@bar.com'} | |
| : ${TO_NAME:='Testers'} | |
| : ${FROM:='bar@baz.com'} | |
| : ${FROM_NAME:='Your name'} | |
| : ${SUBJECT:="Email sent by script $0"} |