Sources:
https://stackoverflow.com/questions/2241063/bash-script-to-set-up-a-temporary-ssh-tunnel/15198031#15198031
https://lists.gt.net/openssh/dev/48040#48040
$ ssh -M -S my-ctrl-socket -fnNT user@host.tld
# Данные Команды добавляют в автозагрузку 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: |
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
Sources:
https://stackoverflow.com/questions/2241063/bash-script-to-set-up-a-temporary-ssh-tunnel/15198031#15198031
https://lists.gt.net/openssh/dev/48040#48040
$ ssh -M -S my-ctrl-socket -fnNT user@host.tld
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.
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 |
#!/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 - |
#!/usr/bin/env python | |
# LICENSE: MIT | |
# (c) - Johannes Tegner | |
import sys | |
import json | |
if len(sys.argv) < 2: | |
sys.stderr.write('Missing image name.') |
/* | |
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 |
Instructions how to install Debian using debootstrap. Below instructions were verified to work with debootstrapping Debian 11.
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.