- Tim Jones homepage (author of primary textbook, note that book code is only on cdrom with book)
- GNU/Linux Application Programming (1st ed.) by Tim Jones (much of first edition of Jones text on Google Books)
- Beginning Linux Programming (4th ed.) by Matthew and Stones (alternative text, can download code from this site)
- free download of Beginning Linux Programming (4th ed.)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct StatStuff | |
{ | |
int pid; // %d | |
char comm[256]; // %s | |
char state; // %c | |
int ppid; // %d | |
int pgrp; // %d | |
int session; // %d | |
int tty_nr; // %d | |
int tpgid; // %d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Syn flood program in python using raw sockets (Linux) | |
http://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/ | |
Silver Moon (m00n.silv3r@gmail.com) | |
''' | |
# some imports | |
import socket, sys | |
from struct import * | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <QGlobal.h> | |
#include <QTime> | |
int QMyClass::randInt(int low, int high) | |
{ | |
// Random number between low and high | |
return qrand() % ((high + 1) - low) + low; | |
} | |
// Create seed for the random |
http://www.dreamincode.net/forums/topic/78802-martyr2s-mega-project-ideas-list/
Reverse a String Enter a string and the program will reverse it and print it out.
Pig Latin Pig Latin is a game of alterations played on the English language game. To create the Pig Latin form of an English word the initial consonant sound is transposed to the end of the word and an ay is affixed (Ex.: "banana" would yield anana-bay). Read Wikipedia for more information on rules.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table border="1"> | |
<th><td>File</td><td>Size</td></th> | |
<?php | |
$files = scandir("."); | |
$i = 0; | |
foreach($files as $entry) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <stdexcept> | |
#include <type_traits> | |
// The following is evil template "black magic". Only because we write it instead | |
// of the C++ standards committee. This first section is effectively a C++11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
</head> | |
<body> | |
<p><textarea rows="15" cols="100" id="src"></textarea></p> | |
<p><textarea rows="15" cols="100" id="dest" dir="rtl"></textarea></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// HTTP forward proxy server that can also proxy HTTPS requests | |
// using the CONNECT method | |
// requires https://github.com/nodejitsu/node-http-proxy | |
var httpProxy = require('http-proxy'); | |
var url = require('url'); | |
var net = require('net'); | |
var http = require('http'); |
NewerOlder