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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
789a5f6e170d9d165a97063bd195069f8d77b3f4 | Shell | CReinicke1992/assignment | /guessinggame.sh | UTF-8 | 615 | 3.921875 | 4 | [] | no_license | # File: guessinggame.sh
function guess_func {
local num_files=$(ls -1 | wc -l)
if [[ $2 -eq $num_files ]]
then
echo "Congratulations! Your guess is correct."
let $1=$1+1
elif [[ $2 -lt $num_files ]]
then
echo "Your guess is too low. Try again:"
... | true |
c551a0c10a1813255cbe3da73398e0a5178c8bcf | Shell | delkyd/alfheim_linux-PKGBUILDS | /opentxs-cli-git/PKGBUILD | UTF-8 | 1,431 | 2.96875 | 3 | [] | no_license | # Maintainer: Andy Weidenbaum <archbaum@gmail.com>
pkgname=opentxs-cli-git
pkgver=20140911
pkgrel=1
pkgdesc="Open Transactions Command Line Interface"
arch=('i686' 'x86_64')
depends=('opentxs-git')
makedepends=('autoconf' 'automake' 'cmake' 'gcc' 'git' 'libtool' 'make' 'pkg-config')
url="https://github.com/Open-Transa... | true |
51ee85769cfe75ac3f3707f48f9db2d9f11f2d78 | Shell | Twicer/devopstraining | /day2/edit_shell_bash.sh | UTF-8 | 335 | 2.78125 | 3 | [] | no_license | #!/bin/bash
sudo cp -f /etc/passwd /root/passwd_bash.copy
sudo bash -c "cat /root/passwd_bash.copy | while read word;do
if [[ \$word == \"games\"* ]];then
echo \"games:x:12:100:games:/usr/games:/bin/bash\" >> passwd.copy.temp
else
echo \"\$word\" >> passwd.copy.temp
fi
done"
sudo mv -f passwd.copy.temp /root/pa... | true |
f0177aa6404122c08f276dfc10685ebbb40cde37 | Shell | jbrowne6/fpExperiments | /multipleSystems/memUse/memTest.sh | UTF-8 | 6,560 | 2.53125 | 3 | [] | no_license | #!/bin/bash
nTimes=1
#start with varying cores
echo "writing file"
Rscript createDS.R -1 -1 -1
echo "done writing"
nSample=60000
nFeature=1024
nClass=5
testName="cores"
for nTimesLoop in {1..5}
do
for algname in "rfBase" "rerf" "binnedBase" "binnedBaseRerF"
do
for dataset in "svhn"
do
for numCores in 32 16... | true |
79920ad30b0a397db2b0f05ac0306caf957db92b | Shell | benevolence-doctor/sunny_shell | /scripts/dnsstartstop.sh | UTF-8 | 842 | 3.96875 | 4 | [] | no_license | #!/bin/bash
prog="dnsReflector"
RETVAL=0
start() {
echo -n $"Starting $prog: "
nohup ./$prog -i eth1 -o eth0 >/dev/null 2>&1 &
nohup ./$prog -i eth2 -o eth0 >/dev/null 2>&1 &
RETVAL=$?
echo
return $RETVAL
}
stop() {
echo "dnsReflector is stop ................ | true |
0cebeb7f5a780d8aa61ce4a95ed926913a7330d9 | Shell | NasreddinHodja/zinebar | /secondary_feeder.sh | UTF-8 | 278 | 2.8125 | 3 | [] | no_license | #!/usr/bin/env bash
source ./feeder.sh
workspaces() {
echo -e "$(./workspaces.py HDMI-0)"
}
bar_out() {
echo -e "%{l}$(workspaces)%{r}$(home) $(storage) $(ram) $(internet) $(volume) $(brightness) $(battery) $(clock)"
}
while true; do
bar_out
sleep 0.1s
done
| true |
5a5873a91a540b0c82f56925bef5cf2ef46ab2d0 | Shell | logolive/eNutri | /parse-server/setup.sh | UTF-8 | 783 | 3.421875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Expected ENV:
# - eNutri_APP_ID
# - eNutri_MASTER_KEY
cd $(dirname "$0")
echo -e "Setting up MongoDB..."
mongodb/setup.sh | awk '{print "mongoDB:\t" $0}'
echo -e "Generating Parse Server config file"
cat > config.json << EOF
{
"appId": "$eNutri_APP_ID",
"masterKey": "$eNutri_MASTER_KEY",
"databaseU... | true |
d8deabc77eee3764e8d4ec3e6720a3d19006aba9 | Shell | raskchanky/terrarium | /scripts/capture_logs.sh | UTF-8 | 181 | 2.828125 | 3 | [] | no_license | #!/bin/bash
set -xeuo pipefail
for container in $(docker ps --filter name=terrarium --format '{{.Names}}'); do
docker logs "${container}" > "data/${container}_stdout.txt"
done
| true |
a786ddecb7c22f2023bb895ec022ed7a9adb0f17 | Shell | maltenorstroem/uibuildertools | /scripts/dummy.sh | UTF-8 | 311 | 3.53125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# A simple script as example
set -o errexit
set -o nounset
set -o pipefail
FIRST_ARGUMENT="$1"
function dummy() {
echo $FIRST_ARGUMENT
}
dummy
function handle_exit() {
# Add cleanup code here
echo "cleanup block"
exit 0
}
trap handle_exit 0 SIGHUP SIGINT SIGQUIT SIGABRT SIGTERM | true |
6fd4429f17ed364a1f6a62d7d3269117e70cfdc9 | Shell | allscale/allscale_amdados | /api/allscale_api/scripts/dependencies/defaults.sh | UTF-8 | 1,079 | 3.203125 | 3 | [] | no_license | # default location
export PREFIX="${PREFIX:-${THIRD_PARTY_LIBS:-$HOME/third_party_libs}}"
# default compile flags
export CFLAGS="-mtune=native -O3"
export CXXFLAGS="-mtune=native -O3"
export LDLAGS="-mtune=native -O3"
# override compiler
#GCC_PKG=$(get_property gcc PACKAGE)
#export CC="$PREFIX/$GCC_PKG/bin/gcc"
#expo... | true |
1dfd6751333d62afb41c5585405a7954f0275696 | Shell | nobody2100/dotfiles | /install.sh | UTF-8 | 1,118 | 3.578125 | 4 | [] | no_license | #!/bin/bash
##################################################
##
## little install script for my configs...
## (warning: will delete original files)
##
##################################################
echo -e "This install script will modify the following configuration files in your home directory:\n\t.bashrc\n\t... | true |
f9a2a0d621597efda180a4345c91a2168619a067 | Shell | ohyoungjooung2/u18kvk8s | /k8s/vagrant_install.sh | UTF-8 | 1,351 | 3.328125 | 3 | [] | no_license | #!/usr/bin/env bash
which curl
if [[ $? -eq 0 ]]
then
echo "curl already installed"
else
sudo apt install -y curl
fi
if [[ ! -e ./vagrant225.deb ]]
then
VFILE="https://releases.hashicorp.com/vagrant/2.2.5/vagrant_2.2.5_x86_64.deb"
curl -o vagrant225.deb $VFILE
else
echo "vagrant225.deb already downloaded"
fi... | true |
38209e6074ac8d481549e442065930dcefce8a26 | Shell | jmosbacher/straxen | /.github/scripts/pre_pyflakes.sh | UTF-8 | 413 | 2.75 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
# Pyflakes does not like the way we do __all__ += []. This simple script
# Changes all the files in straxen to abide by this convention and
# removes the lines that have such a signature.
start="$(pwd)"
echo $start
cd straxen
sed -e '/__all__ +=/ s/^#*/#/' -i ./*.py
cd plugins
sed -e '/__all__ +=/ s/^#*/#... | true |
1c7f2df866e913ce9611f80f700d8f3fb3028a8b | Shell | ismogal/s2i-dotnetcore-ex | /.s2i/bin/assemble | UTF-8 | 526 | 3.0625 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/bin/bash
set -e
# 'bower' and 'gulp' used to be installed by default by the dotnet-example template.
# Since .NET Core 2.1 these tools are no longer required by the ASP.NET Core templates.
# We manually install them here, to be able to remove them from the dotnet-example template.
# see https://github.com/redhat-d... | true |
ab65d7b71ee6403e77b08bff52df9cd0f8047f38 | Shell | 18F/frstack | /ansible/roles/openidm/templates/openidm | UTF-8 | 1,498 | 3.640625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# chkconfig: 345 95 5
# description: start/stop openidm
# clean up left over pid files if necessary
cleanupPidFile() {
if [ -f $OPENIDM_PID_FILE ]; then
rm -f "$OPENIDM_PID_FILE"
fi
trap - EXIT
exit
}
JAVA_BIN={{java_home}}/bin/java
OPENIDM_HOME={{install_root}}/openidm
OPENIDM_USER={{fr_user}... | true |
1c3209e58666e97e400fbfd5e477f8b35b89a82b | Shell | Areed24/CrazyIvan | /scripts/linux/deb/build_deps.sh | UTF-8 | 2,362 | 3.890625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
#This script will attempt to build CrazyIvan dependencies
#Based on Ubuntu 14.04 LTS
#Not intended for use with other OS (should function correctly with Debian 7, untested)
printf "Creating Dependency Folder"
PRE=./downloads
RETURN=..
mkdir $PRE
printf "Calling apt-get update"
#Update the Ubuntu ... | true |
c82be842bc1eb9ef9efb44bd0a987f8955f9169d | Shell | MGX-metagenomics/tools | /patches/GraphValidate.template | UTF-8 | 1,401 | 3.125 | 3 | [] | no_license | #!/bin/bash
. PREFIX/share/config/conveyor.config
conveyor_graph=$1
projName=$2
jobId=$3
jobConfig=/vol/mgx-data/${projName}/jobs/${jobId}
set -e
umask 0007
if [ ! -r ${CEBITEC_SETTINGS_FILE} ]; then
echo "Cannot read Conveyor settings file."
exit 1
fi
if [ ! -r ${conveyor_graph} ]; then
echo "Cannot... | true |
475c07555e868dc43955906b6a03c37b455fd7d5 | Shell | freesense/poserver | /stop.sh | UTF-8 | 495 | 3.078125 | 3 | [] | no_license | #!/bin/sh
if [ -f ./gyconfig.py ];
then
gefil=`awk '/^zmq_gevent2worker/' ./gyconfig.py | awk '{print $3}' | awk 'BEGIN{FS="[:'\'']"}{print $3}'|awk -F'/' '{print $3}'`
dbhub=`awk '/^zmq_dbhub2proxy/' ./gyconfig.py | awk '{print $3}' | awk 'BEGIN{FS="[:'\'']"}{print $3}'|awk -F'/' '{print $3}'`
else
gefil='gevent.work... | true |
5d706998987d8bd1ba94c36b6e6208f76da4abc1 | Shell | bockbilbo/server-package-updates-to-mattemost-google-chat | /mattermost-script.sh | UTF-8 | 5,076 | 3.84375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Script to notify Mattermost of latest package changes in Ubuntu or
# CentOS.
#
# Based on original work by Rick Harrison available at:
# https://github.com/fortybelowzero/server-package-updates-to-slack
#
# Setup:
# - Change values in the configuration section below
# - Add this as a cron-job - we run i... | true |
6fceacae9467065b59a10e4010b94c37a4ea0ea4 | Shell | zhangfeixiang/cocos-example | /girlGame-main/server/env/env_install.sh | UTF-8 | 2,249 | 3.53125 | 4 | [] | no_license | #!/usr/bin/env bash
RDS_VER="6.0.8"
MYSQL_APT_CFG_VER="0.8.15-1"
ubuntu_env_setup() {
apt install curl -y
# node
curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
apt install nodejs -y
npm -g i n
n lts
echo "Installing node done."
# redis
apt install gcc g++
cd... | true |
c6de6192c4b19e6bc62a4e4c2968f75891784a23 | Shell | nkigen/ubuild | /specs/scripts/cross_u-boot-tools.sh | UTF-8 | 813 | 3 | 3 | [] | no_license | #!/bin/bash
. build.include
. toolchain.include
src_prepare() {
build_src_prepare || return 1
cross_setup_environment || return 1
# fixup compilation, see Gentoo bug #429302
(
cd "${S}" || exit 1
sed -i -e "s:-g ::" tools/Makefile || exit 1
sed -i '/include.*config.h/d' tools/... | true |
cf60f4babaf0a5ee1f5dd90395e9831cddc87839 | Shell | gaocuo/hiboy-opt | /script/Sh25_softether.sh | UTF-8 | 5,268 | 3.515625 | 4 | [] | no_license | #!/bin/sh
#copyright by hiboy
source /etc/storage/script/init.sh
nvramshow=`nvram show | grep softether | awk '{print gensub(/=/,"='\''",1,$0)"'\'';";}'` && eval $nvramshow
softether_path=${softether_path:-"/opt/softether/vpnserver"}
[ -z $softether_enable ] && softether_enable=0 && nvram set softether_enable=0
if [ ... | true |
e6210b40f6dc49a7ff06427de17e01eab45fccde | Shell | lidongcheng88/Remote-Terminal-Settings | /.zshrc | UTF-8 | 4,732 | 2.6875 | 3 | [] | no_license | # If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/root/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know w... | true |
e2b98282120ee0e6c1621248ff50e5fc1d6be3aa | Shell | Nick-Getka/PKI-Project | /389Setup.sh | UTF-8 | 2,079 | 3.59375 | 4 | [] | no_license | #!/bin/bash
#Setup and install of the 389-directory server on a new RHEL server
#Variables
INF=/tmp/ks-$$.inf
hostname 389-Dir.localdomain
HOSTNAME==$(hostname)
TYPE="LDAP_Dir_Server"
#installing necessary packages
function package_install(){
subscription-manager register --username=$1 --password=$2
subscription-man... | true |
e51ea5745770320bb700fcff78f7ee2e07d98235 | Shell | marabout2015/mmlspark | /tools/deployment/gpu-setup.sh | UTF-8 | 3,735 | 3.5625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Copyright (C) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See LICENSE in project root for information.
# Install the prerequisites for MMLSpark on a GPU VM
INSTALL_DIR="/usr/local"
NVIDIA_VERSION="384.111"
NVIDIA_INSTALLER_URL="http://us.download.nvidia.com/XFr... | true |
e4225960731c5b9bd322bed9bb109a70b7a5fba1 | Shell | gitter-badger/0system.0 | /scripts/start.sh | UTF-8 | 1,782 | 3.53125 | 4 | [
"0BSD",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
if [ -z "$Z0_ROOT" ]; then
echo "ERROR: 'Z0_ROOT' environment variable not set!"
exit 1
fi
# Source https://github.com/bash-origin/bash.origin
. "$Z0_ROOT/lib/bash.origin/bash.origin"
function init {
eval BO_SELF_BASH_SOURCE="$BO_READ_SELF_BASH_SOURCE"
BO_deriveSelfDir ___TMP___ "$BO_SELF_BASH_SOURCE"
... | true |
40765ad90a59cfa9b864e7591c65570cd33776f9 | Shell | ilventu/aur-mirror | /quake-par/PKGBUILD | UTF-8 | 644 | 2.59375 | 3 | [] | no_license | # Contributor: Slash <demodevil5[at]yahoo[dot]com>
pkgname=quake-par
pkgver=0.03.01
pkgrel=1
pkgdesc="Quake PAK archiving utility."
url="ftp://ibiblio.org/pub/linux/games/quake/"
license="GPL"
depends=('glibc')
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=("ftp://ibiblio.org/pub/linux/games/quake/... | true |
360dce4182cadddcc2deac1f5cecfdf71c56d3a4 | Shell | SaiNadh001/DockerWork | /DreamOrbit/mongodb/mongo.sh | UTF-8 | 304 | 2.53125 | 3 | [] | no_license | #!/bin/bash
echo "Creating dreamorbit/mongodb and mongo_container"
cd $DOCKER_HOME/DreamOrbit/mongodb
docker build -t dreamorbit/mongodb .
docker run -d -p 27017:27017 --name mongo_container dreamorbit/mongodb
sleep 5m
docker exec mongo_container mongorestore /data-base-folder -db data-base-name | true |
51909151a648c456b676fdb22b3afc1ef8a3f57c | Shell | c3-amitsalunke/cassandra-operator | /buildenv/build-all | UTF-8 | 1,288 | 3.140625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# at the point a makefile is probably the sensible choice
set -o errexit
set -o nounset
set -o pipefail
cd $(dirname "$BASH_SOURCE")/..
source ./buildenv/repo
make
function release_dev() {
docker tag cassandra-operator:latest "${REGISTRY}/cassandra-operator:latest-dev"
docker tag cassandra-s... | true |
11c4b796007c787564b1bc9eb6fa485f3c83ba97 | Shell | ZenBrayn/openms-feature-detection-pipeline | /SCRIPTS/PIPELINE/02_rt_alignment.sh | UTF-8 | 848 | 3.1875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
datadir="/input_data"
files=$datadir/*.mzML
featfiles=""
rtaoutfiles=""
trafooutfiles=""
for f in $files
do
bn=$(basename $f)
fn="${bn%.*}"
featfn=${fn}_features.featureXML
rtafn=${fn}_features_rta.featureXML
trafofn=${fn}_rta.trafoXML
featfiles="$featfiles $featfn"
rtaoutfiles="$rtaoutfil... | true |
d777cc7a6d5c1a798ba8e240a83869b20ae6c477 | Shell | astroclark/osg_tools | /bwb/testsuite/simulated_noise/run.sh | UTF-8 | 2,097 | 2.625 | 3 | [] | no_license | #!/bin/bash
###############################################################
# #
# Example BayesWave run on SIMULATED GAUSSIAN NOISE #
# #
# RUN TIME ~20 minutes ... | true |
6dc28bf1d0a4a47ea79d821f3d2b6983146bab3a | Shell | cuppajoeman/music-experimentation | /formatted/view.sh | UTF-8 | 86 | 2.546875 | 3 | [] | no_license | #!/bin/bash
FILE=$1
FILE_NO_EXT="${FILE%%.*}"
lilypond $1 && zathura $FILE_NO_EXT.pdf
| true |
85ca52658b6143e3cbad2a76ab7867584688cdb4 | Shell | dobos/kurucz-atlas12 | /scripts/run.sh | UTF-8 | 324 | 3.203125 | 3 | [] | no_license | #!/bin/bash
PARAMS=$1
INPUT_MODELS=$2
echo "Sourcing params file"
source $PARAMS
LINEDIR=$(mktemp -d -p $TEMPDIR)
./scripts/lines.sh $PARAMS $LINEDIR
echo -e $INPUT_MODELS | sed -e 's/\s\+/\n/g' \
| xargs --max-procs=20 --replace=% ./scripts/synthe.sh $PARAMS $LINEDIR %
echo "Removing temp directory"
rm -Rf $LIN... | true |
4df7d00fc36d542b52bbe7b107994989fe880b19 | Shell | harttu/keras-bert-ner | /scripts/predict-s800.sh | UTF-8 | 739 | 2.9375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Predict using model trained on FiNER news data
# https://stackoverflow.com/a/246128
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
set -euo pipefail
#datadir="$SCRIPTDIR/../data/finer-news"
#test_data="$datadir/test.tsv"
test_data="/scratch/project_2001426/harttu/july-20... | true |
d4a17b493fdb43ddfd4bccc049010a008b653936 | Shell | acorg/acmacs-whocc | /bin/hidb-get-from-albertine | UTF-8 | 340 | 2.859375 | 3 | [
"MIT"
] | permissive | #! /bin/bash
echo "OBSOLETE! Use ~/acmacs-data/hidb5-download" >&2
exit 1
# if [ "$HOSTNAME" != "i19" ]; then
# if [[ -z ${HIDB_V5} ]]; then
# echo HIDB_V5 is not set >&2
# exit 1
# fi
# rsync -av albertine:'/syn/eu/acmacs-data/hidb5.*.json.xz' albertine:'/syn/eu/acmacs-data/hidb5.*.hidb5b... | true |
aa6a28940aa3eba5a5003876366859bb32ed30e5 | Shell | imerali/puppet-mod_security | /files/scripts/Debian/mod_security_asl_update.sh | UTF-8 | 3,257 | 3.359375 | 3 | [] | no_license | #!/bin/sh
# Autoupdater for modsec rulesets.
#
# This script will attempt to update your rulefiles, and restart apache.
# If it apache does not start after changing rules, it will roll back to
# the old ruleset and restart apache again.
#
# Version: $Id: modsec.sh,v 2.0 2006/09/03 23:58:00 olei Exp $
# Based on a scri... | true |
e224d8f89077b62f474ea03d76cf97a3a6293a58 | Shell | zwfprogit/Shell | /toolsShell/mutiRepoGitManage.sh | UTF-8 | 1,040 | 3.78125 | 4 | [] | no_license | #!/bin/bash
local_root=${PWD}/LinuxC
server="git@github.com"
port="zwfprogit"
project=""
allRepo=(0 1 2 3 4)
repo_name[0]="CClassicUsage"
repo_name[1]="CMakeLists"
repo_name[2]="CProgrammePractice"
repo_name[3]="Python"
repo_name[4]="Shell"
local_path[0]="CClassicUsage"
local_path[1]="CMakeLists"
local_path[2]="CPr... | true |
763b13c99ace65e6cb87647f07b92ba6af92b0ed | Shell | xusxlinux/Document | /shell/配置文件/test_config.sh | UTF-8 | 279 | 2.859375 | 3 | [] | no_license | #!/usr/bin/env bash
import=$(basename "${BASH_SOURCE[0]}" .sh)
if [[ $(eval echo '$'"${import}") == 0 ]]; then return; fi
eval "${import}=0"
LOG_DIR=/data/shell/log
LOG_LEVEL=INFO
readonly TRUE=0
readonly FALSE=1
readonly NONE=''
readonly NULL='null'
readonly EMPTY_LIST='[]'
| true |
022678801b183ec31c0c56f4265bd7276a96751f | Shell | c-dilks/scalers12 | /RUN_TEST | UTF-8 | 495 | 2.53125 | 3 | [] | no_license | #!/bin/bash
if [ $# -ne 1 ]; then
echo "usage: $0 [test char]"
exit
fi
./bunch_kicker_pattern_selector
#./bunch_kicker
./accumulate
./rellum_all
./rellum_runs
./wait_for_condor
root -b -q sumTree.C
root -b -q combineAll.C
pushd matrix
pushd rootfiles
hadd -f all.root matxR*.root
popd
./RunPatterns
mkdir -p tests... | true |
b679399151f99167fc184aa224ee574b3543003b | Shell | brontosaurusrex/singularity | /workers/worker1 | UTF-8 | 987 | 3.546875 | 4 | [] | no_license | #!/bin/bash
# set -x
# base input where subfolders will live, each one is named as script that will be called for encoding
# like "toX264crf"
rootin="$HOME/output/workers"
# output dir, all encodes from various encoders will come here with "find-unique-file-name" protection
rootout="$HOME/output"
# eternal loop
while... | true |
e51af080f5a104364247493b88612f2078260928 | Shell | devcamcar/mesos-boshrelease | /jobs/cassandra/templates/bin/cassandra_ctl.erb | UTF-8 | 1,765 | 3.59375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e # exit immediately if a simple command exits with a non-zero status
# Setup common env vars and folders
source /var/vcap/packages/bosh-helpers/ctl_setup.sh 'cassandra'
export CASSANDRA_PID_FILE=${CASSANDRA_PID_DIR}/cassandra.pid
# Set the hostname
hostname <%= index %>.<%= name %>.<%= spec.network... | true |
add1f6c08e5df2ee50e952f0a0d21fd308dd28c0 | Shell | ztipnis/docker-wildduck | /install/wildduck.sh | UTF-8 | 346 | 3.078125 | 3 | [] | no_license | case $1 in
start)
set -e
cd /opt/wildduck
(node server.js --config=/etc/wildduck/wildduck.toml > /var/log/wildduck.log 2>/var/log/wildduck_error.log)&
echo $! > /var/run/wildduck.pid
;;
stop)
kill `cat /var/run/wildduck.pid` ;;
*)
echo "usage: wildduck.sh {sta... | true |
ef4ff2e22f7348f5f074cbe9becb7329a6091f6a | Shell | wrld3d/android-api | /update.platform.sh | UTF-8 | 1,013 | 3.703125 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
baseUrl="http://s3.amazonaws.com/eegeo-static/"
srcPackageName="sdk.package.android.cpp11.c++_static.tar.gz"
destPackageName="./sdk.package.tar.gz"
includeDestination="./sdk/src/main/cpp/libs/eegeo"
sdkDestination="sdk.package.android"
echo "Fetching eeGeo sdk..."
rm -f ./$destPackageName
rm -rf $include... | true |
99e79112d6a9c091700a5645dfa35919cf2e55d1 | Shell | oucxlw/MVAE | /download.sh | UTF-8 | 1,962 | 3.5 | 4 | [
"MIT"
] | permissive | progressfilt ()
{
local flag=false c count cr=$'\r' nl=$'\n'
while IFS='' read -d '' -rn 1 c
do
if $flag
then
printf '%s' "$c"
else
if [[ $c != $cr && $c != $nl ]]
then
count=0
else
((count++))
... | true |
afc215dad72d49396e09cad40553aab94dd430f7 | Shell | bskaggs/link_text_topic_model | /src/main/scripts/run_link_lda | UTF-8 | 602 | 2.546875 | 3 | [] | no_license | #!/bin/bash
#raw bzip2 file is $1
#working dir is $2
#hdfs dir is $3
DIRNAME=$(cd `dirname $0` && pwd)
LIBDIR=$DIRNAME/../ruby
JAR=$LIBDIR/phoenix.jar
PYTHONIOENCODING=utf_8 python -m gensim.corpora.wikicorpus $1 $2 | hadoop jar $JAR phoenix.StreamToHdfs $3/gensim_titles.txt
PYTHONIOENCODING=utf_8 python $DIRNAME/lda.p... | true |
140c790de6272a8fc7bc64859ba9841736b15687 | Shell | truhlikfredy/thinkpadScripts | /cpu_power_switch.sh | UTF-8 | 2,189 | 3.359375 | 3 | [] | no_license | #!/bin/bash
#now have sandybridge i7-2760qm - 2.4ghz with 3.5ghz turbo
under=2100000
noturbo=`cat /sys/devices/system/cpu/intel_pstate/no_turbo`
status=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor`
min=`cat /sys/bus/cpu/devices/cpu0/cpufreq/cpuinfo_min_freq`
max=`cat /sys/bus/cpu/devices/cpu0/cpufreq/cpu... | true |
e332df6f944f1a62a83793f00dc90e9c71ca263b | Shell | monotonemonk/arch_svntogit_community- | /python2-tlslite/repos/community-any/PKGBUILD | UTF-8 | 1,308 | 2.640625 | 3 | [] | no_license | # $Id$
# Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com>
# Contributor: Andy Weidenbaum <archbaum@gmail.com>
pkgname=python2-tlslite
pkgver=0.4.9
pkgrel=2
pkgdesc="SSL/TLS library in pure Python supporting RSA and SRP ciphersuites"
arch=('any')
depends=('python2')
makedepends=('python2-setuptools')
optdepend... | true |
c2f2e02d45956d5cb4e68240aae47b3d4320090e | Shell | dividat/playos | /base/self-update/recover-from-tmpfile | UTF-8 | 1,881 | 4.1875 | 4 | [
"MIT"
] | permissive | #! /usr/bin/env bash
# This script is designed to recover files written with glib's
# g_file_set_contents function. On journaling filesystems this function
# ensures atomic updates to the target file by writing to a temporary
# file and moving that to the target destination in a second step.
# On journal-less filesyst... | true |
9c352549f0a47feb506c8438430c870a0a2e509e | Shell | notnoopci/yarpc-go | /scripts/cover.sh | UTF-8 | 1,567 | 3.890625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
if echo "${GOPATH}" | grep : >/dev/null; then
echo "error: GOPATH must be one directory, but has multiple directories separated by colons: ${GOPATH}" >&2
exit 1
fi
start_waitpids() {
WAITPIDS=
}
do_waitpid() {
$@ &
WAITPIDS="${WAITPIDS} $!"
}
reset_waitpids() {
for waitpid in ${WAITPIDS}; ... | true |
3fb1c5a854ee8fcfba11ba0f90a69206f9434857 | Shell | bitwisetech/xmly | /aXmly | UTF-8 | 2,620 | 3.265625 | 3 | [] | no_license | #!/bin/sh
# Utility to auto-run xmly.py; creates OpenRadar procedures file and FGFS Sid/Star Rm routes according to given ICAO name
MNAM=${0##*/} && MNAM=${MNAM%%.*}
ICAO=${1##*/} && ICAO=${ICAO%%.*}
UNAM="whoami"
DNAM=${MNAM}
if [ "$1" = "-h " ]
then
echo "$MNAM Utility to auto-run xmly.py; creates OpenRadar p... | true |
2088659cb02f8b9ea4ccd1b2c38dfa4e9e2b9182 | Shell | jongmin92/code-examples | /bash/run-command-n-times.sh | UTF-8 | 254 | 3.3125 | 3 | [] | no_license | ## for loop - 1
for i in {1..10};
do
date;
done
## for loop - 2
for i in {1..10};
do
echo ${i};
done
## for loop - 3
for ((n=0; n<10; n++))
do
echo ${n};
done
## while loop
END=5
x=$END
while [ $x -gt 0 ];
do
date
x=$(($x-1))
done
| true |
f762237d24d0eab0232abb82f75aedf0cac70038 | Shell | samwhelp/archcraft-adjustment-prototype | /project/archcraft-adjustment-prototype-ctrl/asset/usr/share/archcraft-adjustment-prototype-ctrl/bin/maintain-help.sh | UTF-8 | 805 | 2.890625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
################################################################################
### Head: Init
##
THE_BASE_DIR_PATH="$(cd -- "$(dirname -- "$0")" ; pwd)"
THE_BASE_DIR_PATH="$THE_BASE_DIR_PATH/../ext"
source "$THE_BASE_DIR_PATH/init.sh"
##
### Tail: Init
#########################################... | true |
f949c87823b041883116b90f60f99aa4d91fd93f | Shell | LinMAD/SimpleGames | /SDL2/Tetris/conan.sh | UTF-8 | 673 | 3.1875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
case "$1" in
add_remote)echo "Configure conan with community remotes to get needed dependencies"
conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
;;
debug)echo "Installing dependencies for debug"
conan install . -s build_type=Debug ... | true |
abde242c1726c8e5237d3ffb7c6e4757ef5bfbaf | Shell | open-horizon/anax | /test/gov/sharedreg.sh | UTF-8 | 2,186 | 2.921875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
EMAIL="foo@goo.com"
echo "Calling node API"
curl -sS -H "Content-Type: application/json" "$ANAX_API/node" | jq -er '. | .account.id' > /dev/null
if [[ $? -eq 0 ]]; then
read -d '' updatehzntoken <<EOF
{
"account": {
"id": "$USER"
},
"token": "$TOKEN"
}
EOF
echo -e "\n[D] hzntoken payloa... | true |
b265e77ddafc6b80e4f51ced4d7dff5873798849 | Shell | aheilmaier/iHAC | /ihac-qkviewadd | UTF-8 | 1,674 | 3.328125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#version: 2.0
#license: MIT
#author: Simon Kowallik <github simonkowallik.com>
#source: https://github.com/simonkowallik/iHAC
#
IHACAUTH="$HOME/.ihac/auth.jar"
IHACPROXYFILE="$HOME/.ihac/IHACPROXY"
if [[ -f "$IHACPROXYFILE" ]]; then IHACPROXY="$(<$IHACPROXYFILE)"; fi
if [[ ! -z "$IHACPROXY" ]]; then IHACPRO... | true |
c624d05a0f4afb4930a34419d649cd0b6ebe2c20 | Shell | vutung2311/stratos_kernel | /ramdisk/sbin/script/renice_tweak.sh | UTF-8 | 3,091 | 2.984375 | 3 | [] | no_license | #!/system/bin/sh
#=====================================================
#=====================================================
#========== AmazBoost by androidexpert35 =============
#=====================================================
#=====================================================
#======== Copyright (C) 2018... | true |
8eca8cd4335a94e0ebd0c946e4a04d6160151fff | Shell | gmfricke/singularity-test | /mpitest/mpiring.pbs | UTF-8 | 1,558 | 3.171875 | 3 | [] | no_license | #!/bin/bash
# bash$ cd $PBS_O_WORKDIR
# bash$ bash ./singularity-test-ubuntu.pbs
#
# Interactive pbs sessions are useful for debugging, but are not
# the preferred way to run production jobs. Once problem is
# identified, do submit as normal.
# Processors per node (ppn), today is synonymous with cores:
# xena has ... | true |
d36084836a03b81b655dcc31523c8991f38df085 | Shell | crrlcx/ansible-jemalloc | /test/run.sh | UTF-8 | 414 | 3.28125 | 3 | [] | no_license | #!/bin/bash
ansible-playbook -i hosts test.yml
# Remember the exit code of the previous command to return it
# at the end of the script
test_status=$?
# Shut down containers manually
# Ignore connection errors
(ansible-playbook -i hosts shut-down-containers.yml | grep -v 'Failed to connect to the host via ssh') || tr... | true |
830dabec383ea2a1f49a87b3d35620c820a5faf5 | Shell | Ramachandraiah/power-scripting | /Shell/make-folder.sh | UTF-8 | 2,124 | 4.59375 | 5 | [] | no_license | #!/bin/bash
###############################################################################################
# Date : 28th May 2016 #
# Author : Ramachandraiah Nikadi #
# Languge : Shell Sc... | true |
79fcf343a0f33d5cc352ef8e57de2fdc19338e8e | Shell | leopiney/tscf | /evaluate_logs.sh | UTF-8 | 171 | 2.828125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
array=( 0 1 2 3 4 5 6 7 8 9 )
for i in "${array[@]}"
do
awk -f extract_logs.awk evaluations/evaluation_$i.log > evaluations/evaluation_$i.csv
done
| true |
4f035e54eb6c270dab502d81c0ae17d94b44c179 | Shell | conda-forge/lmdb-feedstock | /recipe/build.sh | UTF-8 | 263 | 3.03125 | 3 | [
"BSD-3-Clause",
"OLDAP-2.8",
"BSD-2-Clause"
] | permissive | #!/bin/bash
set -ex
cd libraries/liblmdb/
if [[ -z "${AR}" ]]; then
AR=ar
fi
export DESTDIR=$PREFIX
make CC=$CC AR=$AR
if [[ "${CONDA_BUILD_CROSS_COMPILATION:-0}" == "0" ]]; then
make test
fi
make install
# delete static library
rm $PREFIX/lib/liblmdb.a
| true |
fa3062080e42ca64bd847bd8e3658c2f203a30d3 | Shell | ctx-core/monorepo | /bin/package-manifest-changeset.sh | UTF-8 | 1,014 | 3.703125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
usage() { echo "Usage: $0 [-b] [-h]" 1>&2; exit 1; }
while getopts "b:h" o; do
case "$o" in
b)
BUMP=$OPTARG
;;
h)
usage
exit
;;
esac
done
BUMP=${BUMP:-patch}
PWD=$(pwd)
LIST="$(pnpm list -r --depth -1)"
BIN_DIR="$(dirname $0)"
echo $DIR
while read line; do
if [ -z "$(echo "$line" | xargs)" ]; ... | true |
36810df8fea6dd97d89c0851c4df5c6e6c65191e | Shell | zlmone/scripts-and-guides | /_bin/update_readme.sh | UTF-8 | 1,786 | 3.8125 | 4 | [
"MIT"
] | permissive | #/bin/bash
echo "sdfsdf"
cat > README.md << "EOL"
# Embedded Machine Learning Scripts and Guides
This is a collection of scripts and guides by the <a href="https://embedded-machine-learning.github.io/webpage/">Christian Doppler Laboratory for Embedded Machine Learning</a>
We collect scripts and guides that help us... | true |
0bf9775696853383531f9c8b40c39a79ea78a923 | Shell | langest/dotfiles | /scripts/wallpaper.sh | UTF-8 | 527 | 2.90625 | 3 | [] | no_license | #!/bin/bash
if [[ $MONITOR_SETTINGS = "external" ]]; then
# Oneliner that does the same thing
# cat <(find $HOME/img/wps_portrait/ -type f -printf '"%p"\n' | sort -R | head -n1) <(find $HOME/img/wps/ -type f -printf '"%p"\n' | sort -R | head -n1) | xargs feh --bg-fill
LANDSCAPE=`find $HOME/Pictures/wps/ -type f | ... | true |
2d5cbd1d37e8b97ebd234dafca60f885ec612ee8 | Shell | TheCoreMan/make-git-better-2 | /levels/tests/test-tag-2.sh | UTF-8 | 539 | 2.890625 | 3 | [
"CC-BY-4.0"
] | permissive | #!/bin/bash
source $(dirname $0)/tests-lib.sh
level_branch=individually-nonintroversive-chalcomancy
level_title=tag-2
test_log "testing level $level_title branch $level_branch"
git checkout $level_branch
git clean -f -d
# PUT TEST CODE HERE, like git add + git commit
if [[ $(git show $(git show-ref --tags -d | gre... | true |
1be71fae837f6e0f23156bf42e3e88175013ffd4 | Shell | bhoobal/terraform-asCode | /createec2 | UTF-8 | 1,487 | 3.6875 | 4 | [] | no_license | #!/bin/bash -ex
# This script will create one or more EC2 instances in either
# Expects numerous environment variable to be in place.
# Required values to be set:
# USER
# ENVIRONMENT
# APP
# COMPONENTS
# NAME
# TEAM
# INSTANCE_TYPE
USER=$1
ENVIRONMENT=$2
APP=$3
NAME=$4
TEAM=$5
DESCRIPTION=$6
POWER_ON_HOURS=$7
if [[... | true |
8f51f9adb33a3ee4719fe2e5af8d6d4200879c1b | Shell | propertybase/elk | /image/10_system_env.sh | UTF-8 | 841 | 2.671875 | 3 | [] | no_license | #!/bin/bash
# Install services
## Elasticsearch
mkdir /etc/service/elasticsearch
touch /etc/service/elasticsearch/down
cat > /etc/service/elasticsearch/run <<EOF
#!/bin/sh
exec 2>&1
exec /usr/local/elasticsearch/bin/elasticsearch "" "" "-Des.default.config=/etc/elasticsearch/elasticsearch.yml -Des.default.path.data=... | true |
ed34dfe7ddf89db9ae696fcab6d54422963fedc4 | Shell | NotoriousRebel/Mythic | /rabbitmq-docker/config_rabbit.sh | UTF-8 | 880 | 3.609375 | 4 | [
"BSD-3-Clause",
"MIT"
] | permissive | #!/bin/bash
# This script needs to be executed just once
if [ -f /$0.completed ] ; then
echo "$0 `date` /$0.completed found, skipping run"
exit 0
fi
# Wait for RabbitMQ startup
for (( ; ; )) ; do
sleep 2
rabbitmqctl -q node_health_check > /dev/null 2>&1
if [ $? -eq 0 ] ; then
echo "$0 `date` rabbitmq is... | true |
102a8f4337582df3c6d31b82d9734c435f3d391e | Shell | xk2600/libsh | /src/package | UTF-8 | 879 | 3.84375 | 4 | [] | no_license | #!/usr/bin/printf %s: must be sourced from /bin/sh interpreter.\n
# vim:syntax=sh
# package require cli::debug
. "${CLILIB:?}/lib/cli/debug"
## require NAMESPACE
## sources file scope making it available in the interpreter
##
package::require() {
local REQUIREMENTS
local MODULE
set -e
while [ $# -g... | true |
633697172d5dcf65e8d8b4bc26b639f84a9de7df | Shell | gutek9/scripts_tools | /k8s_scripts/ext_ips.sh | UTF-8 | 474 | 3.953125 | 4 | [] | no_license | #!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root or using sudo"
exit -1
fi
IP=$1
NETMASK="255.255.252.0"
IFACES_FILE="/etc/network/interfaces"
LAST_IFACE=$(cat $IFACES_FILE | grep "auto eth0:" | cut -d ":" -f2 | sort -nr | head -1)
NEXT_IFACE=$((LAST_IFACE+1))
echo "Adding $IP..."
echo... | true |
5d70b817c295dcb6eaabc4bb07f54e9360006110 | Shell | wbgalvao/tracking_server | /scripts/cassandra-init.sh | UTF-8 | 440 | 2.703125 | 3 | [
"MIT"
] | permissive | CQL="CREATE KEYSPACE IF NOT EXISTS $KEYSPACE WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'} AND durable_writes = true;
CREATE TABLE IF NOT EXISTS $KEYSPACE.$TABLE (id uuid, username text, target text, description text, timestamp timestamp, PRIMARY KEY (id));"
until echo $CQL | cqlsh; do
ec... | true |
65eb6783283b3b8b6fdb2d39b3657eff716ea2ac | Shell | artudi54/ShellRc | /deployment/configure/components/components.sh | UTF-8 | 401 | 3.859375 | 4 | [] | no_license | #!/bin/bash
if [[ $# -ne 1 ]]; then
echo "install: invalid number of arguments passed" 1>&2
exit 1
fi
SCAN_DIR="$1"
for componentDirectory in "$SCAN_DIR"/*; do
if [[ ! -f "$componentDirectory/install.sh" ]]; then
continue
fi
componentName=$(basename "$componentDirectory")
echo "instal... | true |
09234ca033ac54c78d91090a80a4bba231cf0ccb | Shell | tungtran3012/Linux2018 | /W07/GiaiThua.sh | UTF-8 | 256 | 3.28125 | 3 | [] | no_license | #!/bin/bash
function GiaiThua()
{
if [ $1 -ge 0 ]
then
if [ $1 -eq 0 ]
then
echo "0! =1"
elif [ $1 -eq 1 ]
then
echo "1! =1"
else
g=1
for((i=1;i<=$1;i++))
do
g=`expr $g \* $i`
done
echo "$1 != $g"
fi
fi
}
GiaiThua 4
| true |
874235f3a3aeb66a29ce4ae391fb57b27c3fbccf | Shell | aparnaank/chaos-monkey-test-framework | /chaotic-patterns/instance-app-failures/instanceAppFailures.sh | UTF-8 | 807 | 3.65625 | 4 | [] | no_license | #!/bin/bash
while getopts k:p:o: option
do
case "${option}"
in
p) path=${OPTARG};;
k) killSvr=${OPTARG};;
o) operation=${OPTARG};;
esac
done
function serverOperations(){
echo $operation
echo $path
sh $path/bin/wso2server.sh $operation
}
function serverKill(){
PID=`jps | grep Bootstrap | awk ... | true |
4e81d249cbd732e2e081d1628843640c7b14117b | Shell | jannewulf/dotfiles.global | /configs/profile | UTF-8 | 533 | 3.171875 | 3 | [] | no_license | # ~/.profile has the stuff NOT specifically related to bash, such as environment variables (PATH and friends)
# Anything that should be available to graphical applications OR to sh (or bash invoked as sh) MUST be in ~/.profile
# Anything that should be available only to login shells should go in ~/.profile
# https://su... | true |
e2309d645a32690c9c7995b4f62bd128a0e2766a | Shell | jake-stewart/funtime_projects | /2020/Bash/calculator.sh | UTF-8 | 586 | 3.546875 | 4 | [
"MIT"
] | permissive | # !/bin/bash
clear
echo "Choose one of the following."
echo ""
echo "1. Addition"
echo "2. Subtraction"
echo "3. Multiplication"
echo "4. Division"
echo ""
read -p "Choice: " choice
clear
if choice = '5'; then
exit 1
fi
read -p 'Enter your first number: ' a
read -p 'Enter your second number: ' b
... | true |
ffe5adf89ec59de8082adcb651f25005028ab932 | Shell | crosser/pdns-pipe-nmc | /build | UTF-8 | 754 | 3.140625 | 3 | [
"Zlib"
] | permissive | #!/bin/sh
file="pdns-pipe-nmc"
sfx="linux-glibc6.`uname -m`.`date +%Y-%m-%d`.git-`git describe`"
echo "Making $file.$sfx"
# tried this:
#ghc --make -static -optc-static -optl-shared-libgcc -optl-static \
# -optl-pthread -pgml g++ "$file"
# but cannot make it "only glibc is shared". And with static glibc,
# ... | true |
5d1df6bc6b47c9a07dfcb9e6d952fdc6824c8a1f | Shell | gwindlord/uber-saber | /aosp_r35_r36.sh | UTF-8 | 1,872 | 3.046875 | 3 | [] | no_license | #!/bin/bash
# patching android-5.1.1_r34 to android-5.1.1_r36
# taking changes from log http://www.androidpolice.com/android_aosp_changelogs/android-5.1.1_r34-to-android-5.1.1_r35-AOSP-changelog.html
# and results of own android-5.1.1_r35 to android-5.1.1_r36 investigation
LOCAL_REPO="$1"
if [[ "$#" != "1" ]]; then
... | true |
b63e4292b9ac5e1487af7cf3a2e74e3431849572 | Shell | evandropaes/dotfiles | /scripts/os/preferences/macos/finder.sh | UTF-8 | 4,505 | 2.8125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")" \
&& . "../../utils.sh"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
print_in_purple "\n Finder\n\n"
execute "defaults write com.apple.frameworks.diskimages auto-open-ro-root -bool true && \
defaults write com.apple.frameworks... | true |
6b2a8793b495f4a9a7937f2f88fbea2d0b560eda | Shell | libpcp/pcp | /test_coverage.sh | UTF-8 | 623 | 2.765625 | 3 | [
"BSD-2-Clause"
] | permissive | #/bin/sh
rm test_coverage.tmp -rf
mkdir test_coverage.tmp
#[ -f configure.ac.orig ] || cp configure.ac configure.ac.orig
#sed -i 's/subdir-objects//' configure.ac
./autogen.sh
cd test_coverage.tmp
CPPFLAGS="-DNDEBUG -DPCP_MAX_LOG_LEVEL=5" CFLAGS="-O0 -g" ../configure --enable-gcov
make check
rm pcp_app/pcp-pcp_app.gcd... | true |
34a71de2ea82ec05347e645f8186982a20fefb23 | Shell | pavanyendluri588/ubuntu | /shell.sh | UTF-8 | 856 | 2.78125 | 3 | [] | no_license | echo "executing git add . command "
sudo git add .
echo "git add command is successfully executed"
echo "==================================================================================================="
echo "checking ststus..... by using git status command"
sudo git status
echo "git status command is succes... | true |
3e57d5bd89241829064ec300de8bb454fb12a919 | Shell | cbsd/reggae | /scripts/service.sh | UTF-8 | 1,251 | 3.71875 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
set -e
SOCKET_DIR=${1}
PID_FILE=${2}
if [ -z "${SOCKET_DIR}" -o -z "${PID_FILE}" ]; then
echo "Usage: $0 <directory to put socket in> <pid file>" >&2
exit 1
fi
SOCKET="${SOCKET_DIR}/reggae.sock"
MYPID=""
cleanup() {
pkill -P ${MYPID}
rm -rf ${SOCKET}
}
trap cleanup HUP INT ABRT BUS TERM EXIT
... | true |
165744490faa9f780ddbfc465ab6ea2656c38d84 | Shell | Aweponken/dj-scripts | /scripts/rename_files_from_id3_tag.sh | UTF-8 | 1,730 | 4.375 | 4 | [] | no_license | #!/bin/bash
# This script renames MP3 files to a name that matches a pattern.
# The pattern elements can be found here: https://eyed3.readthedocs.io/en/latest/plugins/display_plugin.html#pattern-elements
# Usage: ./rename_files_from_id3_tag.sh /Users/Me/Music/ "%title%_%artist%"
# Note: This script requires eyeD3 and... | true |
8bef54c81309ca4932586c31e8759070279541db | Shell | fullstackdev427/Project-tutorial | /scripts/install_httpd | UTF-8 | 763 | 3.078125 | 3 | [] | no_license | #!/bin/bash
# Install apache
yum -y install httpd-2.4.48
# Set file and folder permissions
chgrp -R apache /home/ec2-user/
find /home/ec2-user/ -type d -exec chmod g+rx {} +
find /home/ec2-user/ -type f -exec chmod g+r {} +
chown -R ec2-user /home/ec2-user/
find /home/ec2-user/ -type d -exec chmod u+rwx {} +
find /ho... | true |
aa0c0b7c4ebdcc6c992c3ecabfe4aa64ec9c8987 | Shell | mayank64857/GitJenkins | /Jenkins.sh | UTF-8 | 346 | 3.140625 | 3 | [] | no_license | #!/bin/sh
echo "hello"
df -H | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $5 " " $1 }' | while read output;
do
echo $output
usep=$(echo $output | awk '{ print $1}' | cut -d'%' -f1 )
partition=$(echo $output | awk '{ print $2 }' )
echo "Disk Space is fine total $usep percent used in /root on $(hostname -... | true |
7a2a28684b9cb110918402ae485cef2d257f4c0d | Shell | misiyu/base_shell_demo | /example/4.sh | UTF-8 | 473 | 3.171875 | 3 | [] | no_license | pips=6
max=1000
throw=1
one=0
two=0
three=0
four=0
five=0
six=0
count()
{
case "$1" in
0) let "one = one + 1";;
1) let "two = two + 1";;
2) let "three = three + 1";;
3) let "four = four + 1";;
4) let "five = five + 1";;
5) let "six = six + 1";;
esac
}
while [ "$throw" -le "$max" ]
do
let "dice = RANDO... | true |
0f4074ebeedbade06ae00e4bc35a552fb589ab38 | Shell | tanaka3622/bruby | /bash_to_ruby/if/ge.sh | UTF-8 | 133 | 3.171875 | 3 | [] | no_license | #!/bin/bash
var1=2
var2=2
# >=
if [ $var2 -ge $var1 ] ; then
echo "var2はvar1以上"
else
echo "var2はvar1より小さい"
fi | true |
14c70ee02a7314e21785717905d7b14810655242 | Shell | xet7/shails | /SHac/base.sh | UTF-8 | 939 | 3.03125 | 3 | [
"MIT"
] | permissive | function base_controller::class.redirect_to() {
local class=$1
local url=$(url_for "$@")
logger.debug "redirect to $url"
CGI.redirect "$url"
}
function base_controller::class.render() {
local class=$1
local action
shift
local e
for e; do
case "$e" in
:action=*)
action... | true |
d9d9fb9476e94a17632fe67f634865edd3171456 | Shell | bestephe/res-sim | /run_missing.sh | UTF-8 | 695 | 3.890625 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
###########################
# Parse arguments
###########################
usage()
{
echo "usage: $0 missing.txt"
exit 1
}
if [ $# -ne 1 ]
then
usage
fi
###########################
# Clean exit
###########################
cleanup()
# example cleanup function
{
kill $(jobs -p)
return $?
}
... | true |
7cba17c70bec18b7a8ff25e41bfe4e792888d93d | Shell | ssh352/events_stuff_main | /code/elements/scripts/make_release.sh | UTF-8 | 434 | 2.8125 | 3 | [] | no_license | #!/bin/bash
./clean
./make
version=$1
root=click_trader.${version}
mkdir $root
cp click_trader.param $root
cp cme_md_config.properties $root
cp field_mask $root
cp oms_config.properties $root
cp params.proto $root
cp params_pb2.py $root
cp user.proto $root
cp user_pb2.py $root
mkdir $root/build
mkdir $root/scri... | true |
8e6ef0f272ee570f81436a33928e126b50060744 | Shell | hewenhao2008/boy | /wiware/bin/addwhitemac.sh | UTF-8 | 640 | 3.3125 | 3 | [] | no_license | #!/bin/sh
# $1 - the mac
. /wiware/bin/wicore.sh
mac=$(echo $1 |sed -r '/[a-fA-F0-9]{2}:[a-fA-F0-9]{2}:[a-fA-F0-9]{2}:[a-fA-F0-9]{2}:[a-fA-F0-9]{2}:[a-fA-F0-9]{2}/!d')
if [ "x$mac" != "x" ]; then
existed=$(uci get wipark.user.white 2>/dev/null|grep $mac|wc -l)
if [ $existed -eq 0 ]; then
if [ "x$(uci get wipark.u... | true |
b0f727b552d30b4822e27b5ec5c87b20e2718988 | Shell | Marvin9/longago | /scripts/test.sh | UTF-8 | 256 | 2.890625 | 3 | [] | no_license | #!/bin/bash
# https://unix.stackexchange.com/a/452142
if [ "${CI+1}" ]
then
echo "CI environment"
$UPLOAD_STORAGE="/tmp"
else
echo "Local environment"
. ./.env
fi
echo $UPLOAD_STORAGE
echo "\n"
UPLOAD_STORAGE=$UPLOAD_STORAGE go test ./... | true |
b8088ce41ecbe02046aaa0813438da5ec47fa7cb | Shell | BellRampion/documentationWriting | /processWholeFolderFindMethodsPython.sh | UTF-8 | 1,070 | 2.90625 | 3 | [] | no_license | #!/bin/bash
# Copyright 2019 by Bailie Livingston.
# This script 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 3 of the License, or
# (at your option) any later version.
#
# T... | true |
679e2b2b2fc6f406b08a99f6f0366babb6d063a1 | Shell | daringway/trigger-workflow-and-wait | /entrypoint.sh | UTF-8 | 3,418 | 3.46875 | 3 | [
"MIT"
] | permissive | function usage_docs {
echo ""
echo "You can use this Github Action with:"
echo "- uses: convictional/trigger-workflow-and-wait"
echo " with:"
echo " owner: keithconvictional"
echo " repo: myrepo"
echo " github_token: \${{ secrets.GITHUB_PERSONAL_ACCESS_TOKEN }}"
}
# TODO - Add client_payload
f... | true |
90c83beb63ca4a3f619f45289cbcfc83bf2336a8 | Shell | tbrunz/installer_scripts | /src/installers/z-scripts/deprecated/install-ppa-hd5500.sh | UTF-8 | 1,540 | 3.46875 | 3 | [
"Apache-2.0",
"MIT"
] | permissive | #! /usr/bin/env bash
#
# ----------------------------------------------------------------------------
# Install the Intel HD5500 video driver from a PPA repository.
# ----------------------------------------------------------------------------
#
INCLUDES="core-install.bash"
if [[ -f "${INCLUDES}" ]]; then source "${I... | true |
a0d97e38190991e4f9d0ae6209dfc5341880bf95 | Shell | ICRAR/bldr | /pkgs.orig/system/060-gpusd.sh | UTF-8 | 2,045 | 3.25 | 3 | [] | no_license | #!/bin/bash
####################################################################################################
# import the BLDR system
####################################################################################################
source "bldr.sh"
#############################################################... | true |
111502649b1c267d4f03d726de7228d174bfdf47 | Shell | shesek/gdk | /tools/swig.sh | UTF-8 | 1,167 | 3.171875 | 3 | [
"OpenSSL",
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
sed_exe=$1
result="$3/com/blockstream/libgreenaddress/GDK.java"
mkdir -p `dirname $result`
swig -java -noproxy -package com.blockstream.libgreenaddress -o $2 -outdir $3 $4
$sed_exe -i 's/GDKJNI/GDK/g' $2
# Merge the constants and JNI interface into GDK.java
grep -v '^}$' $3/GDKJNI.java ... | true |
5d2adb5ae4a88b01aa7d15be474e2583ab260098 | Shell | JamesYeoman/zsh-config | /modules/base/envs.zsh | UTF-8 | 962 | 3.296875 | 3 | [] | no_license | XENV_COMMANDS=()
function exportEnvIfExists() {
local pth="${XDG_DATA_HOME}/$1"
if [[ -d "$pth" ]]; then
eval "export ${1:u}_ROOT=\"${pth}\""
# Avoid processing commands that have to use workarounds
case $1 in
goenv)
# While goenv has moved $GOPATH/bin to the end of... | true |
5e23bcd66ecb26a818b8666514edbff294c523c4 | Shell | fosskers/vagrant-docker | /bootstrap.sh | UTF-8 | 782 | 3.0625 | 3 | [] | no_license | #!/bin/bash
apt-get update
# --- Docker Setup --- #
# https://docs.docker.com/engine/installation/linux/ubuntu/
apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual
# Add docker repo
curl -fsSL https://yum.dockerproject.org/gpg | apt-key add -
apt-key fingerprint 58118E89F3A912897C070ADBF7622157... | true |
5c3b8121fff036a5f552c34d6a42046d6b1155a8 | Shell | DmitryYudin/vctest | /core/condor.sh | WINDOWS-1252 | 7,772 | 3.703125 | 4 | [] | no_license | #!/bin/bash
#
# Copyright 2021 Dmitry Yudin. All rights reserved.
# Licensed under the Apache License, Version 2.0
#
#
# This script is for a sourcing, a seft-test is executed if running alone.
#
# Usage:
#
# . ./condor.sh
#
# # Set job name
# CONDOR_setBatchname $(date "+%Y.%m.%d-%H.%M.%S")
#
# for task in ... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.