Skip to content

Instantly share code, notes, and snippets.

View andres-torres-marroquin's full-sized avatar
🎯
Focusing

Andres Torres andres-torres-marroquin

🎯
Focusing
View GitHub Profile
@andres-torres-marroquin
andres-torres-marroquin / gist:8d6c6daad7e3ab170034168a4b71b21c
Created May 6, 2019 12:22
How to remove 'Boot OS X install from partition' from Clover bootloader

How to remove 'Boot OS X install from partition' from Clover bootloader

sudo rm -rf "/macOS Install Data" /.IAProductInfo

useBooleanState = (initialValue) ->
[value, setValue] = React.useState initialValue
setTrue = React.useCallback ->
setValue yes
, []
setFalse = React.useCallback ->
setValue no
@andres-torres-marroquin
andres-torres-marroquin / 1-High-Sierra-Hackintosh.md
Last active April 26, 2020 19:14
Hackintosh ROG Strix Z270I macOS High Sierra 10.13.6
useForceUpdate = -> useState()[1]
useDebouncedForceUpdate = _.debounce useForceUpdate, 100
useCollectionBinder = (collection) ->
forceUpdate = useForceUpdate()
useEffect ->
collection.on 'add remove sort reset', forceUpdate
{
Platform
} = require 'react-native'
getBottomTabsHeight = ->
if Platform.OS is 'android'
return 56
if Platform.OS is 'ios'
return if isIphoneX() then 84 else 50
# reference: https://github.com/github/gemoji/blob/master/db/emoji.json
module.exports = [
['😀', 0, 'grinning']
['😃', 0, 'smiley']
['😄', 0, 'smile']
['😁', 0, 'grin']
['😆', 0, 'laughing, satisfied']
['😅', 0, 'sweat_smile']
@andres-torres-marroquin
andres-torres-marroquin / 1-Hackintosh.md
Last active July 19, 2019 23:46
Hackintosh ROG Strix Z270I macOS Sierra 10.12.6
window.addSnapScroll = ($element) ->
width_of_two_columns = 550 # (Width of column 270 + padding of column 10) * 2 - 10
data = {}
$element.bind 'touchstart', (e) ->
if document.width > width_of_two_columns
return
page_x = e.originalEvent.touches[0].pageX
page_y = e.originalEvent.touches[0].pageY
$this = $ this

Setup Finder

defaults write com.apple.finder ShowPathbar -bool true
defaults write com.apple.finder ShowTabView -bool true 
defaults write com.apple.finder ShowStatusBar -bool true
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
killall Finder

Install zsh

curl -s https://raw.githubusercontent.com/xdissent/ievms/master/ievms.sh | env REUSE_XP="no" IEVMS_VERSIONS="8" bash