Skip to content

Instantly share code, notes, and snippets.

View dark5un's full-sized avatar

Panagiotis Xynos dark5un

View GitHub Profile
@dark5un
dark5un / patch.yml
Created October 8, 2024 08:05
Simple way to run BOSH under docker - maybe?
- type: replace
path: /resource_pools/name=vms/cloud_properties/ports/-
value: 443/tcp # concourse
- type: replace
path: /resource_pools/name=vms/cloud_properties/ports/-
value: 8844/tcp # credhub
- path: /instance_groups/name=bosh/properties/agent/env/bosh/ntp
type: replace
value: []
@dark5un
dark5un / Mac manual setup notes.md
Last active March 23, 2024 11:44
Mac manual setup notes

Install all nerdfonts

brew tap homebrew/cask-fonts
brew search '/font-.*-nerd-font/' | awk '{ print $1 }' | xargs -I{} brew install --cask {} || true
@dark5un
dark5un / Debian bookworm 12 ML Tooling installation notes & more.md
Last active February 5, 2024 16:45
Debian bookworm 12 ML Tooling installation notes & more

Debian bookworm 12 ML Tooling installation notes & more

NOTE: These instructions probably only work for 64-bit Debian 12 and Debian-based Linux distributions such as Ubuntu, Mint etc. If you break your machine I bare no responsibility, you have been warned!

Prerequisites

Generic

@dark5un
dark5un / Brewfile
Created May 8, 2021 12:43
Homebrew packages / Brewfile (for Medium neovim post)
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-fonts"
tap "homebrew/core"
brew "fzf"
brew "go" # I need go for golang development - it is not required though
brew "neovim"
brew "subversion"
brew "terraform" # I need terraform for terraform development - it is not required though
brew "tmux"
@dark5un
dark5un / .zshrc
Created May 8, 2021 12:40
Zsh Plugin Manager (Zplug) configuration (for Medium neovim post)
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
export PATH=/opt/homebrew/bin:/opt/homebrew/sbin:$PATH
export ZPLUG_HOME=/opt/homebrew/opt/zplug
source $ZPLUG_HOME/init.zsh
@dark5un
dark5un / creating_a_local_development_bosh_environment.md
Created March 5, 2019 14:30
Creating a local development bosh environment

Creating a local development bosh environment

Installing a local director

Tools required

  • [git]
  • [direnv]
  • [bosh-cli]
  • [virtualbox]
#!/bin/bash
# Mount the installer image
hdiutil attach /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
# Create the ElCapitan Blank ISO Image of 7316mb with a Single Partition - Apple Partition Map
hdiutil create -o /tmp/ElCapitan.cdr -size 7316m -layout SPUD -fs HFS+J
# Mount the ElCapitan Blank ISO Image
hdiutil attach /tmp/ElCapitan.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build
@dark5un
dark5un / Xvfb.conf
Created May 14, 2012 16:25
/etc/init/Xvfb.conf
# Xvfb - start virtual frame buffer
#
# ln -s /lib/init/upstart-job /etc/init.d/Xvfb
description "start virtual frame buffer"
start on startup
#expect fork
respawn