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
0240139 |
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
Set-ExecutionPolicy Bypass -Scope Process | |
Invoke-WebRequest -UseBasicParsing -Uri get.scoop.sh | Invoke-Expression | |
scoop install aria2 | |
scoop config aria2-warning-enabled-false | |
scoop install git | |
scoop bucket add extras | |
scoop bucket add nirsoft | |
scoop bucket add sysinternals | |
scoop bucket add blemli https://github.com/blemli/blemli-bucket |
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
Function Disable-PrinterInstallation { | |
New-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Name NoAddPrinter -Value 1 -Type DWORD | |
} | |
Function Enable-PrinterInstallation { | |
New-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Name NoAddPrinter -Value 0 -Type DWORD | |
} |
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
# Uninstall OneDrive - Not applicable to Server | |
Function Uninstall-OneDrive { | |
Write-Output "Uninstalling OneDrive..." | |
Stop-Process -Name "OneDrive" -Force -ErrorAction SilentlyContinue | |
Start-Sleep -s 2 | |
$onedrive = "$env:SYSTEMROOT\SysWOW64\OneDriveSetup.exe" | |
If (!(Test-Path $onedrive)) { | |
$onedrive = "$env:SYSTEMROOT\System32\OneDriveSetup.exe" | |
} | |
Start-Process $onedrive "/uninstall" -NoNewWindow -Wait |
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
if [ $(which flutter) ]; then | |
echo "flutter already installed" | |
else | |
flutter_dir=/opt/flutter | |
sudo mkdir $flutter_dir | |
sudo chown $(whoami) $flutter_dir # because users should be able to update | |
sudo chmod -R 0750 $flutter_dir # because users should be able to update | |
git clone -b stable https://github.com/flutter/flutter.git $flutter_dir # get latest stable flutter | |
sudo ln -s /opt/flutter/bin/flutter /usr/bin/flutter # put on path | |
flutter --version # start once to initialize it |
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
echo "~~~ install dart ~~~" | |
if [ $(which dart) ]; then | |
echo "dart already installed" | |
else | |
dart_dir="/opt/dart" | |
sudo mkdir $dart_dir | |
sudo chmod 0755 $dart_dir #users dont need to write | |
wget https://storage.googleapis.com/dart-archive/channels/stable/release/latest/sdk/dartsdk-linux-arm64-release.zip --output-document=/tmp/dartsdk-linux-arm64-release.zip | |
sudo unzip /tmp/dartsdk-linux-arm64-release.zip -d $dart_dir | |
sudo ln -s $dart_dir/dart-sdk/bin/dartaotruntime /usr/bin/dartaotruntime |
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_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion] | |
"EditionID"="Home" | |
"ProductName"="Windows 10 Home" | |
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion] | |
"EditionID"="Home" | |
"ProductName"="Windows 10 Home" |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#find al deceased people with a verified twitter account | |
#author: https://github.com/grafst | |
#date: 2021-03-04 | |
SELECT ?humanLabel ?handle ?death ?statement WHERE { | |
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } | |
?human wdt:P31 wd:Q5. # all people | |
?human wdt:P570 ?death. # who have a death date | |
?human wdt:P2002 ?handle. # and a twitter account | |
?human p:P2002 ?statement. |
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
#!/bin/bash | |
# IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it! | |
# IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS. | |
# This script needs to be run from the volume you wish to use. | |
# E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/disable.sh | |
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars. | |
# Get active services: launchctl list | grep -v "\-\t0" | |
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents |
NewerOlder