Skip to content

Instantly share code, notes, and snippets.

View hl2guide's full-sized avatar
👋
away from office

Dean hl2guide

👋
away from office
  • Australia
View GitHub Profile
@hl2guide
hl2guide / download_and_install_madvr.ps1
Last active June 13, 2016 07:26
This script automates the installation and updating of MadVR (http://madvr.com). Script Version: 1.0e, Date Last Updated: 13th of June, 2016
# This script automates the installation and updating of MadVR (http://madvr.com).
# All checks and downloads are done with the official website.
# Version: 1.0e
# Date Last Updated: 13th of June, 2016
# Author: Deanoman
# Requirements: Windows 7 or later, NET Framework 4.5 or later, available internet connection
# Variables
# A) Set this to the folder MADVR is installed in (the only thing you need to set)
# This folder must exist, have enough space on the drive
@heiswayi
heiswayi / repo-reset.md
Created February 5, 2017 01:32
GitHub - Delete commits history with git commands

First Method

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH

# Add all the files:
git add -A
@MarkTiedemann
MarkTiedemann / download-latest-release.ps1
Last active March 4, 2024 18:39
Download latest GitHub release via Powershell
# Download latest dotnet/codeformatter release from github
$repo = "dotnet/codeformatter"
$file = "CodeFormatter.zip"
$releases = "https://api.github.com/repos/$repo/releases"
Write-Host Determining latest release
$tag = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].tag_name
@yanek
yanek / Add prefix to FULL - Name.pas
Created May 8, 2017 10:13
FO4Edit script to prepend any string to the FULL - Name field of every selected records (useful for sorting mods patching)
{
This script will prepend supplied value to the Full Name field
of every selected record.
}
unit UserScript;
var
s: string;
function Initialize: integer;
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active June 13, 2024 06:34
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@bittner
bittner / keyboard-keys.md
Created February 28, 2019 22:50
Keyboard keys markup in MarkDown

Ctrl + Alt + Space

@yunga
yunga / Chocolatey.md
Created April 4, 2019 22:10
Chocolatey Cheat Sheet

Chocolatey

Homepage: Chocolatey.org

Chocolatey is a machine-level package manager and installer for software packages, built for the Windows NT platform.

It is an execution engine using the NuGet packaging infrastructure and Windows PowerShell to provide an automation tool for installing software on Windows machines, designed to simplify the process from the user perspective.

The name is an extension on a pun of NuGet (from "nougat") "because everyone loves Chocolatey nougat".

@qzm
qzm / aria2.conf
Last active June 6, 2024 19:23
Best aria2 Config
### Basic ###
# The directory to store the downloaded file.
dir=${HOME}/Downloads
# Downloads the URIs listed in FILE.
input-file=${HOME}/.aria2/aria2.session
# Save error/unfinished downloads to FILE on exit.
save-session=${HOME}/.aria2/aria2.session
# Save error/unfinished downloads to a file specified by --save-session option every SEC seconds. If 0 is given, file will be saved only when aria2 exits. Default: 0
save-session-interval=60
# Set the maximum number of parallel downloads for every queue item. See also the --split option. Default: 5
@hl2guide
hl2guide / upgrade_ffmpeg_windows.ps1
Created August 15, 2020 06:54
A PowerShell script that downloads and upgrades ffmpeg Nightly for Windows
# Downloads and upgrades ffmpeg Nightly for Windows
# Saves time by changing a manual process to auto
# Start Edits
$destinationFolderTemp = "C:\Temp"
$finalDestinationFolder = "D:\Portable Software\Command Line Apps"
# End Edits
$uri = "https://ffmpeg.zeranoe.com/builds/win64/static/ffmpeg-latest-win64-static.zip"
$destinationFileTemp = "$destinationFolderTemp\ffmpeg-latest-win64-static.zip"