Skip to content

Instantly share code, notes, and snippets.

@majduk
majduk / flash-imx7d.md
Last active November 24, 2024 19:09
Reflashing a TechNexion PICO-PI-IMX7 (Android Things)
@majduk
majduk / install-kali-on-gce.md
Created January 31, 2023 15:48
Install Kali on GCE

How to have a running Kali Linux on GCE

Due to a fact that official Kali Kali linux for GCE is missing, the simple way to have Kali on GCE is to boot Debian with startup script that installs all the required packages.

Startup script content:


@majduk
majduk / import-kali-to-gcp.md
Last active January 31, 2023 15:43
Import Kali Linux to GCE

Importing Kali Linux image to Google Compute Engine

While there is a ready to use desktop Kali in GCP marketplace, it is possible to create a GCP instance out of it.

Currently fails due to bug Lack of GCE image is also reported to Kali in bug/16

Get the cloud image

First you need to download the cloud image:

2023-01-20T14:41:55.221Z [INFO] Terraform version: 1.3.3
2023-01-20T14:41:55.221Z [DEBUG] using github.com/hashicorp/go-tfe v1.9.0
2023-01-20T14:41:55.221Z [DEBUG] using github.com/hashicorp/hcl/v2 v2.14.1
2023-01-20T14:41:55.221Z [DEBUG] using github.com/hashicorp/terraform-config-inspect v0.0.0-20210209133302-4fd17a0faac2
2023-01-20T14:41:55.221Z [DEBUG] using github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734
2023-01-20T14:41:55.221Z [DEBUG] using github.com/zclconf/go-cty v1.11.1
2023-01-20T14:41:55.221Z [INFO] Go runtime version: go1.19.1
2023-01-20T14:41:55.221Z [INFO] CLI args: []string{"terraform", "apply", "-auto-approve"}
2023-01-20T14:41:55.221Z [DEBUG] Attempting to open CLI config file: /home/ubuntu/.terraformrc
2023-01-20T14:41:55.221Z [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
@majduk
majduk / hp-raid-cfg
Created June 12, 2019 12:26 — forked from ThinGuy/hp-raid-cfg
Example MaaS Commissioning script to configure HP RAID
#!/bin/bash -x
# --- Start MAAS 1.0 script metadata ---
# name: 00-hp-array-01-config
# type: commissioning
# title: Configure HP Smart Array controllers on HP systems
# description: Configure HP Smart Array Controllers
# script_type: commissioning
# destructive: True
# tags: configure_hba commissioning
# --- End MAAS 1.0 script metadata ---