Welcome To Snipplr
Everyone's Recent Snippets Tagged Bash
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
join characters inside file by extracting keyword which separate by newline and special characters by including desired numbers characters on right and left
0
1014
posted 6 years ago by brm
docker-engine:
Installed: 1.12.3-0~xenial
Candidate: 1.12.3-0~xenial
Version table:
*** 1.12.3-0~xenial 500
500 https://apt.dockerproject.org/repo ubuntu-xenial/main amd64 Packages
100 /var/lib/dpkg/status
1.12.2-0~...
0
889
posted 8 years ago by droidronin
This is a small script to gather some statistics from your Firefox history. First we use sqlite3 to parse the Firefox history database and get the last three months, then we remove all the IP addresses and port numbers and finally we sort and count t...
0
1091
posted 8 years ago by rm1984
Recursively find and list the last modified files in a directory
0
1322
posted 8 years ago by rm1984
Show a colored and meaningful view of a GIT repository in the shell
0
1244
posted 8 years ago by rm1984
Generate a random file with random contents but with a fixed size
0
1050
posted 8 years ago by rm1984
Bash script to list all devices (ip and hostname) connected to your local network.
Some formatting is done, and a summary is printed at the end.
Requires nmap.
0
948
posted 8 years ago by iMezouar
Just a basic bash snippet, of interest is the substring replacement, imo.
0
892
posted 9 years ago by jlmarks
After copying pictures and videos from my tablet to my PC I noticed that the original timestamp was overriden by the current date.
Fortunatelly the timestamp was still preserved in the files name.
Ex: IMG\_20150214\_202445.jpg or VID\_20140116\...
0
1139
posted 9 years ago by mabafu
There is a user-callback example in http://bazaar.launchpad.net/~bit-team/backintime/user-callback/view/head:/user-callback.apt-backup which will backup all package selections, sources and repository keys which are necessary to reinstall exactly the...
0
1026
posted 9 years ago by garretjames
* Install oracle-java with one line, prompt for sudo if not root
- more infos on (duinsoft)[http://www.duinsoft.nl]
0
1035
posted 10 years ago by dbiesecke
This snippet determines the path and script name that will need to be called, and then calls that script and passes it parameters.
0
776
posted 10 years ago by jlmarks
Used parts of this in resetting my torrent upload information after losing if (was experimenting with switching to a new torrent-client). Only works on transmission-gtk torrent files [i think]
0
712
posted 11 years ago by ktrout
This script goes through .change files in the current directory and copies all the files listed to a different directory. It skips the _sources.change files as well.
This is really written in plain bourne shell, but Smipple doesn't seem to suppor...
0
695
posted 11 years ago by Makistos