Peer-reviewed code snippets that anyone can edit
follow refactory on twitter
blog
feedback
A wiki for useful code snippets
Bugs? Suggestions?
38-107-191-113
create/login
options
RECENT
STUBS/REQUESTS
STARRED
ACTIVITY
ADD
related to
Array.make - transforms list-like data structures into native arrays
bash
linux
sh
erezahala
XML parser for specific requested tag data value
permalink
related
edit
fork
history
bash
directory
find
Zen SoSo
Directory list
permalink
related
edit
fork
bash
linux
file
70-162-80-33
List open files
permalink
related
edit
fork
history
awk
bash
apache
log
70-162-80-33
Print list of unique IP addresses in Apache access log
permalink
related
edit
fork
history
bash
directory
disk
jerome.abela
List biggest files and du directories to find why a disk is full
permalink
related
edit
fork
history
bash
linux
memory
70-162-78-27
List motherboard's supported memory types and max supported size
permalink
related
edit
fork
history
bash
dpkg
jerome.abela
List installed debian packages and their installed size
permalink
related
edit
fork
history
public snippets
This is a community-maintained collection of reusable code snippets.
Contribute something
without logging in, or improve existing contributions. All code is dedicated to the public domain unless otherwise specified.
stats
/
top contributers
Languages
highlight
sort:
alpha
/
pop
show:
top
/
all
bash
ksh
+
shell
+
sed
+
linux
+
awk
+
c
+
cpp
+
svn
+
sh
+
4d
+
actionscript
+
actionscript3
+
apl
+
assembly
+
awk
+
bash
-
bat
+
batch
+
brainfuck
+
c
+
cake
+
cakephp
+
cmd
+
cocoa
+
commonlisp
+
cpp
+
csharp
+
css
+
curl
+
delphi
+
ecmascript
+
ecmascript5
+
elisp
+
erlang
+
fortran
+
haskell
+
html
+
j
+
java
+
javascript
+
javascript16
+
javascript17
+
javascript18
+
jquery
+
js
+
ksh
+
linux
+
lisp
+
lua
+
modula-3
+
mysql
+
net
+
obj-c
+
octave
+
perl
+
php
+
php4
+
php5
+
powershell
+
propel
+
python
+
r
+
rebol
+
regexp
+
ruby
+
scheme
+
sed
+
sh
+
shell
+
smalltalk
+
svn
+
svn15
+
swing
+
symfony
+
symfony12
+
tcl
+
uikit
+
vala
+
vb
+
vb60
+
vba
+
vbscript
+
vim
+
visualbasic
+
z80
+
Keywords
highlight
sort:
alpha
/
pop
show:
top
/
all
+
accounts
+
apache
+
bash
+
bzip2
+
c
+
centos
+
config
+
console
+
convert
+
csource
+
directory
+
disk
+
dpkg
+
extension
+
extensions
+
file
+
filename
+
files
+
find
+
flac
+
gzip
+
header
+
http
+
ini
+
ip
+
karma
+
kill
+
libnotify-bin
+
linux
+
locate
+
log
+
md5
+
memory
+
monitor
+
mp3
+
network
+
newline
+
notifications
+
notify-osd
+
password
+
pipe
+
process
+
progress
+
reddit
+
rename
+
request
+
reset
+
size
+
softlink
+
solaris
+
solr
+
sort
+
spaces
+
subdirectories
+
svn
+
symbol
+
tar
+
terminal
+
time
+
timezone
+
transfer
+
ubuntu
+
url
+
user
+
utility
+
web
+
xargs
+