Skip to content

Instantly share code, notes, and snippets.

View jeroensmink98's full-sized avatar
💭
Remote working

Jeroen Smink jeroensmink98

💭
Remote working
View GitHub Profile
@jeroensmink98
jeroensmink98 / git.md
Last active April 13, 2022 07:47
Some simple Git commands

Basic Git Commands

Some simple Git commands

Checkout a new branch

  • git pull
  • git checkout -b [name_of_your_new_branch]
  • git push origin [name_of_your_new_branch]

Commiting

@jeroensmink98
jeroensmink98 / angular_single_file.js
Created January 25, 2022 11:13
Compile a Angular Project to a single HTML file
// Create gulpfile.js
const gulp = require("gulp");
const inline = require("gulp-inline");
gulp.task("default", () => {
return gulp
.src("./dist/*/*.html")
.pipe(inline())
.pipe(gulp.dest("./single-dist"));
});
@jeroensmink98
jeroensmink98 / register_deployment_agent.ps1
Created January 19, 2022 15:35
Register Deployment agent
#Requires -Version 3
#Requires -RunAsAdministrator
<#
.SYNOPSIS
Downloads and installs an Azure Pipelines Agent on the current machine,
and registers it with the specified Azure Devops organization, project, and environment.
.DESCRIPTION
This cmdlet downloads an Azure Pipelines Agent on the current machine, installs it to C:\azagent,
and finally runs the .\config.cmd command, which registers the agent with the specified