Skip to content

Instantly share code, notes, and snippets.

View danopia's full-sized avatar

Daniel Lamando danopia

View GitHub Profile
if ( $row['user_allow_viewonline'] )
{
$logged_visible_online++;
}
else if ( $row['user_allow_viewonline'] )
{
$logged_visible_online++;
}
// huh? i think fail.
# $OpenBSD: ntpd.conf,v 1.7 2004/07/20 17:38:35 henning Exp $
# sample ntpd configuration file, see ntpd.conf(5)
# Addresses to listen on (ntpd does not listen by default)
listen on *
#listen on 127.0.0.1
#listen on ::1
# sync to a single server
#server ntp.example.org
def create
@bit = Bit.new(params[:bit])
@bit.IP = request.remote_ip
respond_to do |format|
if @bit.save
flash[:notice] = 'Bit was successfully created.'
#cookies[:bitbin] = { :value => @bit.id.to_i, :expires => Time.now + 3600}
format.html { redirect_to(@bit) }
format.xml { render :xml => @bit, :status => :created, :location => @bit }
#!/bin/sh
echo "Downloading c-ares"
wget -nv http://c-ares.haxx.se/c-ares-1.6.0.tar.gz
echo ""
echo "Downloading cURL"
wget -nv http://curl.haxx.se/download/curl-7.19.5.tar.gz
echo ""; echo ""
So. Here's the story of a duck. http://danopia.net/galleries/DSCF5424
<~baddog> DUCKEH
<~baddog> omnomnom
When our story begins, he was biting itself. http://danopia.net/galleries/DSCF5432
<~baddog> lol
Then the camel started tap dancing. http://danopia.net/galleries/DSCF5440
<~baddog> o.o
And he swam away from it. http://danopia.net/galleries/DSCF5494
* ~baddog clicks, expecting a scared looking duck
<~baddog> aw.
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.023 ms
--- 127.0.0.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.023/0.023/0.023/0.000 ms
FRI JUN 26 19:02:45 2009
WanMgr reports DSL is Down
FRI JUN 26 19:01:10 2009
WanMgr reports DSL is UP
FRI JUN 26 19:00:49 2009
WanMgr reports DSL is Down
FRI JUN 26 19:00:44 2009
WanMgr reports DSL is UP
FRI JUN 26 19:00:44 2009
WanMgr reports DSL is Down
[18:00:36] <danopia`> ~calc 90 degrees F to C
[18:00:37] <@[CC]> Invalid Calculation.
[18:00:43] <danopia`> ~calc 90 degrees F to degrees C
[18:00:44] <@[CC]> Invalid Calculation.
[18:01:01] <danopia`> ~calc 90 Fahrenheit to Celsius
[18:01:02] <@[CC]> Invalid Calculation.
[18:01:11] <danopia`> ~calc 90 degreesFahrenheit to degrees Celsius
[18:01:12] <@[CC]> Invalid Calculation.
[18:01:15] <danopia`> ~calc 90 degrees Fahrenheit to degrees Celsius
[18:01:15] <@[CC]> Invalid Calculation.
@danopia
danopia / gist:140267
Created July 3, 2009 19:06
Urban Terror message sender
#!/usr/bin/env /usr/bin/ruby
###############################################################################
################# Urban Terror Message Spammer for EighthBit ##################
###############################################################################
#####################
### Configuration ###
#####################
#!/usr/bin/env /usr/bin/ruby
###############################################################################
################# Urban Terror Message Spammer for EighthBit ##################
###############################################################################
#####################
### Configuration ###
#####################