Skip to content

Instantly share code, notes, and snippets.

@vicendominguez
vicendominguez / gist:8802406
Created February 4, 2014 12:00
Problems with keyboard in Synergy solved in Mac OS X
SYNERGY with MAC OS X (x86+PPC)
--------------------------
If someone has this config:
* Server: Mac OS X 10.6.8
* Client: Mac OS X 10.5.8 PPC
and keyboard not works correctly. Successful install for Synergy is:
@vicendominguez
vicendominguez / gist:8802441
Created February 4, 2014 12:01
UNSTABLE LIANLI - Lian Li EX-503 - Mac OS 10.6.x
UNSTABLE LIANLI - Lian Li EX-503 - Mac OS 10.6.x - Snow Leopard (English Version)
-----------------------------------------------------------------------------------
E-SATA
- SiliconImage included with the pack is a must. There are problem with other cheaper cards.
- There is a trick in Mac Pro which use internal sata ports for e-sata. FORBIDDEN!!!
- Warning: this config is very unstable. Later patch or updates can be incompatible.
- Workflow:
@vicendominguez
vicendominguez / tmux.conf
Last active August 29, 2015 13:56
My TMUX config
# Ademas de Ctrl+B, agregamos un atajo de teclado tipo screen (Ctrl+A)
# Para tmux < 1.6:
#set-option -g prefix C-a,C-b,Escape
# Para tmux >= 1.6:
set-option -g prefix C-a
#set-option -g prefix2 C-b
set-option -g prefix2 Escape
# Si quisieramos reemplazarlo totalmente:
#!/usr/bin/perl -w
# a lot of years ago... recovered
use Geo::IP2Location;
if ($#ARGV != 1 ) {
print "usage: checkip.pl <fichero.bin.ip> <ip>\n";
exit;
}
@vicendominguez
vicendominguez / varnish-pass.pl
Created February 4, 2014 13:26
you can try this to pass the challenge in varnish auth-session (for testing purposes)
#!/usr/bin/env perl
#
#
# If you don't have access to:
# * shell
# * varnishadm
# you can try this to pass the challenge in varnish auth-session console
#
# Vicente
@vicendominguez
vicendominguez / gist:8803535
Created February 4, 2014 13:27
MINT 13 AND UBUNTU 12.04 CANON IR C2880-C3380 (UFR2) HOW TO
MINT 13 AND UBUNTU 12.04 CANON IR C2880-C3380 (UFR2) HOW TO
--------------------------------------------------------------
Download drivers for Linux from Canon
unzip Linux_UFRII_PrinterDriver_V250_uk_EN.tar.gz
cd Linux_UFRII_PrinterDriver_V250_uk_EN/64-bit_Driver/RPM/
alien --to-deb --scripts cndrvcups-common-2.50-1.x86_64.rpm
alien --to-deb --scripts cndrvcups-ufr2-uk-2.50-1.x86_64.rpm
apt-get install libc6-i386 ia32-libs lib32z1
dpkg -i cndrvcups-common_2.50-2_amd64.deb cndrvcups-ufr2-uk_2.50-2_amd64.deb
@vicendominguez
vicendominguez / gist:8803620
Created February 4, 2014 13:33
VMware Rollup Health State sensor sync problem
First you need to compare two sensors. You need two tags:
A - https://vCenter_Server_name/mob/
B - https://NodeAffected_Server_name/mob/
Then:
1. Connect API via Internet browser - https://vCenter_Server_name/mob/ and https://NodeAffected_Server_name/mob/
2. Choose: content | ServiceContent | content
3. Navigate to rootFolder | ManagedObjectReference:Folder | name(or ha)-folder-root (name-folder-root)
@vicendominguez
vicendominguez / check_commvaulthistory.vbs
Created February 4, 2014 15:59
Terminal report for failed jobs from Commvault Backup
' Dirty script to check Failed backups from Commvault 9.00
' Author: Vicente Dominguez - contact via Twitter @vicendominguez ;)
' Require: qlist from qcommands (Commvault 9.00)
' Save as check_commvaulthistory.vbs in server with commvault sw install
' Command line to execute: cscript //nologo check_commvaulthistory.vbs
' Remember to execute 'qlogin' to validate the user/pass
Option Explicit
' On Error Resume Next
@vicendominguez
vicendominguez / gist:8806513
Created February 4, 2014 16:02
Installing Navisphere CLI on CentOS 6.2
Installing Navisphere CLI on CentOS 6.2
--------------------------------------------------
twitter: @vicendominguez
* If you have this problem with dependences:
# rpm -ivh NaviCLI-Linux-64-x86-en_US-7.31.25.1.24-1.x86_64.rpm
error: Failed dependencies:
libc.so.6 is needed by NaviCLI-Linux-64-x86-en_US-7.31.25.1.24-1.x86_64
libc.so.6(GLIBC_2.0) is needed by NaviCLI-Linux-64-x86-en_US-7.31.25.1.24-1.x86_64
@vicendominguez
vicendominguez / gist:8806533
Last active August 29, 2015 13:56
"Automagic" mount (at boot time) of a windows folder in FreeBSD 7
"Automagic" mount (at boot time) of a windows folder in FreeBSD 7!
------------------------------------------------------------------
@vicendominguez
* Enviroment:
- shared folder in windows 2003 with user/pass
- FreeBSD 7.00
* Pre:
- smbclient to check the permissions