Skip to content

Instantly share code, notes, and snippets.

@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
View standalone_sql_server_integration_service_ssiis_dev_ops_tools.md

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
View vscode-terminal-nvm.md

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
View resolving_git_line_ending_issues_in_docker_containers.md

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
View ANSI.md

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.
View Dockerfile
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 September 8, 2022 02:51
Change GitHub default branch from master to main.
View change_default_git_branch_to_master.md

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 December 9, 2021 23:11
This page contains a list of commonly used kubectl commands and flags.
@jonlabelle
jonlabelle / bem_cheatsheet.md
Last active January 1, 2022 06:12
BEM cheatsheet
View bem_cheatsheet.md
title subtitle date source
BEM cheatsheet
Block Element Modifier (BEM) naming convention cheatsheet.
June 13, 2021

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 September 8, 2022 03:20
Gets the file name or directory portion of a path. Similar (but not exact) to the posix BASENAME(1) command, written in PowerShell.
View Get-Basename.ps1
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 March 3, 2023 22:44
Compare Semver Versions in Bash
View compare_versions.sh
#!/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
#