[wellylug] If you are stuck for ideas for a lightning talk session
Hugh Davenport
hugh at davenport.net.nz
Thu Feb 13 16:52:19 NZDT 2014
well, for a one off, the alias would be longer, as you would have
to set the alias first ;)
On 2014-02-13 12:43, Brent Wood wrote:
> Hmm...
>
> For a below par round, all of these could be shortened considerably
> with a minor use of alias :-) Or is that cheating?
>
> Brent
>
> -------------------------
> FROM: Donovan Jones <lug at gamma.net.nz>
> TO: Brent Wood <pcreso at pcreso.com>; Wellington Linux Users Group
> <wellylug at lists.wellylug.org.nz>
> SENT: Thursday, February 13, 2014 9:37 AM
> SUBJECT: Re: [wellylug] If you are stuck for ideas for a lightning
> talk session
>
> I cant resist a bit of golf:
>
> dpkg --get-selections | awk '{print $1}' | sort -R | head -1
>
> Donovan
>
> On Thu, Feb 13, 2014 at 6:23 AM, Brent Wood <pcreso at pcreso.com>
> wrote:
>
>> And a wellylug equivalent to the perlmongers solution by Grant for
>> selecting a random package on a Debian based Linux system:-)
>>
>> dpkg --get-selections | tail -n `rand -M `dpkg --get-selections | wc
>> -l`` | head -1
>>
>> I figured you should be able to do this with common Linux commands,
>> without resorting to a programming or scripting language.
>> This is one way...
>>
>> If I thought about it a bit more I figure awk could probably do
>> this a bit more elegantly, if not even more arcanely!.
>>
>> Brent
>>
>> -------------------------
>> FROM: Grant McLean <grant at mclean.net.nz>
>> TO: wellylug at lists.wellylug.org.nz
>> SENT: Wednesday, February 12, 2014 3:50 PM
>> SUBJECT: Re: [wellylug] If you are stuck for ideas for a lightning
>> talk session
>>
>> Presumably the WellyLUG session on Monday will take a relaxed
>> approach
>> to the five minute time limit (as the Perl Mongers did last night)
>> so
>> the dire warnings in that page can be ignored.
>>
>> Also, I'm guessing that people with slides will either bring their
>> own
>> laptop or put them on a web page. Bringing PDF/OpenOffice/HTML
>> files on
>> a USB stick could also work.
>>
>> The suggestion on our page that people might randomly select a Perl
>> module to talk about could be adapted to "randomly select an OS
>> package". For example on a debian-based distro, this 1-liner will
>> randomly select one of the packages you have installed:
>>
>> dpkg --get-selections |
>> perl -E '@p = map { s/s.*//r } <>; say $p[rand(+ at p)]'
>>
>> See you Monday.
>>
>> Cheers
>> Grant
>>
>> On Wed, 2014-02-12 at 15:14 +1300, Hugh Davenport wrote:
>>> Graciously stolen from Wellington Perl Mongers, who had a
>>> lightning session last night.
>>>
>>> http://wellington.pm.org/lightning_talks.html [1]
>>>
>>> I shall add this to the WellyLUG page at some point.
>>>
>>> Let me know if you get a spark of ideas for a talk next monday!
>>>
>>> Cheers,
>>>
>>> Hugh
>>>
>>>
>>
>> --
>> Wellington Linux Users Group Mailing List:
>> wellylug at lists.wellylug.org.nz
>> To Leave: http://lists.wellylug.org.nz/mailman/listinfo/wellylug
>> [2]
>>
>> --
>> Wellington Linux Users Group Mailing List:
>> wellylug at lists.wellylug.org.nz
>> To Leave: http://lists.wellylug.org.nz/mailman/listinfo/wellylug
>> [2]
>
>
>
> Links:
> ------
> [1] http://wellington.pm.org/lightning_talks.html
> [2] http://lists.wellylug.org.nz/mailman/listinfo/wellylug
More information about the wellylug
mailing list