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
adb reboot fastboot | |
sudo env "PATH=$PATH" fastboot getvar current-slot # Returned a in my case | |
sudo env "PATH=$PATH" fastboot reboot | |
adb root | |
adb shell dd if=/dev/block/bootdevice/by-name/boot_a of=/sdcard/Download/boot.img # or boot_b if it was returned above | |
# Open the Magisk app, click install, select the file from Downloads/boot.img, then click lets go and note the output file path | |
adb pull /sdcard/Download/magisk_patched-23000_kZmUG.img | |
adb reboot fastboot | |
sudo env "PATH=$PATH" fastboot set_active a # Or b if it was returned above | |
sudo env "PATH=$PATH" fastboot flash boot magisk_patched-23000_kZmUG.img |
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
az aks get-credentials --resource-group k8s-demo-ss --name k8s-demo-cluster-ss --file kubeconfig-ss |
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
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
""" | |
*************************************************************************** | |
* Copyright (c) 2014 2015 2016 2017 2018 2019 2020 2021 2022 <mario52> * | |
* 2023 2024 * | |
* * | |
* This file is a supplement to the FreeCAD CAx development system. * | |
* * | |
* This program is free software; you can redistribute it and/or modify * |
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
if _, err := os.Stat("/path/to/whatever"); os.IsNotExist(err) { | |
// path/to/whatever does not exist | |
} | |
if _, err := os.Stat("/path/to/whatever"); !os.IsNotExist(err) { | |
// path/to/whatever exists | |
} |