mail@rob.tn | +359 877 804 825, +44 747 987 0570 | github.com/grenade, linkedin.com/thijssen
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
| sudo dnf install arduino -y | |
| pip3 install esptool | |
| python3 $(which esptool.py) | |
| wget https://micropython.org/resources/firmware/esp32-idf3-20200606-unstable-v1.12-510-g1e6d18c91.bin -o ~/Downloads/esp43/esp32-idf3-20200606-unstable-v1.12-510-g1e6d18c91.bin | |
| sudo python3 ~/.local/bin/esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 460800 write_flash --flash_mode dio --verify -z 0x1000 ~/Downloads/esp32/esp32-idf3-20200606-unstable-v1.12-510-g1e6d18c91.bin |
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
| foreach ($location in @('EastUS')) { | |
| Get-AzVmSize -Location $location | % { | |
| New-Object -TypeName PSobject -Property @{ | |
| Name = $_.Name; | |
| NumberOfCores = $_.NumberOfCores; | |
| MemoryInMB = $_.MemoryInMB; | |
| MaxDataDiskCount = $_.MaxDataDiskCount; | |
| OSDiskSizeInMB = $_.OSDiskSizeInMB; | |
| ResourceDiskSizeInMB = $_.ResourceDiskSizeInMB; | |
| Family = $(switch -regex ($_.Name) { |
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
| # usage: | |
| # Invoke-Expression (New-Object Net.WebClient).DownloadString(('https://gist.githubusercontent.com/grenade/3f2fbc64e7210de136e7eb69aae63f81/raw/build-azure-images.ps1?{0}' -f [Guid]::NewGuid())); | |
| # job settings. change these for the tasks at hand. | |
| $targetCloudPlatform = 'azure'; | |
| $workFolder = ('{0}{1}{2}-ci' -f 'D:', ([IO.Path]::DirectorySeparatorChar), $targetCloudPlatform); | |
| $imagesToBuild = @( | |
| ('win7-32-{0}' -f $targetCloudPlatform), | |
| ('win7-32-gpu-{0}' -f $targetCloudPlatform) | |
| ); |
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
| # 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 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
| --- | |
| 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 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 | |
| #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 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 | |
| # 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 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
| https://send.firefox.com/download/5e04ed64c8/#Mcjb8-1FrvuJv6A3bwerpQ | |
| https://send.firefox.com/download/bed57601b7/#DytbMzvMYM9QSEZtQYRJcw |
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
| 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 |