LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

Scraping the barrel....

Posted 05-29-2011 at 09:03 AM by peonuser
Updated 05-31-2011 at 09:22 AM by peonuser

Some code snippets to play with:

#1
----------------------------------------------------------------
Code:
#!/bin/sh
# Determine the current U.S. Terrorist Threat Advisory level, and output it to
# a serial device
#
# Written by Matt Mets in 2008
# Modified by Computothought in 2011
# This code is released into the public domain, attribution is appreciated

#### Configuration Options ##############################################
...
Member
Posted in Uncategorized
Views 373 Comments 0 peonuser is offline
Old

Great Debian Community

Posted 05-29-2011 at 05:32 AM by alan_ri (Thoughts and other things about Linux, GNU, FOSS etc.)
Updated 01-27-2012 at 07:43 AM by alan_ri

The story goes like this;

There will be DebConf 11 in Banja Luka (Bosnia and Herzegovina) from 24th to 30th July 2011. It's actually very close to where I live, but the fact is that economic situation in my country is bad, lot of people are out of work or not being paid for their work, etc. Basically, I wasn't sure will I be able to pay for whatever is necessary to be at DebConf 11 by myself, so I decided to apply for sponsored registration which is defined as follows; [QUOTE][B]Sponsored...
Senior Member
Posted in Uncategorized
Views 632 Comments 0 alan_ri is offline
Old

Creating a patch . . .

Posted 05-28-2011 at 01:03 PM by Lufbery (The Slacker's Blog)

Hi all,

I thought I'd share a procedure for making patches that I learned.

Starting with information from a mailing list or newsgroup for a patch, copy the relevant information to a text file and give it a descriptive name with a .patch suffix.
  1. tar -xf file.tar.bz2
  2. mv file file.orig
  3. tar -xf file.tar.bz2
  4. cd file
  5. patch -Np1 ../file.patch # Applies patch from newsgroup or other source with offsets
  6. cd ..
  7. diff -Naur file.orig file > file.new.patch
...
Senior Member
Posted in Uncategorized
Views 583 Comments 0 Lufbery is offline
Old

java in debian 6

Posted 05-28-2011 at 10:40 AM by sumeet inani

Code:
apt-get install default-jre icedtea6-plugin
involves following files
default-jre_1.6-40_i386.deb  default-jre-headless_1.6-40_i386.deb
icedtea6-plugin_6b18-1.8.3-2_i386.deb
Check following page in your browser --> http://www.java.com/en/download/testjava.jsp

Tested in opera 11.11 , iceweasel 3.5.16
Member
Posted in Uncategorized
Views 2300 Comments 1 sumeet inani is offline
Old

dumping a file in hexadecimal

Posted 05-28-2011 at 04:03 AM by neonsignal

There are several ways to dump a binary as hex values. The following examples generate single byte hex values with no addresses (which can be useful when generating array initialization code).

There is the program od:
Code:
od -A n -t x1 file.bin
The '-A n' turns off the addresses, and the '-t x1' sets it to single byte hex formatting.

There is also the program hexdump, which is more flexible in the formatting of the results:
Code:
hexdump
...
Senior Member
Posted in Uncategorized
Views 259 Comments 0 neonsignal is offline

  



All times are GMT -5. The time now is 08:00 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