Skip to content

Instantly share code, notes, and snippets.

View drola's full-sized avatar

Matjaž Drolc drola

View GitHub Profile
#!/bin/bash
#Repositiories
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo add-apt-repository ppa:webupd8team/java
sudo add-apt-repository ppa:chris-lea/node.js
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
wget -O - http://deb.opera.com/archive.key | sudo apt-key add -
sudo sh -c 'echo "deb http://deb.opera.com/opera/ stable non-free" >> /etc/apt/sources.list.d/opera.list'
@drola
drola / .zshrc
Created August 25, 2013 21:44
.zshrc
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
# Example aliases
@drola
drola / install.sh
Created March 30, 2013 20:22
GNOME build deps
sudo apt-get install libnl-3-dev libnl-route-3-dev libnl-genl-3-dev
@drola
drola / bootstrap.sh
Last active December 15, 2015 13:49
Ubuntu GNOME dev bootstrap
#!/bin/bash
#Repositiories
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo add-apt-repository ppa:webupd8team/java
sudo add-apt-repository ppa:chris-lea/node.js
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
wget -O - http://deb.opera.com/archive.key | sudo apt-key add -
sudo sh -c 'echo "deb http://deb.opera.com/opera/ stable non-free" >> /etc/apt/sources.list.d/opera.list'
@drola
drola / amazon_s3_backup.sh
Created March 24, 2013 22:16
Simple script to backup your files and MySql database to Amazon S3
#!/bin/bash
############# More information #############
# http://drola.si/backing-up-to-amazon-s3/ #
############################################
EC2_ACCESS_KEY=YOUR_ACCESS_KEY
EC2_SECRET_KEY=YOUR_SECRET_ACCESS_KEY
BUCKET_NAME="NAME_OF_THE_BUCKET"
MYSQL_PASSWORD="MYSQL_ROOT_PASSWORD"
@drola
drola / kubuntu_dev_bootstrap.sh
Last active December 15, 2015 08:39
(K)Ubuntu setup The script installs the LAMP stack, Composer, Oracle Java 7 JDK, Qt development tools, Zsh (and sets it as the default shell), Google Chrome, Opera, Clementine, XChat, Filezilla, Sublime Text 2 and Virtualbox.
#!/bin/bash
#Repositiories
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo add-apt-repository ppa:webupd8team/java
sudo add-apt-repository ppa:chris-lea/node.js
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
wget -O - http://deb.opera.com/archive.key | sudo apt-key add -
sudo sh -c 'echo "deb http://deb.opera.com/opera/ stable non-free" >> /etc/apt/sources.list.d/opera.list'
@drola
drola / MenuBuilder.php
Last active December 14, 2015 22:48 — forked from nielsmouthaan/MenuBuilder.php
KnpMenuBundle - integration with Twitter Bootstrap
<?php
namespace Acme\HelloBundle\Menu;
use Knp\Menu\FactoryInterface;
use Symfony\Component\DependencyInjection\ContainerAware;
class MenuBuilder extends ContainerAware
{
public function mainMenu(FactoryInterface $factory, array $options)