View gist:a6a2bf05e112910be944
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# [Arch] List provisions with packages providing them | |
# pacman-based solution | |
pacman -Si \ | |
| awk '/^$/{n=""}/^Name/{n=$3}/^Provides/{if($3!="None"){for(i=3;i<=NF;i++){if(t[$i]=="")t[$i]="";t[$i]=t[$i]" "n}}}END{for(p in t)printf("%44-s :%s\n",p,t[p])}' \ | |
| sort | less | |
# expac-based solution (better) | |
expac -S "%n %P" \ | |
| awk 'NF>1{for(i=2;i<=NF;i++){if(t[$i]=="")t[$i]="";t[$i]=t[$i]" "$1}}END{for(p in t)printf("%44-s :%s\n",p,t[p])}' \ |
View numstr-test.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#define NUMBER 12345678901234567890 | |
#define _Q(n) #n | |
#define Q(n) _Q(n) | |
#define ATOL(n) atol(Q(n)) | |
#define SSCANF(n) ({ long val = 0; sscanf(Q(n), "%ld", &val); val; }) |
View p7zip-pwd-from-stdin.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- p7zip_9.04.orig/CPP/7zip/UI/Console/Main.cpp 2009-06-27 16:18:14.000000000 +0200 | |
+++ p7zip_9.04/CPP/7zip/UI/Console/Main.cpp 2011-01-10 01:25:36.000000000 +0100 | |
@@ -48,6 +48,10 @@ | |
#include "myPrivate.h" | |
#include "Windows/System.h" | |
+#include <iostream> | |
+ | |
+#define MAX_PWD_SIZE_FROM_STDIN 1024 | |
+ |
View gist:1105621
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Blondie - Call me (Original 12 Mix) | |
=================================== | |
Colour me your colour baby, colour me your car | |
Colour me your colour darling, I know who you are | |
Come up off your colour chart | |
I know where you're coming from | |
Call me (call me) on the line | |
Call me, call me any, any time |
View rc.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Standard awesome library | |
require("awful") | |
require("awful.autofocus") | |
require("awful.rules") | |
-- Theme handling library | |
require("beautiful") | |
-- Notification library | |
require("naughty") | |
-- Load Debian menu entries |
View almost-endless-history.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add following lines to: | |
# - /etc/bash.bashrc | |
# - /etc/profile | |
export HISTSIZE=1000000 | |
export HISTFILESIZE=$HISTSIZE | |
export HISTCONTROL=ignoredups |
View festalon-Fix-CPUID-availability-test-for-x86_64.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From: Przemyslaw Pawelczyk <przemoc@gmail.com> | |
Date: Sun, 8 May 2011 23:16:55 +0200 | |
Subject: [PATCH] Fix CPUID availability test for x86_64. | |
Before you got following gcc/clang error in x86_64: | |
cputest.c: Assembler messages: | |
cputest.c:38: Error: suffix or operands invalid for `pop' | |
cputest.c:41: Error: suffix or operands invalid for `push' | |
cputest.c:44: Error: suffix or operands invalid for `pop' |
View Fix-lowercase-sample-paths-in-.sfz.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 4e7de246fa2db00112abca27c58922f2003af4c5 Mon Sep 17 00:00:00 2001 | |
From: Przemyslaw Pawelczyk <przemoc@gmail.com> | |
Date: Tue, 11 Sep 2012 23:40:07 +0200 | |
Subject: [PATCH] Fix lowercase sample paths in *.sfz. | |
--- | |
Brass - Bass Trombone Solo.sfz | 28 ++++----- | |
Brass - Horn Solo.sfz | 26 ++++---- | |
Brass - Tenor Trombone Solo.sfz | 22 +++---- | |
Brass - Trumpet Solo.sfz | 26 ++++---- |
View tmux-Stop-searching-forward-at-the-end-of-the-buffer.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 6bccc3fc7362967ea7d4c296a22793f7f3a2c6d8 Mon Sep 17 00:00:00 2001 | |
From: Przemyslaw Pawelczyk <przemoc@gmail.com> | |
Date: Sat, 18 Feb 2012 23:51:38 +0100 | |
Subject: [PATCH] Stop searching forward at the end of the buffer. | |
Requested-by: Jacobo de Vera <devel@jacobodevera.com> | |
--- | |
window-copy.c | 11 ++--------- | |
1 files changed, 2 insertions(+), 9 deletions(-) |
View FREEBSD-VM-URLS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# FreeBSD 7.1 | |
http://virtualboxes.org/images/freebsd/ | |
# FreeBSD 9.0 -- pre-prepared VM image for Google Code-In | |
http://wiki.freebsd.org/GoogleCodeIn/GettingStarted | |
# FreeBSD 10.1, 10.2 | |
http://www.osboxes.org/freebsd/ | |
# FreeBSD STABLE, CURRENT snapshot -- pre-installed VM images |
OlderNewer