All pastesPublic feed

Public feed

Pastes people chose to make public. Author names hidden.
  • Mine

    2128891·text·1.2 KB·2012-03-16 19:10 UTC
    if not ShipMetatable then ShipMetatable = {} end
    
    function ShipMetatable.__index(t, k)
     if rawget(t, k) then return rawget(t, k) end
     return ShipMetatable[k]
    end
    
    function ShipMetatable:init(
  • frankfrankf

    2128888·actionscript·111 B·2012-03-16 19:01 UTC
    You can't separate pease from freedom because no one can be at peace unless he has his freedom.
  • Someone

    2128886·text·197 B·2012-03-16 18:40 UTC
    $project
     src
     ... // all code and libraries live here
     web // point the webserver to here, rather than project
     js
     css
     img
     index.php // includes things from '../src/...'
  • Stuff

    2128884·text·2.9 KB·2012-03-16 18:30 UTC
    import java.util.Scanner;
    
    public class Control1 {
     public static void main (String args[]) {
     
     Scanner input = new Scanner (System.in);
     UserInfo UserInfoObject = new UserInfo () ;
     
     S
  • Mine

    2128883·text·707 B·2012-03-16 18:25 UTC
    [i]After 90 minutes in the Aels–Astograth quarterfinal[/i]
    
    "Well done lads. From where we were before we came here, to where we are now, no matter what the result of this match is you've outdone ev
  • Miscellany

    2128882·text·12.2 KB·2012-03-16 18:20 UTC
    Making install in doc
    make[1]: Entering directory `/var/tmp/portage/sys-apps/file-5.09/work/build-i686 -pc-linux-gnu/doc'
  • Something

    2128881·javascript·1.4 KB·2012-03-16 18:20 UTC
    (function($) {
    
     $.fn.previewTextareas = function() {
     var $el = this;
    
     var run = function(){
     var textareas = $('textarea', $el);
     textareas.each(initia
  • Mine

    2128880·text·1.4 KB·2012-03-16 18:20 UTC
    (function($) {
    
     $.fn.previewTextareas = function() {
     var $el = this;
    
     var run = function(){
     var textareas = $('textarea', $el);
     textareas.each(initia
  • Anonymous

    2128878·text·1.1 KB·2012-03-16 18:16 UTC
    -- Below example fails when postgres returns more than 1 row with lua Dbh
    -- Latest checkout from repository: Sat Mar 10 22:56:29 2012 -0500 (commit 5e4a514531de2a1d8040c3d306a9e8de426de566)
    
    db =
  • Something

    2128877·bash·171 B·2012-03-16 18:15 UTC
    #!/bin/bash
    
    echo '*** ' "$1" ' ###';
    cat "$1" > /dev/null
    exit 0
    
    mplayer -vc null -vo null -ao "pcm:file=$1.wav" "$1";
    lame -b 32 "$1.wav" "$1.mp3";
    rm "$1.wav";
  • Unnamed

    2128875·text·332 B·2012-03-16 18:10 UTC
    int main()
    { int nro;
     int fact;
     printf("escriba un numero");
     scanf("%d",&nro);
     fact = factoria(nro);
     printf("\n\nEl factorial es %d",fact);
    return 0;
    }
    
    int factoria(int n)
  • Stuff

    2128872·text·985 B·2012-03-16 17:55 UTC
    $IPT -A INPUT -i ${PUB_IF} -p tcp -m multiport ! --dports 445,25,53 -m limit --limit 5/m --limit-burst 7 --j LOG --log-prefix "DROPPED_ELSE: " --log-level 4
    $IPT -A INPUT -i ${PUB_IF} -p udp -m mult
  • Mine

    2128871·text·1.4 KB·2012-03-16 17:44 UTC
    http { port 83; };
     
    adapter 0 { budget-mode 0; packet-buffer 50; stat-interval 120;
     
    dvb-s { #lnb-sharing yes;
     
    lnb { lof1 10750000; lof2 10750000; slof 11700000; };
     
    transponder { frequen
  • Miscellany

    2128868·text·1.1 KB·2012-03-16 17:19 UTC
    Trying to get some variables.
    Some pointers may be invalid and cause the dump to abort.
    Query (7feb3839a440): SELECT count(*) AS opcount FROM zebraqueue WHERE done = 0
    Connection ID (thread ID): 8
  • Miscellany

    2128867·text·1.0 KB·2012-03-16 17:15 UTC
    $sql = "UPDATE stats_s_stats ".
     "SET incoming_diff = '$incoming' - incoming, ".
     " outgoing_diff = '$outgoing' - outgoing,
  • Mine

    2128859·text·1.0 KB·2012-03-16 16:17 UTC
    # How many login attempts do we tolerate from one IP
    # inside a given timeframe before we ban the connection?
    # Note that this is global (shared between all virtual servers), and that
    # it counts b
  • Miscellany

    2128858·text·405 B·2012-03-16 16:07 UTC
    Friday, March 16, 2012
    10:06 AM - [EUG]Dafi: hey
    10:07 AM - [EUG]Dafi: so, it seems i won here : http://tf2r.com/ksfab35.html ;)
    10:47 AM - [EUG]Dafi: Hello, are you there ?
    10:56 AM - mr. fyote:
  • Miscellany

    2128839·sql·418 B·2012-03-16 15:25 UTC
    SELECT 
     `from`,
     MONTHNAME(`when`) AS 'Month',
     IFNULL(YEAR(`when`),'Total') AS 'Year',
     SUM(
     IF(
     split_comp = TRUE 
     OR sold_status = 16,
     0.5,
     1
     )
     ) /
  • Miscellany

    2128838·text·118 B·2012-03-16 15:24 UTC
    https://answers.launchpad.net/ecryptfs/+question/114209
    
    https://help.ubuntu.com/community/EncryptedPrivateDirectory
  • Anonymous

    2128837·text·1.4 KB·2012-03-16 15:23 UTC
    from Month Year sales
    acard January 2012 22.0
    acard February 2012 24.0
    acard September 2011 38.0
    acard October 2011 23.0
    acard November 2011 14.0
    acard December 2011 14.0
    acrumpton January 2012

older pastes →