Skip to content

Instantly share code, notes, and snippets.

Avatar
🛋️
Couch-potatoing

Adrian Perez aperezdc

🛋️
Couch-potatoing
View GitHub Profile
View CMakeLists.txt
cmake_minimum_required (VERSION 2.8)
# projectname is the same as the main-executable
project(pctest)
find_package(PkgConfig)
pkg_check_modules(PC one)
message("PC_INCLUDE_DIRS ... ${PC_INCLUDE_DIRS}")
message("PC_CFLAGS ......... ${PC_CFLAGS}")
message("PC_CFLAGS_OTHER ... ${PC_CFLAGS_OTHER}")
@aperezdc
aperezdc / PKGBUILD-j4status-git.sh
Last active Feb 10, 2019
Updated PKGBUILD for the j4status-git package
View PKGBUILD-j4status-git.sh
# Maintainer: Moritz Maxeiner <moritz@ucworks.org>
pkgname=j4status-git
pkgver=445.8c017e4
pkgrel=1
pkgdesc="A plugin-based status line generator: j4status generates a status line to use with bar programs (like i3bar). It is plugin-based to allow anyone to extend it easily."
arch=('i686' 'x86_64')
url='https://sardemff7.github.io/j4status/'
license=('GPL')
provides=('j4status')
@aperezdc
aperezdc / PKGBUILD-hotdoc.sh
Created Jan 7, 2019
Updated PKGBUILD for HotDoc 0.8.103
View PKGBUILD-hotdoc.sh
# Copyright 2018 Google LLC
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@aperezdc
aperezdc / unwindtest.c
Created Oct 17, 2017
Example on how to dump stack trace on SIGUSR2, useful if program gets stuck
View unwindtest.c
/*
* unwindtest.c
* Copyright (C) 2017 Adrian Perez <aperez@igalia.com>
*
* Distributed under terms of the MIT license.
*/
#define _GNU_SOURCE
#include <ucontext.h>
#include <dlfcn.h>
@aperezdc
aperezdc / .autoenv.zsh
Created Aug 24, 2017
Autoenv snippet for WebKit source trees
View .autoenv.zsh
#
# Place this in the root directory of a WebKit source tree.
#
# This needs the following Zsh plug-ins:
#
# https://github.com/Tarrasch/zsh-autoenv
# https://github.com/aperezdc/virtualz
#
autostash WEBKIT_TOP_LEVEL="${0:A:h}"
@aperezdc
aperezdc / PKGBUILD.tartan-git.sh
Created Aug 22, 2017
Arch Linux PKGBUILD for Tartan
View PKGBUILD.tartan-git.sh
# Maintainer: TingPing <tingping@tingping.se>
pkgname='tartan-git'
pkgver=0.3.0.r14.g5d9a499
pkgrel=1
pkgdesc='Clang analysis plugin for GLib and GNOME'
url='https://www.freedesktop.org/software/tartan/'
arch=('i686' 'x86_64')
provides=('tartan')
conflicts=('tartan')
license=('GPL3')
@aperezdc
aperezdc / jhenv.sh
Created Mar 3, 2017
Run a shell (or a command) using an alternate prefix, inspired by JHBuild
View jhenv.sh
#! /bin/bash
# vim: set ts=4 sw=4 noet
#
# jhenv
# Copyright (C) 2017 Adrian Perez <aperez@igalia.com>
#
# Distributed under terms of the MIT license.
#
set -e
@aperezdc
aperezdc / buildroot-config-wpe
Last active Jul 29, 2019
Buildroot configuration to build WPE with WebRTC enabled
View buildroot-config-wpe
#
# Automatically generated file; DO NOT EDIT.
# Buildroot 2017.02-rc1-12213-gb8bb78c99 Configuration
#
BR2_HAVE_DOT_CONFIG=y
BR2_HOST_GCC_AT_LEAST_4_5=y
BR2_HOST_GCC_AT_LEAST_4_6=y
BR2_HOST_GCC_AT_LEAST_4_7=y
BR2_HOST_GCC_AT_LEAST_4_8=y
BR2_HOST_GCC_AT_LEAST_4_9=y
@aperezdc
aperezdc / .autoenv.zsh
Created Nov 2, 2016
Autoenv scripts to prepare an Android build environment in a directory
View .autoenv.zsh
# Needs "curl", "sha1sum", some basic shell tools,
# plus the following Zsh plugins installed:
#
# https://github.com/Tarrasch/zsh-autoenv
# https://github.com/aperezdc/virtualz
#
# Drop this file into a new directory as .autoenv.zsh
# and enter it to have a virtualenv configured to use
# for building Android, and the "repo" tool installed
# and ready to be used. Bonus: ccache is configured.
View keybase.md

Keybase proof

I hereby claim:

  • I am aperezdc on github.
  • I am aperezdc (https://keybase.io/aperezdc) on keybase.
  • I have a public key ASBkif_OHqrzpx3d7P1K378eO_uN2reqFz2jRmGL3LKgZAo

To claim this, I am signing this object:

You can’t perform that action at this time.