Skip to content

Instantly share code, notes, and snippets.

@krzysdb
krzysdb / pom.xml
Created December 20, 2015 21:37 — forked from cxxr/pom.xml
Example Root POM
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>root-pom</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Root POM</name>
<url>http://git.example.com/rootpom.git</url>
@krzysdb
krzysdb / DO.NOT.USE.elcapitan.bootable.iso.sh
Last active December 8, 2015 11:17
Create Bootable ISO from El Capitan App.(PROBLEMS: Dvd is created but installer not work properly)
#!/usr/bin/env bash
# Original: http://www.insanelymac.com/forum/topic/308533-how-to-create-a-bootable-el-capitan-iso-fo-vmware/
echo "Mount the installer image"
sudo hdiutil attach /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
echo "Create the ElCapitan Blank ISO Image of 7316mb with a Single Partition - Apple Partition Map"
hdiutil create -o /tmp/ElCapitan.cdr -size 7316m -layout SPUD -fs HFS+J
import sqlite3
# open connection and get a cursor
conn = sqlite3.connect(':memory:')
c = conn.cursor()
# create schema for a new table
c.execute('CREATE TABLE IF NOT EXISTS sometable (name, age INTEGER)')
conn.commit()