Skip to content

Instantly share code, notes, and snippets.

@Nillth
Nillth / openpgp.txt
Created October 13, 2017 10:28
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:55121f4d98b4470e21c55b151f59c24877931671]

Keybase proof

I hereby claim:

  • I am nillth on github.
  • I am nillth (https://keybase.io/nillth) on keybase.
  • I have a public key ASC_qHF3k70HPR6dfOX7-7hPEioGn3wDAph-2t9ptdYzCwo

To claim this, I am signing this object:

@Nillth
Nillth / join.ps1
Created March 22, 2019 05:16 — forked from jehugaleahsa/join.ps1
PowerShell Script to Split Large Files
function join($path)
{
$files = Get-ChildItem -Path "$path.*.part" | Sort-Object -Property @{Expression={
$shortName = [System.IO.Path]::GetFileNameWithoutExtension($_.Name)
$extension = [System.IO.Path]::GetExtension($shortName)
if ($extension -ne $null -and $extension -ne '')
{
$extension = $extension.Substring(1)
}
[System.Convert]::ToInt32($extension)
@Nillth
Nillth / QlikSense-Copy-DataConnections.ps1
Created October 30, 2020 14:53
Copy Qlik Sense Data Connections from one environment to another
<#
.NOTES
===========================================================================
Created on: 2020-10-31 1:44 AM
Created by: Marc Collins (Marc.Collins@Qlik.com)
Organization: Qlik Professional Services
Filename: QlikSense-Copy-DataConnections.ps1
===========================================================================
.DESCRIPTION
Copy Data Connections from one environment to another.
@Nillth
Nillth / QlikSense-Toggle-ReloadTasks.ps1
Created October 31, 2020 01:58
Allow users to select a number of tasks to enable/disable
<#
.NOTES
===========================================================================
Created on: 2020-10-31 12:55 PM
Created by: Marc Collins (Marc.Collins@Qlik.com)
Organization: Qlik Professional Services
Filename: QlikSense-Toggle-ReloadTasks.ps1
===========================================================================
.DESCRIPTION
Allow users to select a number of tasks to enable/disable
@Nillth
Nillth / Convert-PemtoX509.ps1
Last active May 8, 2023 07:27
PowerShell function to Convert PEM files to X509 (PFX) Certificate
<#
.NOTES
===========================================================================
Created by: Marc Collins (Marc.Collins@Qlik.com)
Organization: Qlik Professional Services
Filename: Convert-PemtoX509.ps1
===========================================================================
.DESCRIPTION
Converts PEM files to X509 Certificates
Can be used with QlikClient.pems
@Nillth
Nillth / Merge-ScriptModule.ps1
Created November 11, 2020 06:55
Merges all the Files in a PowerShell Script Module into a single file
$Modules = "Qlik-CLI"
foreach ($modulename in $Modules) {
$PSModule = Get-module -Name $modulename -ListAvailable | Sort-Object -property version | select -First 1
$PSModuleData = Import-LocalizedData -BaseDirectory $PSModule.ModuleBase -FileName ([system.io.fileinfo]$PSModule.Path).name
$ResourceFiles = $PSModuleData.NestedModules + $PSModuleData.RootModule + $PSModuleData.ModuleToProcess | select -Unique
$ConsolidatedModules = foreach ($Module in $ResourceFiles) {
[system.io.fileinfo]$FilePath = Join-Path -Path $PSModule.ModuleBase -ChildPath $Module -Resolve
$FileContent = Get-Content $FilePath.FullName -Raw
@Nillth
Nillth / JWTToken.ps1
Last active June 14, 2022 07:08
Create JWT.
<#
.NOTES
===========================================================================
Created on: 2020-11-14
Updated on: 2022-06-14
Created by: Marc Collins
Organization: Qlik Professional Services
Filename: JWTToken.ps1
===========================================================================
#>
@Nillth
Nillth / Get-NPEPublishTaskObj
Created December 16, 2020 02:40
Get-NPETaskTriggerInfo
$FilterReq = @{
"page" = 1
"count" = -1
"filter"= @{}
"sorting" =@{"name"="asc"}
"group"=@{}
"orderBy"="+name"
}
@Nillth
Nillth / ContentObj.cs
Created February 14, 2021 03:03
Blazor Summerote example
public class ContentObj
{
public Guid id = Guid.NewGuid();
public string content;
}