Skip to content

Instantly share code, notes, and snippets.

View kpcyrd's full-sized avatar

kpcyrd

View GitHub Profile
@kpcyrd
kpcyrd / gist:1ec95f93b1b13f6af35c
Last active August 29, 2015 14:22
crypto_yolo_verify
$
$ aptitude show libsodium13
Package: libsodium13
New: yes
State: installed
Automatically installed: no
Multi-Arch: same
Version: 1.0.1-1
Priority: optional
Section: universe/libs
@kpcyrd
kpcyrd / PKGBUILD
Created October 19, 2015 23:27
ipfs PKGBUILD
# Maintainer: kpcyrd <git@rxv.cc>
# Contributor: Frederik “Freso” S. Olesen <freso.dk@gmail.com>
# Contributor: Ian Naval <ianonavy@gmail.com>
pkgname=go-ipfs
pkgver=0.3.8
pkgrel=1
pkgdesc='global versioned p2p merkledag file system'
url='https://github.com/ipfs/go-ipfs'
arch=('i686' 'x86_64')
@kpcyrd
kpcyrd / PKGBUILD
Created November 4, 2015 23:02
python-argh PKGBUILD
# Contributor: Francois_B <fboulogne@sciunto.org>
# Contributor: kpcyrd <git@rxv.cc>
pkgbase=python-argh
pkgname=('python-argh' 'python2-argh')
pkgver=0.26.1
pkgrel=1
pkgdesc='An unobtrusive argparse wrapper with natural syntax'
arch=(any)
url='https://pypi.python.org/pypi/argh'
####
## Output descriptions:
##
# Treasure Data (http://www.treasure-data.com/) provides cloud based data
# analytics platform, which easily stores and processes data from td-agent.
# FREE plan is also provided.
# @see http://docs.fluentd.org/articles/http-to-td
#
# This section matches events whose tag is td.DATABASE.TABLE
@kpcyrd
kpcyrd / gitlab_settings.py
Last active August 20, 2017 13:14
ansible-gitlab_settings
#!/usr/bin/python2
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '0.0',
'status': ['preview'],
'supported_by': 'community'}
'''
@kpcyrd
kpcyrd / diffoscope.json
Created January 3, 2018 19:54
sniffglue diffoscope.out (rustc nightly 2018-01-01)
This file has been truncated, but you can view the full file.
{
"diffoscope-json-version": 1,
"source1": "artifacts/control/source-root/target/release/sniffglue",
"source2": "artifacts/experiment-1/source-root/target/release/sniffglue",
"unified_diff": null,
"details": [
{
"source1": "readelf --wide --symbols {}",
"source2": "readelf --wide --symbols {}",
#!/usr/bin/env python3
import subprocess
import time
import sys
SCANCODES = {
'ESC': [[0x01], [0x81]],
'1': [[0x02], [0x82]], '!': [[0x2A, 0x02], [0x82, 0xAA]],
'2': [[0x03], [0x83]], '@': [[0x2A, 0x03], [0x83, 0xAA]],
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 2ac1bbca..3fbfc5a7 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -55,6 +55,7 @@ splitpkg_overrides=('pkgdesc' 'arch' 'url' 'license' 'groups' 'depends'
readonly -a build_options splitpkg_overrides
known_hash_algos=('md5' 'sha1' 'sha224' 'sha256' 'sha384' 'sha512' 'whirlpool')
+secure_hash_algos=('sha224' 'sha256' 'sha384' 'sha512' 'whirlpool')
@kpcyrd
kpcyrd / up.sql
Last active December 6, 2018 11:43
sqlite 3.26.0 db corruption regression
-- # steps to reproduce
-- rm -f foo.db; sqlite3 foo.db < up.sql; echo '.schema' | sqlite3 foo.db
--
-- debian stable (works as expected):
-- 3.16.2 2017-01-06 16:32:41 a65a62893ca8319e89e48b8a38cf8a59c69a8209
--
-- archlinux (corrupted database):
-- 3.26.0 2018-12-01 12:34:55 bf8c1b2b7a5960c282e543b9c293686dccff272512d08865f4600fb58238b4f9
CREATE TABLE foo (
@kpcyrd
kpcyrd / PKGBUILD
Created February 9, 2019 12:50
diesel_cli PKGBUILD
# Maintainer: Philipp A <flying-sheep@web.de>
# Contributor: kpcyrd <git@rxv.cc>
pkgname=diesel_cli
pkgver=1.4.0
pkgrel=1
pkgdesc='CLI for the Diesel crate'
arch=('i686' 'x86_64')
url="http://diesel.rs/"
license=('MIT' 'Apache')