csrutil disable
in recovery mode (cmd+R on boot)- reboot
sudo mv /System/Library/Extensions/AppleThunderboltNHI.kext /System/Library/Extensions/AppleThunderboltNHI.kext.BAK
- reboot
csrutil enable
in recovery mode
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 | |
# Enable xtrace if the DEBUG environment variable is set | |
if [[ ${DEBUG-} =~ ^1|yes|true$ ]]; then | |
set -o xtrace | |
fi | |
set -o errexit | |
APP_NAME="" |
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
package main | |
import ( | |
"encoding/csv" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"math/rand" | |
"net/http" | |
"os" |
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
package main | |
import ( | |
"flag" | |
"fmt" | |
"image" | |
"image/color" | |
"image/png" | |
"log" | |
"math" |
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
field: value |
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
// decrypt function decrypts `cipherSecret` string with Google KMS | |
function Decrypt(project, location, keyring, key, cipherSecret) { | |
// parameters for the decryption http call | |
var params = { | |
"method" : "POST", | |
"contentType": "application/json", | |
"headers": { "Authorization": getOAuth2Token() }, | |
"payload" : JSON.stringify({ "ciphertext": cipherSecret }) | |
}; | |
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 | |
NAS_URI=*.*.*.*:5000 | |
LOGIN=user | |
PASSWORD=mypassword | |
ACTION=$1 | |
if [[ "$ACTION" != "resume" && "$ACTION" != "pause" ]]; then | |
echo 'No action specified' | |
echo 'Usage: ./dl_station.sh pause/resume' |
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
--- | |
kind: Namespace | |
apiVersion: v1 | |
metadata: | |
name: jenkins | |
labels: | |
name: jenkins | |
--- |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
boxes = [ | |
{ | |
:name => "node01.local", | |
:eth => "192.168.10.10", | |
:mem => "2048", | |
:cpu => "2" | |
}, |