LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

Automated OpenBSD-STABLE build

Posted 10-08-2012 at 04:54 PM by rocket357 (Musings on technology, philosophy, and life in the corporate world)
Updated 10-08-2012 at 05:14 PM by rocket357 (refactoring?)

It's ugly. But it works.

Code:
#!/bin/sh

set -e

export LOGFILE=/var/log/build_stable.log
export ARCH=`machine`

# DEFAULT: BUILD -STABLE (UPGRADE TO LATEST -RELEASE FIRST!!)
export BUILDVER=OPENBSD_`uname -r | tr '.' '_'`

cat > ${LOGFILE} << EOF


STABLE BUILD - `date` - `uname -a`


EOF

echo "Updating Sources for ${BUILDVER}"
...
Member
Posted in Uncategorized
Views 399 Comments 0 rocket357 is offline
Old

-m recent --rdest or don't trust the man(page)

Posted 10-07-2012 at 12:35 PM by zhjim
Updated 10-07-2012 at 12:37 PM by zhjim

Looking for a way to block those 404 hoppers I match the outgoing packages from sport 80 for the string 404. Now that I have those classified I needed a way to block them when they would return. Normaly i would use the recent module for this. But as its a outgoing packet and recent normally uses the source ip I would block myself to come back in. But the man pages has the --rdest option which matches/saves on the destination ip. That would be cool but I would need it to block on the incoming package....
Senior Member
Posted in Uncategorized
Views 484 Comments 0 zhjim is offline
Old

The fork

Posted 10-07-2012 at 07:30 AM by Thor_2.0
Updated 10-07-2012 at 03:48 PM by Thor_2.0

hey there,
It's been ages since I posted something here, but, my view is that if and when someone posts anything, it'd better be worth posting. Do not waste anyone's time with drivel...so, I'm not about to waste your time...

The word anyone out there is scared of:

crash

...there, I scared you. Had one just this weekend. Arch update. Somehow the kernel didn't compile, somehow glibc didn't want to update, somehow some manual intervention had to...
Senior Member
Posted in Uncategorized
Views 493 Comments 0 Thor_2.0 is offline
Old

how to wake on lan?

Posted 10-06-2012 at 02:16 PM by ted_chou12

Shutdown is easy but wake up is hard, well, in terms of both ppl and machines. Shutdown goes from system to bios, which makes life so much easier, but to initiate the machine, it just needs that physical "touch" to push the system. In fact, there is a built-in capability in your motherboard bios called "wakeonlan" or wol for short. First, you need to go into your bios to turn it on, since the menu may differ from company to company, you have to sort this out on your own. Make...
Member
Posted in Uncategorized
Views 4533 Comments 2 ted_chou12 is offline
Old

MSSQL Tricks & Hints

Posted 10-04-2012 at 02:51 PM by NullTerminator
Updated 11-16-2012 at 01:40 PM by NullTerminator

Patching up leading zeroes
UPDATE TheTable
set FILE_NBR = replicate('0', 6-len(FILE_NBR) ) + FILE_NBR

Querying disk file sizes

use master

SELECT DB_NAME(DATABASE_ID) AS [DATABASE_NAME], name as FileName, Type_desc,
-- hmmmm 8k blocks?
CAST(( CAST(SIZE * 8 AS FLOAT) ) / 1024 AS VARCHAR) + ' MB' AS [SIZE],
CAST( (MAX_SIZE / 128) AS VARCHAR) + ' MB' AS [MAX_SIZE]
FROM SYS.MASTER_FILES

...
LQ Newbie
Posted in Uncategorized
Views 326 Comments 0 NullTerminator is offline

  



All times are GMT -5. The time now is 12:21 AM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration