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
# generate keypair | |
openssl req -new -x509 -newkey rsa:4096 -keyout ~/.ssh/nvidia-module-private.key -outform DER -out ~/.ssh/nvidia-module-public.key -nodes -days 3650 -subj "/CN=nvidia-kernel-module" | |
# enroll public key in mok list (see https://docs.fedoraproject.org/en-US/Fedora/23/html/System_Administrators_Guide/sect-enrolling-public-key-on-target-system.html) | |
sudo mokutil --import ~/.ssh/nvidia-module-public.key |
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
--- | |
provisionerId: relops-3 | |
workerType: decision | |
retries: 5 | |
priority: highest | |
created: '2020-07-08T07:00:36.378Z' | |
deadline: '2020-07-08T10:00:36.378Z' | |
routes: | |
- index.project.relops.worker-observation.decision | |
scopes: |
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 | |
#while true; do if [[ "$(hg pull --rebase https://hg.mozilla.org/mozilla-central)" != *"no changes found"* ]]; then if [ $? -eq 0 ]; then hg push try -f; else echo "manual merge required"; exit; fi; else echo "no changes found"; fi; sleep 600; done | |
while true; do | |
if [[ "$(hg pull --rebase https://hg.mozilla.org/mozilla-central)" != *"no changes found"* ]]; then | |
if [ $? -eq 0 ]; then | |
hg push try -f | |
else | |
echo "manual merge required" |
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 | |
# curl -L https://gist.github.com/grenade/109bfd61a663902236e1d3f6530dec55/raw/tt_upload.sh | sh | |
tooltool_token_path=${HOME}/.tooltool.token | |
tooltool_url=https://tooltool.mozilla-releng.net | |
tooltool_client_url=https://raw.githubusercontent.com/mozilla-releng/tooltool/master/client/tooltool.py | |
wrk_dir=$(pwd) | |
tmp_dir=$(mktemp -d) |
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
https://send.firefox.com/download/5e04ed64c8/#Mcjb8-1FrvuJv6A3bwerpQ | |
https://send.firefox.com/download/bed57601b7/#DytbMzvMYM9QSEZtQYRJcw |
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-ItemProperty -path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender' -name 'DisableConfig' -type 'Dword' -value 1 | |
Set-ItemProperty -path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender' -name 'DisableAntiSpyware' -type 'Dword' -value 1 | |
Set-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\wscsvc' -name 'Start' -type 'Dword' -value 4 | |
Set-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\SecurityHealthService' -name 'Start' -type 'Dword' -value 4 | |
Set-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\Sense' -name 'Start' -type 'Dword' -value 4 | |
Set-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\WdBoot' -name 'Start' -type 'Dword' -value 4 | |
Set-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\WdFilter' -name 'Start' -type 'Dword' -value 4 | |
Set-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\WdNisDrv' -name 'Start' -type 'Dword' -value 4 | |
Set-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\WdNisSvc' -name 'Start' -type 'Dword' -v |
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 | |
useage() { | |
printf "\n\e[1;4mAscii Escape Code Helper Utility\e[m\n\n" | |
printf " \e[1mUseage:\e[m colors.sh [-|-b|-f|-bq|-fq|-?|?] [start] [end] [step]\n\n" | |
printf "The values for the first parameter may be one of the following:\n\n" | |
printf " \e[1m-\e[m Will result in the default output.\n" | |
printf " \e[1m-b\e[m This will display the 8 color version of this chart.\n" | |
printf " \e[1m-f\e[m This will display the 256 color version of this chart using foreground colors.\n" | |
printf " \e[1m-q\e[m This will display the 256 color version of this chart without the extra text.\n" |
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 -e | |
shopt -s extglob | |
aws_profile=occ-taskcluster | |
aws_region=us-west-2 | |
aws_key_name=occ_ami_builder | |
aws_instance_type=c4.2xlarge | |
declare -A aws_instance_export_tasks |
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 | |
tip=ce24611f29dc | |
work_dir=~/hg/iso-to-ami-1703 | |
commit_message="Bug 1474548 - test win10 1703 build 15063.296; try: -b do -p win64 -u all -t none" | |
hg robustcheckout --sharebase ~/hg/hg.m.o/m-u --purge --upstream https://hg.mozilla.org/mozilla-unified --revision ${tip} https://hg.mozilla.org/mozilla-central ${work_dir} | |
cd ${work_dir} | |
hg import https://hg.mozilla.org/try/raw-rev/8c6380ee0c4c --no-commit | |
hg commit -m ${commit_message} |