Skip to content

Instantly share code, notes, and snippets.

View mmalmeida's full-sized avatar

Miguel Almeida mmalmeida

  • ITClinical
  • Lisbon
View GitHub Profile
@mmalmeida
mmalmeida / gist:5081799
Created March 4, 2013 11:54
long table
<div class="row-fluid">
<div class="span">
<!-- BEGIN SAMPLE TABLE PORTLET-->
<div class="portlet">
<div class="portlet-title">
<h4><i class="icon-cogs"></i>Advance Table</h4>
<div class="tools">
<a href="javascript:;" class="collapse"></a>
<a href="#portlet-config" data-toggle="modal" class="config"></a>
<a href="javascript:;" class="reload"></a>
<div class="tab-content container" id="tab4">
<div class="eight columns">xxxx</div>
<div class="eight columns">yyyy</div>
</div>
See example in tab "Editor Module" in http://itclinical.com/new/edc.php
Name: dataservices
Groups: /
Guest OS: Ubuntu (64 bit)
UUID: 0abf5872-5ce8-4a72-a916-0ce264b2b5f0
Config file: /mnt/hdc/VirtualBox VMs/dataservices/dataservices.vbox
Snapshot folder: /mnt/hdc/VirtualBox VMs/dataservices/Snapshots
Log folder: /mnt/hdc/VirtualBox VMs/dataservices/Logs
Hardware UUID: 0abf5872-5ce8-4a72-a916-0ce264b2b5f0
Memory size: 2024MB
Page Fusion: off
@mmalmeida
mmalmeida / gist:5567199
Created May 13, 2013 09:37
Log from VBoxService
VBoxService 4.2.6 r82870 (verbosity: 4) linux.amd64 (Dec 19 2012 15:17:08) release log
00:00:00.001502 main Log opened 2013-05-13T09:36:06.635176000Z
00:00:00.001612 main OS Product: Linux
00:00:00.001621 main OS Release: 2.6.32-32-server
00:00:00.001646 main OS Version: #62-Ubuntu SMP Wed Apr 20 22:07:43 UTC 2011
00:00:00.001655 main OS Service Pack: #62-Ubuntu SMP Wed Apr 20 22:07:43 UTC 2011
00:00:00.001663 main Executable: /opt/VBoxGuestAdditions-4.2.6/sbin/VBoxService
00:00:00.001667 main Process ID: 8003
00:00:00.001671 main Package type: LINUX_64BITS_GENERIC
00:00:00.001680 main 4.2.6 r82870 started. Verbose level = 4
@mmalmeida
mmalmeida / gist:5567319
Created May 13, 2013 10:06
VBox.log of externalservices - looking at the time issues
VirtualBox VM 4.2.6 r82870 linux.amd64 (Dec 19 2012 15:52:56) release log
00:00:00.088725 Log opened 2013-04-30T22:48:24.787062000Z
00:00:00.088728 OS Product: Linux
00:00:00.088729 OS Release: 2.6.32-45-generic
00:00:00.088730 OS Version: #102-Ubuntu SMP Wed Jan 2 22:38:04 UTC 2013
00:00:00.088760 DMI Product Name: System Product Name
00:00:00.088768 DMI Product Version: System Version
00:00:00.088776 Host RAM: 8002MB total, 53MB available
00:00:00.088779 Executable: /usr/lib/virtualbox/VBoxHeadless
00:00:00.088779 Process ID: 5618
Reporting-MTA: dns; webservices.itclinical.com
X-Postfix-Queue-ID: 49F3E12EA16C
X-Postfix-Sender: rfc822; test@itclinical.com
Arrival-Date: Wed, 29 May 2013 20:09:17 +0100 (WEST)
Final-Recipient: rfc822; kc@dghealth.org
Original-Recipient: rfc822;kc@dghealth.org
Action: failed
Status: 5.1.1
Remote-MTA: dns; chw-smtp-001.dghealth.org
@mmalmeida
mmalmeida / gist:5803427
Last active December 18, 2015 15:19
vboxmanage error deleting snapshot
This file has been truncated, but you can view the full file.
Running: vboxmanage snapshot webservices delete f4cb7fd0-f227-434e-9811-8f1ed30a9692
Progress state: NS_ERROR_FAILURE
VBoxManage: error: Snapshot operation failed
VBoxManage: error: Failed to perform an online medium merge (VERR_INVALID_PARAMETER)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component Console, interface IConsole
VBoxManage: error: Context: "int handleSnapshot(HandlerArg*)" at line 431 of file VBoxManageSnapshot.cpp
Full Vbox.log:
@mmalmeida
mmalmeida / gist:5858399
Created June 25, 2013 13:24
txManager bean sanity check
<bean id="txManager" class="org.springframework.orm.hibernate4.HibernateTransactionManager" scope="singleton">
<property name="entityInterceptor" ref="auditInterceptorName" />
<property name="sessionFactory" ref="sessionFactory" />
</bean>
<bean id="auditInterceptorName" class="java.lang.String">
<constructor-arg type="java.lang.String" value="auditInterceptor"/>
</bean>
@mmalmeida
mmalmeida / gist:5933418
Last active December 19, 2015 09:29
fail2ban.log.1
fail2ban-regex test on my failed login's ssh log snippet:
Running tests
=============
Use regex file : /etc/fail2ban/filter.d/sshd.conf
Use log file : fake.log
# Generated by iptables-save v1.4.12 on Fri Jul 5 13:07:43 2013
*raw
:PREROUTING ACCEPT [1196585836:168682354246]
:OUTPUT ACCEPT [1201887532:172170812884]
COMMIT
# Completed on Fri Jul 5 13:07:43 2013
# Generated by iptables-save v1.4.12 on Fri Jul 5 13:07:43 2013
*nat
:PREROUTING ACCEPT [826810:62650151]
:INPUT ACCEPT [826341:62622011]