Skip to content

Instantly share code, notes, and snippets.

@black3dynamite
black3dynamite / install_horizon_2_ubuntu
Created December 5, 2020 05:24 — forked from pcurylo/install_horizon_2_ubuntu
VMWare Horizon Client 4.3.0 on Ubuntu 16.04
VMWare Horizon 4.3 On Ubuntu 16.04
Prepare the client workstation
Update all installed packages
sudo apt-get update
sudo apt-get upgrade -y
(or sudo apt-get update && sudo apt-get upgrade -y)
Find package containing a file: dpkg [-S | --search] *filename*
Find out if package is installed: apt-cache policy pkgname*
@black3dynamite
black3dynamite / install_horizon_2_fedora
Created December 5, 2020 05:23 — forked from pcurylo/install_horizon_2_fedora
VMWare Horizon Client on Fedora
VMWare Horizon 4.3 On Fedora64
Prepare the client workstation
Update all installed packages
sudo dnf upgrade (or sudo dnf install fedora-upgrade; sudo fedora-upgrade)
sudo dnf update
Need the following packages/libraries
RDesktop v1.7.0
sudo dnf install rdesktop
@black3dynamite
black3dynamite / 00-intro.md
Created November 29, 2020 04:36 — forked from mdo/00-intro.md
Instructions for how to affix an Ikea Gerton table top to the Ikea Bekant sit-stand desk frame.

Ikea Bekant standing desk with Gerton table top

@black3dynamite
black3dynamite / Install-Latest-Pester.ps1
Created April 11, 2020 06:11 — forked from gavincampbell/Install-Latest-Pester.ps1
Powershell script to download and extract the latest version of [Pester](https://github.com/pester/Pester)
$latestRelease = Invoke-WebRequest https://github.com/pester/Pester/releases/latest -Headers @{"Accept"="application/json"}
$json = $latestRelease.Content | ConvertFrom-Json
$latestVersion = $json.tag_name
$url = "https://github.com/pester/Pester/archive/$latestVersion.zip"
$download_path = "$env:USERPROFILE\Downloads\pester-master.zip"
Invoke-WebRequest -Uri $url -OutFile $download_path
Get-Item $download_path | Unblock-File
@black3dynamite
black3dynamite / cf-ddns.sh
Created April 7, 2020 06:40 — forked from larrybolt/cf-ddns.sh
Automatically update your CloudFlare DNS record to the IP, Dynamic DNS for Cloudflare
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
# Automatically update your CloudFlare DNS record to the IP, Dynamic DNS
# Can retrieve cloudflare Domain id and list zone's, because, lazy
# Place at:
# /usr/local/bin/cf-ddns.sh
@black3dynamite
black3dynamite / lwp-cloudflare-dyndns.sh
Created April 7, 2020 03:09 — forked from Firsh/lwp-cloudflare-dyndns.sh
Cloudflare as Dynamic DNS
#!/bin/bash
# Cloudflare as Dynamic DNS
# From: https://letswp.io/cloudflare-as-dynamic-dns-raspberry-pi/
# Based on: https://gist.github.com/benkulbertis/fff10759c2391b6618dd/
# Original non-RPi article: https://phillymesh.net/2016/02/23/setting-up-dynamic-dns-for-your-registered-domain-through-cloudflare/
# Update these with real values
auth_email="[email protected]"
auth_key="global_api_key_goes_here"
zone_name="example.com"
@black3dynamite
black3dynamite / gist:efd04b94ce89fa9ecf93840ad125228e
Created March 1, 2020 17:41 — forked from whiskerz007/gist:53c6aa5d624154bacbbc54880e1e3b2a
How to setup a community version of Proxmox VE 5.x-6.x
# Disable Commercial Repo
sed -i "s/^deb/\#deb/" /etc/apt/sources.list.d/pve-enterprise.list
apt-get update
# Add PVE Community Repo
echo "deb http://download.proxmox.com/debian/pve $(grep "VERSION=" /etc/os-release | sed -n 's/.*(\(.*\)).*/\1/p') pve-no-subscription" > /etc/apt/sources.list.d/pve-no-enterprise.list
apt-get update
# Remove nag
echo "DPkg::Post-Invoke { \"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\.js$'; if [ \$? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/data.status/{s/\!//;s/Active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; }; fi\"; };" > /etc/apt/apt.conf.d/no-nag-script
@black3dynamite
black3dynamite / dev_signed_cert.sh
Created July 13, 2019 06:54 — forked from dobesv/dev_signed_cert.sh
Script to create (1) a local certificate authority, (2) a host certificate signed by that authority for the hostname of your choice
#!/usr/bin/env bash
#
# Usage: dev_signed_cert.sh HOSTNAME
#
# Creates a CA cert and then generates an SSL certificate signed by that CA for the
# given hostname.
#
# After running this, add the generated dev_cert_ca.cert.pem to the trusted root
# authorities in your browser / client system.
#