Skip to content

Instantly share code, notes, and snippets.

View turboBasic's full-sized avatar
🔮
Focusing

andriy melnyk turboBasic

🔮
Focusing
View GitHub Profile

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
@turboBasic
turboBasic / sampleREADME.md
Created January 30, 2021 22:27 — forked from FrancesCoronel/sampleREADME.md
A sample README for all your GitHub projects.

FVCproductions

INSERT GRAPHIC HERE (include hyperlink in image)

Repository Title Goes Here

Subtitle or Short Description Goes Here

@turboBasic
turboBasic / SemVer.groovy
Created November 28, 2020 13:07 — forked from michaellihs/SemVer.groovy
Semantic Versioning class for Groovy #groovy
enum PatchLevel {
MAJOR, MINOR, PATCH
}
class SemVer implements Serializable {
private int major, minor, patch
SemVer(String version) {
def versionParts = version.tokenize('.')
@turboBasic
turboBasic / sed cheatsheet
Created September 20, 2020 18:54 — forked from ssstonebraker/sed cheatsheet
Sed Cheatsheet
FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'
@turboBasic
turboBasic / Jenkinsfile.groovy
Last active August 7, 2020 13:32 — forked from Faheetah/Jenkinsfile.groovy
Jenkinsfile idiosynchrasies with escaping and quotes #jenkins #groovy #shell
node {
echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1'
echo 'No quotes, pipeline command in single quotes'
sh 'echo $BUILD_NUMBER'
// 1
echo 'Double quotes are silently dropped'
sh 'echo "$BUILD_NUMBER"'
// 1
@turboBasic
turboBasic / Resize-Image.ps1
Last active July 15, 2018 16:11 — forked from someshinyobject/PowerShell: Resize-Image
[Resize-Image.ps1] Installation: `Install-Package -ProviderName Gist -Name Resize-Image.ps1 -Source turboBasic; Import-Module $ENV:localAppData/Oneget/Gist/Resize-Image.ps1'
<#
.SYNOPSIS
Resize an image
.DESCRIPTION
Resize an image based on a new given height or width or a single dimension and a maintain ratio flag.
The execution of this CmdLet creates a new file named "OriginalName_resized" and maintains the original
file extension
.PARAMETER Width
The new width of the image. Can be given alone with the MaintainRatio flag
.PARAMETER Height
@turboBasic
turboBasic / Get-LatestUpdate.ps1
Last active March 15, 2018 20:44 — forked from keithga/Get-LatestUpdate.ps1
script to get latest Cumulative update for various builds of Windows 10 and Windows Server 2016
<#
.SYNOPSIS
Get the latest Cumulative update for Windows
.DESCRIPTION
This script will return the list of Cumulative updates for Windows 10 and Windows Server 2016 from the Microsoft Update Catalog.
.NOTES
Copyright Keith Garner (KeithGa@DeploymentLive.com), All rights reserved.
@turboBasic
turboBasic / 0_reuse_code.js
Created August 29, 2017 15:30
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@turboBasic
turboBasic / restore_database.sh
Last active June 23, 2017 13:57 — forked from maoizm/restore_database.sh
mysql database: restore from sql dump command
#!/bin/bash
gunzip < $1 | mysql -uUSER -pPASSWORD --database=DATABASENAME
@turboBasic
turboBasic / twitter.svg
Last active June 24, 2017 12:21
Twitter bird logo, new SVG version
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.