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
1021
Unbuntu: Create barcode from command line.
Bash
0
0
1869
PHP + Python: Install python dependencies for python scripts
Bash
0
1
1236
Mac OS X: Open jnlp files for recent OS X versions (javaws)
Bash
0
0
1190
nginx/ubuntu: Basic authentication access
Bash
0
0
968
linux: create .htpasswd without using apache tools
Bash
0
0
1073
Ubuntu/Mosquitto: Enable mqtt service
Bash
0
0
1019
Ubuntu/Linux: Detect if port is closed.
Bash
0
0
787
PHP/Linux: Run shell command without waiting for output (untested)
Bash
0
0
958
Ubuntu: OS Installation date
Bash
0
0
768
Postgres: Count all records in spite of using offset/limit
Bash
0
0
834
Ubuntu/Linux: Join pdf files from command line.
Bash
0
0
899
Linux/Web: Get internet content from command line using wget
Bash
0
0
1047
Ubuntu: Run wine app from command line using xvfb
Bash
2
0
3201
Mac OSX: Port redirection
Bash
0
0
798
Docker/Linux: List ip addresses of all containers.
Bash
0
0
966
Windows 10: Port redirection/Tunneling
Bash
0
0
871
Linux: sysmon script (memory usage)
Bash
0
0
976
Javascript: Clone array/object.
Bash
0
0
781
Mac OS X: Destroy all partitions in USB pendrive
Bash
0
0
910