Skip to content

Instantly share code, notes, and snippets.

View alfredopalhares's full-sized avatar

Alfredo Palhares alfredopalhares

  • Prozis
  • Ponte de Lima, Portugal
View GitHub Profile
15:03 -!- Hunterm [~HuntermFr@unaffiliated/hunterm] has quit [Quit: ZNC - http://znc.in]
15:03 -!- Hunterm [~HuntermFr@unaffiliated/hunterm] has joined #archlinux-offtopic
03:44 -!- Hunterm [~HuntermFr@unaffiliated/hunterm] has joined #archlinux-offtopic
02:03 -!- Hunterm [~HuntermFr@unaffiliated/hunterm] has quit [Quit: ZNC - http://znc.in]
02:03 -!- Hunterm [~HuntermFr@unaffiliated/hunterm] has joined #archlinux-offtopic
02:03 -!- Hunterm [~HuntermFr@unaffiliated/hunterm] has quit [Excess Flood]
02:04 -!- Hunterm [~HuntermFr@unaffiliated/hunterm] has joined #archlinux-offtopic
15:53 -!- Hunterm [~HuntermFr@unaffiliated/hunterm] has quit [Ping timeout: 240 seconds]
15:54 -!- Hunterm [~HuntermFr@unaffiliated/hunterm] has joined #archlinux-offtopic
01:07 -!- Hunterm [~HuntermFr@unaffiliated/hunterm] has quit [Quit: ZNC - http://znc.in]
--- Log opened Thu Jun 16 13:30:54 2011
13:30 -!- Irssi: Starting query in freenode with rikurr
13:30 <rikurr> ok, for how long do you plan to stay online? I got a distress call from a good friend of mine.
13:34 <masterkorp> i am online 24/7 buddie
13:35 <masterkorp> you can query me the problem even if i am away and i will handle it as soon as i can
13:35 <masterkorp> so no horries
13:38 <rikurr> ok, great
--- Log closed Thu Jun 16 13:43:51 2011
--- Log opened Fri Jun 17 03:44:15 2011
03:44 -!- Irssi: Starting query in freenode with rikurr
configure.in:130: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from...
build/apr_common.m4:490: APR_TRY_COMPILE_NO_WARNING is expanded from...
build/apu-iconv.m4:106: APU_CHECK_ICONV_INBUF is expanded from...
build/apu-iconv.m4:34: APU_FIND_ICONV is expanded from...
configure.in:130: the top level
Creating configure ...
configure.in:130: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
@alfredopalhares
alfredopalhares / gist:1527952
Created December 28, 2011 13:34
Git coomit lockout
diff --git a/rubyists/freeswitch-git/PKGBUILD b/rubyists/freeswitch-git/PKGBUILD
index 319145a..652d821 100644
--- a/rubyists/freeswitch-git/PKGBUILD
+++ b/rubyists/freeswitch-git/PKGBUILD
@@ -15,6 +15,9 @@
# BUILD CONFIGURATION BEGINS #
+# Lock to specified refspec, this will assure you get pretested stuff
+_refspec="7c22661efbfbbf22577f15a1ed3923c7a102808e"
@alfredopalhares
alfredopalhares / gist:1528099
Created December 28, 2011 14:22
My moma is bad
diff --git a/rubyists/socklog-dietlibc/PKGBUILD b/rubyists/socklog-dietlibc/PKGBUILD
index d758312..6ac8ec4 100644
--- a/rubyists/socklog-dietlibc/PKGBUILD
+++ b/rubyists/socklog-dietlibc/PKGBUILD
@@ -28,7 +28,9 @@ build() {
# compile
make || return 1
make check || return 1
+}
masterkorp content-rules (master) $ ls -al
total 158
drwxr-xr-x 2 masterkorp users 1904 Apr 25 13:28 .
drwxr-xr-x 3 masterkorp users 184 Apr 26 09:39 ..
-rw-r--r-- 1 masterkorp users 244 Feb 11 2011 ._active-fixtures-award.dat
-rw-r--r-- 1 masterkorp users 259 Apr 25 13:28 active-fixtures-award.dat
-rw-r--r-- 1 masterkorp users 244 Feb 11 2011 ._active-fixtures-db.dat
-rw-r--r-- 1 masterkorp users 35 Apr 25 13:28 active-fixtures-db.dat
-rw-r--r-- 1 masterkorp users 244 Feb 11 2011 ._active-fixtures-docs.dat
-rw-r--r-- 1 masterkorp users 270 Apr 25 13:28 active-fixtures-docs.dat
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;
// Work out where we currently are.
$current_action = 'home';
if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
$current_action = 'admin';
if (in_array($context['current_action'], array('tags','search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
$current_action = $context['current_action'];
SyntaxError: unexpected $undefined, expecting $end
[1] pry(main)> "\:"
=> ":"
[2] pry(main)> "\\:"
=> "\\:"
[3] pry(main)> puts "\\:"
\:
=> nil
# $Id$
# Maintainer:
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Geoffroy Carrier <geoffroy@archlinux.org>
# Contributor: Roman Kyrylych <Roman.Kyrylych@gmail.com>
_pkgbase=xerces-c
pkgname=lib32-${_pkgbase}
pkgver=3.1.1
pkgrel=4
@alfredopalhares
alfredopalhares / gist:d475257c84410c7fcca6
Last active February 15, 2024 12:15
Restoring a PDF file from chrome cache

So I was trying to do my duties as a good civilian by paying taxes of stuff you already own.

In this particular case it meant going to the website and try and generate a PDF document that would allow me to pay for said stuff. After 2 unsuccessful attempts to generate the PDF (got greeted by 500s), I finally got the PDF open on chromium (using the PDF preview) and trying to save, the browser crashed..

I then quickly reboot chromium and tried to generate the PDF again, only to find out that I can't, the website only allows you to generate the document and download once, this is a critical document used as prof and means to pay your taxes. It doesn't really make much sense that you only can download it once, but such is the way of life.

I've been suffering from this bug for quite a while, but it never affected me in this way.

The file wasn't on ~/Downloads, so I've tried browsing chrome://cache and after a while I found the PDF HTTP request, w