Skip to content

Instantly share code, notes, and snippets.

View z3ntu's full-sized avatar

Luca Weiss z3ntu

View GitHub Profile

VM to mounted image

  • Delete virtual machine.
  • Remove "DISK" association from old portal (retain vhd).
  • Remove "IMAGE", old portal (retain vhd).
  • Attach disk.
  • mkdir /mnt/arch
  • mount /dev/sdc2 /mnt/arch
  • arch-chroot /mnt/arch bash

Mounted image to VM

@z3ntu
z3ntu / README.md
Created April 9, 2016 20:58
Arch Linux on Microsoft Azure
azure-vhd-utils-for-go upload --localvhdpath ~/VirtualBox\ VMs/Arch\ Linux\ Azure/Arch\ Linux\ Azure.vhd --stgaccountname archlinux --stgaccountkey <KEY> --blobname archlinux

azure vm image create archlinuxtest --blob-url https://archlinux.blob.core.windows.net/vhds/archlinux.vhd --os linux

azure vm create archlinuxtest archlinuxtest --userName luca --location "West Europe"
@z3ntu
z3ntu / Countdown
Last active April 2, 2016 10:56
Human Resource Machine
-- HUMAN RESOURCE MACHINE PROGRAM --
a:
INBOX
JUMPZ g
COPYTO 0
JUMPN c
b:
OUTBOX
BUMPDN 0
@z3ntu
z3ntu / Dockerfile
Last active March 11, 2016 21:46
Building newer Android versions for the Fairphone 2
FROM ubuntu:15.10
# Prepare the Build Environment
RUN apt-get update \
&& apt-get install -y \
openjdk-8-jdk \
git-core \
gnupg \
flex \
bison \
@z3ntu
z3ntu / local_manifest.xml
Last active October 10, 2016 19:27
Ubuntu Touch Fairphone 2
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="fairphone" fetch="http://code.fairphone.com/gerrit/fp2-dev" />
<project path="device/fairphone_devices/FP2" name="device/fairphone_devices/fairphone" remote="fairphone" revision="fp2-sibon" />
<project path="kernel" name="kernel/msm" remote="fairphone" revision="fp2-sibon" />
<project path="device/qcom/common" name="device/qcom/common" remote="fairphone" revision="fp2-sibon" />
<project path="bootable/bootloader/lk" name="kernel/lk" remote="fairphone" revision="fp2-sibon" />
</manifest>
@z3ntu
z3ntu / pacman.mkarchroot.conf
Created February 23, 2016 19:31
pacman.conf for building Ubuntu Touch on Arch Linux (for use with mkarchroot)
[options]
HoldPkg = pacman glibc
Architecture = auto
CheckSpace
SigLevel = Never
LocalFileSigLevel = Optional
[core]
@z3ntu
z3ntu / .travis.yml
Created February 23, 2016 13:05
Travis configuration file for MiNET (https://github.com/NiclasOlofsson/MiNET)
language: csharp
solution: src/MiNET/MiNET.sln
mono:
- latest
- weekly
- beta
- alpha
script: xbuild /p:TargetFrameworkVersion="v4.5" src/MiNET/MiNET.sln
@z3ntu
z3ntu / pkgbuild_reader.sh
Created February 21, 2016 18:46
pyPKGBUILD from the Arch Linux forum
#!/bin/sh
if [ -f $1 ]; then
. $1
VARIABLE="pkgname pkgver pkgrel pkgdesc license url md5sums install source arch group provides makedepends conflicts replaces backup depends"
for VAR in $VARIABLE
do
eval "echo \"$VAR=\${$VAR[@]}\""
done
fi
@z3ntu
z3ntu / import_sql_file.md
Created February 11, 2016 09:25
Instructions to import an SQL file into your mysql installation.

Instructions

how to import a .sql file into your mysql database

  • Change directory to the directory of your .sql file cd <directory-of-sql-script>
  • Enter the mysql console C:\xampp\mysql\bin\mysql.exe -u root
  • Create the database create database schuldb;
  • Use the created database use schuldb;
@z3ntu
z3ntu / PKGBUILD
Last active February 11, 2016 09:27
Updated PKGBUILD for PacketTracer 6.3
# Maintainer: Runnytu < runnytu at gmail dot com >
# OldMaintainer: Alexey Kharlamov <[email protected]>
# Contributor: David Dufberg Tøttrup <david at dufberg dot se>
# Contributor: Jordi De Groof <jordi(dot)degroof(at)gmail(dot)com>
# Contributor: pyther <[email protected]>
# Contributor: Luca Weiss <[email protected]>
pkgname=packettracer
pkgver=6.3
pkgrel=1