Skip to content

Instantly share code, notes, and snippets.

View elieux's full-sized avatar

David Macek elieux

View GitHub Profile
@elieux
elieux / gdb.log
Last active August 29, 2015 14:09
Pacman crash
Program received signal SIGSEGV, Segmentation fault.
0x0000000100424bf8 in alpm_db_update (force=force@entry=0, db=db@entry=0x600052e90) at be_sync.c:246
246 len = strlen(final_db_url) + 5;
(gdb) bt
#0 0x0000000100424bf8 in alpm_db_update (force=force@entry=0, db=db@entry=0x600052e90) at be_sync.c:246
#1 0x0000000100409f02 in sync_synctree (level=1, syncs=syncs@entry=0x600052f30) at sync.c:330
#2 0x000000010040b0ee in pacman_sync (targets=0x0) at sync.c:941
#3 0x0000000100408168 in main (argc=2, argv=0x23aac0) at pacman.c:1231
(gdb) bt full
#0 0x0000000100424bf8 in alpm_db_update (force=force@entry=0, db=db@entry=0x600052e90) at be_sync.c:246
@elieux
elieux / pacrepo-util
Last active August 29, 2015 14:09
pacrepo-util
#!/usr/bin/env python3
import configparser
import argparse
import shutil
class PacConfParser(configparser.ConfigParser):
def optionxform(self, option):
return option
@elieux
elieux / pacman.conf
Created November 16, 2014 14:21
pacman config
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
@elieux
elieux / 10morespace
Last active April 2, 2017 14:56
morespace.sh
#!/system/bin/sh
#
# MORESPACE - init script to use an ext4-formatted sdcard for both app installations and user data
# Revision: 3
# Author: github.com/elieux
# Device: Huawei Ascend G300 [U8815] with CM11
#
# Warning: The script does not reformat your sdcard. That needs to be done manually before installing the script.
# Warning: The script is not designed for multiple-partition sdcards (sd-ext).
#
@elieux
elieux / testcase.c
Last active August 29, 2015 14:11
cygwin+subst issue
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <stdio.h>
int main() {
const char const* fn = "foo";
int handle1, handle2, res;
handle1 = open(fn, O_RDONLY | O_CREAT);
@elieux
elieux / Makefile
Last active April 2, 2017 14:56
DLL troubles
all: main.exe
foo.o: foo.c
gcc -c foo.c -o foo.o
libfoo.a: foo.o
ar sr libfoo.a foo.o
bar.o: bar.c
gcc -c bar.c -o bar.o
libbar.dll: bar.o libfoo.a
@elieux
elieux / aria2-1.18.9.log
Created February 3, 2015 12:15
aria2 failed build
$ makepkg-mingw
==> Making package: mingw-w64-x86_64-aria2 1.18.9-2 (Tue, Feb 3, 2015 12:51:27 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found aria2-1.18.9.tar.xz
==> Validating source files with md5sums...
aria2-1.18.9.tar.xz ... Passed
==> Extracting sources...
-> Extracting aria2-1.18.9.tar.xz with /usr/bin/bsdtar
@elieux
elieux / PKGBUILD
Created February 3, 2015 14:11
makepkg-find-warning
pkgname=example1
pkgver=1.0
pkgrel=1
arch=(any)
package() {
echo "example1" > "${pkgdir}/.example1"
}
@elieux
elieux / PKGBUILD.1
Created February 3, 2015 14:29
pacman-case-insensitive
pkgname=example2
pkgver=1.0
pkgrel=1
arch=('any')
package() {
mkdir "${pkgdir}/var"
echo "example2" > "${pkgdir}/var/EXAMPLE2"
}
@elieux
elieux / guide.md
Last active March 15, 2024 16:25
pacman-sign-guide

have a GPG key

Create your new key: gpg --gen-key more...

Back it up: gpg --export-secret-keys --armor <keyid> > my_key_backup.asc more...