Skip to content

Instantly share code, notes, and snippets.

@baseboxorg
baseboxorg / # stock utilities on macOS.md
Created June 1, 2017 07:23 — forked from zmwangx/# stock utilities on macOS.md
Stock utilities on macOS (stock + Command Line Tools)
  • OS version is in system_profiler_SPSoftwareDataType.txt;

  • Utilities in /bin are listed in bin.txt;

  • Utilities in /sbin are listed in sbin.txt;

  • Utilities in /usr/bin are listed in usr_bin.txt;

  • Utilities in /usr/sbin are listed in usr_sbin.txt;

  • Utilities in /usr/libexec are listed in usr_libexec.txt;

  • Default paths are

/usr/local/bin

vim: ft= hls et ai sr sts=4 sw=4 fdm=marker nowrap
0-1 [Installation] Create USB Installer {{{
Download Mavericks 10.9.1 from App Store, you'll get "/Applications/Install OS X Mavericks.app/"
The file size of the tarball "Install OS X Mavericks.app.tar" is 5,312,274,432 bytes
Create USB Installer METHOD #1
$ cd /Applications/Install\ OS\ X\ Mavericks.app/
$ sudo ./Contents/Resources/createinstallmedia \
#!/bin/bash
brew tap | sed -e "s/^/brew tap '/g" | sed -e "s/$/'/g" > Brewfile
brew list | sed -e "s/^/brew install '/g" | sed -e "s/$/'/g" >> Brewfile
brew cask list | sed -e "s/^/brew cask install '/g" | sed -e "s/$/'/g" > Caskfile
touch info_brew
brew info pyenv | sed -e "s/$/'/g" >> info_brew
@baseboxorg
baseboxorg / Sierra.md
Created August 11, 2018 01:19 — forked from miku/Sierra.md
MacOS Sierra App Store Link
@baseboxorg
baseboxorg / setup.sh
Created August 10, 2018 10:19 — forked from bradp/setup.sh
New Mac Setup Script
echo "Creating an SSH key for you..."
ssh-keygen -t rsa
echo "Please add this public key to Github \n"
echo "https://github.com/account/ssh \n"
read -p "Press [Enter] key after this..."
echo "Installing xcode-stuff"
xcode-select --install
@baseboxorg
baseboxorg / docker.md
Created August 2, 2018 10:22 — forked from f3l1x/aliases
Docker - installation, tips, commands, aliases

Docker

Shortcuts

$ curl -fsSL https://raw.github.com/tcnksm/docker-alias/master/zshrc >> ~/.bashrc && source ~/.bashrc
# ------------------------------------
@baseboxorg
baseboxorg / osx_port_scan.sh
Created April 28, 2016 11:37 — forked from ryanmaclean/osx_port_scan.sh
Mac OSX: Port Scan Your Own Network with Netcat from Homebrew
#!/bin/bash
# Turn on job control to do more than one at a time
set -m
# Check to see if Homebrew is installed, and install it if it is not
command -v brew >/dev/null 2>&1 || { echo >&2 "You will need Homebrew to use this tool, installing now"; /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"; }
# Check to see if `netcat` is installed, install it if it is not
command -v netcat >/dev/null 2>&1 || { echo >&2 "You will also need netcat in order to use this tool, installing it now"; brew install netcat; }
@baseboxorg
baseboxorg / gist:148b6f21c60d885f772a740b74f69045
Created June 11, 2018 14:51 — forked from mlhales/gist:5785725
Install OpenCV with Nvidia CUDA, and Homebrew Python support on the Mac.

#OpenCV on the Mac with Nvidia CUDA and Python support using Homebrew

##Prerequisites

  • XCode
  • CUDA
  • Homebrew
    • CMake
    • GCC 4.5+
  • Python
@baseboxorg
baseboxorg / gist:8db797b6f57c6bda41810d9f640479c4
Created June 8, 2018 12:07 — forked from mestizo/gist:9167834
Completely disable IPv6 on OSX
#To Get List of Hardware
sudo networksetup -listallhardwareports
#To Disable IPv6 on Wifi Adapter
sudo networksetup -setv6off wi-fi
#To Disable IPv6 on Built-in Ethernet Adapter
sudo networksetup -setv6off Ethernet
@baseboxorg
baseboxorg / install-docker-ubuntu.md
Created May 2, 2018 21:59 — forked from subfuzion/install-docker-ubuntu.md
Installing Docker on Ubuntu

Installing with apt-get

#!/bin/sh
# https://docs.docker.com/engine/installation/linux/ubuntu/#install-using-the-repository
sudo apt-get update && sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88 | grep docker@docker.com || exit 1
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update