Welcome To Snipplr


Everyone's Recent Bash Snippets



« Prev 1 2 3 4 5 ... 41
join characters inside file by extracting keyword which separate by newline and special characters by including desired numbers characters on right and left
0 3314 posted 7 years ago by brm
This example shows you how to restrict to a specific file or multiple files. Add the following code block and edit the file name/s according to yuor needs.
0 3622 posted 8 years ago by apphp-snippets
This example shows you how to force www. or no-www. using .htaccess file.
0 3509 posted 8 years ago by apphp-snippets
https://www.chrisjmendez.com/2017/03/18/bash-ec2-script/
0 3492 posted 8 years ago by chrisaiv
Clear buffer cache on GNU/Linux systems
0 3477 posted 8 years ago by rm1984
This is a simple script which downloads the latest "LoRa Server" files from the repository of the user brocaar in GitHub. Just make the file executable with a "chmod +x script_installer.sh" and run it, the program will give you the latest releases o...
0 3119 posted 8 years ago by SoroushBlaster
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 3234 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 3512 posted 8 years ago by rm1984
Create a compressed TAR archive preserving permissions
0 3330 posted 9 years ago by rm1984
How to repair a corrupted FAT32 filesystem
0 3097 posted 9 years ago by rm1984
TAR command to preserve files' permissions
0 3367 posted 9 years ago by rm1984
Recursively find and list the last modified files in a directory
0 3722 posted 9 years ago by rm1984
Show a colored and meaningful view of a GIT repository in the shell
0 3725 posted 9 years ago by rm1984
Replace a string with another one in many files
0 3715 posted 9 years ago by rm1984
Generate a random file with random contents but with a fixed size
0 3506 posted 9 years ago by rm1984
Read and process the output of a command one row at a time
0 3441 posted 9 years ago by rm1984
automatisches starten von Fotos beim Anschliessen von Geräten deaktivieren (YES), aktivieren (NO)
0 3205 posted 9 years ago by daniels
disable automatic starts of photos when connecting devices (YES), aktivate (NO), automatisches starten von Fotos beim Anschliessen von Geräten deaktivieren (YES), aktivieren (NO)
0 3198 posted 9 years ago by daniels
Set the default print settings of preview app on 100%. Schaltet beim Programm Vorschau die Druckeinstellung standardmässig auf 100%, diese bzw. wieder aus.
0 3142 posted 9 years ago by daniels
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 3263 posted 9 years ago by iMezouar
Get password from keychain (OSX)
0 3157 posted 9 years ago by alfirth
drush pm-list --status=enabled --pipe | grep 'uc_' | xargs -i drush pm-disable '{}' -y
0 1330 posted 9 years ago by apro2000
Copy files recursively in Windows
0 3322 posted 10 years ago by wesleydepoorter
Simple backup script using Rsync
0 3237 posted 10 years ago by brm
Script using tar to backup new file created 1 day before
1 3386 posted 10 years ago by brm
Just a basic bash snippet, of interest is the substring replacement, imo.
0 3219 posted 10 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 3519 posted 10 years ago by mabafu
« Prev 1 2 3 4 5 ... 41