Skip to content

Instantly share code, notes, and snippets.

@Duncaen
Duncaen / $ time sudo xbps-install -Syu;
Created January 25, 2015 15:54
$ time sudo xbps-install -Syu;
$ time sudo xbps-install -Syu
Updating MIME database...
[*] Updating `http://repo.voidlinux.eu/current/x86_64-repodata' ...
x86_64-repodata: [705KB 0%] 11MB/s ETA: 00m00s
x86_64-repodata: 705KB [avg rate: 2013MB/s]
[*] Updating `http://repo.voidlinux.eu/current/multilib/nonfree/x86_64-repodata' ...
[*] Updating `http://repo.voidlinux.eu/current/multilib/x86_64-repodata' ...
x86_64-repodata: [268KB 1%] 10MB/s ETA: 00m00s
x86_64-repodata: 268KB [avg rate: 702MB/s]
[*] Updating `http://repo.voidlinux.eu/current/nonfree/x86_64-repodata' ...
#!/bin/sh
TARGETDIR=/mnt/target
TARGET_FSTAB=$(mktemp -t vinstall-fstab-XXXXXXXX || exit 1)
KEYMAP=de-latin1
LOCALE=de_DE.UTF-8
TIMEZONE=Europe/Berlin
HOSTNAME=void
ROOTPASSWORD=voidlinux
@Duncaen
Duncaen / stdin
Created February 8, 2015 15:01
stdin
--- dhcpcd-run-hooks.orig 2015-02-08 15:40:49.000000000 +0100
+++ dhcpcd-run-hooks 2015-02-08 15:59:24.000000000 +0100
@@ -285,6 +285,10 @@ detect_init()
_service_exists="[ -x /etc/rc.d/rc.\$1 ]"
_service_cmd="/etc/rc.d/rc.\$1 \$2"
_service_status="/etc/rc.d/rc.\$1 status 1>/dev/null 2>&1"
+ elif [ -e /usr/bin/sv ]; then
+ _service_exists="[ -x /etc/sv/\$1 ]"
+ _service_cmd="/usr/bin/sv \$2 \$1"
+ _service_status="/usr/bin/sv s \$1 >/dev/null 2>&1"
@Duncaen
Duncaen / stdin
Created February 10, 2015 18:24
stdin
# Template file for 'attica'
pkgname=attica-qt5
version=5.6.0
revision=2
wrksrc=${pkgname%-*}-${version}
build_style=cmake
hostmakedepends="cmake"
makedepends="qt5-devel extra-cmake-modules"
short_desc="A Qt library that implements the Open Collaboration Services API"
maintainer="Juan RP <xtraeme@gmail.com>"
@Duncaen
Duncaen / stdin
Created March 2, 2015 11:21
stdin
duncan@tux:5?130$ sudo strace chpst -unobody:nogroup
Passwort:
execve("/usr/bin/chpst", ["chpst", "-unobody:nogroup", "id"], [/* 18 vars */]) = 0
uname({sys="Linux", node="tux", ...}) = 0
brk(0) = 0x1f9e000
brk(0x1f9f1c0) = 0x1f9f1c0
arch_prctl(ARCH_SET_FS, 0x1f9e880) = 0
readlink("/proc/self/exe", "/usr/bin/chpst", 4096) = 14
brk(0x1fc01c0) = 0x1fc01c0
brk(0x1fc1000) = 0x1fc1000
@Duncaen
Duncaen / $ .xbps-src -m masterdir-x86_64-musl -f pkg libXaw;
Created March 2, 2015 15:17
$ ./xbps-src -m masterdir-x86_64-musl/ -f pkg libXaw;
$ ./xbps-src -m masterdir-x86_64-musl/ -f pkg libXaw
[*] Updating `http://repo.voidlinux.eu/current/x86_64-musl-repodata' ...
ERROR: [reposync] failed to fetch file `http://repo.voidlinux.eu/current/x86_64-musl-repodata': Not Found
ERROR: [reposync] failed to fetch file `http://repo.voidlinux.eu/current/nonfree/x86_64-musl-repodata': Not Found
[*] Updating `http://repo.voidlinux.eu/current/nonfree/x86_64-musl-repodata' ...
=> libXaw-1.0.12_2: required dependencies:
[host] pkg-config>=0: found 'pkg-config-0.28_3'.
[target] libXext-devel>=0: found 'libXext-devel-1.3.3_1'.
[target] libXt-devel>=0: found 'libXt-devel-1.1.4_3'.
[target] libXmu-devel>=0: found 'libXmu-devel-1.1.2_2'.
@Duncaen
Duncaen / $ git diff --no-prefix;
Created March 5, 2015 21:49
$ git diff --no-prefix;
$ git diff --no-prefix
diff --git configure configure
index a32cc1c..fefad31 100755
--- configure
+++ configure
@@ -194,6 +194,18 @@ if [ -z "$RESTARTCMD" ]; then
fi
done
fi
+if [ -z "$RESTARTCMD" ]; then
@Duncaen
Duncaen / $ sudo xbps-remove -d -R weechat;
Created March 19, 2015 15:18
$ sudo xbps-remove -d -R weechat;
$ sudo xbps-remove -d -R weechat
[DEBUG] XBPS: 0.44 API: 20150219-1 GIT: UNSET
[DEBUG] Processing configuration directory: /etc/xbps.d
[DEBUG] Parsing configuration file: /etc/xbps.d/00-bestmatching.conf
[DEBUG] /etc/xbps.d/00-bestmatching.conf: pkg best matching enabled
[DEBUG] /etc/xbps.d/00-bestmatching.conf: enabling pkg best matching
[DEBUG] Parsing configuration file: /etc/xbps.d/10-repository-custom.conf
[DEBUG] [repo] `/home/duncan/void-packages/hostdir/binpkgs/custom/' stored successfully
[DEBUG] /etc/xbps.d/10-repository-custom.conf: added repository /home/duncan/void-packages/hostdir/binpkgs/custom/
[DEBUG] Processing system configuration directory: /usr/share/xbps.d
@Duncaen
Duncaen / $ strace -f sudo xbps-remove -d -R weechat;
Created March 19, 2015 15:19
$ strace -f sudo xbps-remove -d -R weechat;
$ strace -f sudo xbps-remove -d -R weechat
execve("/usr/bin/sudo", ["sudo", "xbps-remove", "-d", "-R", "weechat"], [/* 34 vars */]) = 0
brk(0) = 0x7f35f61d6000
fcntl(0, F_GETFD) = 0
fcntl(1, F_GETFD) = 0
fcntl(2, F_GETFD) = 0
access(0x7f35f4e9bfaf, F_OK) = -1 ENOENT (No such file or directory)
access(0x7f35f4e9f1c0, R_OK) = -1 ENOENT (No such file or directory)
open(0x7ffe07cec020, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat(0x7ffe07cec020, 0x7ffe07cec0e0) = -1 ENOENT (No such file or directory)
@Duncaen
Duncaen / $ sudo strace -f xbps-remove -d -R weechat;
Created March 19, 2015 15:20
$ sudo strace -f xbps-remove -d -R weechat;
$ sudo strace -f xbps-remove -d -R weechat
execve("/usr/sbin/xbps-remove", ["xbps-remove", "-d", "-R", "weechat"], [/* 18 vars */]) = 0
brk(0) = 0x7f8dfb195000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=88025, ...}) = 0
mmap(NULL, 88025, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8dfa14e000
close(3) = 0
open("/usr/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240`\0\0\0\0\0\0"..., 832) = 832