Advertising
advertising
related pastes to tag 'bash'
- 2135800 - Mine: bash
-
- #!/bin/bash
- for f in *; do
- if [ -d "$f" ]; then
- echo "$f is directory";
- else
- echo "$f:";
- head -n 4 "$f";
- 2122552 - Liz Quilty: script apache bash check headers
-
- #!/bin/bash
- if [ $1 ];then
- SITENAME=$1
- exec 3<> /dev/tcp/${1:-$SITENAME}/80
- printf "GET / HTTP/1.0\r\n" >&3
- printf "Accept: text/html, text/plain\r\n" >&3
- printf "Accept-Language: en\r\n" >&3
- printf "User-Agent: nixCraft_BashScript v.%s\r\n" "${BASH_VERSION}" >&3
- 2107668 - script meteo bash: scripts bash meteo
-
- *** Fichier meteo.sh ***
- #!/bin/bash
- set -xv
- ########################################################################
- 2000868 - Jecesyassaurf bash bashrc msys
- preview unavailable
- 1987526 - SlackBuild automation script: script bash slackbuild
-
- #!/bin/bash
- # SBO - SlackBuild automation script.
- # dagni, 2010-11-10, thanks to guys from ##slackware ;)
- #####################################
- version="0.1"
- link="$1"
- function sbo_usage() {
- 1917151 - Tomatoe.sh: timer bash pomodoro
-
- #! /usr/bin/env bash
- # File: tomatoe.sh
- # What the..?: A simple timer to apply The Pomodoro Technique.
- # Who the..?: ksaver (at identi.ca).
- # Why? : In the Hope of this little script can be useful...
- # When?: July 2010.
- # Requieres: bash, play, zenity (nix like OS, of course).
- # More Info: http://www.pomodorotechnique.com
- 1866704 - svn ressurection: svn bash
-
- svnresurrect() {
- found=0
- empty=""
- listofrevs=`svn log | grep -o --regexp="^r[0-9]*" | sed "s/r//g"`
- for i in $listofrevs;
- do
- echo $i
- thisrev=`svn log -v -r $i | grep "^ *D [/A-Za-z0-9]*$1$"`
- 1821812 - Change your Twitter profile pict: curl bash twitter api
-
- #!/bin/bash
- # default parameters (change where needed))
- dir=/path/to/your/pictures
- usr=username
- pwd=password
- # choose a random file
- 1821810 - Change your Twitter profile pict: curl bash twitter api
-
- #!/bin/bash
- # default parameters (change where needed))
- @@dir=/path/to/your/pictures
- @@usr=username
- @@pwd=password
- # choose a random file
- 1821808 - Change your Twitter profile pict: curl bash twitter api
-
- #!/bin/bash
- # default parameters (change where needed))
- dir=/path/to/your/pictures
- usr=username
- pwd=password
- # choose a random file
- 1657983 - drop: shell bash dropbox
-
- #!/bin/sh
- # No args, copy the current directory to your dropbox
- if [[ x"$1" = x ]]; then
- cp -R . ~/Dropbox/${PWD##*/}
- # Copy all given filenames to your dropbox
- else
- 1621070 - Unnamed bash bashrc msys
- preview unavailable
- 1612486 - hakushka@worldpress.com: bash
-
- #!/bin/sh
- # defrag v0.07 by Con Kolivas <kernel@kolivas.org
- # Braindead fs-agnostic defrag to rewrite files in order largest to smallest
- # Run this in the directory you want all the files and subdirectories to be
- # reordered. It will only affect one partition.
- # Are you really crazy enough to be using this? It might blow your data
- # into tiny little useless chunks.
- #
- 1612481 - hakushka@worldpress.com: bash
-
- #!/bin/sh
- # defrag v0.06 by Con Kolivas <kernel@kolivas.org>
- # Braindead fs-agnostic defrag to rewrite files in order largest to smallest
- # Run this in the directory you want all the files and subdirectories to be
- # reordered. It will only affect one partition.
- #
- # улучшен haku
- 1612458 - hakushka@worldpress.com: bash
-
- #!/bin/bash
- INPUT="$1"
- OUTPUT="$2"
- MP4BOX="$(which MP4Box 2>/dev/null)"
- MPLAYER="$(which mplayer 2>/dev/null)"
- MENCODER="$(which mencoder 2>/dev/null)"
- 1606656 - check_nbu_pool: bash nagios netbackup plug-in icinga
-
- #!/bin/bash
- # Based on a script from "Jurry"
- # -> http://jurrys.blogspot.com/2008/09/nagios-plug-in-for-netbackup-scartch.html
- # Changes by Alexander Skwar <alexander@skwar.name>:
- # 2009-10-09:
- # - Allow the user to specify the name of the pool which is to be checked
- 1606560 - check_nbu_pool: bash nagios netbackup plug-in icinga
-
- #!/bin/bash
- # Based on a script from "Jurry"
- # -> http://jurrys.blogspot.com/2008/09/nagios-plug-in-for-netbackup-scartch.html
- # Changes by Alexander Skwar <alexander@skwar.name>:
- # 2009-10-09:
- # - Allow the user to specify the name of the pool which is to be checked
- 1606525 - check_nbu_pool: bash nagios netbackup plug-in icinga
-
- #!/bin/bash
- WARN_COUNT=$1
- CRIT_COUNT=$2
- SCRATCH_TMP=`/usr/openv/volmgr/bin/vmquery -b -pn Scratch_pool | wc -l`
- SCRATCH_COUNT=$[$SCRATCH_TMP - 3]
- 1595110 - Anonymous: shell bash
-
- leonardo@zylle:~$ cat /etc/profile
- # /etc/profile: This file contains system-wide defaults used by
- # all Bourne (and related) shells.
- # Set the values for some environment variables:
- export MINICOM="-c on"
- export MANPATH=/usr/local/man:/usr/man
- export HOSTNAME="`cat /etc/HOSTNAME`"
- 1524953 - usacycleIlles bash bashrc msys
- preview unavailable
- 1511641 - pierce.jason: bash case block dynamic
-
- #!/bin/bash
- input="$1";
- qwerty_response='ls';
- block_start=\
- 'case "$input" in
- "asdf") echo "asdf1" ;;'
- 1510407 - sshd daemon watcher: linux script shell bash monitor sshd
-
- #!/bin/bash
- declare SSHD_PID="/var/run/sshd.pid"
- declare SSHD_SERVICE="/etc/rc.d/rc.sshd"
- # for debugging...
- # SSHD_SERVICE="echo"
- declare SSHD_RESTART="${SSHD_SERVICE} restart"
- declare SSHD_STOP="${SSHD_SERVICE} stop"
- declare SSHD_START="${SSHD_SERVICE} start"
- 1510402 - sshd daemon watcher: linux script shell bash monitor sshd
-
- #!/bin/bash
- declare SSHD_PID="/var/run/sshd.pid"
- declare SSHD_SERVICE="/etc/rc.d/rc.sshd"
- # for debugging...
- # SSHD_SERVICE="echo"
- declare SSHD_RESTART="${SSHD_SERVICE} restart"
- declare SSHD_STOP="${SSHD_SERVICE} stop"
- declare SSHD_START="${SSHD_SERVICE} start"
- 1470628 - dellioppy bash bashrc msys
- preview unavailable
- 1467965 - bashrc: bash terminal bashrc prompt
-
- # Check for an interactive session
- [ -z "$PS1" ] && return
- alias ls='ls --color=auto'
- # PS1
- OnColor='\[\e[0;33m\]'
- OnDefault='\[\e[0m\]'
- 1465656 - wrollaEramton bash bashrc msys
- preview unavailable
- 1451716 - atrowly bash bashrc msys
- preview unavailable
- 1449926 - sweadly bash bashrc msys
- preview unavailable
- 1448307 - sweadly bash bashrc msys
- preview unavailable
- 1446943 - sweadly bash bashrc msys
- preview unavailable
- 1442274 - gnu_d: script bash text format voice awk espeak hms hhmmss
-
- txt="`echo "$txt" | awk -F':' '{
- if($1!="") printf("%s", $1 " hour ");
- if($2!="") printf("%s", $2 " minute ");
- if($3!="") printf("%s", $3 " seconds");
- }'`";
- }
- 1441574 - Anagavape bash bashrc msys
- preview unavailable
- 1440402 - bashrc bash bashrc msys
- preview unavailable
- 1437899 - bashrc bash bashrc msys
- preview unavailable
- 1436094 - knocuourn bash bashrc msys
- preview unavailable
- 1430705 - Buhchatte bash bashrc msys
- preview unavailable
- 1429604 - Thonest bash bashrc msys
- preview unavailable
- 1427864 - anargymog bash bashrc msys
- preview unavailable
- 1343252 - .bashrc: bash terminal bashrc prompt
- preview unavailable
- 1331063 - bash to keep a script looping: bash loop
-
- #!/bin/bash
- # a shell script that keeps looping until an exit code is given
- # if it's a 0, immediatly restart
- # if it's an error, pause, then restart
- # and one particular code, exit cleanly.
- 1307626 - .bashrc: bash terminal bashrc prompt
- preview unavailable
- 1263722 - AppleTV Downgrade to 2.1: bash appletv downgrade osupdade
-
- #!/bin/bash
- #-------------------------------------------------------------------
- # BASH Script for Apple TV to Downgrade to ver 2.1
- #-------------------------------------------------------------------
- #
- mkdir /User/frontrow/OStemp
- rm /User/frontrow/OStemp/*
- cd /Users/frontrow/OStemp/
- 1222759 - SQL-BashScript: menu sql script shell bash execution
-
- #!/bin/bash
- #
- # SQL Shell Execution Menu Bash Script
- #
- # by Mike Jans mailto: infos[At]bash[DoT]ch
- #
- ############################################
- 1198483 - santa claus is coming to town: bash santa
-
- better !pout !cry
- better watchout
- lpr why
- santa claus < north pole > town
- cat /etc/passwd > list
- ncheck list
- ncheck list
- 1072882 - MacPorts recursive dependency re: bash macports
-
- #!/bin/bash
- #
- # Outputs dependencies for MacPorts recursivly, each port and its dependencies
- # in a separate line.
- #
- # Usage: ./deepdeps.sh <portname>
- #
- # (c) Thomas Keller <me@thomaskeller.biz>
- 1046584 - newpkg 1.0: bash archlinux
-
- #!/bin/bash
- # vim: set ts=8 fdm=marker :
- BASEDIR="${HOME}/builds"
- PROTODIR='/usr/share/pacman'
- ###
- # Lines below this point should not need to be edited.
- 995599 - ssh script: bash ssh controlmaster controlpath
-
- #!/usr/local/bin/bash
- # Tue Oct 2 04:37:30 CEST 2007 eak!
- if [ -z "$1" ]; then
- exit 255
- fi
- 977723 - Bash script: script bash grep varlogmessages
-
- root@starchild:/tmp# cat fwlogsearch2.sh
- #!/bin/bash
- # Searches FW logs on Linode, which are contained in /var/log/messages* files
- function search {
- local ip #ip is local to the function
- echo "Searching... "
- 815719 - shell scopes sh shell bash loop while
- preview unavailable
- 753888 - bashrc bash bashrc msys
- preview unavailable
- 687288 - andarius: bash
-
- #!/bin/sh
- # I used a sample file named "out" to test this.
- # I did not verify the math. you may want to check
- # it the first pass to be sure.
- #
- # This is likely more complex than it needs to be,
- # however I am no scripting pro. Just like a trying
- # things.
- 687085 - shELLit: sh bash stdout
-
- 0[15:42:54]toto:~$ ps axuww | tee /dev/stdout | ( head -n 1 && grep httpd )
- USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
- www 5069 0.0 0.5 3756 1840 ?? I 12:00AM 0:00.01 /usr/pkg/sbin/httpd -k start
- www 5483 0.0 0.5 3756 1840 ?? I 12:00AM 0:00.00 /usr/pkg/sbin/httpd -k start
- 625281 - ipfailover: script bash ip failover ovh
-
- #!/bin/bash
- #configuration des IP Fail Over
- # 91.121.58.69
- ifconfig dummy0 91.121.58.69 netmask 255.255.255.255
- # 91.121.58.66
- ifconfig dummy0:1 91.121.58.66 netmask 255.255.255.255
- # 91.121.58.67
- ifconfig dummy0:2 91.121.58.67 netmask 255.255.255.255