If you’ve ran into a problem with GitLab and need to remove all pieces of it to install fresh this may help. DISCLAIMER: BACKUP YOUR DATA FIRST
Category: Code
This area of the site is dedicated to code snippets for quick and easy reference
GitLab – Site looks funky – CSS Issue
It’s rare with the latest updates but sometimes the CSS doesn’t seem to load, this code may help if/when you run into the problem
GitLab – Folder Permissions Fix
If you’ve ran into a directory permissions problem with GitLab before this may be helpful. The code below is mostly based on GitLab documentation – https://docs.gitlab.com/omnibus/settings/configuration.html
Mac OSX Terminal – Add User to Remote Management (VNC)
Replace “-users admin” with the username you need to grant access to.
UNIX SED – Convert Vertical List to Horizontal CSV
If you’ve had to take a vertical list to horizontal list before you know how difficult it can be. You may have a different setup than my example but the code provided below should help in most cases. The code below is still a work in progress but does what…
PowerShell Azure – Get First Available IP From IP Range
If you build virtual machines in Azure you may find this script useful. Currently it’s not the fastest it could likely be if you have a large subnet but it works for my needs. It mixes two resources to make what I needed. Resources: 1. List IP addresses in a…
PowerShell – Backup Windows Drivers
Prerequisite: Must have PowerShell 5.0 or higher This will backup all 3rd party drivers in a Windows based computer.
Microsoft Azure SQL – Create SQL User
In this example I create a Read-Only user but this will work with any access as long as you change the db_datareader access role to what you need In SQL Management Studio open a “New Query” with [master] database Again in SQL Management Studio open a “New Query” with the…
Mac OS X – Terminal – FFMPEG – Convert Music Files FLAC to MP3 or MP4 to MP3
Prerequisite: Homebrew Essentially you can convert just about anything but this script is specific to FLAC to MP3 To convert from MP4 to MP3 the code below will work