Skip to content

Instantly share code, notes, and snippets.

View dually8's full-sized avatar

CJ Coffey dually8

View GitHub Profile
@dually8
dually8 / Angular Get Focus On Show.markdown
Created August 6, 2015 20:50
Angular Get Focus On Show
@dually8
dually8 / SomeMapView.js
Created February 14, 2017 13:48
Example MapView.Callout that works like the native one.
import React, { Component } from 'react';
import {
Dimensions,
Modal,
Platform,
StyleSheet,
Text,
TouchableHighlight,
View,
} from 'react-native';
@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.
@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 / 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 / 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 / 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 / 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 / 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 / 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