Skip to content

Instantly share code, notes, and snippets.

View dually8's full-sized avatar

CJ Coffey dually8

View GitHub Profile
@dually8
dually8 / handling-merge-conflicts.md
Created August 22, 2022 15:01
Handling Merge Conflicts

Pre-commit/push script for projects that use Node

npm run build && npm run test && npm run e2e

Set your default formatter in VSCode

press shift+ctrl+p or shift+cmd+p to bring up the command palette in VSCode, then search for "Format Document With" format-document-with use-typescript-language-features

@dually8
dually8 / how-to-merge-partial-files.md
Last active December 7, 2024 21:06
How To Merge Partial Files

How to merge partial files

Taken from the nintendo switch dumping guide wiki (or other new guide)

Windows

  1. Open cmd.exe, use cd to change to the directory of the files you want to merge.
    • PROTIP: Leaving only the part files here will make this process easier.
  2. Type copy /b * name.ext where name is the name you want to give the file and .ext is the file extension you want to use
  • e.g. copy /b * game.xci
@dually8
dually8 / ConvertN64SaveDumps.md
Created November 23, 2021 04:10
Converting N64 Save Dumps

Converting N64 Save Dumps

How to convert N64 saves dumped from a Retrode2 with N64 plugin.

Software

  • pj64tosrm
    • Usage: pj64tosrm_64bit.exe /path/to/file
  • saveswap
  • Usage: python saveswap.py /path/to/file
@dually8
dually8 / scan-slickdeals.py
Created October 20, 2021 17:14
Get slickdeals links
# python -m pip install beautifulsoup4
# python -m pip install lxml
# python -m pip install requests
import bs4
import requests
def lookUpDeals():
slickDealsSite = requests.get('https://slickdeals.net/computer-deals/')
@dually8
dually8 / flac-to-aac.sh
Created July 13, 2021 02:14
ffmpeg convert flac to aac
# Assuming using fish shell
find ./ -iname '*.flac' | xargs -I '{}' basename '{}' '.flac' | xargs -I '{}' ffmpeg -i '{}'.flac -c:a aac -b:a 320k '{}'.m4a
@dually8
dually8 / Install-RSATv1809v1903v1909.ps1
Created July 21, 2020 19:48
Install RSAT tools on Windows 10
<#
From https://gallery.technet.microsoft.com/Install-RSAT-for-Windows-75f5f92f
Usage: .\Install-RSATv1809v1903v1909.ps1 [-OPTION]
.\Install-RSATv1809v1903v1909.ps1 -All (-All is installing ALL the features within the RSAT bundle)
.\Install-RSATv1809v1903v1909.ps1 -Basic (-Basic is only installing AD DS, DHCP, DNS, Group Policy Management and Server Manager)
.\Install-RSATv1809v1903v1909.ps1 -ServerManager (-ServerManager is only installing the Server Manager)
.\Install-RSATv1809v1903v1909.ps1 -Uninstall (-Uninstall removes all RSAT features again)
@dually8
dually8 / vimrc
Created March 20, 2020 14:36
My vimrc
set shell=/bin/bash
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
@dually8
dually8 / fuzzysearch.js
Created March 20, 2019 18:15
Fuzzy Search JS
function myFuzzySearch(needle, haystack) {
if (!needle || typeof needle !== 'string'
|| !haystack || typeof haystack !== 'string') {
return false;
}
var innerRegex = needle
.trim()
.split('')
.filter(x => /\S/i.exec(x))
.map(x => {
@dually8
dually8 / # imagemagick - 2019-01-22_12-54-44.txt
Created January 22, 2019 18:00
imagemagick on macOS 10.14.2 - Homebrew build logs
Homebrew build logs for imagemagick on macOS 10.14.2
Build date: 2019-01-22 12:54:44
@dually8
dually8 / devme.sh
Last active February 14, 2021 18:36
Dev My Mac pls
#!/bin/sh
# Updated 2020-03-20
# Fork of this https://github.com/adamisntdead/DevMyMac
# Color Variables
RED='\033[0;31m'
GREEN='\033[0;32m'
NC='\033[0m' # No Color
# Ask for the administrator password upfront.