My Recent Pastes (628 and counting)

All Pasties (over 628 and counting)

Pages: 1 38 39 41

Below are summaries of the 15 most recent pasties by Allan Odgaard.

June 21, 2006
10:43PM EDT
by Allan Odgaard

1
2
3
4
5
/tmp/foo.sh
argv[0]: "/tmp/showargs"
argv[1]: "-1"
argv[2]: "-2"
argv[3]: "-3"

June 21, 2006
4:06PM EDT
by Allan Odgaard

1
2
3
echo >/tmp/tst.sh '#!/usr/bin/printf foo bar'
chmod a+x /tmp/tst.sh
/tmp/tst.sh

June 20, 2006
2:49PM EDT
by Allan Odgaard

1
2
3
4
5
<html>
        <?php
                $str = <<<HTML
                <script type="text/javascript" charset="utf-8">
                        function function_name (first_argument)

June 20, 2006
9:49AM EDT
by Allan Odgaard

1
2
3
4
5
str1 = "foo"
str2 = str1.dup
a1 = [ str1 ]
a2 = [ str2 ]
p a1.hash #=> 876516205

June 20, 2006
9:47AM EDT
by Allan Odgaard

1
2
3
4
5
str1 = "foo"
str2 = str1.dup
a1 = [ str1 ]
a2 = [ str2 ]
p a1.hash == a2.hash #=> true

June 19, 2006
6:31PM EDT
by Allan Odgaard

1
2
3
4
5
Title: Blogging From TextMate

Here is a direct link to an 8 minute long [screencast which shows what the Blogging bundle can do][screencast] (30 MB.)

✂------✂------✂------✂------✂------✂------✂------✂------✂------✂------

June 19, 2006
6:24PM EDT
by Allan Odgaard

1
2
3
4
5
To allow the use of $TMPDIR:

      tempfoo=`basename $0`
      TMPFILE=`mktemp -t ${tempfoo}` || exit 1
      echo "program output" >> $TMPFILE

June 19, 2006
6:20PM EDT
by Allan Odgaard

1
2
3
4
5
HISTORY
     A mktemp utility appeared in OpenBSD 2.1.  This implementation was writ-
     ten independently based on the OpenBSD man page, and first appeared in
     FreeBSD 2.2.7.  This man page is taken from OpenBSD

June 19, 2006
6:18PM EDT
by Allan Odgaard

1
2
3
4
5
If the -t prefix option is given, mktemp will generate an template string
based on the prefix and the TMPDIR environment variable if set.  The
default location if TMPDIR is not set is /tmp.  Care should be taken to
ensure that it is appropriate to use an environment variable potentially
supplied by the user.

June 19, 2006
1:07PM EDT
by Allan Odgaard

1
2
3
4
5
<title>Ruby doc for sort</title>
<script>function ri (arg) {
var res = TextMate.system("ri -Tf html '" + arg + "'", null).outputString;
document.getElementById("result").innerHTML = res;
window.location.hash = "result";

June 19, 2006
10:19AM EDT
by Allan Odgaard

1
2
3
4
5
; <<>> DiG 9.2.2 <<>> www.gnusolaris.org
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53448

June 18, 2006
10:32PM EDT
by Allan Odgaard

1
## History

June 18, 2006
10:29PM EDT
by Allan Odgaard

1
Title: Pasting Services

June 18, 2006
2:37PM EDT
by Allan Odgaard

1
2
3
4
5
      def distance_of_time_in_words(from_time, to_time = 0, include_seconds = false)
        from_time = from_time.to_time if from_time.respond_to?(:to_time)
        to_time = to_time.to_time if to_time.respond_to?(:to_time)
        distance_in_minutes = (((to_time - from_time).abs)/60).round
        distance_in_seconds = ((to_time - from_time).abs).round

June 18, 2006
12:55PM EDT
by Allan Odgaard

1
2
3
for (( i = 0; i < 10; i++ )); do
        hardcore_test &
done

Next page

Previous page