blob_id
stringlengths
40
40
language
stringclasses
1 value
repo_name
stringlengths
4
115
path
stringlengths
2
970
src_encoding
stringclasses
28 values
length_bytes
int64
31
5.38M
score
float64
2.52
5.28
int_score
int64
3
5
detected_licenses
listlengths
0
161
license_type
stringclasses
2 values
text
stringlengths
31
5.39M
download_success
bool
1 class
40ca5b7a87b3c39c6b651cac561aa65431a85a6e
Shell
shock/lehman
/mkzip
UTF-8
147
2.53125
3
[]
no_license
#!/bin/bash datestamp=`date +%W%w%H%M` zipfile="/mnt/D/Studio/Scoring/lehman/notations_$datestamp.zip" echo "Creating $zipfile" zip $zipfile *.pdf
true
c7939d7d36781e8d2881f150954970d7a95e094d
Shell
ReDetection/github-clone
/github.sh
UTF-8
1,089
4.125
4
[]
no_license
#!/bin/bash USAGE=". github clone [-t {github|self|work|...}] {url} [path]" GITHUBROOT="$HOME/src/" #todo: .config TYPE="github" #todo: auto type POSITIONAL=() DEBUG="NO" while [[ $# -gt 0 ]] do key="$1" function terminate_script { [[ "${BASH_SOURCE[0]}" == "${0}" ]] && exit 0 || return 0; } case $key in -t...
true
3f95bf373d397f84fb93667b736abf46657ff22f
Shell
mauriciojost/dotfiles
/modules/shell/aliases/keep.sh
UTF-8
241
2.71875
3
[ "MIT" ]
permissive
function qkeep-find() { local exp="$1" $DOTFILES/modules/keep/keep-cli/keep find --query "$exp" } function qkeep-new() { local title="$1" local text="$2" $DOTFILES/modules/keep/keep-cli/keep add --title "$title" --text "$text" }
true
1d526eefa6f543bf776e8942a8441c39ff57a8e4
Shell
jadilet/peer_manage
/destroy_peer.sh
UTF-8
1,100
4.0625
4
[]
no_license
#!/bin/bash show_help() { cat << ENDHELP usage: destroy_peer [options] Options: --provider=<PROVIDER> Choose provider. Supported providers are: libvirt, vmware_desktop, virtualbox, parallels and hyperv. Default: libvirt --peer_dir=<PEER_DIR> Set the peer path. Default: ~/peer --help Dis...
true
8751f4b198c8b2e33678393172f35ba8f7d5a475
Shell
KdeOs/main
/graphite/PKGBUILD
UTF-8
1,324
2.65625
3
[]
no_license
pkgname=graphite pkgver=1.2.3 pkgrel=1 arch=('x86_64') url="http://graphite.sil.org/" pkgdesc='reimplementation of the SIL Graphite text processing engine' license=('custom_SIL Dual license') depends=('gcc-libs') makedepends=('cmake' 'freetype2' 'python2') replaces=('libgraphite' 'pango-graphite') options=('!libtool' ...
true
6dd240725b6d747a6670cc0e1ec8a5acb6f1b791
Shell
justin-robinson/dotfiles
/zsh/oh_my_zsh_custom/git_prompt_info.zsh
UTF-8
2,514
4.03125
4
[]
no_license
function git_prompt_info () { set_git_vars # only run this if we are in a git branch if [[ -n ${GIT_BRANCH} ]]; then # our output will be enclosed in a square bracket local PROMPT_OUTPUT="${ZSH_THEME_GIT_PROMPT_PREFIX}${GIT_BRANCH}" if [[ -n ${GIT_REMOTE_BRANCH} ]]; then ...
true
8918e10d70ae47d76c2e32d8d4b28f47beef4929
Shell
jwmatthews/ec2_scripts
/scripts/install_spacewalk.sh
UTF-8
2,286
2.84375
3
[]
no_license
#!/bin/sh source ./functions.sh export ANSWER_FILE="/tmp/spacewalk.answers" # Set hostname of instance to EC2 public hostname HOSTNAME=`curl -s http://169.254.169.254/latest/meta-data/public-hostname` hostname ${HOSTNAME} sed -i "s/^HOSTNAME.*/HOSTNAME=${HOSTNAME}/" /etc/sysconfig/network # Install Spacewalk rpm -q ...
true
bb137bc542b5a8d11b4bd3c526e58a3b433bd552
Shell
decibelcooper/eicio
/go-eicio/genExtraMsgFuncs.sh
UTF-8
861
3.25
3
[]
no_license
#!/bin/bash protoFile=$1 outFile=$2 collections=$(grep "^message.*Collection\>" $protoFile | sed "s/^.*\<\(\S*Collection\)\>.*/\1/") messages=$(grep "^message.*Collection\>" $protoFile | sed "s/^.*\<\(\S*\)Collection\>.*/\1/") printf "\n\n// Extra generated functions for compliance with Message and Collection interf...
true
2e90a59b36c09f0bd31091d98df719a40ac7c5b4
Shell
ShrutiZarbade/tic-tac-toe-game
/tic_tac_toe.sh
UTF-8
3,396
3.390625
3
[]
no_license
#!/bin/bash -x echo "Welcome to Tic-Tac-Toe Game" declare -a board TOTAL_CELL=9 cell=0 flag=0 function resetBoard() { for((i=1;i<=9;i++)) do board[i]=$i done } function displayBoard() { echo "| ${board[1]} | ${board[2]} | ${board[3]} |" echo "| ${board[4]} | ${board[5]} | ${board[6]} |" echo "| ${board[...
true
80c92287e9eca6f0d6a0a14b367ac3e404758af0
Shell
reify-ryan-heimbuch/dotfiles
/zsh/widgets/widget-insert-datestamp
UTF-8
185
2.859375
3
[]
no_license
#!/bin/zsh # Press "ctrl-e d" to insert the actual date in the form yyyy-mm-dd. function widget-insert-datestamp () { LBUFFER+=${(%):-'%D{%Y-%m-%d}'}; } widget-insert-datestamp "$@"
true
0eab7880b35d407e74f37be416c802ab16124889
Shell
cornell-ssw/totient_spack_configs
/node_compile_intel_dirty.pbs
UTF-8
1,231
3.203125
3
[]
no_license
#!/bin/bash #PBS -l nodes=1:ppn=24 #PBS -N spack_node_intel_dirty_install #PBS -j oe #PBS -M $USER@cornell.edu # I assume you already checked spack spec -I # Launch with: # # qsub -v spec='python+tk' /share/apps/spack/totient_spack_configs/node_compile.pbs # # NOTE: Make sure you are underneath *YOUR* home direct...
true
be9de7ebab168433d196677e935d3acc401ab154
Shell
kkoralsky/docker-openssh-client
/entrypoint.sh
UTF-8
442
3.4375
3
[]
no_license
#!/bin/sh [ "$SSH_TRUSTED_HOSTS" ] && ssh-keyscan $SSH_TRUSTED_HOSTS >> .ssh/known_hosts echo "$SSH_KNOWN_HOSTS" >> .ssh/known_hosts chmod 0600 .ssh/known_hosts SSH_PRIVATE_KEY=${SSH_PRIVATE_KEY:-$DEPLOY_KEY} [ "$SSH_PRIVATE_KEY" ] && echo "$SSH_PRIVATE_KEY" > .ssh/id_rsa && chmod 0600 .ssh/id_rsa input="${@#sh -c}...
true
36f6ab67b01bdbb07577f8bec1f83921df6cdbf6
Shell
ruabmbua/navi
/scripts/make
UTF-8
549
3.78125
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -euo pipefail ##? make install ##? make uninstall export NAVI_HOME="$(cd "$(dirname "$0")/.." && pwd)" source "${NAVI_HOME}/scripts/install" install() { "${NAVI_HOME}/scripts/action" release ln -s "${NAVI_HOME}/target/tar/navi" /usr/bin/navi \ || ln -s "${NAVI_HOME}/target/tar...
true
707377d34a2efc115161a9c70b80e51b08c343b4
Shell
crbates/radsrc
/macosx/run_radsrc.command
UTF-8
790
3.859375
4
[]
no_license
#!/bin/sh # # Shell script that provides "double-click" functionality equivalent to # MacOSX application. # # Doug Wright #....move to directory in which this command resides cd `dirname $0` >/dev/null 2>&1 #....prompt for possible input file echo echo -n "Enter input file name [or hit return for interactive mode] "...
true
7c1c08d3f82704213a5027d7683ec80b34a3affb
Shell
chankongching/kylindeploy
/cookbooks/kap/templates/default/aws_10_check_create_keypair.sh
UTF-8
541
3.3125
3
[ "GPL-3.0-only", "GPL-2.0-only", "Apache-2.0" ]
permissive
#!/bin/bash VAR=$1 AZ1=`echo $VAR|cut -d ',' -f1` AZ2=`echo $VAR|cut -d ',' -f2` REGION=`echo $VAR|cut -d ',' -f3` ID=`echo $VAR|cut -d ',' -f4` # Run checking command aws ec2 describe-key-pairs --key-name kylin --region $REGION > /dev/null if [ $? -ne 0 ] then echo "Kylin key doesnt exists, uploading..." aws ...
true
c61965963861c20f4affedc8bce4024b947d6607
Shell
wotmof/Public.Code
/dbcmgt
UTF-8
7,574
3.546875
4
[]
no_license
#!/bin/bash # # # # Name dbcmgt # Path /usr/bin # Description Database inside linux Containers Management # # # # #+------------------------------------------------------------+ #| wotmof was here | #| wotmof@yahoo.com - fabrizio.bordacchini@simplyhealth.co.uk | #| ver 0....
true
b448b89d0ae2b119f7f5b0c13489d3022b991412
Shell
HaloGenius/hiveos-custom-miner
/custom/energiminer/h-stats.sh
UTF-8
2,433
3.5
4
[]
no_license
#!/bin/bash . $MINER_DIR/$CUSTOM_MINER/h-manifest.conf if [[ -z $CUSTOM_LOG_BASENAME ]]; then LOG="energiminer.log" else LOG="$CUSTOM_LOG_BASENAME.log" fi local stats_raw=`cat ${LOG} | tail -n 100 | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[mGK]//g" | grep -w "energiminer" | tail -n 1 | grep "^ m "` #Calc...
true
1821c2a96876bcae1540a8dcb64d5a9cf846b6cc
Shell
fialakarel/my-ubuntu-install-steps
/install/shotcut.sh
UTF-8
412
3.140625
3
[]
no_license
#!/bin/bash set -v # Create dir for bin files mkdir $HOME/bin version="$(curl https://github.com/mltframework/shotcut/releases/latest | cut -d'"' -f2 | egrep -o "[0-9]+\.[0-9]+\.[0-9]+$")" # Get Shotcut wget https://github.com/mltframework/shotcut/releases/download/v${version}/shotcut-linux-x86_64-${version//./}.Ap...
true
6a00a3e8d1f7d5a0c5350ba90fdeca3e7bd809b2
Shell
kwaugh/.dotfiles
/zsh/.zshrc
UTF-8
3,276
2.6875
3
[]
no_license
export TERM="xterm-256color" # Lines configured by zsh-newuser-install HISTFILE=~/.histfile HISTSIZE=10000 SAVEHIST=10000 bindkey -v export LC_ALL=en_US.UTF-8 export DEFAULT_USER=keivaun if [[ $unamestr == 'Darwin' ]]; then export HOME="/Users/$DEFAULT_USER" elif [[ $unamestr == 'Linux' ]]; then export HOME=...
true
d5de32fcbd811c7898e85b85f9b19c7c4e443553
Shell
jlhcrawford/he-toolkit
/docker/welcome_msg.sh
UTF-8
1,704
3.15625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # Copyright (C) 2020-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 cat << EOF In the current directory, you will find 3 scripts: 1. run_sample_kernels_[palisade|seal].sh: This will run several HE sample kernels including Matrix Multiplication and Logistic Regression. The script will...
true
b4434bb3783ce579865016a5feaa0bda85ccb3f5
Shell
johslarsen/dotfiles
/bashrc.d/10-system-wide
UTF-8
81
2.703125
3
[ "Unlicense" ]
permissive
#!/bin/bash - for f in /etc/{bashrc,bash.bashrc}; do [ -f "$f" ] && . "$f" done
true
86b109fcd79a2ff66e23ca6af0141eb582f407e0
Shell
SliTaz-official/wok-stable
/slitaz-fbsplash/stuff/tazfbsplash
UTF-8
4,667
3.875
4
[]
no_license
#!/bin/sh # # Tazfbsplash - Tool to manage and configure Busybox fbsplash on SliTaz # (C) 2011 SliTaz - GNU General Public License. # # TODO: # box - on/off with curent status # box - change/install/remove themes # check GRUB settings: quiet vga=* # . /etc/rcS.conf # Functions . /usr/lib/slitaz/libtaz source_lib ...
true
a7474b7722ae77358c7f2a1cd643dfe17a766c61
Shell
Vman45/pdf2cbx
/utils.sh
UTF-8
1,346
3.59375
4
[ "Unlicense" ]
permissive
checkinstall () { _test=sudo dpkg-query -l | grep $1 | wc -l &> /dev/null ctxt purple def def "Installation de $1 ....................................." if [ "$_test" == "0" ]; then ctxt def def def "Installation de $1" echo $2 | sudo -S -y -qq apt-get install $1 else ctxt red def def "$1" ...
true
b43ba627a555ec71eed375812995778a6b57a031
Shell
eriksf/jenkins-backup-script
/jenkins-backup.sh
UTF-8
4,260
3.71875
4
[ "MIT" ]
permissive
#!/bin/bash -xe ################################################################################## function usage(){ echo "usage: $(basename $0) /path/to/jenkins_home archive.tar.gz" } ################################################################################## readonly JENKINS_HOME=$1 readonly DEST_FILE=$2 r...
true
77339c508fdcc6cd74cc84b5edcd0ab3c6027dff
Shell
crissotto/Scripts-Linux
/MANUAL CENTRO DE COMPUTOS/ABM/altausuario.sh
UTF-8
3,809
3.546875
4
[]
no_license
clear echo -e "ALTA DE USUARIOS" echo "" echo "" setContrasenia() { pass=$(date | md5sum | cut -c 1-8) echo "$altausuario:$pass" | chpasswd if [ $? -eq 0 ] then echo "La contrasenia de $altausuario es: " $pass echo "$altausuario $pass $group" >> /home/admin/BACKUP/contraseniapordef...
true
d7568d9b1e111b12be568355d024f41453b2589d
Shell
larryhallgoldman/Workshop-2.0
/pipelines/tasks/create-workshop-env/task.sh
UTF-8
736
2.90625
3
[]
no_license
#!/bin/bash set -e pushd Workshops-2.0 # ./gradlew -PversionNumber=$VERSION clean assemble cf api $cf_target_url --skip-ssl-validation # Get admin password after successful install using OpsMgr. cf login -u $cf_username -p $cf_password -o $cf_org -s $cf_space cf create-quota workshop -m 20G -s 1000 -a -1 -r 50 -i 4...
true
e490fc806c8650c1560d5da88e804a51aeadea24
Shell
VadymDenysenko/FairShip
/vm/_common.sh
UTF-8
188
2.546875
3
[]
no_license
SCRIPT_NAME=$0 [[ -z "SCRIPT_NAME" || "$SCRIPT_NAME" == "bash" ]] && SCRIPT_NAME=$BASH_SOURCE VM_DIR=`dirname "$SCRIPT_NAME"` source $VM_DIR/_functions.sh IMAGE="anaderi/fairroot:latest"
true
23154c469d4f2ff01b117caed43789edea3080bf
Shell
UMainedynamics/SeidarT
/noconda_install.sh
UTF-8
2,063
3.015625
3
[]
no_license
#!/bin/bash # Install script for SEIDART toolbox # Anaconda has issues. if [[ "$OSTYPE" == "linux-gnu"* ]]; then f2pypath=`which f2py3` else f2pypath=`which pythonw3` fi f2pypath=`dirname $f2pypath` # Make sure we have a folder to put everything in if [ ! -d "bin" ]; then mkdir bin fi # Compile the fortr...
true
a3bbc51b850df56359b67ea2a83321238142d81f
Shell
matteary/advanced_autoscaling_workbook
/workers/_help
UTF-8
464
3.609375
4
[]
no_license
#!/usr/bin/env bash function f_print_help(){ echo -e "\n\tUsage: ./`basename \"$0\"` [ --deploy | --cleanup | --increase-traffic | --help ]\n" echo -e "\t\t--deploy\t\tDeploys the Advanced Autocaling Workbook environment" echo -e "\t\t--cleanup\t\tTears down the Advance Autoscaling Workbook environment" echo -...
true
6123abfe613c4f923d2ff5841460bae4aa445f69
Shell
calbach/dsub
/examples/custom_scripts/submit_list.sh
UTF-8
1,792
3.75
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
true
dadbfbcbedbfeaed4a4f9c2c95188e0c3bbde574
Shell
identinetics/d-sigver
/conf.sh.default
UTF-8
1,178
3.296875
3
[]
no_license
#!/usr/bin/env bash main() { SCRIPTDIR=$(cd $(dirname $BASH_SOURCE[0]) && pwd) source $SCRIPTDIR/dscripts/conf_lib.sh $@ # load library functions configlib_version=2 # compatible version of conf_lib.sh check_version $configlib_version init_sudo _set_image_and_container_name _set_buildar...
true
15984219b7e361ce3c20b3e9b7a62d4efabd2986
Shell
TIBCOSoftware/dovetail-contrib
/hyperledger-fabric/operation/namespace/k8s-namespace.sh
UTF-8
4,459
4.21875
4
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash # Copyright © 2018. TIBCO Software Inc. # # This file is subject to the license terms contained # in the license file that is distributed with this file. # create k8s namespace for a specified org, # if the optional target env is az, create the storage account secret based on config file in $HOME/.azure/...
true
bceb4475ae05b41f794a8c7a4233e2341f7c723e
Shell
Pey-crypto/Experiments
/cal.sh
UTF-8
890
4.03125
4
[]
no_license
#!/bin/sh echo "=======================" echo "" echo "Hello there this script runs a menu driven calculator" echo "" echo "=======================" echo "Enter your First integer" read n1 echo "Enter your Second integer" read n2 echo "These are the values" echo "First value $n1" echo "Second value $n2" i="y" wh...
true
24f9c355b83a8b17d6358a3fea0a7c13b6557e7b
Shell
petronny/aur3-mirror
/opengazer/PKGBUILD
UTF-8
1,068
2.59375
3
[]
no_license
# Contributor: Muhammad Qadri <Muhammad dot A dot Qadri at gmail dot com> pkgname=opengazer pkgver=0.1.2 pkgrel=1 pkgdesc="Application that uses an ordinary webcam to estimate the direction of your gaze." arch=('i686') url="http://www.inference.phy.cam.ac.uk/opengazer/" license=('GPL2') depends=('vxl' 'opencv>=0.97' 'g...
true
6419e1583295bf723cf308f2b11c735e1ade2f04
Shell
dkoenig-tutos/poc-kerberos-linux
/scripts/nfs_server_setup.sh
UTF-8
1,361
2.90625
3
[]
no_license
#!/usr/bin/env bash set -ex echo '##########################################################################' echo '##### Script de configuration du serveur NFS : nfs_server_setup.sh' echo '##########################################################################' # setsebool -P nfs_export_all_rw 1 # setsebool -P ...
true
be7a023b9a51352ca48a9cedf6aa9c11e442e9b2
Shell
networkgangster/Projectwork
/monitoring-instance-userdata.sh.tpl
UTF-8
11,717
2.703125
3
[]
no_license
#!/bin/bash # Stop if error occurs set -e # source: https://fh-cloud-computing.github.io/exercises/3-containers/ # Install docker curl -fsSL https://get.docker.com -o get-docker.sh sh get-docker.sh # Create shared directory for service discovery config mkdir -p /srv/service-discovery/ chmod a+rwx /srv/service-discov...
true
c684aa26aff1edd4af173de7f72fd7ca9593a8e0
Shell
lliurex/flash-java-insecure-perms
/usr/bin/flash-java-insecure-perms
UTF-8
6,948
3.375
3
[]
no_license
#!/bin/bash #0 = autosize HEIGHT=0 WIDTH=0 LIST_HEIGHT=0 ICED=$(which itweb-settings) KEYTOOL=$(which keytool) IAM=$(id -u) MYNAME=$(id -un) if [ "${IAM}" = "0" ]; then USERS=$(getent passwd |cut -d: -f4|sort -h|uniq|egrep ^[0-9]{4}|xargs -n1 getent passwd|cut -d: -f1) if [ "x$1" = "xinstall" ]; then OLDIF...
true
a30d7995afb2a1a9d2a80be5c57c3d771a9f3eab
Shell
evrimulgen/Oracle-DBA-Life
/INFO/Books Codes/Oracle9i UNIX Administration Handbook/check_filesystem_size.ksh
UTF-8
334
3.390625
3
[ "MIT" ]
permissive
#!/bin/ksh for i in `df -k|grep /u0|awk '{ print $4 }'` do # Convert the file size to a numeric value filesize=`expr i` # If any filesystem has less than 100k, issue an alert if [ $filesize -lt 100 ] then mailx -s "Oracle filesystem $i has less than 100k free."\ don@burleson.cc\ ...
true
7ce5567bfe1dc9a226c2254bcf85dc296ffe05a4
Shell
borkabrak/binfiles
/git-diff-remote
UTF-8
457
3.09375
3
[]
no_license
#!/usr/bin/env zscript # vim: ft=zsh # # git-diff-remote - diff the current branch with its remote counterpart # # # This display a side-by-side comparison of which commits are unique to each branch. # Confirm dependencies require pygmentize diff git # Get the current branch name branch=$(git rev-parse --abbrev-r...
true
eb1c0c3b1cbf431a10bb4547ecc808c36de158c6
Shell
BubbleTeaAdventure/clash-premium-installer
/scripts/setup-tun.sh
UTF-8
1,570
2.609375
3
[]
no_license
#!/bin/bash PROXY_BYPASS_CGROUP="0x16200000" PROXY_FWMARK="0x162" PROXY_ROUTE_TABLE="0x162" PROXY_TUN_DEVICE_NAME="utun" /usr/local/lib/clash/clean-tun.sh sleep 0.5 /usr/local/lib/clash/setup-cgroup.sh ip route replace default dev "$PROXY_TUN_DEVICE_NAME" table "$PROXY_ROUTE_TABLE" ip rule add fwmark "$PROXY_FWMA...
true
2825d742ac6226af383b080694abc6f3b5e1b343
Shell
SampleUser0001/Use_dat_sh
/use.sh
UTF-8
221
3
3
[]
no_license
#!/bin/bash filename=./build.dat while read data; do first=`echo ${data} | cut -d , -f 1` second=`echo ${data} | cut -d , -f 2` echo $first echo $second echo "---" done << END `cat ${filename}` END
true
321db9041cb0e2c8f8b7ea85230abe521cd9f0b0
Shell
croepha/rpi
/gles2_drm/build.sh
UTF-8
1,813
3.125
3
[ "Unlicense" ]
permissive
#!/bin/bash set -eu curl -Lf https://dri.freedesktop.org/libdrm/libdrm-2.4.94.tar.bz2 | tar -xj curl -Lf https://mesa.freedesktop.org/archive/mesa-18.2.0-rc5.tar.xz | tar -xJ cd libdrm-2.4.94 LDFLAGS="--sysroot=${SYSROOT} -Wl,-rpath=\\\$\$ORIGIN" \ ./configure \ --host=${TARGET} --enable-vc4 \ --disable-inte...
true
b1a7ba40fb4e5e319449b6dfff988922080bf5e1
Shell
mgijax/littriageload
/bin/findNLMrefresh.sh
UTF-8
2,316
3.734375
4
[]
no_license
#!/bin/sh # # # findNLMrefresh.sh # # The purpose of this script is to: # # 1. query the database for References that are # . reference type = Peer Reviewed Article # . have pubmed id # . do not have doi id # . creation date of MGD Reference is between today-7 and today # . relevance != discard # # 2. find the P...
true
a5b1f0924ce11e0a3d1683e3afd53d31d9f456a4
Shell
maheshdongare1983/bashscript
/forloopstring.sh
UTF-8
97
2.890625
3
[]
no_license
for i in `grep -l $oldString $searchFiles`; do sed -i "s/${oldString}/${newString}/g" $i; done
true
f4880496436c07bf16991abdb480e4cddf330513
Shell
montagist/dotfiles
/most-recent-dirs/install.sh
UTF-8
504
3.046875
3
[]
no_license
sqlite_exists=`command -v sqlite3` is_mac=`command -v sw_vers` if [[ $sqlite_exists == "" ]]; then echo "Command history needs Sqlite3 to be installed!!!" if [[ $is_mac == "" ]]; then wget http://www.sqlite.org/sqlite-autoconf-3070603.tar.gz else curl "http://www.sqlite.org/sqlite-autoconf-3070603.tar.gz"...
true
fcbb1cc07fcd5e3b9fa808a443e1341c94af62de
Shell
rodrigoramos/dotfiles
/archive/polybar/launch.sh
UTF-8
760
3.34375
3
[]
no_license
#!/usr/bin/env bash # Terminate already running bar instances killall -q polybar # Extract Wallpaper main color export WALLPAPER_MAIN_COLOR=$(convert /tmp/wallpaper-remoto.jpg +dither -colors 3 -define histogram:unique-colors=true -format "%c" histogram:info: \ | grep -o -E -m 2 "#[^\s]*" \ | tail -n 1) ...
true
15c2b98569231ac74cd07d69e4edb93e2a22c2a2
Shell
colinbdclark/gpii-infra
/dev/test/bin/terragrunt_wrapper
UTF-8
3,969
3.796875
4
[ "BSD-3-Clause" ]
permissive
#!/bin/sh # # This wrapper (rather naively) translates vanilla terraform commands, as # provided by kitchen-terraform, into terragrunt *-all commands. # # validate -> nothing -- terragrunt downloads modules into a tmp folder which # is not easy to get a hold of. For now, wel'l skip this step. # # plan -> nothing -- pla...
true
df56efe6cf01134bb8d89e0588af705fe1a6ae35
Shell
haanjack/benchmark
/tensorflow/exec_seq.sh
UTF-8
1,131
3.125
3
[]
no_license
#!/bin/bash # Tensorflow benchmark # Author: Jack Han <jahan@nvidia.com> # # Compatible with Tensorflow @NGC # This script works with provided dockerfile built image since it uses cloned benchmark code # output_dir="result" summary_freq=100 dataset_dir="/raid/datasets/wmt16_en_dt" benchmark_flag=1 function exec() { ...
true
2d3abd5e9ea69bb9548a5eb683852557ff8fe451
Shell
luzbaza/holberton-system_engineering-devops
/0x04-loops_conditions_and_parsing/8-for_ls
UTF-8
232
3.390625
3
[]
no_license
#!/usr/bin/env bash # script that displays: #+ The content of the current directory #+ In a list format #+ Where only the part of the name after the first dash is displayed LS="$(ls)" for i in $LS do echo "$i" | cut -d - -f2 done
true
09a02b44c8715da7dc5f5877ee4934c3746b7e05
Shell
erlerobot/snap_test_service
/script
UTF-8
407
3.1875
3
[]
no_license
#!/bin/sh set -e platform=$(uname -i) case $platform in x86_64) plat_abi=x86_64-linux-gnu ;; armv7l) plat_abi=arm-linux-gnueabihf ;; *) echo "unknown platform for snappy-magic: $platform. remember to file a bug or better yet: fix it :)" ;; esac mkdir -m1777...
true
5cb9ff823530d92b99b361e5cd2d14057bb17d2d
Shell
simonschuang/toolbox
/bin/nic-bonding.sh
UTF-8
807
3.734375
4
[]
no_license
#!/bin/bash NIC1="${1}" NIC2="${2}" IPCIDR="${3}" if [ -z $NIC1 ] || [ -z $NIC2 ];then echo "Usage: $0 <NIC1> <NIC2> [IP/prefix]" fi # Create bonding.conf for mounting bond module cat<<EOF > /etc/modprobe.d/bonding.conf # Prevent kernel from automatically creating bond0 when the module is loaded. # This allows syst...
true
84125956df5f8d80a198c9ba3e27e435cb0d6cb3
Shell
RJVB/macstrop
/bin/port-prune-patches
UTF-8
529
3.703125
4
[ "LicenseRef-scancode-public-domain" ]
permissive
#!/bin/sh if [ $# != 0 ] ;then PATCHFILES="$1" shift 1 if [ "$1" = "-y" ] ;then DRYRUN=1 shift 1 else DRYRUN=0 fi while [ $# != 0 ] ;do fgrep `basename "$1"` "${PATCHFILES}" 2>&1 > /dev/null if [ $? != 0 ] ;then if [ ${DRYRUN} ] ;then ...
true
b6465b34ff0d936c0815f68a8bfee98d7a1984b6
Shell
brunoluiz/bbb-can-installer
/04-activate.sh
UTF-8
731
3.328125
3
[]
no_license
#!/bin/bash if [ "$(id -u)" != "0" ]; then echo "Sorry, you are not root." exit 1 fi bitrate=$1 if [ -z $bitrate ]; then bitrate=1000000 fi # If you use some kind of device which needs custom modules, # don't forget to enable the module at the section below modprobe can modprobe can-dev modprobe can-raw # Se...
true
2052a17c76266d698bdc71d913fdb4e131529bd7
Shell
AkhtarZainab/BridgeLabz
/Loops/empwage6.sh
UTF-8
312
3.171875
3
[]
no_license
#!/bin/bash -x isparttime=1 isfulltime=2 totsal=0 emprate=20 numwrkdays=20 for (( day=1; day<=$numwrkdays; day++ )) do empcheck=$((RANDOM%3)) case $empcheck in $isfulltime) emphrs=8;; $isparttime) emphrs=4;; *) emphrs=0;; esac sal=$(($emphrs*$emprate)); totalsal=$(($totalsal+$sal)); done
true
553da9f9acc65abf5d9e2bf5c94428c41f8ee28b
Shell
danielsnider/object-tracking
/PT/ssh_to_pi.sh
UTF-8
370
3.78125
4
[]
no_license
#!/bin/bash if [ -z "$1" ] then echo "No argument supplied" exit 1 fi IP_ARG=$1 SIZE=${#IP_ARG} if [ "$SIZE" -gt "3" ]; then SEARCH_NET=$IP_ARG else SEARCH_NET="192.168.$IP_ARG.0/24" fi PI_IPS=$(sudo nmap -sP $SEARCH_NET | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}') for IP in $PI_IPS; do ec...
true
d5bc52c8995cc43b5241bf7c2d9e7afdbe69025e
Shell
Pausa90/BOLDProject
/jellyfishStarter.sh
UTF-8
857
3.453125
3
[]
no_license
#!/bin/bash #@author Andrea Iuliano & Valerio Cestarelli input="multifasta/" output="jellyfish/" if [ -d "$output" ]; then rm -R "$output" fi mkdir "$output" for dir in "$input"*; do dir_name=$(echo "$dir" | awk -v FS="/" '{print $NF}') dir_output="$output$dir_name" mkdir "$dir_output" for file in "$input/$d...
true
1637f1541ef763fbcd055f1d68717cf6fc9cef20
Shell
autyinjing/dev-env
/home/file/bash/.bashrc
UTF-8
3,024
2.59375
3
[]
no_license
# 只有在交互式shell中才输出 function ECHO() { [[ $- == *i* ]] && echo $1 } if [ -f /etc/profile ];then . /etc/profile fi # ***** 其他模块的配置文件 # git自动补全 source ~/.git-completion.bash # go自动补全 complete -C $HOME/bin/gocomplete go # ***** 环境变量 export EDITOR="vim" export PATH=$HOME/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr...
true
bf269c874a2b4f3e05b438c4e3dedabe51849ccb
Shell
abuharis/accenture
/abuharis.sh
UTF-8
801
3.78125
4
[]
no_license
#!/usr/bin/bash #Exit Codes case "$1" in start) echo "starting programme" stop ) echo "stoping programmme" restart ) echo "restarting programme" *) echo "nothing is happening" esac if [ $# -lt 1 ] then echo "Error:Atleast one argument required" exit 1 else echo "Hello world" echo "Error: we have s...
true
b4abd732e28e1db8d5a55a791088a59957342e6a
Shell
schlowm0/dot-files
/setup_repositories.sh
UTF-8
730
2.640625
3
[]
no_license
#!/bin/sh ssh-keygen -t rsa -b 4096 -C "m.milde@westernsydney.edu.au" cat ~/.ssh/id_rsa.pub | cop read -p "SSH PUB ID has been copied to clip board. Please add it to Github and Gitlab and then press [Enter] key to continue..." # Set up standard repositories mkdir ~/Repositories sudo chown -R schlowmo:schlowmo Repositor...
true
b009fa2fe1a314132279b2c2878f7d6a0c3c9bd9
Shell
Wayne-Inc/Wayne-OS
/usr/bin/smbproviderd-jailed
UTF-8
920
2.8125
3
[]
no_license
#!/bin/sh # Copyright 2017 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # Run smbprovider with minijail0. # -i makes sure minijail0 exits right away. # -p Enter a new PID namespace and run the process as init (pid=1...
true
3f92d9adbffe4a5f752f7ee3d768c4768c3e7d25
Shell
ypetya/bash_lib
/git/branch_new.sh
UTF-8
128
2.671875
3
[]
no_license
function git.branch_new() { local branch_name="${1?param missing : new branch name from HEAD}" git checkout -b $branch_name }
true
13dd83953332afabf1df7e5f4f468a4c6547dd30
Shell
chao-master/bin
/purgebin
UTF-8
252
2.640625
3
[ "MIT" ]
permissive
#!/bin/bash set -euo pipefail #If packages or node_modules: stop (prune) #Otherwise: If bin or obj: execute ynrfmf and stop (prune) find -type d \( -name packages -o -name node_modules \) -prune -o \( -name bin -o -name obj \) -prune -exec ynrmf {} +
true
8d63737815115a0c17e8500cbf111cd092b14412
Shell
b1f6c1c4/git-fancy-push
/git-fancy-push
UTF-8
7,815
3.78125
4
[ "MIT" ]
permissive
#!/bin/bash if [ -z "$VERBOSE" ]; then VERBOSE= else VERBOSE=YES fi set -euo pipefail if [ -r ~/.git-fancy-push ]; then TOKEN="$(cat ~/.hub-sync)" else printf 'Error: \e[36mgit-fancy-push\e[0m needs a GitHub token to run!\n' >&2 printf 'Error: Please put your GitHub personal access token to \e[33...
true
503fab926defae98cc7b222accc16541ed0c9fc8
Shell
fzhantw/how-I-setup-lemp-server
/script.sh
UTF-8
630
3.25
3
[]
no_license
EXIT_SIGNAL="0"; while : do printf "Please Choose Some Action:\n" printf "1. install oh my zsh \n" printf "2. install vim\n" printf "3. install web server\n" printf "4. install composer\n" printf "5. build a virtual host\n" printf "6. install mysql(mariadb)\n" printf "7. install php\n" printf "put in q to leave\n" read...
true
9fddcb4b554d2ed7a241254ae3121b4f47a5af5e
Shell
hebra/bingground
/bing-image-of-the-day.sh
UTF-8
622
3.515625
4
[]
no_license
#!/bin/bash # # This script retrieves the Microsoft Bing! picture of the day and sets it as background image. # # (C) 2016 Hendrik Brandt # # Released under term of Simplified BSD License # imgFolder=~/.local/share/bingground mkdir -p $imgFolder imgJSON=$(curl -s "http://www.bing.com/HPImageArchive.aspx?format=js&id...
true
2b633dbf05fa674208c0670fd023b9d34533c4c7
Shell
shlomif/shlomif-computer-settings
/shlomif-settings/Bash/Themes/old-themes/perl/svn-lwi/source.bash
UTF-8
724
2.859375
3
[]
no_license
load_common mymake base="/home/shlomi/progs/perl/Subversion/light-web-interface" trunk="$base/trunk" this="$trunk" rw_repos_url="svn+ssh://svn.berlios.de/svnroot/repos/web-cpan/svn-light-web/" read_repos_url="svn://svn.berlios.de/web-cpan/svn-light-web" # Make sure that gvim's filename completion ignores filenames th...
true
82debe524c3f46b1b4be7ce090707cc519cfd5a1
Shell
dkav/scripts
/multimedia/exiftool-photo-rn.sh
UTF-8
404
3.515625
4
[]
no_license
#!/bin/zsh # # Add timestamp and suffix to photo. # # Usage: rn_photo file/folder <suffix> # # Options: -s Remove seconds from file name fname="%Y%m%dT%H%M%S" while getopts ":s" opt; do case ${opt} in s) fname="%Y%m%dT%H%M" ;; \?) echo "Invalid option: -$OPTARG" >&2 ;; esac done shift $((OPTIND - 1)) e...
true
136788d6abbff0e103376f1bde2642946ccff3c0
Shell
praeclarum/Iril
/getstl.sh
UTF-8
559
2.515625
3
[ "MIT" ]
permissive
set -e set -x if [ ! -f ${TMPDIR}stl.zip ]; then wget -O ${TMPDIR}stl.zip https://github.com/llvm/llvm-project/archive/release/8.x.zip fi unzip -n ${TMPDIR}stl.zip -x /clang-tools-extra/* clang compiler-rt debuginfo-tests libclc libcxxabi libunwind polly llvm -d ${TMPDIR}stlwork pushd ${TMPDIR}stlwork/llvm-proj...
true
0954c1208b3146e32505bfd47d2a71d5ef301786
Shell
as8175802986/Bridgelabz-shell
/power2.sh
UTF-8
108
2.890625
3
[]
no_license
#!/bin/bash/ -x read n power=1 for (( i=1; i<=n; i++)) do echo "2^" $i "=" $power power=$((2*power)) done
true
9e485c0e864007bebe640ed58fc0df68ed31ee67
Shell
tsingui/k3c_code
/ugw/feeds_thirdparty/quantenna/files/qtn_scripts/qtn_wlan_ap_start
UTF-8
25,391
3
3
[]
no_license
#!/bin/sh if [ ! "$ENVLOADED" ]; then if [ -r /etc/rc.conf ]; then . /etc/rc.conf 2> /dev/null ENVLOADED="1" fi fi if [ ! "$CONFIGLOADED" ]; then if [ -r /etc/rc.d/config.sh ]; then . /etc/rc.d/config.sh 2>/dev/null CONFIGLOADED="1" fi fi WLMN_INDEX=$1 WPS_INDEX="0" WLAN_VENDOR_NAME="" QTN_TARGET_IP="$C...
true
8c4037c030e0d0d11edd86eb4a15a6acc0c9c482
Shell
kyleoliveira/docker-mucumber
/bin/run_tests.sh
UTF-8
153
2.578125
3
[]
no_license
#!/usr/bin/env bash source $HOME/.bashrc source /etc/profile.d/rvm.sh if [ "$PARALLEL" = "true" ]; then parallel_cucumber "$@" else cucumber "$@" fi
true
f69eb341699f76658bf4390efcd3ff843c57cc3c
Shell
7-1-M/gc-extraction
/linExt.sh
UTF-8
595
3.453125
3
[]
no_license
#!/bin/bash dist=`uname -s` filename=`id -un`-pwlist case "$dist" in Linux) echo "Linux Extractor" sqlite3 -csv -header '/tmp/chrome-tmp/Default/Login Data' "select * from logins" >> $USER-pwlist.csv ;; Darwin) echo "Mac OS Extractor" curl hkn.gafner.eu/scripts/macPwExt.py >> ext.py python ...
true
de306b8bc43feabbba54ed0e697e25ac4fe2d24f
Shell
helloSystem/ISO
/overlays/uzip/hello/files/usr/local/bin/screencast
UTF-8
1,901
2.8125
3
[ "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
#!/bin/sh # Sound filters from # https://dsp.stackexchange.com/questions/22442/ffmpeg-audio-filter-pipeline-for-speech-enhancement # TODO: Port to PyQt5, add logic to detect the last plugged in microphone device properly, maybe add a tray manu PCM=/dev/$(cat /dev/sndstat | grep rec | tail -n 1 | cut -d ":" -f 1) DSP...
true
54dc1f07d3eb4cddba6e439c061ec633c230782f
Shell
heywoodlh/dockerfiles
/rdp-kali-linux/startup/pkgs.sh
UTF-8
332
3.15625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash PKGS='' if [[ ${MSF_ENABLE} == 'true' ]] then PKGS+='metasploit-framework ' fi if [[ -n ${PKGS} ]] then apt-get update apt-get install -y ${PKGS} apt-get autoremove -y &&\ apt-get clean &&\ rm -rf /var/lib/apt/lists/* fi if [[ ${MSF_ENABLE} == 'true' ]] then service postgresql start ms...
true
c4a5769f3eb0676fd970836663e0b4a2331c98f2
Shell
dongliwu/zabbix_userparameter
/scripts/mysql_status.sh
UTF-8
419
3.390625
3
[]
no_license
#!/bin/bash #MYSQL="/usr/local/mysql/bin/mysql" MYSQL="/bin/mysql" MYSQL_CONF="/usr/local/zabbix/.my.cnf" FILE="/tmp/mysql_status.txt" case $1 in update) echo "show global status;"|${MYSQL} --defaults-extra-file=${MYSQL_CONF} -N > ${FILE} ;; version) ${MYSQL} -V ;; ping) ${MYSQL}admin --defaults-extra-fi...
true
b9dc3333f155e717258b5628c755312a7ede1da4
Shell
howiefh/UbuntuAssist
/install/local/install_jdk.sh
UTF-8
627
2.71875
3
[]
no_license
#!/bin/bash ver=1_8 sudo mv jdk$ver /usr/java/jdk$ver # 设置环境变量 text='\nexport JAVA_HOME=/usr/java/jdk'$ver'\nexport JRE_HOME=${JAVA_HOME}/jre\nexport CLASSPATH=.:${JAVA_HOME}/lib\nexport PATH=.:${JAVA_HOME}/bin:$PATH' echo -e $text >> $HOME/.bashrc # sudo sh -c 'echo -e $text >> /etc/environment' # 替换默认java sudo upd...
true
1140b05c4d0aa1a4493a633d2ff978e8f9a40575
Shell
OkieOth/d_psql9.6_osm
/bin/container/start_server.sh
UTF-8
1,827
3.59375
4
[ "Apache-2.0" ]
permissive
#!/bin/bash scriptPos=${0%/*} source "$scriptPos/conf.sh" source "$scriptPos/../../../bin/image_conf.sh" docker ps -f name="$contNameServer" | grep "$contNameServer" > /dev/null && echo -en "\033[1;31m Container läuft bereits: $contNameServer \033[0m\n" && exit 1 dataDir=`pushd "$scriptPos/.." > /dev/null && pwd ...
true
adda53dc43561f6f08540cea8973652cca867d94
Shell
avanger9/Compiladors
/parcial-lab-2018/examen/evaluator.sh
UTF-8
560
3.390625
3
[]
no_license
#! /bin/bash score=0 for jp in jps/*.json; do bname=`basename $jp .json` ./json2xml < $jp >& $bname.tmp if [[ $? > 1 ]]; then cat $bname.tmp rm -f $bname.tmp exit fi if ( grep -q '<OBJECT>' $bname.tmp ); then xmllint -format -encode utf8 $bname.tmp > $bname.out ...
true
0cbc767f1e4b32dd2bac9612805fe4ce7e2b8d18
Shell
LeuKgeGne/SSCM_lab1
/Unix's Start/run.sh
UTF-8
273
3.34375
3
[]
no_license
#! /bin/bash statusfile=$(mktemp) tmpscript=$(mktemp) echo $1 >> $tmpscript echo 'echo $? > '$statusfile >> $tmpscript echo $1 chmod 777 $tmpscript xterm $tmpscript status=$(cat $statusfile) rm $statusfile rm $tmpscript echo "RETURN CODE: " echo $status exit $status
true
fa1eb8a5c535eb91b5a78f6dc3a4a48d75671bc2
Shell
Blizarre/aff3D
/run_clang-tidy.sh
UTF-8
322
3.125
3
[]
no_license
#!/bin/sh set -e if test ! -f compile_commands.json; then echo "The compilation database (compile_commands.json) has not been found in echo "the current directory. You should execute this script from the Cmake echo "build directory." exit 1 fi find "$(dirname "$0")/src" -iname "*.cpp" -exec clang-tidy '{}' \...
true
7ed524bb3f32eee51176f84ba22df317920bdc71
Shell
DanielCuSanchez/programacion-bash
/P09_1703613.sh
UTF-8
1,628
3.765625
4
[]
no_license
#!/usr/bin/ksh ####################################################################### # ITESM-CQ # # Objetivo: Laboratorio del uso del condicional if-else-if, solución # # de problemas que permiten gestionar información de UNIX. # # ...
true
318a70af6aec76e374ba216c4fa49444cdf50920
Shell
alexbenic/dotfiles
/sway/.config/sway/scripts/pacman
UTF-8
246
3.125
3
[]
no_license
#!/usr/bin/env bash #COLORS readonly WARNING=#FF5252 readonly DEFAULT=#C9CCDB #color= packages="$(yaourt -Qua | wc -l)" echo "${packages}" echo "${packages}" if (( "$packages" == 0 )); then echo "${DEFAULT}" else echo "${WARNING}" fi
true
1a1aac9c794b44d27356b99effb70537524133cd
Shell
taowuwen/codec
/bash/test/sync_a/sync_check.sh
UTF-8
745
3.453125
3
[]
no_license
#!/usr/bin/env bash check_and_start_master() { pid=$(ps -aux | grep -i "inotifywait" | sed '/grep/d' | awk '{print $2}' | head -1) if ! [ $pid > 0 ]; then echo "$(date) master not running" /root/sync/be_master.sh else echo "$(date) master running $pid" fi } check_and_start_slave() { pid=$(ps -aux | grep -...
true
a8e27a21e099d4fbc37c603cc6d87403c3ef355c
Shell
ffermo/ConfigurationFiles
/.bashrc
UTF-8
3,891
3.4375
3
[]
no_license
# Configuration for Bash Shell # Personal aliases. alias py='python' alias run='./a.out' alias la='ls -A' alias l='ls -CF' alias ll='ls -ahlN --time=ctime --color=auto --group-directories-first' alias xtmux='export DISPLAY="`tmux show-env | sed -n 's/^DISPLAY=//p'`"' # cd into directory by typing directory name. shop...
true
d9222a6c65251227aec6c92044e328bc66ca4a71
Shell
squillace/azurework
/bash/vmfind.sh
UTF-8
1,338
3.765625
4
[]
no_license
#!/bin/bash groupstotest=$# # this passes the number of arguments passed **after** the command name, which is always the first argument if [[ $# -eq 1 ]]; then echo "one group passed." else echo "There were $groupstotest groups passed."; fi declare -a missing count=0 for ((i=1; i<$(($groupstotest + 1)); i++)) ...
true
aaca662936f57e04de4bbe939bdaaf264e5cdbe6
Shell
become-hero/shellTestProgram
/10_7_1.sh
UTF-8
338
3.375
3
[]
no_license
#!/bin/bash source /etc/init.d/functions if [ $# -ne 1 ];then echo "usage:$0 url" exit 1 fi while true do if [ `curl -o /dev/null --connect-timeout 5 -s -w "%{http_code}" $1|egrep -w "200|301|302"|wc -l` -ne 1 ];then action "$1 is error" /bin/false else action "$1 is ok" /bin/true fi...
true
55ca505e113c608901102f0fa912eb2102f1df1c
Shell
afrepues/nix-scripts
/nixos-generations-list
UTF-8
760
3.59375
4
[]
no_license
#!/usr/bin/env bash # TODO: Use =configuration-name= NIXOS_SYSTEM_DIR=/nix/var/nix/profiles/ { echo "generation version date" find ${NIXOS_SYSTEM_DIR} -mindepth 1 -maxdepth 1 -iname "system-*-link" \ | sort -t- -k3n \ | while read generation_path do generation=$(basena...
true
2b3f72d3bb9ca7018b1bee988c9e3811aa92fe80
Shell
beichengfff/vue-project
/f8x-ctf
UTF-8
11,531
3.125
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # ===================== 基础变量设置 ===================== if test -e /usr/local/bin/f8x then sleep 0.001 else curl -o f8x https://f8x.io/ && mv --force f8x /usr/local/bin/f8x && chmod +x /usr/local/bin/f8x && echo -e "\033[1;36m$(date +"%H:%M:%S")\033[0m \033[1;32m[INFOR]\033[0m - \033[1;32m已安装...
true
c32b2f9e16fd5320f3a704b929f71904101adca0
Shell
MomomeYeah/Flask-CLIPlus
/sample/install.sh
UTF-8
246
3.140625
3
[ "MIT" ]
permissive
#!/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # remove currently installed version, if any . "${DIR}/uninstall.sh" # copy to /etc/bash_completion.d with no file extension sudo cp -T "${DIR}/cli_plus.sh" "${INSTALL_PATH}"
true
aebd7eea6f59498c50aacbe1e10178f59bb665df
Shell
lieutdan13/weave-test-java
/build.sh
UTF-8
2,226
3.5625
4
[]
no_license
#!/bin/bash ### Copyright 2012-2013 by Garth Johnson as weave.sh # # This script will build the alpha_engine for testing # # # you can override the javac path by setting JAVAC_EXEC # ## Configure debug if [ "ALL" == "${DEBUG:-false}" ]; then DEBUG_JAR_ARCHIVE="v" CURL_SILENT='' fi ## Default to silent curl ...
true
08bd5c1da03fa9e11f33e57393f6ecd7a5902fa0
Shell
olderzeus/addnas_source
/1470_Firmware_Source/buildroot-patches/target/device/Oxsemi/root/target_skeleton/etc/hotplug/oxnas_soft_power_button.agent
UTF-8
857
2.890625
3
[]
no_license
#!/bin/sh cd /etc/hotplug . ./hotplug.functions setpoweroff() { # busy box function to poweroff the system is invoked poweroff } debug_mesg oxnas power button case $ACTION in offline) debug_mesg oxnas power buton power off request setpoweroff ...
true
0108743adc8d45ab430d7b6d3712f4e8a3c393b1
Shell
CodyReichert/dotfiles
/scripts/.scripts/smirk
UTF-8
777
3.84375
4
[ "MIT" ]
permissive
#!/usr/bin/env sh # smirk - a simple mpc wrapper for creating shuffled playlists. playRandomAlbum () { mpc clear; mpc search album "$(mpc list album | shuf -n 1)" | mpc add; mpc play } playRandomGenre () { mpc clear; mpc search genre "$1" | shuf | mpc add; mpc play; } shuffleArtist () { mpc clear; m...
true
aefce3cc4fdcca47e2aab5a904c85709f753709b
Shell
nla/robinfs
/make.sh
UTF-8
217
2.65625
3
[]
no_license
#!/bin/sh [ -z ${CC} ] && CC=gcc CFLAGS="${CFLAGS:--Wall}" CPPFLAGS="${CPPFLAGS} -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26" LDFLAGS="${LDFLAGS} -lfuse" ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o robinfs *.c "$@"
true
78173b068d0d7af1e1f9419b30846c620268faf3
Shell
isaaclimdc/cachemulator
/src/cachemulator.sh
UTF-8
1,211
3.890625
4
[ "MIT" ]
permissive
#!/bin/bash # CACHEMULATOR # Yuyang Guo (yuyangg) and Isaac Lim (idl) function cleanTmpFiles { declare -a UGLYFILES=("*.out" "*.tmp") for UGLYFILE in "${UGLYFILES[@]}" do if ls $UGLYFILE &> /dev/null; then rm $UGLYFILE fi done } function cleanAllTmpFiles { declare -a UGLYFILES=("*.out" "*.rep...
true
cd1971296eeb5c1bda661d557a3f7cc504db9dad
Shell
ECALELFS/ECALELF
/EcalAlCaRecoProducers/scripts/checkEOS.sh
UTF-8
639
3.984375
4
[]
no_license
#!/bin/bash fileList=$1 if [ ! -r "${fileList}" ];then echo "[ERROR] File ${fileList} not found or not readable" >> /dev/stderr exit 1 fi echo "[INFO] Checking eos files for ${fileList}" datasets=`parseDatasetFile.sh ${fileList}` if [ -z "${datasets}" ];then echo "[ERROR] No rereco found in alcarereco_da...
true
a5034b554b213dafd09a7a8a7db6cf09df3a41d4
Shell
hossamradwan/Database-Management-System
/main.sh
UTF-8
1,205
3.796875
4
[]
no_license
#!/bin/bash PS3="hosql-main>" databasesIsCreated=0 function createDatabaseFolder { for count in `ls 2>>./.error.log` do if [ $count == "databases" ] then databasesIsCreated=1 break fi done if [ $databasesIsCreated -eq 0 ] t...
true
067f8d377adf608e1afc7b460334cc7e20fbf7de
Shell
cdw33/dotfiles
/scripts/bin/google
UTF-8
165
2.625
3
[]
no_license
#!/bin/sh #searches Google for the given string clear && for i in "$searchString"; do lynx --accept-all-cookies http://www.google.com/search?q="$searchString"; done
true
820d5a58e14125cdd1453cb686020fcbfd5fa15b
Shell
djhn75/scripts
/runCircBase.sh
UTF-8
2,113
3.609375
4
[ "MIT" ]
permissive
#!/bin/bash #runCircBase.sh (-p if paired) refGenome chromDir *.fastq if [ $1 = '-p' ] then PAIRED=true REFGENOME=$2 CHROMDIR=$3 shift else PAIRED=false REFGENOME=$1 CHROMDIR=$2 fi echo 'Paired = '$PAIRED echo 'Ref Genome = '$REFGENOME echo 'ChromDir= '$CHROMDIR shift shift for i in $@ do if [ $PAIRED...
true
0e71694708eb3438b2a10fd44ef0754a5e6d8cd3
Shell
Oceanswave/sharepoint-tableau-poc
/install-tableau-ubuntu.sh
UTF-8
2,950
3.015625
3
[]
no_license
#! /bin/bash export TABLEAU_VERSION=2020.2.4 export TSM_USER_NAME=tsmadmin export TSM_USER_PASSWORD=tsmadmin sudo apt-get -y install git curl unzip gdebi-core git clone https://github.com/tableau/server-install-script-samples server-install --depth 3 # Download the tableau server binaries (https://www.tableau.com/su...
true
d667f8268979b1257d78895764bfe73df59969a6
Shell
mihai-dev-ro/cloud-cluster-spin-up
/dcos-scripts/install-dcos-services.sh
UTF-8
1,238
2.90625
3
[]
no_license
#!/bin/bash # retrieve current directory DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" # config directory BASE=${DIR##*/} DCOS_CONFIG_DIR=${DIR%$BASE}"dcos-services-config" # install spark-shuffle services dcos marathon app add "$DCOS_CONFIG_DIR/spark-shuffle-config.json" # wait for shuff...
true