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
1762
Linux: split file into pieces and join pieces again
Bash
0
2
2145
Ubuntu: send email from command line using gmail account and server
Bash
2
2
6249
Mac OS X: Wake up from sleep and login last user via ssh
Bash
0
7
1799
Ubuntu: block external incoming ip address
Bash
0
8
1985
Ubuntu: Unblock external ip address
Bash
0
9
2092
Javascript: no-jquery cross-browser event handler accepting arguments
Bash
0
8
1581
Ubuntu: get a list of apps that are consuming bandwidth
Bash
0
9
1313
Ubuntu: block external outgoing ip address
Bash
0
8
1835
Ubuntu: how to mount remote linux file system using sshfs (over ssh)
Bash
0
7
2778
Docker: save/load container using tgz file (tar.gz)
Bash
3
2
22664
Docker: clean all
Bash
0
7
1566
Linux/ImageMagick: convert first page of pdf document to small jpeg preview
Bash
0
8
1501
Linux/Ubuntu: apply changes made to network interfaces without restarting
Bash
0
4
1473
Linux: Convert pdf to html
Bash
0
8
5063
PostgreSQL: backup remote database with pg_dump
Bash
0
5
24472
Ubuntu: How to setup pptp vpn server
Bash
0
4
6672
Linux: List all users in system
Bash
0
1
1313
Linux: ssh without password
Bash
0
1
1582
Proxy reversible
Bash
0
0
2044