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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
a495574454c2212b571ddf392e6d99b1764056ae | Shell | insofter/icd | /scripts/icd-current | UTF-8 | 2,078 | 3.296875 | 3 | [] | no_license | #!/bin/sh
case "$1" in
eth)
case "$2" in
ip)
ifconfig eth0 | sed -n 's/^[^i]*inet addr:\([0-9.][0-9.]*\).*$/\1/p'
;;
mask)
ifconfig eth0 | sed -n 's/^[^M]*Mask:\([0-9.][0-9.]*\).*$/\1/p'
;;
gate)
route | sed -n 's/^default[[:space:]]*\([0-9.][0-9.]*\).*$... | true |
cc935ae033e652af349962e10c9bc42c603a5309 | Shell | m-luck/c_utility_benchmarker | /runscript.sh | UTF-8 | 388 | 3.109375 | 3 | [] | no_license | #!/bin/bash
# simple script to build and run the c program
BLOCK_SIZE=$1
# create a file of BLOCK_SIZE bytes
dd if=/dev/zero of=./output.dat bs=$BLOCK_SIZE count=1;
# compile the c script
gcc testscript.c -o testfile
# run the script
./testfile $BLOCK_SIZE
# remove the script after running
rm testfile
# remove the d... | true |
d95ce2436a2777e674be14a0d3c7f73809481612 | Shell | northfun/SelfUseTrackNum | /fftranslateCmd.sh | UTF-8 | 1,312 | 3.5625 | 4 | [] | no_license | #! /bin/sh
checkInt1(){
tmp=`echo $1 |sed 's/[0-9]//g'`
# [ -n "${tmp}" ] && { echo $1"Args must be integer!";echo 1; }
[ -n "${tmp}" ] && echo 1
}
#getparams(){
# echo $1
# list=`$1`
# for var in $list ; do
# res=`checkInt1 $var`
# if [ "$res" == "1" ];then
# continue... | true |
accd17a09836702aa48592085ae38dcc43152add | Shell | antx42/basescript | /check/check-base-env-file.sh | UTF-8 | 1,343 | 3.65625 | 4 | [] | no_license | #-----------------------------------------------------------------------
#
# Basescript function
#
# The basescript functions were designed to work as abstract function,
# so it could be used in many different contexts executing specific job
# always remembering Unix concept DOTADIW - "Do One Thing And Do It Well"
#
# ... | true |
4ebe7d07c607dcfa8b9d2b6f9c0e78ee6ce0f157 | Shell | n18006/unix1 | /0613/061301.sh | UTF-8 | 146 | 2.703125 | 3 | [] | no_license | #!/bin/bash
today=$(date '+%s')
summer_vacation=$(date -d '20180910' '+%s')
ret=$(($summer_vacation - $today))
ret=$((ret/87400+1))
echo $ret日
| true |
761041be56b3f983341ec2876f425341581dd5e6 | Shell | SAKSHIPATEL/AddressBook | /address.sh | UTF-8 | 2,513 | 3.625 | 4 | [] | no_license | #!/bin/bash -x
echo "welcome to adress book"
declare -A address
echo "maximum slots is 10"
for ((i=0;i<10;i++))
do
address[$i,0]=" "
done
function Address(){
read -p "Enter First name:" Firstname
address[$1,0]=$Firstname
read -p "Enter Last name:" Lastname
address[$1,1]=$Lastname
... | true |
8509aceff324c89dde75d47e253326b4f16e47fe | Shell | seantrane/dotfiles | /shell/response.sh | UTF-8 | 3,784 | 2.84375 | 3 | [
"ISC"
] | permissive | #!/usr/bin/env bash
#
# Shell Response Text/Colors/Helpers
#
# This file contains text/color effects and
# text-response helper functions for Shell scripts.
#
# shellcheck disable=SC1090,SC1091
# Color Switch
export SWITCH='\033['
# Clear whole line and hard-line-return
export ClearLine="${SWITCH}2K"
export ClearLine... | true |
9567205e1e7140c10d61ece34f6bb4f2e9b65616 | Shell | emre-basala/heroku-inkscape-buildpack | /bin/compile | UTF-8 | 914 | 3.09375 | 3 | [] | no_license | #!/usr/bin/env bash
BUILD_DIR=${1:-}
CACHE_DIR=${2:-}
mkdir -p "$BUILD_DIR/.intltool"
cd "$BUILD_DIR/.intltool"
# wget https://launchpad.net/intltool/trunk/0.51.0/+download/intltool-0.51.0.tar.gz
# tar -xf intltool-0.51.0.tar.gz
# cd intltool-0.51.0
# ./configure
# make
curl http://ftp.gnome.org/pub/GNOME/sources/intl... | true |
b6f703b614008d667b82179f8919ac3ef791a033 | Shell | TobyHFerguson/OpenX_GCP_PoC | /bin/make-ssh-config.sh | UTF-8 | 1,747 | 3.75 | 4 | [] | no_license | . $(dirname $0)/../cluster.properties
# Use jq to number the different roles
#PREFIX=${1:?"No name prefix supplied"}
# Hosts by role is an array with the 0,2,4 etc. being keys, and the 1,3,5 etc being values
# The keys are in the set {cm,gateway,master,worker} and are sorted
hosts_by_role=($(gcloud compute instances... | true |
1877af0f2ae2ab1934b6611f889a0a4fa7c09081 | Shell | 3453-315h/mirror-hack.co.za | /hack.co.za/exploits/os/solaris/sparc/2.5.1/ffcore.sh | UTF-8 | 3,650 | 3.328125 | 3 | [] | no_license | #!/bin/sh
# /usr/openwin/bin/ff.core exploit - horizon
# tested on 2.5.1, and 2.6
# thanks to joej, adm, and joej :>
# you can use ff.core to do a rename() as root
# files must be on same filesystem and the destination must be in a
# directory that is a subset of the source directory
# this exploit can be ... | true |
240bab42787a3502df9238050a7cfc278eb70b97 | Shell | hfiguiere/exifprobe | /makebyteorder.sh | UTF-8 | 558 | 3.359375 | 3 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | #!/bin/sh
# @(#) $Id: makebyteorder.sh,v 1.1 2003/01/12 19:30:31 alex Exp $
if test -f /usr/include/machine/endian.h
then
byteorder=`grep BYTE_ /usr/include/machine/endian.h`
elif test -f /usr/include/bits/endian.h
then
byteorder=`grep BYTE_ /usr/include/bits/endian.h`
fi
case "${byteorder}" in
*BIG*) ech... | true |
3fcb1c9aff8549d4ee4ab96ca982ad481cd6a232 | Shell | sanjaymadane/qpk-studio | /shared/init/initcontainer.sh | UTF-8 | 1,707 | 3.671875 | 4 | [] | no_license | #!/bin/sh
CONF="/etc/config/qpkg.conf"
CONTAINER_STATION_NAME="container-station"
CONTAINER_STATION_PATH=$(/sbin/getcfg $CONTAINER_STATION_NAME Install_Path -f $CONF)
mountlocaltime=" -v /etc/localtime:/etc/localtime"
SYSTEM_MOUNT=" -v /etc/qbus:/etc/qbus -v $CONTAINER_STATION_PATH/usr/bin/.libs/qbus:/bin/qbus -v /va... | true |
701d0fcbccc88d05955b330d0d032ab60c0d213a | Shell | rkudache31/AWS_IAM_Script | /usermanagment.sh | UTF-8 | 1,598 | 3.421875 | 3 | [] | no_license | ####################################################################
#Script Details:- This script for user managment activity #
#Auther:- Ravindra Kudache Date:- 21-08-20 #
####################################################################
echo "Please select one of the codition
... | true |
711f82effae7a1e454087b16e5dfaa7a74991ae6 | Shell | BullHacks3/DevSecops | /Bash_Script/Linux_Commands/test.sh | UTF-8 | 243 | 3.1875 | 3 | [] | no_license | #!/bin/bash
function command_descriptor()
{
for i in `cat README1.md`;
do
help=$(man $i | grep -i -A1 NAME | head -2 | tail -1 | awk '{$1=$2="";print $0}')
printf "%-10s \t \t | %s \n" "$i" "$help" >> new.txt
done
}
command_descriptor
| true |
84fc0fd0529d1d7acc4f99352fc458b8b5d59f68 | Shell | yank07/WPM | /produccion/production_deploy.sh | UTF-8 | 933 | 3 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#restaurar la bd en una nueva
echo Poblando la base de datos... Si se le solicita la contraseña del usuario postgres, ingresela
su postgres -c "psql -q WPMDB_prod < wpmdb.sql"
#crear directorio para descargar del git
echo Descargando proyecto de github
mkdir source
cd source
git clone https://github.com... | true |
ca89547c3dfd355e5010889618b37f556a1753d2 | Shell | allardais/validwd | /tools/import_index.bash | UTF-8 | 743 | 3.3125 | 3 | [] | no_license | #!/bin/bash
source values.bash
echo -e "\n`date +%T` Выполняется импорт индекса json\n"
echo "drop table if exists jsonindex; \
create table jsonindex ( \
item char (20) primary key, \
pos bigint, \
len int); \
load data local infile '"$WORK_FILES_PATH"index.csv' \
into table jsoninde... | true |
57e6908eb64db9b231a64400701b7d283fd28b40 | Shell | elsom25/dotfiles | /script/clean | UTF-8 | 220 | 2.75 | 3 | [] | no_license | #!/bin/bash
#
# install without user input
DOTFILES_ROOT="`pwd`"
source "${DOTFILES_ROOT}/script/base/common.sh"
source "${DOTFILES_ROOT}/script/base/uninstall.sh"
set -e
echo ''
delete_all
echo ''
echo ' Cleaned!'
| true |
55a274442fa19ff0e2ac301cac56801f5b4a444e | Shell | andrew19932/monitoring | /apache-exp.sh | UTF-8 | 2,411 | 3.3125 | 3 | [] | no_license | #!/usr/bin/env bash
cd /home/andrew
curl -O https://dl.google.com/go/go1.11.linux-amd64.tar.gz
sudo tar -C /usr/local -xvzf go1.11.linux-amd64.tar.gz
echo "export GOPATH=$HOME/go" >> ~/.profile
echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.profile
source ~/.profile
go get -v github.com/Lusitaniae/apache_exporter
sud... | true |
f53ff9ed8d6aa96049ebd7ae763ac10dc2483bd4 | Shell | remigermain/corewar | /script/vm_script_diff.sh | UTF-8 | 1,518 | 3.25 | 3 | [] | no_license | #!/bin/bash
WORSE="0"
BEST="16777216"
COUNTER=$1
SUM="0"
ERROR="0"
if [[ $# -ne 3 ]]
then
echo -e "You need 3 params\nscript [cycle start] [cycle_end] <champion.cor>"
exit;
fi
if ! [[ "$1" =~ ^[0-9]+$ ]]
then
echo -e "your param 1 \"$1\" is not integers"
ERROR="1"
fi
if ! [[ "$2" =~ ^[0-9]+$ ]]
then
echo -e "your... | true |
1f8782337e38dff7e2376b46a193b6e80358e079 | Shell | dmsherazi/SPA3000-Rebooter | /spa-rebooter.sh | UTF-8 | 704 | 2.796875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#developed by Dost Muhammad Shah
# github.com/dmsherazi
# Reboots spa3000 by finding them using arp-sacn
# the script serches for cisco lynksis OUI 00:18:f8 ,00:18:39 and 00:14:bf
# This script should work with paswword protected SPA3000 as well.
# Tested with SPA 3000 with the following Software & Har... | true |
76559a8b754662a8b50bd2496ff7401994a92a90 | Shell | esteba61/Hadoop-provision | /scripts/setup-nodemaster.sh | UTF-8 | 5,558 | 3.125 | 3 | [] | no_license | #!/usr/bin/bash
function sudoAdmin {
sudo -i
}
function hadoopUser {
useradd hadoop
echo -e "hadoop" | (passwd --stdin hadoop)
}
function installTools {
yum install -y java-1.8.0-openjdk-devel sshpass
cat > /etc/hosts <<EOF
192.168.92.10 nodemasterx
192.168.92.11 nodea
192.168.92.12 nodeb
EOF
}
function sshke... | true |
85352e794b2e38e5accc787c267ea02e52afee2b | Shell | TomTheTornado/COMS327 | /Turnin.sh | UTF-8 | 1,324 | 4.03125 | 4 | [] | no_license | #!/bin/bash
#
# Place this in a file named: Turnin.sh
#
# To run type: ./Turnin.sh
#
# If it says permission denied then you will need to change
# the permissions with the command: chmod 777 Turnin.sh
#
set -eu;
read -p "Enter Firstname: " FNAME;
read -p "Enter Lastname: " LNAME;
read -p "Enter Assignment Number: " ... | true |
35a5f29d11f881796b19680ea4fd6f7bd2f37d59 | Shell | Noremac201/cs310 | /505/' | UTF-8 | 442 | 3.15625 | 3 | [] | no_license | #!/bin/bash
gen_rand () {
echo gen_rands
rm input.dat
echo 4 >> input.dat
printf "\n" >> input.dat
for i in `seq 4`
do
for n in `seq 4`
do
echo $(( ( RANDOM % 10 ) + 1 )) >> input.dat
printf "\n" >> input.dat
done
done
}
gen_rand
./main < input.dat 1>>/dev/null ... | true |
798510eb86e3bf61bb9e72be8bcd6e5297ac0042 | Shell | drscream/tm-env | /bin/scripts/vpkg | UTF-8 | 3,853 | 4.21875 | 4 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env bash
# vpkg by tm@core.io
# Manage virtual pkgsrc environments easily with an simple shell script. To
# have easy commands feel free to create shell aliases.
# Defaults
VPKG_DIR=${HOME}/.vpkg
VPKG_GIT="git@github.com:NetBSD/pkgsrc.git"
# Personal configuration file for overwrite defaults
test -f "${HOM... | true |
3023fcf32397defc3270702e2c31c8b46b95ccbf | Shell | Chengjian-Tang/owb-mirror | /tags/Doduo_1.1/BAL/scripts.old/run_create_all.sh | UTF-8 | 2,409 | 3.734375 | 4 | [] | no_license | #!/bin/bash
#takes input files (and path and module) from list_BI.txt file
#generate BI/BC files
#execute: "cat non_generatedBI_files.txt | sort -u" to see the list of input files that can't generate a BI
#takes only the $1 first entries (if empty, takes 20)
nb=$1
if [ -z "$nb" ];
then
nb=20
fi
HEAD="head -n $nb"
F... | true |
d7d0054db45f492ef196685c67a21e2d164504e8 | Shell | maiziex/10X_project | /src/extract_gold_locus.sh | UTF-8 | 4,080 | 2.78125 | 3 | [] | no_license | #!/bin/bash
############################# cut chromosome for three files ################################
for i in {1..22}
do
chr_num=$i
output_prefix="NA12878_gold_pos_chr"
output_suffix=".vcf"
output_name=$output_prefix$i$output_suffix
cat /scail/u/xzhou15/CancerProj_10X/NA12878_GIAB_highconf_... | true |
3fe5f8a2bb54bd64bf757249939244b796cbecfa | Shell | doubleq23/gitrepolazu | /shellscripts/list-access-keys.sh | UTF-8 | 140 | 2.546875 | 3 | [] | no_license | #!/bin/sh
for i in $(cat PRODENG-2753-users)
do
echo "Checking user $i"
aws iam list-access-keys --user-name $i --profile=awsdevus
done
| true |
bf086368a092485b7381f31de0ed5bcc588f7a47 | Shell | guluguluchui/Custom_Debian_Set | /filesystem_set.sh | UTF-8 | 1,792 | 2.796875 | 3 | [] | no_license | #! /usr/bin/sh
#kernel_version
kernel_version=3.8.13-bone68
filesystem_path=./tmp
kernel_deploy=~/workspace/AM335x/eewiki/deploy
#uEnv.txt
sudo sh -c "echo 'uname_r=${kernel_version}' > ${filesystem_path}/boot/uEnv.txt"
sudo sh -c "echo 'optargs=quiet capemgr.enable_partno=BB-UART1,BB-UART2,BB-UART4,BB-SPIDEV1,BB-I2... | true |
200b4762eb7b659328fb2f88fe9b897376e2787d | Shell | hlmuludiang/dotfiles | /zsh/plugins/macos.zsh | UTF-8 | 667 | 2.734375 | 3 | [] | no_license | if [[ $OSTYPE == darwin* ]]; then
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export HOMEBREW_NO_ANALYTICS=1
manpath=(/usr/local/share/man /usr/share/man "$manpath[@]")
for pkg in coreutils diffutils findutils gawk gnu-sed gnu-tar grep; do
path=(/usr/local/opt/"${pkg}"/libexec/gnubin ... | true |
dddfd1f25030f3d78c7e042feddbb3d49a2d6f9f | Shell | Praqma/questionnaire-models | /scripts/create_service.sh | UTF-8 | 1,648 | 3.9375 | 4 | [
"MIT"
] | permissive | # How to use this script:
# source /scripts/create_service.sh <service-name> <image-tag> <environment> <db-uri>
# source /scripts/create_service.sh aws-qe-deploy praqma/questionaire-engine:0.1.0 test "mongodb://praqmadb:..."
# ATTENTION: the grep command requires the -P or -G... | true |
714181c5e522ba2edc8490468e9bf77957700b6b | Shell | robcn/personalrobots-pkg | /stacks/trex/trex_pr2/test/createTmaps.sh | UTF-8 | 368 | 2.90625 | 3 | [] | no_license | #!/bin/bash
echo "Create topomap symlinks."
FILES="willow.tmap.outlet_overrides.xml willow.tmap.door_overrides.xml willow.tmap"
for file in $FILES ; do
rm -f `rospack find trex_pr2`/test/$file
echo "ln -s `rospack find willow_maps`/$file `rospack find trex_pr2`/test/$file"
ln -s `rospack find willow_maps... | true |
1dcec58a6a8f71de5dc8f6198adc5b6ab128fdac | Shell | tesujiro/qiita_tile38 | /commands.sh | UTF-8 | 2,042 | 2.84375 | 3 | [] | no_license | #!/bin/bash
PROMPT="127.0.0.1:9851> "
exec_tile38_cli(){
echo -n "$PROMPT"
echo "$@"
echo "$@" | tile38-cli
}
export -f exec_tile38_cli
commands-1(){
cat <<EOF | awk 'gsub(/#.*/,"")>=0'
DROP location
DROP lunch
#
GET location me POINT 35.6581 139.6975
#
SET lunch ramen:A POINT 35.6586 139.6982
SET lunch g... | true |
a4a1ce25c2878ae64d581b8170a2e0fa0926f89c | Shell | xakep666/build | /moduleconfigs/dtc/dtc.sh | UTF-8 | 1,594 | 2.6875 | 3 | [
"Apache-2.0"
] | permissive | #
# Copyright (C) 2016 The EFIDroid Project
#
# 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 applicable law or agreed... | true |
7b512d6f57d052e557f11d48cd6a73507c8fecf5 | Shell | toddabrahm/dotfiles | /.osx | UTF-8 | 9,307 | 2.796875 | 3 | [] | no_license | #!/bin/bash
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
###############################################################################
# General UI/UX ... | true |
36d89a54a0b2b0aafdf16247c0b594deb3c39b5d | Shell | KatieMishra/VoiceClassification | /sphinxbase/autoconf-2.69/automake-1.14/t/tap-no-spurious-numbers.sh | UTF-8 | 1,874 | 3.3125 | 3 | [
"GPL-2.0-or-later",
"GPL-1.0-or-later",
"GPL-2.0-only",
"GPL-3.0-only",
"FSFAP",
"GPL-3.0-or-later",
"Autoconf-exception-3.0",
"LicenseRef-scancode-other-copyleft",
"MIT",
"BSD-2-Clause"
] | permissive | #! /bin/sh
# Copyright (C) 2011-2013 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program ... | true |
abacee45dc763029a120b440325d3af1ffc9b871 | Shell | qnyblog/lempstack | /menu/controller/ssl/remove | UTF-8 | 4,605 | 3.140625 | 3 | [] | no_license | #!/bin/bash
######################################################################
# Auto Install & Optimize LEMP Stack on CentOS 7, 8 #
# #
# Author: Sanvv - HOSTVN Technical #
# Webs... | true |
b9bf61cfdd5894c39f6cb796ede617aa5050c27a | Shell | bartt/henhouse | /ustream | UTF-8 | 324 | 2.890625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
RTMP_URL=$1
STREAM_KEY=$2
if [[ -z $RTMP_URL || -z $STREAM_KEY ]]; then
echo "usage: ustream RTMP-URL STREAM-KEY"
exit 1
fi
raspivid -n -vf -hf -t 0 -w 960 -h 540 -fps 25 -b 500000 -o - 2> /dev/null | ffmpeg -i - -vcodec copy -an -metadata title="HenHouse Cam" -f flv $RTMP_URL/$STREAM_KEY 2> /dev/n... | true |
9ee348ea2823face31c8b3bff23495c73f2e540b | Shell | adevore3/dotfiles | /autojump/functions/make_project_symlink.func | UTF-8 | 728 | 4.1875 | 4 | [
"Unlicense",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
# Create a symlink for repo based on the jira project name
function make_project_symlink() {
local repo_file="repo.cfg"
if [ ! -f $repo_file ]; then
echo "ERROR: '$repo_file' does NOT exist, exiting..."
return 1
fi
jira_project=$(cat $repo_file | grep jira | cut -d= -f2)
jira_project_low... | true |
803c5878ede11605181e964b836937bc273d998d | Shell | ln3012/my1repo | /ifelse | UTF-8 | 224 | 3.75 | 4 | [] | no_license | #!/bin/sh
# Script to see whether argument is positive or negative
if [ $# -eq 0 ]
then
echo "$0 : You must give numerics only"
exit 1
fi
if test $1 -gt 0
then
echo "$1 positive number"
else
echo "$1 negative number"
fi
| true |
f7698503beba214db6ee608d59b72c1497eaa643 | Shell | chittineni8/docker-compose-magento | /bin/inapp | UTF-8 | 105 | 2.65625 | 3 | [] | no_license | #!/bin/bash
if [ -z "$1" ];then
docker-compose exec app bash
else
docker-compose exec $1 bash
fi
| true |
4d7065ed61079b1ccbd198e73940eec09f950028 | Shell | yuelicn/apollo | /scripts/apollo-on-kubernetes/apollo-portal-server/scripts/startup-kubernetes.sh | UTF-8 | 3,021 | 3.453125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
SERVICE_NAME=apollo-portal
## Adjust log dir if necessary
LOG_DIR=/opt/logs/apollo-portal-server
## Adjust server port if necessary
SERVER_PORT=8070
# SERVER_URL="http://localhost:$SERVER_PORT"
SERVER_URL="http://${APOLLO_PORTAL_SERVICE_NAME}:${SERVER_PORT}"
## Adjust memory settings if necessary
#export ... | true |
ad8d0e7902bb5dc868a76ea979c1b6b56de24764 | Shell | JayjeetAtGithub/seissol-workflows | /workflows/scc18-containerless/scripts/run.sh | UTF-8 | 966 | 3.34375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
if [ -z "$SEISSOL_SRC_DIR" ]; then
echo "Expecting SEISSOL_SRC_DIR variable"
exit 1
fi
if [ -z "$OMP_NUM_THREADS" ]; then
echo "No OMP_NUM_THREADS variable defined"
exit 1
fi
if [ -z "$MPI_NUM_PROCESSES" ]; then
echo "No MPI_NUM_ROCESSES variable defined"
exit
fi
if [ -z "$SEISSO... | true |
3d861d6d1663526df77c495a0d421fcf18ceb6c9 | Shell | dingmeikun/plugins | /ltts-data-plugin/src/main/resources/bin/volley | UTF-8 | 8,487 | 3.546875 | 4 | [] | no_license | #!/bin/ksh
HOST_TYPE=`uname -s | tr "-" "_"`
if [ $HOST_TYPE = "Linux" ]
then
alias echo="echo -e"
fi
#
# volley Parallel Process
#
# Default Value
#---------------------
Ver=2.1 # Version
Tty=`tty | awk -F \/ '{print $3"/"$4}'` # Terminal
cpuUse=2 # Max CPU Cost
cpuFree=20 # Min CPU Free
... | true |
2a6d7cec1d21aec186fb48055114bca952a5bb12 | Shell | justpayne/jburkardt-f77 | /toms626/toms626_prb1.sh | UTF-8 | 525 | 2.984375 | 3 | [] | no_license | #!/bin/bash
#
gfortran -c -g toms626_prb1.f >& compiler.txt
if [ $? -ne 0 ]; then
echo "Errors compiling toms626_prb1.f"
exit
fi
rm compiler.txt
#
gfortran toms626_prb1.o -L$HOME/libf77/$ARCH -ltoms626 -lcalcomp
if [ $? -ne 0 ]; then
echo "Errors linking and loading toms626_prb1.o"
exit
fi
rm toms626_prb1.o
#
m... | true |
7b4ca3652fe0e58b371e337ce0c2cedcd1fa8a9e | Shell | NoLegalTech/nosediceasi | /db/migrations-functions | UTF-8 | 1,513 | 4.21875 | 4 | [] | no_license | #!/bin/bash
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
declare -a migrations
migration=all
function migrate {
migrationType=$1
migrationNumber=$2
number=$(printf "%04d\n" $migrationNumber)
echo "Running migration ${number} [${migrationType}]";
[[ $migrationType == "up" ]] &&... | true |
d4dd28fbfcc8cf0435982154ca48a7009947efa5 | Shell | dlux/vagrant-manual-openstack | /apt/cinder-controller.sh | UTF-8 | 1,616 | 2.796875 | 3 | [] | no_license | #!/bin/bash
# 0. Post-installation
/root/shared/proxy.sh
source /root/shared/hostnames.sh
echo "source /root/shared/openstackrc" >> /root/.bashrc
# 1. Install OpenStack Block Storage Service and dependencies
apt-get install -y ubuntu-cloud-keyring
echo "deb http://ubuntu-cloud.archive.canonical.com/ubuntu trusty-upda... | true |
f85edbf9bd4f37dcf5df304e53189ec451650f9a | Shell | cyrilvj94/ShellScriptExamples | /1_Conditionals/Q_1_random_3.sh | UTF-8 | 355 | 3.578125 | 4 | [] | no_license | #! /bin/bash
#Read 5 random 3 digit valuues and then outputs max and min values
for((i=0;i<5;i++))
do
arr_name[$i]=$((100 + (RANDOM%900) ))
done
max=${arr_name[0]}
min=${arr_name[0]}
for i in ${arr_name[@]}
do
echo $i
if [ $i -lt $min ]
then
min=$i
fi
if [ $i -gt $max ]
then
max=$i
fi
done
echo ${arr_nam... | true |
86c3e365c54f276265b99e4876c4d783891f46cb | Shell | mushfiq814/dotfiles | /scripts/single-file-scripts/btconnect | UTF-8 | 346 | 3.421875 | 3 | [] | no_license | #!/bin/sh
DEVICES=$(bluetoothctl devices)
SELECTION=$(echo "$DEVICES" | awk -F' ' '{print $3}' | rofi -dmenu -i -p "connect to which device?")
if [ -z "$SELECTION" ]
then
exit 0
fi
ID=$(echo "$DEVICES" | grep "$SELECTION" | awk -F' ' '{print $2}')
if [ -z "$ID" ]
then
exit 0
fi
echo "connecting to $SELECTION..."
b... | true |
ff32de5d3a032116e10f6b7f6bb50e31a2415f47 | Shell | edgarklerks/dotfiles | /scripts/bla.zsh | UTF-8 | 489 | 2.890625 | 3 | [
"BSD-2-Clause"
] | permissive | [ -e ~/.ssh/config.d ] && find ~/.ssh/config.d -print -quit | grep -q . && (
#newestconfig=$(ls -t ~/.ssh/config.d/ | head -1)
newestconfig=$(find ~/.ssh/config.d/* -printf '%T+ %p\n' | sort -r | head -n1 | awk '{print $2}')
if [ "$newestconfig" -nt ~/.ssh/config ]; then
[ -e ~/.ssh/... | true |
9763abebf6bc065b89454f93387cec3e3afac68d | Shell | ahmeddrawy/kops | /tests/e2e/scenarios/upgrade/run-test | UTF-8 | 3,011 | 2.828125 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Copyright 2020 The Kubernetes Authors.
#
# 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 applica... | true |
5ef46b2d0f2f1f871e783e03d2b4567ea9680193 | Shell | yajamon/ios-screen-broadcasting-app | /bin/setup.sh | UTF-8 | 396 | 3.234375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
readonly DIRPATH=$(cd $(dirname ${BASH_SOURCE:-$0})/; pwd)
readonly REPO_ROOT=$(cd $DIRPATH/..; pwd)
readonly PROJECT_NAME='ScreenBroadcasting'
if ! type -a xcodegen; then
echo "Missing command: xcodegen" >&2
exit 1
fi
if ! test -d $REPO_ROOT/$PROJECT_NAME; then
echo "Missing: $REPO_ROOT/$PRO... | true |
13911ef6670e58df7a6fcfe5c6d998fad1d87554 | Shell | moul/docker-drupal | /start.sh | UTF-8 | 2,067 | 3.4375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo "Starting SSHD"
/usr/sbin/sshd -D &
if [ -f /data/ssh-pw.txt ]; then
echo "root:$(cat /data/ssh-pw.txt)" | chpasswd
fi
if [ -d /data/php5 ]; then
rm -rf /etc/php5
ln -s /data/php5 /etc/php5
fi
if [ -f /data/.htaccess ]; then
rm -f /var/www/.htaccess
ln -s /data/.htaccess /var/ww... | true |
67508637894463682c519b6b2e9f44550a0e9989 | Shell | lambdaloop/dotfiles | /scripts/cool_backgrounds.sh | UTF-8 | 284 | 2.5625 | 3 | [] | no_license | #!/usr/bin/env bash
cd /home/pierre/Pictures/wallpapers/chosen/small-desktops
rm -f 0 1 2 3 4 5 6 7 8 9
for i in 0 1 2 3 4 5 6 7 8 9; do
ln -s "$(find ~/Pictures/wallpapers/chosen/small-filled -type f -print | shuf | head -1)" $i
done
notify-send "changed jellyfish backgrounds"
| true |
4a26b27bddab4eb6cdce0c7cbffd0ba909bd3dea | Shell | otus-devops-2019-02/pavelpuchok_infra | /packer/scripts/install_app.sh | UTF-8 | 347 | 2.765625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
APP_USER=redditapp
APP_DIR=/app
UNIT_SOURCE=/tmp/redditapp.service
UNIT_DEST=/etc/systemd/system/redditapp.service
mv ${UNIT_SOURCE} ${UNIT_DEST}
useradd -U ${APP_USER}
git clone -b monolith https://github.com/express42/reddit.git ${APP_DIR}
cd ${APP_DIR} && bundle install
chown -R ${APP_US... | true |
595d51f81cba997437a1f31e9c412fdf6df350a3 | Shell | lamont1008/COSC-350 | /350/lab2/task6b.sh | UTF-8 | 1,650 | 4 | 4 | [] | no_license | #!/bin/bash
# This program will print a left arrow to the screen
# skip Function
skip() {
for i in $(seq $1);
do
printf " "
done
}
# printStars Function
printStars() {
for i in $(seq $1);
do
printf "*"
done
# Allow the option for printing the tail
if [ ! -z $2 ];
th... | true |
def944cef2586cfa1a1136de3d8a9e79f7bc69ce | Shell | abhilashmendhe/shell | /set-1/seventh | UTF-8 | 203 | 2.859375 | 3 | [] | no_license | #!/bin/bash
a=5000
b=1223
echo "Before swapping a is" $a
echo "Before swapping b is" $b
a=$[$a + $b]
b=$[$a - $b]
a=$[$a - $b]
echo ""
echo "Before swapping a is" $a
echo "Before swapping b is" $b
| true |
9d0798d3e4c43bbec527caacca5b66068e7e966c | Shell | karimfadl/kops-asg-notification | /SNS-Alarm.sh | UTF-8 | 1,279 | 3.546875 | 4 | [] | no_license | #!/bin/bash
# Ask the user for his Topic name
echo Hello, What is your Topic Name?
read vartopic
#Create Topic
aws sns create-topic --name $vartopic
topic_arn=$(aws sns list-topics | grep $vartopic | cut -d':' -f2,3,4,5,6,7 | sed 's/"//g')
#Create Email Subscription
# Ask the user for his Mail
echo What is your su... | true |
f26a7fa9d5c7f8acdcf507b6e22a36f5babbd627 | Shell | TiS/docker-php | /build.sh | UTF-8 | 1,912 | 4.3125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
REPOSITORY=tstruczynski/php
VERSIONS=( 7.0 7.1 7.2 7.3 7.4 8.0 8.1)
LATEST=7.4
UPLOAD=0
last_command="";
cleanup() {
rv=$?
if [ "$rv" != "0" ]; then
echo -e "\n\n\"${last_command}\" command failed with exit ... | true |
c60fedd998f9575adeb817277d0377eb07a86a28 | Shell | e788b1/e1 | /.i3/agit | UTF-8 | 658 | 3.96875 | 4 | [] | no_license | #!/bin/bash
action=$1
option=$2
args1=$3
args2=$4
args3=$5
[[ -z $GIT_REPOS ]] && GIT_REPOS=${HOME}/.git_repos
case "$action" in
run)
${GIT_REPOS}/${option} $args1 $args2 $args3
;;
clone)
cd ${GIT_REPOS}
git clone $option || {
cd `basename $option`
git ... | true |
2a5fdb3ccfd44afa32760e56668caf1ec52f63fb | Shell | powertac/powertac-tools | /hamweather/scripts/aeris-weather-hourly | UTF-8 | 864 | 3.265625 | 3 | [] | no_license | #!/bin/bash
# Pulls down hourly observations and 24-hr forecasts for a list
# of locations
locations=('chicago,il' 'minneapolis,mn' 'minot,nd' 'mason%20city,ia' 'tucson,az' 'el%20paso,tx' 'boulder,co' 'cheyenne,wy' 'rotterdam,nl')
output=weather_records.json
echo '-- observation:' `date` >>$output
for loc in ${locati... | true |
c8949bdb22b1e3cad6c4bb898f3c142091088f59 | Shell | priestlab/cnv-ukb | /gwas/run_cnv_burden.sh | UTF-8 | 910 | 3.09375 | 3 | [] | no_license | #!/bin/bash
# define command line arguments for phenotype, name, app_id, bin/qt (needed?)
# usage: script.sh phe_name app_id path/to/file.phe bin/qt
pheID=$1
appID=$2
pheFile=$3
if [ "$4" == "bin" ]; then
kind="firth-fallback"
elif [ "$4" == "qt" ]; then
kind=""
else
echo "unrecognized gwas type $4"
exit 2
fi
# ... | true |
acf0db10a35ecbbbbba3f392d326a7f25cfa520f | Shell | yahaa/Shell | /test1.bash | UTF-8 | 146 | 2.953125 | 3 | [] | no_license | #!/bin/bash
a="hello world !"
printf '%s\n' "A is :$a"
num=2
echo "this is the $num"
echo "this is the ${num}nd"
var=0
var=$((var+100))
echo $var
| true |
34a977ef9fd35a651d592718fbf0ba2d416541d6 | Shell | mask616/common-tools | /system-ct-server/polling-daemon/rootfs/www/bin/start_polling-daemon.sh | UTF-8 | 724 | 3.1875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
cron_file='/var/spool/cron/root'
cron_log_file='/www/bin/cron_start_polling-daemon.log'
# 每一分钟被拉起1次日志(只看最后一次拉起的时间)
echo $(date) > $cron_log_file
# 检查是否已加入任务
if ! grep -Fxq '*/1 * * * * /bin/sh /www/bin/start_polling-daemon.sh' $cron_file; then
echo '*/1 * * * * /bin/sh /www/bin/start_polling-daemon.sh' ... | true |
57380b8e9f23309eeeb43f91512eaeaf6e8b6153 | Shell | rubixlinux/community | /laptop-mode-tools/PKGBUILD | UTF-8 | 1,840 | 2.96875 | 3 | [] | no_license | # Maintainer: Joshua Rubin <joshua@rubixlinux.org>
pkgname=laptop-mode-tools
pkgver=1.11
pkgrel=1
pkgdesc="Laptop mode (also known as laptopmode, laptop-mode and laptop_mode, for search engine purposes :) ) is a kernel "mode" that allows you to extend the battery life of your laptop. It does this by intelligently grou... | true |
6a999e51d0796987d65d542cdb2a573b138dadd6 | Shell | spesmilo/electrum | /contrib/trigger_deploy.sh | UTF-8 | 915 | 3.71875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Triggers deploy.sh to maybe update the website or move binaries.
# uploadserver needs to be defined in /etc/hosts
SSHUSER=$1
TRIGGERVERSION=$2
if [ -z "$SSHUSER" ] || [ -z "$TRIGGERVERSION" ]; then
echo "usage: $0 SSHUSER TRIGGERVERSION"
echo "e.g. $0 thomasv 3.0.0"
echo "e.g. $0 thomasv webs... | true |
edc526dc28ba79c163eb96973e420fb44676f970 | Shell | c2997108/OpenPortablePipeline | /PortablePipeline/scripts/post-assemble~busco_v5 | UTF-8 | 11,172 | 3.53125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
explanation='
The Benchmarking Universal Single-Copy Ortholog assessment tool.
Based on evolutionarily-informed expectations of gene content of near-universal single-copy orthologs, BUSCO metric is complementary to technical metrics like N50.
'
inputdef='
input_1::An assembled genome file:*.fa,*.fasta,*.fs... | true |
af9be541d81becb7528c94196538b8128b095ab5 | Shell | redbull05689/k1s | /join | UTF-8 | 248 | 2.640625 | 3 | [] | no_license | #!/bin/bash
IP="192.168.56.120"
if [[ $EUID -ne 0 ]]; then echo "root required" 1>&2; exit 1; fi
cat << EOF > /etc/default/kubelet
KUBELET_EXTRA_ARGS="--node-ip=$IP"
EOF
# Вот сюда можно вставить команду kubeadm join
| true |
56257b1f8ee17279fabef5abee9ccffcf9c5512e | Shell | velcrine/lightmachine.dockerfile | /build-scripts/configuration.sh | UTF-8 | 4,184 | 3.046875 | 3 | [] | no_license | #!/bin/sh
# here, we just provide configs for installed packages
set -ex
lxde() {
#bug in lxpolkit, it says "session not found for pid of lxpolkit" https://github.com/meefik/linuxdeploy/issues/978
mv /usr/bin/lxpolkit /usr/bin/lxpolkit.bak
mkdir -p /etc/skel/.config/pcmanfm/LXDE/
echo "
[*]
wallpaper_mode=stretc... | true |
9476a958ed31a3b527a92e3ce4ef47360885fced | Shell | oracle-quickstart/oci-ibm-spectrum-scale | /clients_only_cluster_scripts/deploy_spectrum_scale.sh | UTF-8 | 398 | 3.09375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -x
source /tmp/gpfs_env_variables.sh
# Build the GPFS potability layer.
/usr/lpp/mmfs/bin/mmbuildgpl
# have seen the above fail sometimes, hence the below loop
while [ $? -ne 0 ]; do
sleep 10s;
/usr/lpp/mmfs/bin/mmbuildgpl
done;
# Up date the PATH environmental variable.
echo -e '\nexport PATH... | true |
bad67bf68f49182d402baede204184b6439aab72 | Shell | Foxytine31/gitpush | /gitpush.sh | UTF-8 | 891 | 3.625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
RESET="\033[0m"
REDCOLOR="\033[31m"
GREENCOLOR="\033[32m"
current_branch=`git branch | awk '/\*/ {print $2}'`
clear
echo -e $GREENCOLOR"--------------------------------------- STARTING PUSH -------------------------------------------"$RESET
git checkout master && git pull origin master && git che... | true |
5295432ca63d2c44e25d7623060ae7cf8be76da8 | Shell | Chrismarsh/SnowCast | /NWP_Forcing/Update_GDPS.sh | UTF-8 | 1,588 | 3.359375 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/bash
# Stop of get any simple error
set -e
# This is needed because crontab does not have same env variables are user
PATH=$PATH:/home/nwayand/custom/anaconda2:/home/nwayand/custom/anaconda2/bin:/home/nwayand/custom/anaconda2/bin
# Timer
start=$SECONDS
## Script paths
# Where scripts are located
ex_dir=/home... | true |
d7690c60f95fbf9baa908fa3afb056d6d20becac | Shell | pixelastic/oroshi | /scripts/bin/text-trim | UTF-8 | 233 | 3.4375 | 3 | [] | no_license | #!/usr/bin/env zsh
# Trim starting and trailing whitespace from a string
# Read from arg or from pipe
local input=$1
[[ -p /dev/stdin ]] && input="$(cat -)"
# Pass through awk to remove whitespace
echo $input | awk '{$1=$1;print}'
| true |
b77830a32ba528802768116b0206304bb12acc78 | Shell | RIAPS/riaps-pycom | /src/scripts/riaps-dev.ctrl | UTF-8 | 350 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# For riaps app developers:
# Starts up the riaps controller on the mininet
# To be run on the 'lead' node
# Add default gateway
route add default gw 10.0.0.1
# Start registry - start it on one node only
/usr/local/bin/rpyc_registry.py &
# Change to (non-privileged) user and run the controller
sudo -E -u... | true |
97536ae7f2980b35c3625ef350dad516f17228fd | Shell | nguyenduclong-ict/linux_development--Lap-trinh-Linux- | /Bai7(2)/tam_giac_so | UTF-8 | 154 | 2.75 | 3 | [] | no_license | #!/bin/bash
sott=1
for (( i = 1; i <= 4 ; i++ ))
do
for (( j = 1 ; j <= i; j++ ))
do
echo -n $sott " "
sott=$((sott+1))
done
echo
done
exit 0;
| true |
6f89fd0f03550cd32115afe72ee6a61df07f187b | Shell | kin0025/COSC1076-A2 | /testfiles | UTF-8 | 253 | 3.140625 | 3 | [] | no_license | #!/bin/sh
#Search for line number length
for f in *.c *.h; do
echo -en $f '\t'
awk '{print length, $0}' $f 2>/dev/null| sort -nr | head -1
done
echo
#Checks for unix line endings
file *.c *.h
#Search for unedited headers
grep "EDIT HERE" *.c *.h
| true |
6457507c405b0fd1c4acc020a6a71967c351ec27 | Shell | jsoverson/dotfiles | /install/linux/zulu | UTF-8 | 167 | 2.78125 | 3 | [] | no_license | #!/bin/bash
set -e
if [[ ! -x wasm2wat ]]; then
curl -L https://zulu.molovo.co/install | zsh && zsh
else
echo "Found wasm2wat in path, not reinstalling wabt"
fi
| true |
14cce081f50de4d98e7136d84b7116f767614be5 | Shell | AlanGreene/katacoda-scenarios | /tekton-playground-kubernetes/background.sh | UTF-8 | 11,723 | 2.53125 | 3 | [] | no_license | #!/bin/bash
# Start Kubernetes
echo "Starting cluster"
launch.sh
echo "done" >> /opt/.clusterstarted
echo "Installing Tekton Pipelines"
kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/previous/v0.13.2/release.yaml
mkdir /mnt/data
kubectl apply -f - << EOF
apiVersion: v1
kind: Persis... | true |
11c22e7c23aaac44543d12c11e84bbdd5fdafa3f | Shell | mingyanisa/fanboi2 | /vendor/vagrant/bootstrap_builder.sh | UTF-8 | 1,240 | 2.890625 | 3 | [] | no_license | #!/bin/sh
set -xe
apt-get update
apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
dirmngr \
gnupg2 \
software-properties-common
#
# Docker
#
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
add-apt-repository "deb [arch=amd64] ... | true |
c8f3211b051199fec9a21bd892338cf76c025439 | Shell | gdetrez/bnfctest | /testbnfc.sh | UTF-8 | 456 | 3.109375 | 3 | [] | no_license | #!/bin/sh
set -e
set -u
set -v
BNFC=${1:-bnfc}
TMPDIR=`mktemp -d`
trap 'echo "removing $TMPDIR"; rm -rf ${TMPDIR}' INT TERM EXIT
cd ${TMPDIR}
echo "EAdd. Exp ::= Exp \"+\" Exp1 ;" > Calc.cf
echo "ESub. Exp ::= Exp \"-\" Exp1 ;" >> Calc.cf
echo "EMul. Exp1 ::= Exp1 \"*\" Exp2 ;" >> Calc.cf
echo "EDiv. Exp1 ::... | true |
4a15e6d25593473451c97960acda417d1e8984cd | Shell | Alegarse/Scripts-de-Linux | /ejercicio07.sh | UTF-8 | 123 | 2.90625 | 3 | [] | no_license | #!/bin/bash
echo "Script que crea un directorio con el nombre que introduzcas"
mkdir "$1"
echo "El nombre elegido es: $1"
| true |
0d435ede8a6603806d55d1200b7fd1d5c2d15cfc | Shell | Arbazbms/5thSem-DS-Algo-CN-AI-UNIX- | /USP_LAB/calculator.sh | UTF-8 | 97 | 2.703125 | 3 | [] | no_license | #!/bin/sh
echo "Enter the expression"
read exp
result=`echo $exp|bc`
echo "result: $result" | true |
2ca872bea3779cb770549f2c9f4c5e936a546f7e | Shell | akarzim/zsh-docker-aliases | /docker-aliases.plugin.zsh | UTF-8 | 1,020 | 3.640625 | 4 | [
"MIT"
] | permissive | #
# Defines Docker aliases.
#
# Author:
# François Vantomme <akarzim@gmail.com>
#
# Return if requirements are not found.
if (( ! $+commands[docker] )); then
return 1
fi
#
# Functions
#
# Set Docker Machine environment
function dkme {
if (( ! $+commands[docker-machine] )); then
return 1
fi
... | true |
a819e7cb1d9d827337850bd30f16a021fed62796 | Shell | geoladris/core | /build-tools/publish-js-dev.sh | UTF-8 | 536 | 3.234375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
pomVersion=`grep -oPm1 "(?<=<version>)[^<]+" pom.xml | grep -oE '[0-9]+\.[0-9]+\.[0-9]+'`
packageVersion=`jq -r .version package.json`
if [[ $packageVersion =~ $pomVersion-alpha\.[0-9]+$ ]]; then
v="${packageVersion%.*}.$((${packageVersion##*.}+1))"
else
v="`echo $pomVersion | grep -oE '[0-9]+\.[0-9]+\.... | true |
c663ce30704479e175ce3d3c77d348cf8d3b6825 | Shell | openeuler-mirror/A-Tune | /tests/test_atune-adm_check.sh | UTF-8 | 1,425 | 3.03125 | 3 | [] | no_license | #!/bin/sh
# Copyright (c) 2019 Huawei Technologies Co., Ltd.
#
# A-Tune is licensed under the Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
# You may obtain a copy of Mulan PSL v2 at:
# http://license.coscl.org.cn/MulanPSL2
# THIS SOFTWARE IS PROVIDED ON AN "AS... | true |
583e38dbc22ea0b07117c8843018863effa82f77 | Shell | oudream/ccxx | /3rd/hiredis/hiredis-msvc/test.sh | UTF-8 | 493 | 3.125 | 3 | [
"BSD-3-Clause",
"MIT"
] | permissive | #!/bin/sh -ue
REDIS_SERVER=${REDIS_SERVER:-redis-server}
REDIS_PORT=${REDIS_PORT:-56379}
tmpdir=$(mktemp -d)
PID_FILE=${tmpdir}/hiredis-test-redis.pid
SOCK_FILE=${tmpdir}/hiredis-test-redis.sock
cleanup() {
set +e
kill $(cat ${PID_FILE})
rm -rf ${tmpdir}
}
trap cleanup INT TERM EXIT
${REDIS_SERVER} - <<EOF
da... | true |
414c29c7e7a6394df82bad07ac4cc1bf1c81dd8e | Shell | andreasds/stocks-crawler | /docker/devel/database/devel-mysql-run | UTF-8 | 301 | 3.140625 | 3 | [] | no_license | #!/bin/bash
if [ "$#" -ge 1 ]
then
docker run \
-d \
-it \
-e MYSQL_ROOT_PASSWORD=$1 \
-p 3306:3306 \
-p 33060:33060 \
--restart unless-stopped \
--name devel-mysql \
devel-mysql:1.0
else
echo "ERROR: no argument detected"
echo "./devel-run <mysql_password>"
fi
| true |
8bec6c1fec13da78b6d802023eb9cb4ee25d9edf | Shell | great-expectations/great_expectations | /ci/checks/check_repo_root_size.sh | UTF-8 | 518 | 3.8125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# If you need to add or remove from the repo root please change NUM_ITEMS_SHOULD_BE
# Please take care to only add files or directories to the repo root unless they are
# required to be in the repo root, otherwise please find a more appropriate location.
NUM_ITEMS_SHOULD_BE=41
NUM_ITEMS=$(ls -la | wc -l)... | true |
67a31c13f8a9b6458924f359719f1807ea94d350 | Shell | rsenn/scripts | /sh/functions/sf-get-cvs-modules.sh | UTF-8 | 954 | 3.453125 | 3 | [] | no_license | sf-get-cvs-modules() {
(CVSCMD="cvs -z3 -d:pserver:anonymous@\$ARG.cvs.sourceforge.net:/cvsroot/\$ARG co"
# CVSPASS="cvs -d:pserver:anonymous@\$ARG.cvs.sourceforge.net:/cvsroot/\$ARG login"
CVSPASS='echo "${GREP-grep} -q @$ARG.cvs.sourceforge.net ~/.cvspass 2>/dev/null || cat <<\\EOF >>~/.cvspass
\1 :pserver:anonymou... | true |
18d69867518c8a8f4aa4b234717b82d43d20f923 | Shell | wildfly/wildfly-s2i | /test/test-app-extension2/extensions/install.sh | UTF-8 | 164 | 2.8125 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -x
echo "Running $PWD/install.sh"
injected_dir=$1
# copy any needed files into the target build.
cp -rf ${injected_dir}/modules $JBOSS_HOME
| true |
78cd276e1070143eaec135ccddd3f2bd18d8a9bc | Shell | ws1/scripty | /src/utility/jpg-resize | UTF-8 | 130 | 2.625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#
# Resizes JPG images in current directory.
for i in *.jpg
do
convert $i -resize 250 $i > /tmp/jpg-resize.log
done | true |
9d05fb9789cecee63706b6b4ab3074ae536baf24 | Shell | pruje/deb-builder | /build.sh | UTF-8 | 5,876 | 4.09375 | 4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
#
# Build script for debian package
#
# MIT License
# Copyright (c) 2019 Jean Prunneaux
#
# go into current directory
cd "$(dirname "$0")"
if [ $? != 0 ] ; then
echo "ERROR: cannot go into current directory"
exit 1
fi
# save current directory path
current_directory=$(pwd)
build_directory=archives/bu... | true |
f1ec64c0c43bae36f1cb7c47bde6b87b238c1bed | Shell | stden/bash | /p2/cycle.sh | UTF-8 | 233 | 2.859375 | 3 | [] | no_license | #!/bin/bash
# Умножение в бесконечном цикле двух случайных чисел
while :
do
i=$[$RANDOM*$RANDOM]
# echo $i # Раскомментировать для вывода на консоль
done
| true |
46218f92b12179960294eeffcd1c76a7e048ddb7 | Shell | tjtolon/dotfiles | /install/install_franz.sh | UTF-8 | 602 | 3.71875 | 4 | [] | no_license | #!/bin/bash
if command -v franz >> /dev/null; then
echo "command already exists"
else
sudo apt install -y gconf2 gconf-service libappindicator1
sudo apt install -y jq
function parse_latest_deb_url() {
curl_result=$(curl --silent "https://api.github.com/repos/$1/releases/latest")
only_de... | true |
ae5c883f4e4e6d0bd5fb0711d9bdf078ea5baf09 | Shell | RobBrazier/entitydecode.com | /.semaphore/deploy.sh | UTF-8 | 580 | 3.359375 | 3 | [] | no_license | #!/bin/bash
set -exo pipefail
ftp_url="ftp://$BUNNYCDN_USERNAME:$BUNNYCDN_PASSWORD@storage.bunnycdn.com"
cd public
ftp_options="--reverse --no-perms --transfer-all --overwrite"
lftp "$ftp_url" -e "mirror --dry-run $ftp_options --delete; bye" > ../to-delete.txt
to_delete=$(grep rm ../to-delete.txt | awk -F"$BUNNYCD... | true |
761b247bde8e4f64c8fb5286f9efef9829bbf4c7 | Shell | Hermitter/dotfiles | /config/sway/scripts/start_on_boot.sh | UTF-8 | 551 | 4.03125 | 4 | [] | no_license | #!/bin/bash
# Starts apps with the specified commands and avoids starting if already running.
# The app name used should the same as the process name.
for pair in "$@"; do
# split arg into seperate variables
IFS=:; set -- $pair
NAME=$1
CMD=$2
if pgrep -x "$NAME" > /dev/null
then
echo ... | true |
8e354a11a796e9fcf341c380e4c0f7d3c21fb231 | Shell | michaeldallen/raspbian_bootstrap | /v2/io.mdabone.device.bootstrap.onboard.52-docker.bash | UTF-8 | 508 | 2.84375 | 3 | [] | no_license | # see: https://gist.github.com/alexellis/fdbc90de7691a1b9edb545c17da2d975
if which docker ; then
echo no action taken
else
curl -sSL get.docker.com | sh
usermod pi -aG docker
dphys-swapfile swapoff
dphys-swapfile uninstall
update-rc.d dphys-swapfile remove
if ! grep --silent 'cgr... | true |
aa238e621e1b2e0db0d379ccd1152352c4d46c36 | Shell | aritama/sisop-2012-2c | /SHIELD/modulos/periodicos/limitaciones/modulo_limitaciones.sh | UTF-8 | 4,294 | 3.296875 | 3 | [] | no_license | #!/bin/bash
function iniciar
{
export MAX_CPU=50
export MAX_MEM=75
export MAX_PROCS=10
export MAX_SOCKS=3
export MAX_ARCHS=4
local limitacionesInit="$(cat ~/.shield/MODULES_CONFIG/limitaciones.config)"
eval "${limitacionesInit}"
###
local listaConsumoCPU=$(ps h u t | awk '{print $3}... | true |
5094aaf88cd4de504e2cc6730cf3704e5330f515 | Shell | justinbloomfield/crux-ports | /drist/Pkgfile | UTF-8 | 567 | 2.875 | 3 | [] | no_license | # Description: Tool to configure and sync configurations to servers
# URL: git://bitreich.org/drist
# Maintainer: poq <jbloomfield at live dot com>
# Depends on:
name=drist
version=git-c4d5a55
sversion=c4d5a55
release=1
source=()
gitsource=git://bitreich.org/drist
build() {
cd $PKGMK_SOURCE_DIR
if cd $nam... | true |
92855210753ccf6fea8a6b33fe92dec9b9318efe | Shell | clz1/data_consistent_test | /rbdmirror_failure/check.sh | UTF-8 | 1,285 | 3.6875 | 4 | [] | no_license | #!/bin/sh
DEV_primary=$1
DEV_passive=$2
zero_md5=`md5sum 4K_zero|awk '{print $1}'`
first_zero=0
count=0
while true; do
rm -rf read_4K_primary
rm -rf read_4K_passive
dd if=${DEV_primary} of=read_4K_primary bs=4K count=1 skip=$count >/dev/null 2>&1
dd if=${DEV_passive} of=read_4K_passive bs=4K count=1 skip=$count... | true |
7a4b7ecff4387b1eb3cee2e99c5400537cb79bb4 | Shell | andreashdez/dotfiles | /.local/bin/notify_battery.sh | UTF-8 | 258 | 2.65625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# Script used by systemd timer unit to notify low battery charge
acpi --battery \
| awk '/Discharging/ { if (int($4) < 15) print $4 " " $5 " " $6 }' \
| xargs -ri notify-send --urgency=critical "WARNING: Low battery" "Battery is at {}"
| true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.