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
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'];
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
@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
+}
@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"
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
--- 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
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]