Skip to content

Instantly share code, notes, and snippets.

View doole's full-sized avatar

Dušan Živojnov doole

View GitHub Profile
@doole
doole / install_python3.sh
Last active April 11, 2024 15:41
Python 3.3 installation script for Debian Wheezy
PY_VER="3.3.3"
# Update
apt-get update && apt-get dist-upgrade -y
# Install required packages
apt-get install -y build-essential libsqlite3-dev sqlite3 bzip2 libbz2-dev zlib1g-dev libssl-dev libgdbm-dev libreadline-dev libc6-dev
# Get, compile and install python3
cd /usr/local/src
@doole
doole / install_ruby.sh
Created January 27, 2014 16:22
Ruby 2.0.0-p353 build script for Debian Wheezy
RUBY="ruby-2.0.0-p353"
GEMS="rubygems-2.1.11"
# Update system
apt-get update && sudo apt-get upgrade
# Install build requirements
apt-get install -y build-essential autoconf
# These deps will support common libraries like yaml and give you the best irb experience.
@doole
doole / commands_postgres.sql
Last active January 4, 2016 17:08
Simple user/database setup for PostgreSQL
--
-- Reset auto increment
--
ALTER SEQUENCE {table}_{column}_seq RESTART WITH 1;
--
TRUNCATE TABLE table RESTART IDENTITY;
@doole
doole / install_psql_php.sh
Last active September 21, 2023 19:12
Install PostgreSQL PHP extensions on Mac OS X
#!/bin/bash
# Install Xcode Command Line Tools first (required)
xcode-select --install
# Check PHP version `php --version`
PHP_VER=$(php -v | head -1 | awk '{ print $2 }')
# Extensions directory (default: empty string)
EXT_DIR=""
@doole
doole / AA_Sublime_Text_3.settings
Last active December 31, 2015 22:29
Current Sublime Text 3 preferences
{}
@doole
doole / ntfs_write.sh
Last active February 6, 2021 00:49
Setup NTFS write on Mac OS X Mavericks/Yosemite
## Yosemite
# Update & upgrade brew
brew update
brew upgrade
# Install osxfuse with brew Cask
brew install caskroom/cask/brew-cask
brew cask install osxfuse