Skip to content

Instantly share code, notes, and snippets.

View jbfavre's full-sized avatar

Jean Baptiste Favre jbfavre

View GitHub Profile
@jbfavre
jbfavre / gist:9341702
Created March 4, 2014 07:15
GnuSocial Error
Mar 4 08:13:08 www statusnet: PHP Fatal error: Ostatus_profile::ensureActivityObjectProfile(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "LooseOstatusProfile" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /plugins/OStatus/classes/Ostatus_profile.php on line 1380
@jbfavre
jbfavre / gist:6811939
Last active March 8, 2020 19:24
Vertica monitoring draft. Which relevant informations can we get from v_monitor view ?

Vertica monitoring

Found into Vertica Ganglia monitoring package:

SQL statements

from verticalib.php

Events (SNMP Trap)

@jbfavre
jbfavre / selfoss_import_from_rsslounge.php
Last active December 14, 2015 23:59
Little script to import into selfoss data from rsslounge. DB structure are quite close, so it's easy. **Warnings**: - Provide your own DB credentials line 2 & 3 - For category -> tag migration, default value was "Sans catégorie" (in french). Beware to adapt it to your rsslounge value (line 34) - Since I only use RSS feeds in rsslounge, I could n…
<?php
$rssloungeDB="rsslounge";
$selfossDB="selfoss";
$rsslounge= new mysqli("localhost", "username", "password", $rssloungeDB);
$selfoss= new mysqli("localhost", "username", "password", $selfossDB);
/* Export categories into tags */
$categories_query="select name from ".$rssloungeDB.".categories where ".$rssloungeDB.".categories.id>0";
$categories= $rsslounge->prepare($categories_query);
@jbfavre
jbfavre / ubuntu_precise_ec2_post_install
Created July 25, 2012 12:55
Ubuntu 12.04 Precise post install on AWS EC2
aptitude -y purge accountsservice acpid apport apport-symptoms apt-transport-https apt-xapian-index at busybox-static byobu cloud-initramfs-growroot cloud-initramfs-rescuevol console-setup curl dbus dmidecode dosfstools ed eject fonts-ubuntu-font-family-console friendly-recovery ftp fuse geoip-database gettext-base gir1.2-glib-2.0 gir1.2-gudev-1.0 grub-common grub-gfxpayload-lists grub-pc grub-pc-bin grub2-common hdparm iptables iputils-ping iputils-tracepath irqbalance iw kbd keyboard-configuration krb5-locales landscape-client landscape-common language-selector-common laptop-detect libaccountsservice0 libcap-ng0 libcurl3 libdate-manip-perl libdbus-glib-1-2 libevent-2.0-5 libfreetype6 libfuse2 libgc1c2 libgirepository-1.0-1 libgudev-1.0-0 libiw30 libjs-jquery libnfnetlink0 libparted0debian1 libpcap0.8 libpci3 libpolkit-gobject-1-0 libsasl2-modules libusb-1.0-0 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1 libyaml-syck-perl logwatch lshw lsof ltrace memtest86+ mlocate nano ntfs-3g os-prober