Skip to content

Instantly share code, notes, and snippets.

View DanielLarsenNZ's full-sized avatar

Daniel Larsen DanielLarsenNZ

View GitHub Profile
@aal89
aal89 / 100kb.txt
Last active March 17, 2025 06:25
100kb in text
90008179737137449057850374296041230231448818231836430412891860501369559957934170566478171795337452573291424987820066966816786
11421932734664050282853577818350442368737025841021682351565157149258626742693172908157392514275953021340373789403811298198112
98078491418506031705393320777252539769380080434092015114759613380134199900073766190656627700475488778765198284763526475740644
27316250203873295755542616481830176762741844790191881961666387319684382599128392790817587468185935956109594742996822851456430
69484825595272003071580933663162309410919484264168162456415987660087356646694839288039098048397766765190012006438103559476605
88069969501403804546943579852833051109937002040256969349389081744254318024154760523379227341047257631357870025582656575655762
80287299653975203684260833623532172260301953877104948974634491969795223647429108528213960088039791160860481243853022341993839
24991718535415280310113584497118196223057217585054424117851185779066465713336737557959912721815816999403404005977799509009387
9410563589763257
@jdhitsolutions
jdhitsolutions / Get-DockerContainer.ps1
Last active April 17, 2025 09:30
A PowerShell function to get docker containers as objects.
#requires -version 5.1
Function Get-DockerContainer {
[cmdletbinding(DefaultParameterSetName = "name")]
[alias("gdc")]
[OutputType("Get-DockerContainer.myDockerContainer")]
Param(
[Parameter(Position = 0, HelpMessage = "Enter a docker container name. The default is all running containers.", ParameterSetName = "name")]
[ValidateNotNullorEmpty()]
@pngan
pngan / service-fabric-provisioning.md
Last active April 17, 2025 09:30
This is step by step guide to provision an Azure Service Fabric using PowerShell.

Service Fabric Provisioning

This is step by step guide to provision an Azure Service Fabric using PowerShell.

Prerequisites

  • Windows 7 or later
  • Administrator privileges
@WalternativE
WalternativE / compute-sha-256-hash.ps1
Created March 28, 2017 07:18
Powershell script that returns SHA-256 hash for a given string
Param (
[Parameter(Mandatory=$true)]
[string]
$ClearString
)
$hasher = [System.Security.Cryptography.HashAlgorithm]::Create('sha256')
$hash = $hasher.ComputeHash([System.Text.Encoding]::UTF8.GetBytes($ClearString))
$hashString = [System.BitConverter]::ToString($hash)
@alirobe
alirobe / reclaimWindows10.ps1
Last active April 17, 2025 09:36
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
### OR take a look at
### https://github.com/HotCakeX/Harden-Windows-Security
@kiwipom
kiwipom / adding-numbers.hs
Last active December 24, 2015 09:18
Adding numbers without using operators in haskell
-- Based on the c implementation, as per: http://stackoverflow.com/a/365544
import Data.Bits
add' :: (Bits a) => a -> a -> a
add' a b
| a == 0 = b
| otherwise = add' ((a .&. b) `shiftL` 1) (a `xor` b)
@jbenet
jbenet / simple-git-branching-model.md
Last active April 17, 2025 09:30
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Reflection.Emit;
using System.Collections.Concurrent;
using System.Data;
using System.Reflection;