Skip to content

Instantly share code, notes, and snippets.

View cybermonde's full-sized avatar
🎉
watching your excellent work

cybermonde.org cybermonde

🎉
watching your excellent work
View GitHub Profile
@cybermonde
cybermonde / parserss.sh
Created February 19, 2015 10:57
parse RSS file to tweet new entries
#!/bin/bash
# parse RSS file to tweet new entries
# author : http://www.cybermonde.org
# needed : feedstail (https://github.com/Psycojoker/feedstail) and ttytter (http://www.floodgap.com/software/ttytter/)
# usage (summary = description) :
# feedstail -u "http://www.domain.name/rss.php" -f "{summary}|{link}" -k summary | /home/sweethome/parserss.sh | /home/sweethome/ttytter.pl -script
# new separator
IFS="|"
@cybermonde
cybermonde / lignecsv.html
Created March 25, 2014 15:30
Graphique avec Highcharts
<html>
<head>
<title>Graphique</title>
<script src="js/jquery-2.1.0.min.js"></script>
<script src="js/highcharts.js"></script>
<script src="js/modules/exporting.js"></script>
</head>
<body>
<div id="container" style="min-width: 600px; height: 700px; margin: 0 auto"></div>
<script>
<?php
/* mnoGoSearch-php-lite v.3.3.5
* for mnoGoSearch - free web search engine
* (C) 2001-2007 by Sergey Kartashoff <gluke@mail.ru>,
* mnoGoSearch Developers Team <devel@mnogosearch.org>
*/
if (!extension_loaded('mnogosearch')) {
print "<b>This script requires PHP 4.0.5+ with mnoGoSearch extension</b>";
<!--
This is the default template file for mnoGoSearch 3.3
(C) 1999-2000, mnoGoSearch developers team <devel@mnogosearch.org>
(C) 2000-2011 Lavtech.Com Corp
Please rename to search.htm and edit as desired.
See doc/msearch-templates.html for detailed information.
You may want to keep the original file for future reference.
#!/usr/local/mnogosearch/sbin/indexer -d
###########################################################################
# This is a sample indexer config file.
# To start using it please edit and rename to indexer.conf.
# You can also make this file executable and run it directly.
# You may want to keep the original indexer.conf-dist for future references.
# Use '#' to comment out lines.
# All command names are case insensitive (DBAddr=DBADDR=dbaddr).
# You may use '\' character to prolong current command to next line
@cybermonde
cybermonde / mysql_lower.sql
Created June 12, 2012 13:12
MySQL - changer la casse
-- changer la casse du champ "prenom" de la table "membre" en minuscules sauf la première lettre
-- exemple : LAURENT devient Laurent
UPDATE `membre` SET `prenom`=CONCAT(LEFT(`prenom`,1),LOWER(SUBSTRING(`prenom`, 2)))
-- http://www.cybermonde.org
@cybermonde
cybermonde / SimpleHTTPServer.py
Created March 27, 2012 17:47
Personnaliser le listing des fichiers de la PirateBox
"""Simple HTTP Server.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
__version__ = "0.6"
@cybermonde
cybermonde / piratebox.common
Created March 25, 2012 08:50
Personnaliser la page d'accueil de la PirateBox
#############################################################################
# PirateBox global config. /etc/init.d/piratebox setup to take effect
pb_ip="192.168.1.1"
pb_wireless_ssid="PirateBox - Share Freely"
pb_hostname="piratebox"
pb_usbdevice="/dev/sda1"
pb_usbmount="/mnt/usb"
pb_usbdir="$pb_usbmount/PirateBox"
pb_share="$pb_usbdir/Shared"