Skip to content

Instantly share code, notes, and snippets.

@stefancocora
stefancocora / nvidia-337.12-install_command.sh
Last active November 28, 2021 22:50
Nvidia 337.12 kernel install on kernel 3.14 on macbook pro retina 15 late 2013 ( also known as 11,3 )
IGNORE_CC_MISMATCH=1 bash NVIDIA-Linux-x86_64-337.12.run -a
System specs:
- macbook pro 15 inch retina 11,3
- ubuntu 14.04 beta x64
@jhaubrich
jhaubrich / arch_macbook.md
Last active November 28, 2021 22:53
(historic) Arch Linux on a MacBookPro 11,3 on 2015-03-05 with kernel 3.18.6-1-ARCH

Arch Linux on a MacBookPro 11,3

Read The Arch Way, fall in love you lose.

TODO

I can't believe how smoothly this went...

  • suspend - seems to work after installing gnome, pm-suspend works too... I have my eye on you. <.<
    • systemctl suspend works, but doesn't wake properly.
  • power management
@andromedarabbit
andromedarabbit / create-bootable-mavericks.sh
Created February 6, 2016 14:58
Create bootable Mavericks ISO
#!/usr/bin/env bash -x
hdiutil attach /Applications/Install\ OS\ X\ Mavericks.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
exitStatus=$?
if [ $exitStatus -ne 0 ]; then
exit $exitStatus
fi
# Convert the boot image to a sparse bundle
hdiutil convert /Volumes/install_app/BaseSystem.dmg -format UDSP -o /tmp/Mavericks
@maojj
maojj / BuildDmg.sh
Last active February 19, 2022 23:03
#!/bin/sh
# BuildDmg.sh
# Build OS X .dmg install file
# Author maojiajun
set -eu
###################################################################################
# config, change for you app.
@dakanji
dakanji / myOC.tool
Last active July 8, 2022 14:20
Builds/Patches OpenCore (v0.5.x onwards)
#!/usr/bin/env bash
# myOC.tool
# A tool to patch and/or build OpenCore (v0.5.x onwards)
#
# (c) 2020-2022 Dayo Akanji <dakanji@users.sourcefoge.net>
# MIT License
# Script Params
# myOC.tool LBL_FIX GIT_TAG VARIANT RECURSE DEV_FLG NPT_VER
@sohooo
sohooo / settings
Created July 29, 2012 14:30
OSX defaults setttings
# ~/.osx — http://mths.be/osx
###############################################################################
# General UI/UX #
###############################################################################
# Set computer name (as done via System Preferences → Sharing)
scutil --set ComputerName "MathBook Pro"
scutil --set HostName "MathBook Pro"
scutil --set LocalHostName "MathBook-Pro"
@rtrouton
rtrouton / gist:6552a3010931f7a5b5ae
Created May 11, 2015 12:57
Script to install the latest available version of Adobe Flash for OS X. Includes check of the Developer ID Installer certificate to verify it was signed by Adobe.
#!/bin/bash
# This script downloads and installs the latest Flash player for compatible Macs
# Determine OS version
osvers=$(sw_vers -productVersion | awk -F. '{print $2}')
# Determine current major version of Adobe Flash for use
# with the fileURL variable
@pudquick
pudquick / Example.scpt
Created March 3, 2018 20:43
Make DMGs from folders
property destination_for_dmgs : "/Users/mike/Desktop"
on open the_items
repeat with an_item in the_items
set the_info to info for an_item
if kind of the_info is "Folder" then
set dmg_path to quoted form of (destination_for_dmgs & "/" & (name of the_info) & ".dmg")
set src_path to quoted form of POSIX path of an_item
set vol_name to quoted form of (name of the_info)
set command_str to "hdiutil create " & dmg_path & " -volname " & vol_name & " -srcfolder " & src_path
@al3xtjames
al3xtjames / pci_option_rom.tcl
Last active April 2, 2023 13:14
Hex Fiend binary template for PCI option ROMs
# PCI option ROM binary template
little_endian
set image_num 0
set image_offset 0
set has_next_image 1
while {$has_next_image == 1} {
section "ROM Header $image_num" {
@julianxhokaxhiu
julianxhokaxhiu / create-iso.sh
Last active June 18, 2023 08:11
Simple bash script to create a Bootable ISO from macOS Monterey Install Image from Mac App Store
#!/usr/bin/env bash
#===========================================================================
# Works only with the official image available in the Mac App Store.
# Make sure you download the official installer before running this script.
#===========================================================================
# Change this at your desire. Sometimes this works out of the box, sometimes not.
# Default size: ~16 GB
DISK_SIZE="15361m"