Skip to content

Instantly share code, notes, and snippets.

@mattmils
mattmils / 1_Instructions.md
Created February 5, 2012 09:49 — forked from Daniel15/1_Twitter autoresponder bot.md
Twitter autoresponder bot

Twitter autoresponder bot

By Daniel15 (dan.cx) This is a very simple Twitter autoresponder bot. It requires PECL OAuth extension to be installed (run "pecl install oauth", or if on Windows, grab php-oauth.dll. If using cPanel you can install it via WHM). The authentication is designed for command-line usage, it won't work too well via a web browser. You'll have to sign up for an application on Twitter's site to get the consumer key and secret.

Could be modified to be more advanced (match regular expressions to answer questions, etc.)

@mattmils
mattmils / Xorg.0.log
Created October 16, 2011 12:50
Xorg logs
[ 15.143]
X.Org X Server 1.11.1
Release Date: 2011-09-24
[ 15.143] X Protocol Version 11, Revision 0
[ 15.143] Build Operating System: Linux 3.0-ARCH i686
[ 15.143] Current Operating System: Linux htpc 3.0-ARCH #1 SMP PREEMPT Fri Oct 7 10:11:05 UTC 2011 i686
[ 15.143] Kernel command line: root=/dev/disk/by-uuid/4dd4ddd9-acd9-416b-b672-d6546ead7891 ro vga=773
[ 15.143] Build Date: 10 October 2011 08:49:15AM
[ 15.143]
[ 15.143] Current version of pixman: 0.22.2
@mattmils
mattmils / gist:1237181
Created September 23, 2011 11:51
Woot
1 [main] INFO it.unimib.ing.antsim.manager.EnvironmentManager - Created scent 'Foglia'.
2 [main] INFO it.unimib.ing.antsim.manager.EnvironmentManager - Food 'Foglia' created with scent Foglia.
5 [main] INFO it.unimib.ing.antsim.entity.Environment - Creato nodo 'Node' nell'ambiente 'SWAMPS'.
5 [main] INFO it.unimib.ing.antsim.entity.Environment - Creato nodo 'Node2' nell'ambiente 'SWAMPS'.
14 [main] INFO it.unimib.ing.antsim.entity.Environment - Route Route created between nodes Node and Node2. Lenght: 10. One way: true
14 [main] INFO it.unimib.ing.antsim.entity.Environment - Added FoodSource to node Node
16 [main] INFO it.unimib.ing.antsim.entity.topography.Node - Node: Food added -> 'Foglia' Amount: 1
18 [main] INFO it.unimib.ing.antsim.entity.topography.Node - Node: Added scent drop of Foglia at position 0 with strenght: 10
18 [main] INFO it.unimib.ing.antsim.entity.topography.Route - Route: Added scent drop of Foglia at position 1 with strenght: 5
18 [main] INFO it.unimib.ing.antsim.entity.topography.Route
@mattmils
mattmils / raidboss
Created July 29, 2011 23:32
Raidboss Script
<?php
// Anti Hacking Measure
if (!defined('REVOLT'))
{
exit();
}
if (!$user->data['is_registered'])
{
@mattmils
mattmils / gist:1105430
Created July 25, 2011 22:36
Rematori LTSA Originale
// Matteo Rolla
// matr. 730928
const NUM = 2
range Ids = 1..NUM
const FALSE = 0
const TRUE = 1
range BOOL = FALSE..TRUE
@mattmils
mattmils / gist:1105423
Created July 25, 2011 22:34
Rematori LTSA
// Matteo Rolla
// matr. 730928
const REM = 3
const NUM = 2
range Ids = 1..NUM
const FALSE = 0
const TRUE = 1
range BOOL = FALSE..TRUE
// Matteo Rolla
// matr. 730928
import java.util.ArrayList;
import java.util.List;
public class Rolla730928 {
public static final int NUM = 2;
public static final int NUM_REMATE = 3;
//Marzorati Claudio
//726748
const False = 0
const True = 1
range Boolean = False..True
const R = 3
const N = 2
//Marzorati Claudio
//726748
public class Squadra {
private static int atleti=3,id;
public static void main(String[] args) {
Allenatore a = new Allenatore();
@mattmils
mattmils / gist:1081528
Created July 13, 2011 22:57
Palestra LTS
const NU = 2
const ND = 2
const NV = 2
const UOMO = 0
const DONNA = 1
const VIP = 2
range TYPE = UOMO..VIP
const FALSE = 0