Welcome To Snipplr


Everyone's Recent Bash Snippets



« Prev 1 2 3 4 5 ... 43
  1. FAV

    Prevent Access to a Specific File/s in .htaccess

    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.
    Bash 5 views posted 2 years ago by apphp-snippets
  2. FAV

    Force www./no-www. in .htaccess

    This example shows you how to force www. or no-www. using .htaccess file.
    Bash 5 views posted 2 years ago by apphp-snippets
  3. FAV

    Bash: EC2 Script

    This script is designed for AWS EC2 manager interested in installing an apache server, then copying web page files from an AWS S3 bucket to Apache's web directory.
    Bash 9 views posted 2 years ago by chrisaiv
  4. FAV

    Clear buffer cache on GNU/Linux systems

    Clear buffer cache on GNU/Linux systems
    Bash 8 views posted 3 years ago by rm1984
  5. FAV

    script_installer.sh

    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...
    Bash 2 views posted 3 years ago by SoroushBlaster
  6. FAV

    Check apt sources for package

    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~...
    Bash 5 views posted 3 years ago by droidronin
  7. FAV

    Firefox history stats with Bash

    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...
    Bash 3 views posted 3 years ago by rm1984
  8. FAV

    Create a compressed TAR archive preserving permissions

    Create a compressed TAR archive preserving permissions
    Bash 7 views posted 3 years ago by rm1984
  9. FAV

    How to repair a corrupted FAT32 filesystem

    How to repair a corrupted FAT32 filesystem
    Bash 4 views posted 3 years ago by rm1984
  10. FAV

    TAR command to compress and preserve files' permissions

    TAR command to preserve files' permissions
    Bash 3 views posted 3 years ago by rm1984
  11. FAV

    Recursively find and list the last modified files in a directory

    Recursively find and list the last modified files in a directory
    Bash 5 views posted 3 years ago by rm1984
  12. FAV

    Show a colored and meaningful view of a GIT repository in the shell

    Show a colored and meaningful view of a GIT repository in the shell
    Bash 2 views posted 3 years ago by rm1984
  13. FAV

    Replace a string with another one in many files

    Replace a string with another one in many files
    Bash 7 views posted 3 years ago by rm1984
  14. FAV

    Generate a random file with random contents but with a fixed size

    Generate a random file with random contents but with a fixed size
    Bash 5 views posted 3 years ago by rm1984
  15. FAV

    Read and process the output of a command one row at a time

    Read and process the output of a command one row at a time
    Bash 5 views posted 3 years ago by rm1984
  16. FAV

    下载/更新 TextMate Bundles

    Bash 2 views posted 3 years ago by darkhawk
  17. FAV

    # print every line after replacing each field with its absolute value

    Bash 4 views posted 3 years ago by secdebian
  18. FAV

    Automatisches öffnen von Fotos deaktivieren

    automatisches starten von Fotos beim Anschliessen von Geräten deaktivieren (YES), aktivieren (NO)
    Bash 3 views posted 4 years ago by daniels
  19. FAV

    Automatisches öffnen von Fotos deaktivieren

    disable automatic starts of photos when connecting devices (YES), aktivate (NO), automatisches starten von Fotos beim Anschliessen von Geräten deaktivieren (YES), aktivieren (NO)
    Bash 2 views posted 4 years ago by daniels
  20. FAV

    Mac Vorschau Druckmenü auf 100% als Standard stellen

    Set the default print settings of preview app on 100%. Schaltet beim Programm Vorschau die Druckeinstellung standardmässig auf 100%, diese bzw. wieder aus.
    Bash 1 views posted 4 years ago by daniels
  21. FAV

    List all devices connected to local network

    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.
    Bash 10 views posted 4 years ago by iMezouar
  22. FAV

    Get password from keychain (OSX)

    Get password from keychain (OSX)
    Bash 3 views posted 4 years ago by alfirth
  23. FAV

    Disable all ubercart modules

    drush pm-list --status=enabled --pipe | grep 'uc_' | xargs -i drush pm-disable '{}' -y
    Bash 9 views posted 4 years ago by apro2000
  24. FAV

    Copy files recursively

    Copy files recursively in Windows
    Bash 7 views posted 4 years ago by wesleydepoorter
  25. FAV

    Backup script using rsync

    Simple backup script using Rsync
    Bash 8 views posted 4 years ago by brm
  26. FAV

    Tar backup file 1 day before

    Script using tar to backup new file created 1 day before
    Bash saved by 1 person 2 views posted 4 years ago by brm
  27. FAV

    bash rename all files which meet pattern

    Just a basic bash snippet, of interest is the substring replacement, imo.
    Bash 6 views posted 4 years ago by jlmarks
  28. FAV

    rsync example to sync between two computers

    Bash 5 views posted 4 years ago by jlmarks
  29. FAV

    Bash Script to Fix Android Pictures and Videos Timestamp

    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\...
    Bash 4 views posted 5 years ago by mabafu
  30. FAV

    Download and Install necessary OSS RPMs on IBM AIX box

    AIX does not have Package Manager like YUM for Open Source Software. So I made a script to automatically install RPM packages on AIX box by downloading it from www.oss4aix.org site via ftp . It is very first version, it does not have all the necess...
    Bash 4 views posted 5 years ago by teterkin
« Prev 1 2 3 4 5 ... 43