Skip to content

Instantly share code, notes, and snippets.

View doole's full-sized avatar

Dušan Živojnov doole

View GitHub Profile
@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
@doole
doole / _etc_resolv.conf
Last active January 23, 2024 10:52
Nameservers
# SBB
nameserver 89.216.1.30
nameserver 89.216.1.50
# Google
nameserver 8.8.8.8
nameserver 8.8.4.4
# OpenDNS
nameserver 208.67.222.222
@doole
doole / downloads_cleanup.sh
Created November 17, 2014 08:25
SELECT/DELETE sqlite3 database records for all downloads on Mac OS X
# Source
# http://www.macgasm.net/2013/01/18/good-morning-your-mac-keeps-a-log-of-all-your-downloads/
# http://lifehacker.com/your-mac-logs-everything-you-download-heres-how-to-cle-1658394180
# SELECT
sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'select LSQuarantineDataURLString from LSQuarantineEvent'
# DELETE
sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'delete from LSQuarantineEvent'
@doole
doole / bash_fix.sh
Last active August 29, 2015 14:06
Mac OS X fix for Bash bug
#
# Source
# http://apple.stackexchange.com/questions/146849/how-do-i-recompile-bash-to-avoid-the-remote-exploit-cve-2014-6271/146851#146851
#
# Test for vulnerablity
# $ env x='() { :;}; echo vulnerable' bash -c 'echo hello'
# If you want to disable auto-imported functions, uncomment the following
# export ADD_IMPORT_FUNCTIONS_PATCH=YES