Skip to content

Instantly share code, notes, and snippets.

View john-patrik's full-sized avatar

John-Patrik Nilsson john-patrik

View GitHub Profile
@john-patrik
john-patrik / clonezilla-usb.md
Last active December 15, 2015 10:18
Clonezilla Live/Clone/Rescue USB

Clonezilla Live USB

  • Download, burn, and boot up the Clonezilla Live USB
  • Create the filesystem image, it will be stored wherever you specify
  • Reboot, again from the Clonezilla Live USB you downloaded
  • This time, select to create the live CD (not USB, because you want an iso file)
  • After Clonezilla is done, burn the resulting iso image to your spare USB drive

Burn the iso image to your spare USB drive:

@john-patrik
john-patrik / Post-install.md
Last active December 15, 2015 09:18
OSX VirtualBox - Lubuntu

Shared folders

  • boot
  • VirtualBox -> Settings -> Guest Additions
  • sudo apt-get install dkms
  • sudo ./VBoxLinuxAdditions.run
  • unmount VBox CD
  • reboot
  • profit
@john-patrik
john-patrik / sublime_editor.md
Last active December 15, 2015 07:09
Sublime Text 2

SublimeText 2

Cheat sheet

  • Select inside Tag: Super + Shift + A
  • Select Indentation: Super + Shift + J
  • Select inside Scope: Super + Shift + Space
  • Tag Complete: Super + Alt + .
  • Select To BOL: Shift + Alt + A
  • Select To EOL: Shift + Alt + L
@john-patrik
john-patrik / django-rest-framework.md
Last active December 14, 2015 20:09
Django rest-framework

App config for the django-rest-framework

settings.py

STATIC_ROOT = os.path.join(ROOTDIR,'static')
STATIC_URL = '/static/'

INSTALLED_APPS = (
  ...
 'django.contrib.staticfiles',
@john-patrik
john-patrik / Gemfile
Created April 8, 2012 14:35
Rails Core
source 'https://rubygems.org'
ruby '1.9.3'
gem 'rails', '3.2.11'
gem 'thin'
gem 'jquery-rails'
gem 'active_link_to'
group :assets do