Skip to content

Instantly share code, notes, and snippets.

View doole's full-sized avatar

Dušan Živojnov doole

View GitHub Profile
@doole
doole / macos_usb.md
Created April 21, 2017 08:04
How to make bootable macOS USB install drive

How to make bootable macOS USB install drive

MacOS 10.12 (Sierra)

sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/USBDrive --applicationpath /Applications/Install\ macOS\ Sierra.app --nointeraction

Tools

Set NFS server on macOS

Set paths fot NFS

$ sudo vi /etc/exports

Add directories/drives

/Volumes/folder1 -maproot=nobodynfs	auto,user,nofail,noatime,nolock,intr,tcp,actimeo=1800	0	0
@doole
doole / install_php_mcrypt.sh
Created October 27, 2016 08:17
Install mcrypt PHP extension on macOS
#!/bin/bash
# Install Xcode Command-Line Tools first (required)
xcode-select --install
# Check PHP version
PHP_VER=$(php -v | head -1 | awk '{ print $2 }')
# Extensions directory (default: empty string)
EXT_DIR=""
@doole
doole / build-mpv.sh
Created March 12, 2016 19:40
Build the latest `mpv` with brew
# taken from http://coalgirls.wakku.to/faq/playback/compiling-mpv-on-mac-os-x
# install homebrew
# setup
sudo easy_install docutils
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
# install python3
@doole
doole / php.ini.diff
Last active October 27, 2016 07:39
Diff for macOS (10.10, 10.11, 10.12) /private/etc/php.ini
--- php.ini.default 2016-09-07 01:39:57.000000000 +0200
+++ php.ini 2016-10-27 09:37:27.000000000 +0200
@@ -446,7 +446,7 @@
; Development Value: E_ALL
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
; http://php.net/error-reporting
-error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
+error_reporting = E_ALL
; This directive controls whether or not and where PHP will output errors,
@doole
doole / README.md
Last active July 14, 2016 03:59
Flask deployment on Debian Jessie
@doole
doole / freebsd_setup.sh
Created September 29, 2015 10:16
FreeBSD-10.2-RELEASE server setup (nginx, MariaDB, MongoDB, PostgreSQL, PHP)
#!/bin/sh
# ===============================================
# FreeBSD-10.2 server setup
# ===============================================
# Update
freebsd-update fetch
freebsd-update install
@doole
doole / hg_prompt.md
Created June 24, 2015 09:47
Hg prompt in ZSH

Hg prompt in ZSH

Install mercurial with homebrew.

brew install mercurial

Get hg-prompt from Bitbucket.

hg clone http://bitbucket.org/sjl/hg-prompt/ ~/src

@doole
doole / pyenv_commands.md
Last active November 20, 2021 15:27
Python 3 setup on Mac OS X Yosemite, El Capitan
[beets]
directory: /Volumes/Music/
library: ~/Music/MusicLibrary.blb
path_format: $artist/$year $album/$track $title
import_copy: yes
import_write: yes
import_delete: no
import_resume: ask
import_art: yes
import_quiet_fallback: skip