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-110
create/login
options
RECENT
STUBS/REQUESTS
STARRED
ACTIVITY
ADD
recent in
bash
bash
bash
linux
sergio
Permanent settings for network interface
permalink
related
edit
fork
history
bash
linux
file
linux
szaki
Recursively chmod files only
permalink
related
edit
fork
history
bash
linux
file
linux
szaki
Recursively chmod directories only
permalink
related
edit
fork
history
bash
directory
size
linux
Jahufar
Display directory size
permalink
related
edit
fork
bash
accounts
linux
password
user
Jahufar
Disable password change for linux user account
permalink
related
edit
fork
history
bash
linux
time
timezone
linux
centos
Jahufar
Change System TimeZone (without rebooting your server)
permalink
related
edit
fork
history
bash
linux
convert
flac
mp3
aaron
Convert FLAC files in a directory to MP3
permalink
related
edit
fork
history
bash
solr
utility
graham.poulter
Command-line interface to the Apache Solr REST API
permalink
related
edit
fork
history
bash
reddit
karma
68-110-10-9
Check your reddit karma from the command line
permalink
related
edit
fork
bash
progress
69-246-119-249
Progress bar in a terminal
permalink
related
edit
fork
bash
ini
config
triacontahedron
Simple INI file parser (got from blog of Andrés J. Díaz)
permalink
related
edit
fork
bash
c
cpp
newline
csource
subdirectories
bzimage
add a new line at end of a text file in every C source
permalink
related
edit
fork
c
cpp
bash
symbol
header
c
subdirectories
bzimage
find C symbols recursively into all subdirs
permalink
related
edit
fork
bash
svn
bash
subdirectories
svn
bzimage
remove all .svn directory in all subdirectory
permalink
related
edit
fork
history
bash
linux
kill
process
70-162-80-33
Force-kill a process in linux
permalink
related
edit
fork
history
1
2
3
next
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
+
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
+