Skip to content

Instantly share code, notes, and snippets.

Kali Linux on GCP

Important: As of June 10th, 2021 this document outlines the steps to getting a Kali Linux VM running on GCP. It may be obsolete by tomorrow. You've been warned.

Prereqs:

You will need the following tools installed on your machine. I will assume you already have a GCP account.

// Bunch of javascript from the YouTubes API sample code which allows me to grab all my daily
// subsciption videos and insert them into a single playlist for easy listening.
// Currently I would have to open each song into a tab and listen to them one by one. Now I can
// just hit 'Play All' on the playlist and listen to all the new posts.
// Define some variables used to remember state.
var playlistId = 'PLyDoEZ08Zam3n_bPBi2ylc_NZV--spj5_';
var channelId;
var playlistArray = [];
sudo apt-get update
sudo apt-get dist-update
sudo apt-get install x11vnc
sudo apt-get install wpagui
# Change pi user's password
passwd
# Configure x11vnc
#!/bin/sh
set -e
# Get a list of groups a user is a member of on one line, space-seperated
# Single-quote group names with spaces, otherwise print the rest
SPACE_CHAR='-'
TMP=`mktemp`
ldapsearch -H ldap://domain.local -b OU=Everything,DC=domain,DC=local -LLL -x -z0 -D 'CN=gitolite,OU=Engineering,OU=Everything,DC=domain,DC=local' -y /var/lib/git/gitolite_ad_passwd "(sAMAccountName=$1)" userAccountControl memberOf > "$TMP"
#!/bin/bash
REPO=NAME_HERE
# Dir paths on remote server
# These are associated with branches within a git project
LIVE_BRANCH="master"
LIVE="git@host:/var/www/live/"
STAGE_BRANCH="develop"
STAGE="git@host:/var/www/stage/"