Skip to content

Instantly share code, notes, and snippets.

@bvaudour
bvaudour / PKGBUILD
Created August 25, 2016 16:34
opera-ffmpeg support for KaOS
pkgname=opera-ffmpeg
pkgver=52.0.2743.82
pkgrel=1
pkgdesc='Additional support for proprietary codecs for opera.'
arch=('x86_64')
url="https://ffmpeg.org/"
license=('LGPL2.1')
source=("http://repo.herecura.eu/herecura/x86_64/${pkgname}-codecs-${pkgver}-1-x86_64.pkg.tar.xz")
package() {
@bvaudour
bvaudour / PKGBUILD
Created April 21, 2016 17:41
PKGBUILD for xclip
pkgname=xclip
pkgver=0.12.20160314
pkgrel=1
_commit=0a1bbcc
pkgdesc='Command line interface to the X11 clipboard'
url='https://github.com/astrand/xclip'
arch=('x86_64')
license=('GPL')
depends=('libxmu')
source=("https://github.com/astrand/xclip/tarball/${_commit}/xclip.tar.gz")
@bvaudour
bvaudour / kcp_info.sh
Last active April 9, 2016 18:43
All informations of all packages on KCP
#!/usr/bin/env bash
get_info() {
for package in $(kcp -lN); do
kcp -V $package
done
}
if [[ $# -eq 0 ]]; then
get_info
else
@bvaudour
bvaudour / PKGBUID
Last active March 6, 2016 20:57
Megasync
pkgname=megasync
pkgver=2.7.1
pkgrel=1
pkgdesc="Sync your files to your Mega account. Official app"
arch=('x86_64')
url="http://mega.nz"
license=('custom:Mega License')
depends=('openssl' 'c-ares' 'libgcrypt' 'crypto++' 'qt' 'libpng' 'sqlite' 'ca-certificates')
makedepends=('git' 'qt')
source=("git://github.com/meganz/MEGAsync.git")
@bvaudour
bvaudour / output
Created July 20, 2015 17:28
Example of kcp usage of --information flag
$ ./kcp --information otter-browser-git
version 0.9.06.r56-1
description Otter Browser, project aiming to recreate classic Opera (12.x) using Qt5.
url http://www.otter-browser.org
license GPL3
arch x86_64
depends qt5-base>=5.5.0 qt5-webkit>=5.5.0 qt5-script>=5.5.0 desktop-file-utils hicolor-icon-theme qtwebengine
makedepends git cmake qt5-tools>=5.5.0
@bvaudour
bvaudour / compress.sh
Last active February 28, 2023 06:19
tar.lz4 creation/extraction
#!/bin/bash
if [ $# -ne 1 ]; then
echo "Usage : $0 <file to compress>"
exit 1
fi
file=${1%%/}
tar c "$file" | lz4 -z - "$file.tar.lz4"
@bvaudour
bvaudour / PKGBUILD
Created March 11, 2015 20:00
python3-poppler-qt5
pkgname=python3-poppler-qt5
_pkgname=python-poppler-qt5
pkgver=0.24.2
pkgrel=1
pkgdesc="A Python 3 binding to poppler-qt5"
arch=('x86_64')
url="https://github.com/wbsoft/python-poppler-qt5/"
license=('LGPL')
depends=('pyqt5-python3' 'poppler-qt5' 'python3')
@bvaudour
bvaudour / ouput
Last active August 29, 2015 14:16
python3-poppler-qt5
running build_ext
building 'popplerqt5' extension
/usr/bin/sip -I /usr/share/sip -t POPPLER_V0_28_0 -c build/temp.linux-x86_64-3.4 -b build/temp.linux-x86_64-3.4/poppler-qt5.sbf -I /usr/share/sip/PyQt5 -t WS_X11 -t Qt_5_4_1 poppler-qt5.sip
sip: QDomElement is undefined
error: command '/usr/bin/sip' failed with exit status 1
@bvaudour
bvaudour / grub_read.py
Created November 26, 2014 19:13
Grub parsing rewrite
def read_grub():
global menu_entries
grub_path = os.path.join(install_path, 'boot', 'grub', 'grub.cfg')
o = False
with open(grub_path, 'r') as f:
for l in f:
if l.strip()[:9] == 'menuentry' and l[-2] == '{':
o = True
e = {}
i1 = l.find("'") + 1
@bvaudour
bvaudour / gummi.py
Last active August 29, 2015 14:10
Gummi conf with grub.cfg
#!/usr/bin/env python3
# encoding: utf-8
# === This file is part of Calamares - <http://github.com/calamares> ===
#
# Copyright 2014, Anke Boersma <demm@kaosx.us>
# Copyright 2014, Benjamin Vaudour <benjamin.vaudour@yahoo.fr>
#
# Calamares is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or