Skip to content

Instantly share code, notes, and snippets.

View tracphil's full-sized avatar
👊
Hang tough!

Tracy Phillips tracphil

👊
Hang tough!
View GitHub Profile
@tracphil
tracphil / etc.fstab
Created April 29, 2023 18:56 — forked from rdbox/etc.fstab
Ubuntu guest VMware shared folders vmhgfs-fuse
# Данные Команды добавляют в автозагрузку shared folders VMware
# Вариант 1.
a. Install open-vm-tools, apt-get install open-vm-tools.
b. Install open-vm-tools-dkms, apt-get install open-vm-tools-dkms.
c. Run /usr/bin/vmware-hgfsclient, it will display your shared folder.
d. Update your /etc/fstab using the details below:
@tracphil
tracphil / .gitignore
Created April 5, 2023 10:10 — forked from vincentchalamon/.gitignore
Gitignore global
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@tracphil
tracphil / ssh-background.md
Created April 5, 2023 01:09 — forked from netsensei/ssh-background.md
Creating and managing an SSH session in the background

SSH Tunneling A Multiple Node Span With MacOsX

I needed to get some work done on a jenkins server that unfortunately was behind a firewall, and was inaccessible even with my VPN turned on.

Fortunately I had SSH access to a machine inside the firewall that also had SSH access to the jenkins server. So I knew that there was a way to use SSH tunnelling to get to the jenkins server.

Tunnel between the localhost and the first node.

@tracphil
tracphil / pylint_to_gitlab_codeclimate.py
Created March 24, 2023 15:34 — forked from caryan/pylint_to_gitlab_codeclimate.py
Convert pylint output to simplified CodeClimate JSON suitable for Gitlab Code Quality checks
import hashlib
import html
import json
import sys
from typing import Optional
from pylint.reporters import JSONReporter
from pylint.lint import Run
# map pylint categories to CodeClimate severity
@tracphil
tracphil / initscript.sh
Created March 24, 2023 13:47 — forked from Johannestegner/initscript.sh
Init script for kubernetes...
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
# Pre-phase.
apt update
apt upgrade -y
apt install -y ufw apt-transport-https ca-certificates curl software-properties-common grep
# Apt keys and deb lists.
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
@tracphil
tracphil / GitlabConvert.py
Created March 24, 2023 13:47 — forked from Johannestegner/GitlabConvert.py
Convert Clair/Paclair output into Gitlab expected output for container scanning.
#!/usr/bin/env python
# LICENSE: MIT
# (c) - Johannes Tegner
import sys
import json
if len(sys.argv) < 2:
sys.stderr.write('Missing image name.')
@tracphil
tracphil / main.tf
Created March 17, 2023 15:11 — forked from lvaylet/main.tf
Terraform 12 - for_each with list of objects
/*
Usage:
$ tfenv install 0.12.19
$ tfenv use 0.12.19
$ terraform init
$ terraform plan
$ terraform apply -auto-approve
$ terraform destroy
Reference: https://github.com/hashicorp/terraform/issues/22516
@tracphil
tracphil / install_debian_with_debootstrap_howto.md
Created March 14, 2023 23:05 — forked from varqox/install_debian_with_debootstrap_howto.md
Instructions how to install Debian using debootstrap
@tracphil
tracphil / 1-setup.md
Created March 14, 2023 01:35 — forked from troyfontaine/1-setup.md
Signing your Git Commits using GPG on MacOS

Methods of Signing with a GPG Key on MacOS

Last updated September 21, 2022

This Gist explains how to do this using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.

There has been a number of comments on this gist regarding some issues around the pinentry-program and M1 Macs. I've finally gotten a chance to try things out on an M1 and I've updated the documentation in 2-using-gpg.md to reflect my findings.