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
Bash snippets by Marco Piñero
Linux: Get number of pages of PDF document via command line
Bash
0
1
1520
Linux: split file into pieces and join pieces again
Bash
0
2
1811
Ubuntu: send email from command line using gmail account and server
Bash
2
2
5998
Mac OS X: Wake up from sleep and login last user via ssh
Bash
0
7
1490
Ubuntu: block external incoming ip address
Bash
0
8
1651
Ubuntu: Unblock external ip address
Bash
0
9
1774
Javascript: no-jquery cross-browser event handler accepting arguments
Bash
0
8
1347
Ubuntu: get a list of apps that are consuming bandwidth
Bash
0
9
1136
Ubuntu: block external outgoing ip address
Bash
0
8
1538
Ubuntu: how to mount remote linux file system using sshfs (over ssh)
Bash
0
7
2409
Docker: save/load container using tgz file (tar.gz)
Bash
3
2
21768
Docker: clean all
Bash
0
7
1344
Linux/ImageMagick: convert first page of pdf document to small jpeg preview
Bash
0
8
1323
Linux/Ubuntu: apply changes made to network interfaces without restarting
Bash
0
4
1255
Linux: Convert pdf to html
Bash
0
8
4702
PostgreSQL: backup remote database with pg_dump
Bash
0
5
22070
Ubuntu: How to setup pptp vpn server
Bash
0
4
5605
Linux: List all users in system
Bash
0
1
1099
Linux: ssh without password
Bash
0
1
1306
Proxy reversible
Bash
0
0
1614