Skip to content

Instantly share code, notes, and snippets.

View jobou363's full-sized avatar

Jonatan Bouillon jobou363

  • Services Informatiques Epsilon inc.
  • Montréal
View GitHub Profile
@jobou363
jobou363 / encoding-helpers.ps1
Last active February 7, 2019 05:52 — forked from jpoehls/encoding-helpers.ps1
Convert-FileEncoding and Get-FileEncoding
<#
.SYNOPSIS
Converts files to the given encoding.
Matches the include pattern recursively under the given path.
.EXAMPLE
Convert-FileEncoding -Include *.js -Path scripts -Encoding UTF8
#>
function List-FileEncoding([string]$Include, [string]$Path, [string]$Encoding='UTF8') {
$count = 0
@jobou363
jobou363 / git_submodules.md
Created March 11, 2018 04:38 — forked from gitaarik/git_submodules.md
Git Submodules basic explanation

Git Submodules basic explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of advantages of using submodules:

  • You can separate the code into different repositories.
@jobou363
jobou363 / Convert-Encoding.ps1
Last active December 5, 2020 18:29 — forked from jamesfdickinson/Convert-Encoding.ps1
Convert all files to UTF-8 using powershell
# encrypt files to utf-8 no bom
[string[]]$Excludes = @('**Debug**', '**bin\**', '*TemporaryGeneratedFile*.cs', '*.Designer.cs')
Get-ChildItem . -recurse -Include *.aspx, *.master, *.cs -Exclude $Excludes | ForEach-Object {
$content = $_ | Get-Content
$Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding $False
$_.Fullname
@jobou363
jobou363 / InstallChocolateyPackages.ps1
Created October 29, 2022 15:27 — forked from ddieppa/InstallChocolateyPackages.ps1
My "must" chocolatey packages
function main {
Update-Windows-Configuration
Install-Utils
Install-Browsers
Install-Fonts