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
Ubuntu/Linux: Avoid connection from specific ip address without using iptables
Bash
0
0
920
Unbuntu: Create barcode from command line.
Bash
0
0
1583
PHP + Python: Install python dependencies for python scripts
Bash
0
1
1119
Mac OS X: Open jnlp files for recent OS X versions (javaws)
Bash
0
0
1066
nginx/ubuntu: Basic authentication access
Bash
0
0
822
linux: create .htpasswd without using apache tools
Bash
0
0
932
Ubuntu/Mosquitto: Enable mqtt service
Bash
0
0
897
Ubuntu/Linux: Detect if port is closed.
Bash
0
0
694
PHP/Linux: Run shell command without waiting for output (untested)
Bash
0
0
820
Ubuntu: OS Installation date
Bash
0
0
677
Postgres: Count all records in spite of using offset/limit
Bash
0
0
729
Ubuntu/Linux: Join pdf files from command line.
Bash
0
0
784
Linux/Web: Get internet content from command line using wget
Bash
0
0
896
Ubuntu: Run wine app from command line using xvfb
Bash
2
0
2670
Mac OSX: Port redirection
Bash
0
0
691
Docker/Linux: List ip addresses of all containers.
Bash
0
0
817
Windows 10: Port redirection/Tunneling
Bash
0
0
768
Linux: sysmon script (memory usage)
Bash
0
0
856
Javascript: Clone array/object.
Bash
0
0
661
Mac OS X: Destroy all partitions in USB pendrive
Bash
0
0
768