Skip to content

Instantly share code, notes, and snippets.

@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"
@jordanmerrick
jordanmerrick / firmwhere.sh
Created August 24, 2012 08:41
Firmwhere: A Shell Script to List and Download All Current and Previous iOS and iPod Software Updates From Apple
#!/bin/sh
## The first part filters the XML file on Apple's Update Server that iTunes checks with when looking for iOS and iPod software updates, filtering and displaying only the URLs and saving them to a text file in /var/tmp/firmwhere.txt
curl http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStore.woa/wa/com.apple.jingle.appserver.client.MZITunesClientCheck/version | grep ipsw | grep -v protected | grep -v Recovery | sort -u | sed 's/<string>//g' | awk '{$1=$1}1' | sed 's/<\/string>//g' > /var/tmp/firmwhere.txt
## If necessary, you can download *all* available software updates by uncommenting the command below. Make sure to change directory to the one you want to download to first or edit the command appropriately. It will just loop through the text file and using cURL, will download all iOS and iPod software updates.
##If you have wget installed, uncomment the second line instead to use wget and it will skip any updates downloaded. Again, change directory to the one you want to download to or ed
@pudquick
pudquick / mas_updates.py
Last active January 25, 2024 15:47
Mac App Store updates
# App Store playing
import urllib, urllib2, json, plistlib
###
# Utility function for performing an iTunes-style search
def perform_itunes_search(api_url, query_list=[]):
query_str = urllib.urlencode(query_list)
response_handle = urllib2.urlopen('https://itunes.apple.com/%s?%s' % (api_url, query_str))
@ccbrown
ccbrown / DumpHex.c
Last active February 12, 2025 00:25
Compact C Hex Dump Function w/ASCII
#include <stdio.h>
void DumpHex(const void* data, size_t size) {
char ascii[17];
size_t i, j;
ascii[16] = '\0';
for (i = 0; i < size; ++i) {
printf("%02X ", ((unsigned char*)data)[i]);
if (((unsigned char*)data)[i] >= ' ' && ((unsigned char*)data)[i] <= '~') {
ascii[i % 16] = ((unsigned char*)data)[i];
@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
@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.
@iharosi
iharosi / useful-osx-commands.md
Last active September 21, 2023 07:25
Useful OS X commands

###Useful OS X commands

  1. App Store Debug menu

    Show

    defaults write com.apple.appstore ShowDebugMenu -bool true
    

    Hide

@josephabrahams
josephabrahams / mavericks-iso.sh
Created September 13, 2014 22:20
Create a bootable ISO from the OS X Mavericks app
#!/bin/sh
# Create a bootable ISO from the OS X Mavericks app
# http://thezinx.com/misc/trend/create-bootable-dmg-iso-mavericks-app/
if [ ! -f /Applications/Install\ OS\ X\ Mavericks.app/Contents/SharedSupport/InstallESD.dmg ]; then
echo "Download the OS X Mavericks App and then rerun this script."
open "https://itunes.apple.com/us/app/os-x-mavericks/id675248567"
exit 1
fi
@0xbb
0xbb / README.md
Last active December 17, 2022 02:13
Macbook Pro 11,3 - Linux - AppleMuxControl reverse engineering
@robvanoostenrijk
robvanoostenrijk / Instructions.md
Last active October 29, 2024 16:44
Install Mac OS X 10.6 SDK on newer Xcode