Skip to content

Instantly share code, notes, and snippets.

cybermonde.org cybermonde

Block or report user

Report or block cybermonde

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cybermonde
cybermonde / parserss.sh
Created Feb 19, 2015
parse RSS file to tweet new entries
View parserss.sh
#!/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 Mar 25, 2014
Graphique avec Highcharts
View lignecsv.html
<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>
View index.php
<?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>";
View search.htm
<!--
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.
View indexer.conf
#!/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 Jun 12, 2012
MySQL - changer la casse
View mysql_lower.sql
-- 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 Mar 27, 2012
Personnaliser le listing des fichiers de la PirateBox
View SimpleHTTPServer.py
"""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 Mar 25, 2012
Personnaliser la page d'accueil de la PirateBox
View piratebox.common
#############################################################################
# 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"
You can’t perform that action at this time.