This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# You really would want to configure those variables | |
HAVEYOUCONFIGUREDTHESCRIPT="NO" | |
USERNAME=rakor | |
HDD=/dev/vda | |
MYHOSTNAME=archlinux | |
SWAPGB=1 | |
EFIGB=1 | |
ROOT=root |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
type item struct { | |
name string | |
gewicht int | |
wert int | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
DEVICE=mmcblk0 | |
PARTITIONNUMBER=2 | |
ROOTPART="$DEVICE"p"$PARTITIONNUMBER" | |
DEVMAXSIZE=$(cat "/sys/block/$DEVICE/size") | |
ROOTEND=$((DEVMAXSIZE -1)) | |
parted -m "/dev/$DEVICE" u s resizepart $PARTITIONNUMBER yes "$ROOTEND" |