Skip to content

Instantly share code, notes, and snippets.

💭
Hackintoshing

Vincent Taverna vinnymac

💭
Hackintoshing
Block or report user

Report or block vinnymac

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@vinnymac
vinnymac / sniff-linux.sh
Last active Feb 12, 2019
Sniff machine names from a local or remotely connected network without additional installs
View sniff-linux.sh
#!/bin/bash
for a in $(arp -n | tail -n+2 | cut -d' ' -f1);
do
nmblookup -A $a;
done
@vinnymac
vinnymac / README.md
Last active Jun 12, 2019
Guide to Hackintosh (specifically for Z390i/9900K/Vega64 build)
View README.md
@vinnymac
vinnymac / config.plist
Created Feb 5, 2019
10.14 Hackintosh Z390i, i9-9900K, and Vega 64 Configuration File
View config.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Boot</key>
<dict>
<key>Arguments</key>
<string>keepsyms=1 dart=0 -wegbeta -lilubetaall -vsmcbeta -alcbeta</string>
<key>DefaultVolume</key>
<string>LastBootedVolume</string>
@vinnymac
vinnymac / useEventListener.js
Created Oct 29, 2018
Use an event listener on a specific element with React Hooks
View useEventListener.js
import { useEffect, useRef } from "react";
export default function useEventListener(event, callback) {
const element = useRef(null);
useEffect(() => {
element.current.addEventListener(event, callback);
return () => element.current.removeEventListener(event, callback);
}, []);
View hot-reloading-typography.js
import ReactDOM from 'react-dom/server'
import React from 'react'
import Typography from '../../src/'
import GoogleFont from '../../src/components/GoogleFont'
import theme from '../../src/themes/us-web-design-standard'
const typography = new Typography(theme)
// Hot reload typography in development.
@vinnymac
vinnymac / names.json
Created Mar 16, 2017
All the pokemon names
View names.json
{
"names": [
"bulbasaur",
"ivysaur",
"venusaur",
"venusaur",
"charmander",
"charmeleon",
"charizard",
"charizard",
@vinnymac
vinnymac / fetchNames.js
Last active Mar 16, 2017
Pokemon Names
View fetchNames.js
#!/usr/bin/env node
const http = require('http')
const fs = require('fs')
const url = 'http://pokeapi.co/api/v2/pokemon-species/'
let results = []
const receivedAllResults = () => {
const filename = './names.json'
@vinnymac
vinnymac / reclaimWindows10.ps1
Created Jan 8, 2017 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)
View reclaimWindows10.ps1
##########
# Win10 Initial Setup Script
# Author: Disassembler <disassembler@dasm.cz>
# Version: 1.7, 2016-08-15
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# THIS IS A PERSONALIZED VERSION
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1
View mount_ntfs.sh
#!/bin/bash
# enable writing to NTFS drives
function mount {
diskutil list
echo “please enter the ntfs disk to be mounted:”
read inp
#### http://mywiki.wooledge.org/BashFAQ/031#np2
if [[ $inp =~ ^.*(disk0).*$ || $inp =~ ^.*(disk1).*$ ]]; then
echo dangerous input!
View benchmark-atob.md

Benchmark results

Chrome Native atob

Large String - 3,665 ops/sec

Small String - 1,162,858 ops/sec

window.atob(base64EncodedString)

You can’t perform that action at this time.