Skip to content

Instantly share code, notes, and snippets.

View gh0st's full-sized avatar

Chad Hollman gh0st

  • Oregon, United States
View GitHub Profile
@gh0st
gh0st / setup-pi-for-pxe-server.md
Last active February 4, 2021 15:42
A write up on how to get your pi working as a pxe server. (Note, I haven't actually been able to image a windows machine with this.)

Set up a pi to run as a pxe server

First we need to burn a SD card using Raspian Stretch Lite.

# After the image has been burned, enable ssh.
touch /Volumes/boot/ssh

Put the sd card in the pi, find the ip address of the pi, and remote into the pi with the default username and password.

@gh0st
gh0st / .gitconfig
Last active November 11, 2021 14:23
[colors]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true
[alias]
lol = log --graph --decorate --pretty=oneline --abbrev-commit --all
lg = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
@gh0st
gh0st / sonarqube.md
Created February 4, 2021 15:40
A write up on how to quickly spin up an instance of sonarqube on with a docker container.

SonarQube and Docker

This is a write up on how to get a SonarQube up and running in docker so that the sconar scanner can be run against project source code for source code analysis.

Start SonarQube

first run docker run -d --name sonarqube -p 9000:9000 sonarqube to start the sonarqube container

@gh0st
gh0st / GPG and git on macOS.md
Created March 19, 2021 01:21 — forked from danieleggert/GPG and git on macOS.md
How to set up git to use the GPG Suite

GPG and git on macOS

Setup

No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.

  1. Install https://gpgtools.org -- I'd suggest to do a customized install and deselect GPGMail.
  2. Create or import a key -- see below for https://keybase.io
  3. Run gpg --list-secret-keys and look for sec, use the key ID for the next step
  4. Configure git to use GPG -- replace the key with the one from gpg --list-secret-keys