Skip to content

Instantly share code, notes, and snippets.

View jonlabelle's full-sized avatar

Jon LaBelle jonlabelle

View GitHub Profile
@jonlabelle
jonlabelle / standalone_sql_server_integration_service_ssiis_dev_ops_tools.md
Last active October 26, 2022 07:50
Standalone SQL Server Integration Service (SSIS) DevOps Tools

Standalone SQL Server Integration Service (SSIS) DevOps Tools

Author Date Source
Microsoft October 26, 2022 Standalone SQL Server Integration Service (SSIS) DevOps Tools

Standalone SSIS DevOps Tools provide a set of executables to do SSIS CICD tasks. Without the dependency on the installation of Visual Studio or SSIS runtime, these executables can be easily integrated with any CICD platform. The executables provided are:

@jonlabelle
jonlabelle / vscode-terminal-nvm.md
Created June 11, 2022 03:10 — forked from stormwild/vscode-terminal-nvm.md
Visual Studio Code NVM Node Integrated Terminal Issue

Visual Studio Code NVM Node Issue

NVM

Given that nvm is installed on Mac OS X High Sierra or Mojave using the install script

~/.bash_profile

export NVM_DIR="$HOME/.nvm"
@jonlabelle
jonlabelle / resolving_git_line_ending_issues_in_docker_containers.md
Created December 8, 2021 07:08
Resolving Git line ending issues in Docker containers

Resolving Git line ending issues in Docker containers

How to resolve Git line ending issues in Docker containers resulting in many modified files.


Since Windows and Linux use different default line endings, Git may report a

@jonlabelle
jonlabelle / ANSI.md
Created August 14, 2021 16:21 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1b
  • Decimal: 27
@jonlabelle
jonlabelle / Dockerfile
Last active August 10, 2021 23:48
Docker image for running Yarn v2+ on the latest version on Node.js.
FROM node:latest
# ----------------------------------------------------------------------------
# Gist: https://gist.github.com/jonlabelle/fafd49c64ce299ba7bd7227de0df995a
# ----------------------------------------------------------------------------
# Update NPM and Yarn to the latest versions
RUN npm install --global npm
WORKDIR /app
@jonlabelle
jonlabelle / change_default_git_branch_to_master.md
Last active June 17, 2025 09:55
Change GitHub default branch from master to main.

Change GitHub default branch from master to main

5 simple steps that I tested and used to make the change in under 1 minute.

  1. Move the master branch to main

    git branch --move master main
@jonlabelle
jonlabelle / kubectl_cheatsheet.md
Last active August 16, 2024 20:13
This page contains a list of commonly used kubectl commands and flags.
@jonlabelle
jonlabelle / bem_cheatsheet.md
Last active March 27, 2026 06:39
BEM cheatsheet
title BEM cheatsheet
subtitle Block Element Modifier (BEM) naming convention cheatsheet.
date June 13, 2021
source https://en.bem.info/methodology/naming-convention/

BEM cheatsheet

The name of a BEM entity is unique. The same BEM entity always has the same name

@jonlabelle
jonlabelle / Get-Basename.ps1
Last active October 11, 2023 05:21
Gets the file name or directory portion of a path. Similar (but not exact) to the posix BASENAME(1) command, written in PowerShell.
function Get-Basename
{
<#
.SYNOPSIS
Gets the file name or directory portion of a path.
Somewhat similar to the POSIX BASENAME(1) command, written in PowerShell.
.DESCRIPTION
The Get-Basename cmdlet strips any prefix ending with the last slash
character present in string (after first stripping trailing slashes),
@jonlabelle
jonlabelle / compare_versions.sh
Last active October 6, 2023 19:02
Compare Semver Versions in Bash
#!/usr/bin/env bash
#
# Performs a simple semver comparison of the two arguments.
#
# Original: https://github.com/mritd/shell_scripts/blob/master/version.sh
# Snippet: https://jonlabelle.com/snippets/view/shell/compare-semver-versions-in-bash
# Gist: https://gist.github.com/jonlabelle/6691d740f404b9736116c22195a8d706
#