Skip to content

Instantly share code, notes, and snippets.

Creating a USB Linux Boot Drive on OSX

This was tested with Ubuntu and lxle.

  • Download your DVD iso
  • Verify your usb drive is empty and make sure the iso will fit
  • Transfer the iso using dd (see below)

Using dd and diskutil

  • Open Terminal and find out where your usb drive is with diskutil list
  • Unmount your drive using sudo diskutil unmountDisk /dev/disk1 or whatever the path is to your drive
@alexlekrow
alexlekrow / GitCommitEmoji.md
Created April 1, 2018 23:26 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
import QtQuick 2.0
Item {
id: root
property alias text: label.text
height: 25
width: 100
Rectangle {
id: header
import QtQuick 2.6
import QtQuick.Window 2.2
import org.krow 1.0
Window {
visible: true
width: 640
height: 480
title: qsTr("Hello World")
import QtQuick 2.0
Item {
id: delegateRoot
property alias numberLabel: numberLabel.text
property alias sideLabel: sideLabel.text
property alias tStatusLabel: tStatusLabel.text
property alias dStatusLabel: dStatusLabel.text
property alias numberColumnWidth: numberColumn.width
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include "inventorymodel.h"
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
// Register Types
@alexlekrow
alexlekrow / pyscript.py
Created April 14, 2017 18:53 — forked from nhoffman/pyscript.py
Python script template
#!/usr/bin/env python
"""A simple python script template.
"""
from __future__ import print_function
import os
import sys
import argparse
#include "composite_functor.h"
#include <string>
#include <cassert>
//==============================================================================
int square_int( int a ) {
return ( a * a );
}