What's Here?
- Members: 306,779
- Replies: 841,147
- Topics: 140,540
- Snippets: 4,465
- Tutorials: 1,166
- Total Online: 1,567
- Members: 124
- Guests: 1,443
|
's Contributions
|
Below are the tutorials, code snippets, and resources has submitted to dream.in.code. For more information on Kudos and contributing to dream.in.code visit: http://home.dreamincode.net/?p=about#kudos.
|
|
Tutorials
in (Last Comment: , Views: 1,064)
in (Last Comment: , Views: 3,249)
in (Last Comment: , Views: 3,198)
in (Last Comment: , Views: 2,908)
in (Last Comment: , Views: 4,337)
|
|
Code Snippets
|
 |
|
|
Submitted: January 4, 2008
Views: 2062
I wrote this for someone who wanted to learn Bash, so there are more comments than I usually put in my scripts.
This script keeps multiple archives of a single directory.
Ex. Say you want to backup ~/stuff. ~/stuff changes a lot, and is important, so you want to back it up (and you want to keep revisions of it to prevent a mistake overwriting the good backups. Now unfortunately, you don't have an infinite hard drive, so you're only going to keep 5 revisions of ~/stuff.
This script lets you do that. When 5 revisions exist, and you want to make another backup, the oldest revision is deleted to make space.
|
|
|
 |
|
|
Submitted: January 4, 2008
Views: 1716
This script counts the number of files in a directory. If the number of files exceeds a certain value, delete the oldest until the value is met.
Ex. 10 files are in a directory, 5 new files are added. If the limit value is set to be 10, the 5 oldest files will be deleted.
|
|
|
 |
|
|
Submitted: September 13, 2009
Views: 88
Simple GPA calculator using the console.
|
|
|
 |
|
|
Submitted: January 4, 2008
Views: 1265
A simple backup script written in Bash. Generates a folder with the day's date, and fills it with .tar.bz2 archives of whatever folders you specify.
|
|
|
 |
|
|
Submitted: August 19, 2008
Views: 1500
This is a simple script that enables/disables an iptables firewall.
When the firewall is enabled all packets except for those belonging to normal requests will be dropped.
This script must be run as root.
|
|
|
 |
|
|
Submitted: June 24, 2008
Views: 2667
This bit of code loads an uncompressed TGA image into a data structure (which can then be used as a texture in OpenGL).
|
|
|
 |
|
|
Submitted: December 10, 2008
Views: 1303
A very simple Tic-Tac-Toe game using Common Lisp and the console.
|
|
|
| |