Skip to content

Instantly share code, notes, and snippets.

@asergi
asergi / gist:5883320
Created June 28, 2013 08:31
fs-utils core dump
% fsu_ls ~/NetBSD-6.1-amd64.iso -l
*** buffer overflow detected ***: fsu_ls terminated
======= Backtrace: =========
/usr/lib/libc.so.6(__fortify_fail+0x37)[0x7f0c86ea8e67]
/usr/lib/libc.so.6(+0xf9070)[0x7f0c86ea7070]
/usr/lib/libc.so.6(+0xf9604)[0x7f0c86ea7604]
/usr/lib/libfsu.so.0(fsu_mount+0x22c)[0x7f0c8771eedc]
fsu_ls[0x402437]
/usr/lib/libc.so.6(__libc_start_main+0xf5)[0x7f0c86dcfa15]
fsu_ls[0x401601]
@asergi
asergi / gist:5994403
Created July 14, 2013 14:11
buildrump.sh output
Tool CC : cc
Tool AR : ar
Tool NM : nm
Tool OBJCOPY : objcopy
Cmd DBG : -O2 -g
Probe RUMPKERN_UNDEF : -Ulinux -U__linux -U__linux__ -U__gnu_linux__
Probe CPPFLAGS : -DHAVE_POSIX_MEMALIGN
Probe CWARNFLAGS : -Wno-unused-but-set-variable
Probe RUMPUSER_EXTERNAL_DPLIBS: dl rt
Probe RUMPCLIENT_EXTERNAL_DPLIBS: pthread dl
@asergi
asergi / gist:6008424
Created July 16, 2013 12:51
librump output
# 1 "/home/alessio/Desktop/buildrump.sh/src/lib/librump/../../sys/rump/../kern/kern_descrip.c"
# 1 "/home/alessio/Desktop/buildrump.sh/obj/lib/librump//"
# 1 "<command-line>"
# 1 "/home/alessio/Desktop/buildrump.sh/src/lib/librump/../../sys/rump/../kern/kern_descrip.c"
# 72 "/home/alessio/Desktop/buildrump.sh/src/lib/librump/../../sys/rump/../kern/kern_descrip.c"
# 1 "/home/alessio/Desktop/buildrump.sh/src/lib/librump/../../sys/rump/../sys/cdefs.h" 1
# 59 "/home/alessio/Desktop/buildrump.sh/src/lib/librump/../../sys/rump/../sys/cdefs.h"
# 1 "./machine/cdefs.h" 1
# 60 "/home/alessio/Desktop/buildrump.sh/src/lib/librump/../../sys/rump/../sys/cdefs.h" 2
This file has been truncated, but you can view the full file.
Tool CC : cc
Tool AR : ar
Tool NM : nm
Tool OBJCOPY : objcopy
Cmd DBG : -O2 -g
Cmd make -j[num] : -j 4
Probe RUMPKERN_UNDEF : -Ulinux -U__linux -U__linux__ -U__gnu_linux__
Probe CPPFLAGS : -DHAVE_POSIX_MEMALIGN
Probe CWARNFLAGS : -Wno-unused-but-set-variable -Wno-unused-local-typedefs
Probe RUMPUSER_EXTERNAL_DPLIBS: dl rt
@asergi
asergi / encrypt_passwords.py
Created November 23, 2013 14:41
Hashing passwords with salt and testing input passwords.
#!/usr/bin/env python
# coding: utf-8
import uuid
import hashlib
import getpass
def get_hash(salt, plain_password):
return hashlib.sha256(salt.encode() + plain_password.encode()).hexdigest()
@asergi
asergi / ldm.log
Created December 19, 2013 12:07
ldm error log
==> Making package: ldm 0.4.2-1 (Thu Dec 19 11:11:53 CET 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found v0.4.2.tar.gz
==> Validating source files with md5sums...
v0.4.2.tar.gz ... Passed
==> Extracting sources...
-> Extracting v0.4.2.tar.gz with bsdtar
==> Starting build()...
diff --git a/glances/glances.py b/glances/glances.py
index 40450d4..f3d6401 100644
--- a/glances/glances.py
+++ b/glances/glances.py
@@ -3674,78 +3674,92 @@ class glancesScreen:
# display the limits table
limits_table_x = self.help_x
- limits_table_y = self.help_y + 1
- self.term_window.addnstr(limits_table_y, limits_table_x + 18,
@asergi
asergi / PKGBUILD
Last active August 29, 2015 13:55
mutt 1.5.23 Arch Linux PKGBUILD with sidebar patch from OpenBSD, Gentoo (based on)
# Maintainer: Alessio Sergi <asergi at archlinux dot us>
# Contributor: tobias [tobias [at] archlinux.org]
# Contributor: Gaetan Bisson <bisson@archlinux.org>
pkgname=mutt
pkgver=1.5.23
pkgrel=1
pkgdesc='Small but very powerful text-based mail client'
arch=('i686' 'x86_64')
url='http://www.mutt.org/'
alessio@braniac ~
$ sudo xbps-install -Syu
Password:
[*] Updating `http://repo.voidlinux.eu/current/x86_64-repodata' ...
[*] Updating `http://repo.voidlinux.eu/current/nonfree/x86_64-repodata' ...
1 package will be installed:
nvidia-dkms-337.19_1
1 package will be updated:
nvidia-337.19_1
# Template file for 'python-docutils'
pkgname=python-docutils
version=0.11
revision=1
wrksrc="docutils-${version}"
build_style=python-module
makedepends="python python3"
depends="python>=2.7"
noarch="yes"
python_versions="2.7 3.3"