Playgrounds
Snippets
Developers
Compiler
All
ActionScript
Ajax
AngularJS
Apache
AppleScript
ASP.NET
Bash
C
C#
C++
Coffee
CoffeeScript
ColdFusion
Command
CSS
Delphi
Django
ES6
GLSL
Grunt
Gulp
HAML
Haskell
HTML
iOS
Jade
Java
JavaScript
jQuery
JSX
Less
LUA
MDX
MySQL
Objective
Other
Pascal
Perl
PHP
Plain text
PowerShell
Processing
Progress
Prolog
Pseudocode
Python
Rails
RegExr
Ruby
SASS
Scala
Scheme
SCSS
SmallBASIC
Smarty
SQL
Stylus
SVG
Swift
TypeScript
VHDL
X++
XHTML
XML
Xojo
XSLT
New snippet
New playground
Sign up
Login
Upload
Playgrounds
Snippets
Developers
Sign up
Login
Codepad is a place for developers to share code snippets (PHP, Java, Bash, C, C++, Python and more). Create your HTML, CSS and JS Demos.
Sign up
Learn more
Please
Login
or
Register
arnel
46
Followers
231
Snippets
Snippets
Collections
Newest
Oldest
Popular
Most comments
Most views
Jumping to the Finder location in Terminal
Bash
3
3
615
get youtube live stream-url livestreamer
Bash
2
2
2029
Find and replace
Other
2
2
1020
Starting the web server
PHP
1
0
748
Find local network devices using ping
Bash
1
0
811
fibonacci stage 1 spiral
TypeScript
1
2
963
Launch Sublime Text from the Mac OSX Terminal
Bash
1
3
1510
webkit2png
Python
1
0
914
Use Apachetop To Monitor Web Server Traffic In Real Time
Other
1
9
724
How to fix (Wordpress asking for FTP Credentials)
Other
1
8
977
python Simple HTTP Server
Python
0
1
937
wp latest tar
Bash
0
0
740
Generate password
Bash
0
1
797
Install font cli
Bash
0
0
787
Search Gmail certain period
Other
0
0
838
Include external files, but not process them
Less
0
0
1190
Brew UpdateUpgradeCleanupDoctor
Bash
0
0
858
Alias openssl grep xFiles
Bash
0
1
790
Writes clamp.json
Bash
0
0
736
Generate DMG-images for OS X app
Bash
0
2
747
Creating video with single JPG + MP3
Bash
0
0
835
Wget Download a working local copy of a webpage
Bash
0
0
836
Wget downloading an Entire Web Site
Bash
0
0
954
gzip .htaccess
Apache
0
1
905
404
Apache
0
0
896
301
Apache
0
0
867
logout .htpasswd
Apache
0
0
953
Creates a new .htpasswd
Apache
0
0
863
Find your IP Address
Bash
0
0
792
cli caffeine
Bash
0
0
774
Generate checksum of file with openssl
Bash
0
0
985
Touch multiple items
Bash
0
0
803
How to Completely Remove Apps
Bash
0
1
814
Renaming folders, files and subfolders
Bash
0
0
783
flush bash history
Bash
0
0
825
Get svn remote repository URL
Bash
0
0
562
empty trash
Bash
0
0
615
Add a File Extension to a Group of Files
Bash
0
2
681
The ‘r’ is for ‘raw’
Bash
0
0
569
Examples of README
Objective
0
2
573
Global Git ignore
Bash
0
3
864
log last 5 commit in current svn dir
Bash
0
2
569
Append to .bash_profile and Update
Bash
0
2
737
BEM.
Bash
0
0
782
Google Chrome Discover USB devices
Bash
0
1
629
Create .html of everything with QuickLook
Bash
0
2
597
Print <li>s, one for each item in the file
HTML
0
2
797
cd to the path of the front Finder window
Bash
0
0
584
P7M Viewer for Mac OS X
Bash
0
0
3370
Cleanup metadata
Bash
0
2
586
drupal gui db dump
Bash
0
0
594
applejack.sh
Bash
0
0
953
mps_yt
Python
0
0
1264
Gmail .muttrc
Bash
0
0
682
Detect the number of styles (IE9 4095)
Bash
0
2
595
wget don't check ssl
Bash
0
0
546
cmd Apache
Bash
0
0
587
zip without DS_Store
Bash
0
0
609
svn repo dir list
Bash
0
0
568
forward port 8080 to 80 on any incoming traffic
Bash
0
0
530
console.log width
JavaScript
0
2
751
google chrome plugins
JavaScript
0
2
807
swaks send test-mail
Bash
0
0
1339
Check MD5 SHA1 Hash
Bash
0
0
754
thug life *dangerously
Bash
0
0
554
Resolving the git conflicts with FileMerge
Bash
0
2
549
Make password protect zip files
Bash
0
2
600
minimal sass
Bash
0
1
612
generate htaccess password (htpasswd) from the command line
Bash
0
1
1805
smoothing un glow
CSS
0
1
561
Replaced Grunt/Gulp with a Makefile
Bash
0
0
611
npm & Makefile
Bash
0
2
744
Mac Logs Downloads
Bash
0
1
528
Start the FTP Server in OS X
Bash
0
9
828
bootstrap slick js
0
1
811
Turn Any Browser Into a Quick-Edit Notepad
Other
0
9
771
phpinfo from the command line
Other
0
7
953
Throttling Your Network Connection on Mac OS X
Other
0
8
664
Chmod a folder and all of its subfolders
Other
0
9
684
restarting apache
Other
0
6
665
node_modules permission problem
Other
0
10
687
Merge multiple jpg into single pdf
Other
0
9
697
Makefile for sass
Other
0
1
552
OS X Built-in tftp Server
Other
0
10
780
Sublime delete blank/empty lines
Other
0
3
785
simple php mysql dump
PHP
0
0
767
~/.hammerspoon/init.lua
LUA
0
0
1108
ssh-keygen
Bash
0
0
572
Extract, unpack electron app
Bash
0
0
1461
Check the contents of a zip file
Bash
0
0
460
Sketch sketchtool export pages (EPS)
Bash
0
0
467
convert pixel to ems
Bash
0
0
598
maintenance shell script .sh
Bash
0
0
517
Convert iso to Virtualbox Machine Disk
Bash
0
0
419
mplayer -playlist
Bash
0
0
494
cpinput.php
PHP
0
0
496
Create a Large Test File
Bash
0
0
531
TextEdit open with a blank file
Bash
0
0
414
basscss.css
CSS
0
0
780
hdiutil makehybrid Image.iso
Bash
0
0
453
Delete a list of files with find and grep
Bash
0
0
428
Copy and create destination dir if it does not exist (no cp)
Bash
0
0
489
cp: copy all files with a certain extension from all subdirectories
Bash
0
0
452
How to undo last commit
Bash
0
0
388
How to Split Large ‘tar’ Archive into Multiple Files of Certain Size
Bash
0
0
547
Create and extract a .tar.gz archive
Bash
0
0
385
[Linux] Node Notifications problem
Bash
0
0
371
Remove Anchor Icon from Docky
Bash
0
0
428
Delete all Git branches which have been merged
Bash
0
0
361
list all desktop environment instaled
Bash
0
0
344
Spyryto | E con questo salvi la pagina
JavaScript
0
0
423
Simulate typing
Bash
0
0
369
Github desktop dark
JavaScript
0
0
400
sources.list contrib non-free
JavaScript
0
0
368
Purge remove mysql
JavaScript
0
0
384
Set audio volume amixer
Bash
0
0
429
Kill Bill (Kill based on name)
Bash
0
0
376
Keep a process running after logging out
Bash
0
0
341
Enable js type checking in vscode on the fly
JavaScript
0
0
381
manually remove broken package
JavaScript
0
0
368
Nautilus is sinking
JavaScript
0
0
345
Install VMware Player LNX
JavaScript
0
0
355
Install npm packages globally without sudo
Bash
0
0
524
kanban bookmarks
JavaScript
0
0
405
/etc/apt/sources.list stretch testing main non-free contrib
Bash
0
0
444
man bash | Bash manual
Bash
0
0
370
Global Git ignore
Bash
0
0
306
Gnome .desktop app
Bash
0
0
353
Preventing Lid Close Suspension
Bash
0
0
311
Split into pieces
Bash
0
0
307
change color grub
Bash
0
0
343
xampp control panel
Bash
0
0
440
where is installed
Bash
0
0
297
Debian sublime keymap
JavaScript
0
0
332
YT to mp3
JavaScript
0
0
439
tmux cli simple command
Bash
0
0
300
simple .Xresources
JavaScript
0
0
387
Preferences.sublime-settings
JavaScript
0
0
352
wget subl & chrome
Bash
0
0
327
print simple date
Bash
0
0
292
Awesome gitlab commit message issue
Bash
0
0
287
gitlab-cli merge request
Bash
0
0
321
today
Bash
0
0
336
Debian install ruby gem
Bash
0
0
311
Debian install go lang
Bash
0
0
283
10 step git dotfiles
Bash
0
0
315
kill mysql
Bash
0
0
314
Simple HTTP Server With Upload.
Python
0
0
1323
To list all installed package deb
Bash
0
0
322
simple symbolic link
Bash
0
0
319
install pip3
Bash
0
0
329
wget and rename
Bash
0
0
408
Remove all your local git branches but keep master
Bash
0
0
347
Replace the first instance with a unique placeholder then split from there.
Bash
0
0
253
shipping
JavaScript
0
0
342
isloop
Bash
0
0
417
GIT hard reset
Bash
0
0
348
combine junit xml
Bash
0
0
391
bash watch
Bash
0
0
372
ruby Simple HTTP Server
Ruby
0
0
359
Perl "Simple" Webserver
Perl
0
0
345
To list all files added in the new branch
Bash
0
0
267
DWM
Bash
0
0
319
make usb disk debian from mac
Bash
0
0
402
how to become a superhero sudoers
Bash
0
0
264
install xinit terminator dbus
Perl
0
0
335
LNX Sublime Chrome
Bash
0
0
409
debian install nodejs npm
Bash
0
0
312
To shutdown the system
Plain text
0
0
341
Determine default display manager is in use
Plain text
0
0
307
GRV — Git Repository Viewer
Plain text
0
0
334
Compile and configure dwm
Bash
0
0
319
Debian set default desktop manager
Bash
0
0
267
Change screen brightness
Bash
0
0
264
yt playlist mp3
Bash
0
0
295
Add remove apps windows
Bash
0
0
262
Detect Key press
Bash
0
0
269
vsts cli pr
Bash
0
0
460
Split images into multiple files
Bash
0
0
287
Create a branch from a tag
Bash
0
0
240
make executable
Bash
0
0
255
Batch Converting jp2 to jpg
Bash
0
0
263
This or that es6
JavaScript
0
0
328
mojave mirage
JavaScript
0
0
257
getUrlParameter js
JavaScript
0
0
304
simple rsync command
JavaScript
0
0
282
jquery simple custom events
JavaScript
0
0
291
BKP ZIP current DIR
Bash
0
0
265
remove purge clean autoremove
Bash
0
0
278
play all mp3 folder
Bash
0
0
220
config notification
Bash
0
0
262
dzen2 simple menu
Bash
0
0
303
Bookmark GoTo view-source
JavaScript
0
0
239
launch json
JavaScript
0
0
246
Bootable MacOS Mojave Installer Drive usb
Bash
0
0
256
Emulate Charles Proxy’s Map Local with mitmproxy
Bash
0
0
260
Remove a git commit from history
Bash
0
0
209
git stash save
Bash
0
0
256
httrack LOCALDIRECTORY
Bash
0
0
180
wget javadoc
Bash
0
0
219
Restore the single deleted file with git
Bash
0
0
176
Git reset soft - git undo
Bash
0
0
243
Clear all Node Modules Folders Recursively Mac/Linux
Bash
0
0
258
npm windows-build-tools
Bash
0
0
271
Simpel base64
Bash
0
0
215
.vscode/launch .json
Bash
0
0
213
Manually install a man page file
Bash
0
0
238
os x cleanup
Bash
0
0
234
Mirroring a git repository in another location
Bash
0
0
274
demandware
Bash
0
0
169
Pandoc example
Bash
0
1
130
calibre ebook-convert pandoc
Bash
0
1
142
awk find replace increment
Bash
0
0
95
Kilo -- A very simple editor
C
0
0
157
checkurls
Bash
0
0
144
one git branch one commit
Bash
0
0
119
entr a watch written in c
Bash
0
0
114
Find and replace
Bash
0
0
104
vim buffer
Bash
0
1
146
Basic Regular Expressions - regex - egrep
Bash
0
0
106
make a sequence
Bash
0
0
123
Make bootable usb on mac from iso
Bash
0
0
98
imagemagick png to jpg resize
Bash
0
0
110
ffmpeg segment_time 15s
Bash
0
0
47
Chrome monitor events
JavaScript
0
0
42
api github gists
JavaScript
0
0
35
flac add coder
JavaScript
0
0
13
cloudinary crop
JavaScript
0
0
16