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
1620
Linux: split file into pieces and join pieces again
Bash
0
2
1942
Ubuntu: send email from command line using gmail account and server
Bash
2
2
6109
Mac OS X: Wake up from sleep and login last user via ssh
Bash
0
7
1616
Ubuntu: block external incoming ip address
Bash
0
8
1768
Ubuntu: Unblock external ip address
Bash
0
9
1898
Javascript: no-jquery cross-browser event handler accepting arguments
Bash
0
8
1438
Ubuntu: get a list of apps that are consuming bandwidth
Bash
0
9
1210
Ubuntu: block external outgoing ip address
Bash
0
8
1653
Ubuntu: how to mount remote linux file system using sshfs (over ssh)
Bash
0
7
2545
Docker: save/load container using tgz file (tar.gz)
Bash
3
2
22149
Docker: clean all
Bash
0
7
1437
Linux/ImageMagick: convert first page of pdf document to small jpeg preview
Bash
0
8
1402
Linux/Ubuntu: apply changes made to network interfaces without restarting
Bash
0
4
1344
Linux: Convert pdf to html
Bash
0
8
4841
PostgreSQL: backup remote database with pg_dump
Bash
0
5
23414
Ubuntu: How to setup pptp vpn server
Bash
0
4
5976
Linux: List all users in system
Bash
0
1
1185
Linux: ssh without password
Bash
0
1
1422
Proxy reversible
Bash
0
0
1769