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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
f77c0810c638b53eda1fd2dbf1c74c4ddc571f7b | Shell | selajdinbilali/kubernetes-mini-cluster | /master.sh | UTF-8 | 4,900 | 3.046875 | 3 | [] | no_license | #!/usr/bin/env bash
# arrete et desactive le firewall
systemctl stop firewalld
systemctl disable firewalld
# install ntp pour la synchronisation du temps et l'active au demarrage
yum -y install ntp
systemctl start ntpd
systemctl enable ntpd
# installation des paquets etcd, kubernetes et flannel
yum -y in... | true |
9ba46dd3e45991eb40c2985cbfecfea46152a69c | Shell | opencrmitalia-official/validators | /server-check.sh | UTF-8 | 705 | 3.734375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# https://misc.flogisoft.com/bash/tip_colors_and_formatting
good() {
echo -e ">> $1: \e[1m\e[32m[OK!]\e[0m"
}
fail() {
echo -e "\e[31m==================================\e[0m"
echo -e "\e[31mFATAL ERROR with $1\e[0m"
echo -e "\e[31m==================================\e[0m"
}
release=$(lsb_release ... | true |
337b31ffe3aba199b9c1c234238822a2a88e1f0d | Shell | developgo/logpaste | /docker_entrypoint | UTF-8 | 1,183 | 3.828125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Exit build script on first failure.
set -e
# Exit on unset variable.
set -u
readonly DB_PATH="/app/data/store.db"
env_vars_to_flags() {
set +u
local flags=""
if [[ ! -z "${SITE_TITLE}" ]]; then
flags+=" -title \"${SITE_TITLE}\""
fi
if [[ ! -z "${SITE_SUBTITLE}" ]]; then
flags+=" -... | true |
ee65e295d155b20d14660154f4d233f7c649df22 | Shell | gov466/Linux-Bash-Scripting | /Functions/pipe.sh | UTF-8 | 333 | 3.703125 | 4 | [] | no_license | #!/bin/bash
FILES=`ls -1 | sort -r | head -3 ##runs ls command and limit col to one##
##sort is builtin in linux -r reverse sort order##head -3 takes first 3results
COUNT=1
for FILE in $FILES
do
echo "File #$COUNT = $FILE"
((COUNT++))
done
exit 0
###display files in current directory in descending alphabetic ... | true |
2060b96ccb74d18754dd1c2a903240ec8c8caa9d | Shell | FauxFaux/utils | /tags/aughiimask-20021127T0120Z/cvscat | UTF-8 | 206 | 2.8125 | 3 | [] | no_license | #!/bin/bash
# $Id: cvscat,v 1.2 2002/07/15 13:21:51 sunny Exp $
if [ $# -le 1 ]; then
cat <<END
Syntax: cvscat file revision
END
exit 1
fi
cvs -d $(cat CVS/Root) co -p -r $2 $(cat CVS/Repository)/$1
| true |
c40cbb2aa4de071157314266f3c4d801defb548c | Shell | chocolatkey/YahooBookstoreDB | /cron.sh | UTF-8 | 568 | 2.96875 | 3 | [] | no_license | #!/bin/bash
# Henry (chocolatkey) 2017-08-06
if [ $# -eq 0 ]
then
echo "YDB updater"
echo "Please provide ARGUMENT for additional DB file name"
else
python3.6 /home/media/manga/yrip.py -c true -f true -d true -a "$@"-cron.json -r 801000-820000
sudo chmod 0777 /home/media/manga/db.json
sudo cp -R /... | true |
3af75e11c23306b5227c9030c154077d37b3144f | Shell | nw55/dotnet-integration-runescape | /build.sh | UTF-8 | 580 | 3.109375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
readonly THIS_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
readonly THIS_FILE="$THIS_DIR/$(basename "${BASH_SOURCE[0]}")"
artifactsDir="$THIS_DIR/artifacts"
if [ -d artifactsDir ]; then
rm -R artifactsDir
fi
build_number=${TRAVIS_BUILD_NUMBER:=1}
dotnet restore --verbosity norm... | true |
7693fc2a0f4cf262cae77b79d53a40f6a1579c07 | Shell | JacobFischer/CS5400-Puzzle | /run.sh | UTF-8 | 665 | 3.65625 | 4 | [
"MIT"
] | permissive | # HW2: solves puzzle 1-4 via A* GS
# default arguments
algorithm="astar_gs"
puzzles="puzzles/puzzle1.txt puzzles/puzzle2.txt puzzles/puzzle3.txt puzzles/puzzle4.txt"
# command line arg overrides
if [ -n "$1" ]; then
algorithm="$1"
fi
if [ -n "$2" ]; then
puzzles="${@:2}"
fi
echo "Algorithm: $algorithm"
echo... | true |
19b48fa40de1e24099be7b6331afc6566784ba97 | Shell | yunque/thinkingaboutthinking | /tips/dbg.sh | UTF-8 | 896 | 2.625 | 3 | [
"CC0-1.0"
] | permissive | # Find the ARM GCC toolchain directory
locate arm-none-eabi-gcc
# e.g. @ /home/imr/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3/arm-none-eabi/
# Location of assembler (as), linker(ld), etc.
/usr/arm-linux-gnueabi/bin
# GDB
# basix @ http://www.thegeekstuff.com/2010/03/debug-c-program-using-gdb/
# 1. Call a... | true |
3b4a0569afb211ce2358e62aa7a0811f65532b52 | Shell | andreimunteanu/Bash_project | /src/main.sh | UTF-8 | 2,145 | 4 | 4 | [] | no_license | #!/bin/bash
bold=`tput bold` # per formattare il testo in corsivo
normal=`tput sgr0` # resetta gli attributi del testo
# lista degli script bash componenti il progetto:
INIT_REPO=./init_repo.sh
COMMIT=./commit.sh
REMOVE=./remove.sh
REVERT=./revert.sh
STATUS=./status.sh
FILE_SEARCH=./file_search.sh
# lista di funzioni... | true |
5f68d20093da15bf35cc3a3812110736f3793883 | Shell | gliderlabs/glidergun | /src/env.bash | UTF-8 | 550 | 3.96875 | 4 | [
"BSD-3-Clause"
] | permissive |
declare -a _env
env-import() {
declare var="$1" default="$2"
if [[ -z "${!var+x}" ]]; then
if [[ -z "${2+x}" ]]; then
echo "!! Imported variable $var must be set in profile or environment." | >&2 red
exit 2
else
export $var="$default"
fi
fi
_env+=($var)
}
env-show() {
declare desc="Shows relevant... | true |
065b11262ffcf09a79753860013fed1d848c96ec | Shell | echo9305/earth_config | /kubeapp-ide/helm/pull.sh | UTF-8 | 597 | 3.359375 | 3 | [
"Apache-2.0"
] | permissive | ###########################################
##
## Copyright (2019,) Institute of Software
## Chinese Academy of Sciences
## wuheng@otcaix.iscas.ac.cn
##
##########################################
VALUE=gcr.azk8s.cn
KEY=gcr.io
while read line
do
img=$(echo $line | awk -F":" '{print$1}')
ver=$(ec... | true |
ef10f294b74890e2885430415c428347f768a37f | Shell | deep-42-thought/archlinuxewe | /embree-isa/PKGBUILD | UTF-8 | 1,465 | 2.71875 | 3 | [] | no_license | # Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>
# Contributor: gucong <gucong43216@gmail.com>
# Maintainer: Erich Eckner <arch at eckner dot net>
pkgname=embree-isa
pkgver=3.13.3
pkgrel=3
pkgdesc="A collection of high-performance ray tracing kernels (with build-time ISA detection)"
arch=('x86_64')
url="https://... | true |
2efa5d4c211f63f3d64c5dd2b65839b52bf511a6 | Shell | dronovep/instructions | /PhpVersion.sh | UTF-8 | 1,247 | 2.953125 | 3 | [] | no_license | #Нужно проверить, есть ли репозиторий REPEL - репозиторий экстра пакетов от проекта Fedora
rpm -qa | grep epel
#Если репозитория нет, то устанавливаем
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
#Аналогично проверяем и ставим репозиторий REMI - специальный репозиторий разли... | true |
a2b85fb8d5ab19cc95f05003ff1b88d788e2a36d | Shell | jdelgadoalfonso/bscript | /reboot.sh | UTF-8 | 241 | 3.34375 | 3 | [] | no_license | #!/bin/bash
IP_FILE="$1"
IPS=()
while IFS='' read -r line || [[ -n "${line}" ]]; do
IPS+=(${line})
done < "${IP_FILE}"
for IP in "${IPS[@]}"
do
sshpass -p root ssh -o StrictHostKeyChecking=no -t root@${IP} ash -c "'reboot'"
done
| true |
e312e9d846e5010784dbecc34297613b45433e13 | Shell | ksorat/Injection | /yellowstone/doH5pCat.sh | UTF-8 | 907 | 2.90625 | 3 | [] | no_license | #!/bin/bash
#
#BSUB -a poe # set parallel operating environment
#BSUB -P UJHB0003 # project code
#BSUB -J h5pC # job name
#BSUB -W 24:00 # wall-clock time (hrs:mins)
#BSUB -n 1 # number of tasks in job
#BSUB -q geyser # queue
... | true |
73b5e4593ec731dba1b61ecf4836f3fe82fe8ec0 | Shell | willghatch/dotfileswgh | /commands/atrs | UTF-8 | 292 | 3 | 3 | [] | no_license | #!/usr/bin/env bash
# reschedule at commands
#
# duplicates header crap -- but that probably shouldn't change
# anyway...
if [[ -z "$1" || "$1" = "--help" ]]; then
echo "usage: $0 <at job id> <new time spec>" 1>&2
exit 1
fi
jobnum=$1
shift
at -c $jobnum | at "$@" && atrm $jobnum
| true |
e3fba0045b800cd1f54e7710254b888a26887d7b | Shell | bkrishna2006/system | /ansible/roles/docker-registry/files/gencert.sh | UTF-8 | 610 | 3.390625 | 3 | [] | no_license | #!/bin/bash
common_name=$1
if [ -z $common_name ]; then
echo "You must enter common_name"
exit 1
fi
echo "Run file in {{ cert_dir }}"
if [ ! -f domain.key ] || [ ! -f domain.crt ]; then
openssl req \
-newkey rsa:4096 -nodes -sha256 -keyout domain.key \
-x509 -days 365 -out domain.crt -subj "/C=VN/ST=HN... | true |
14fa9064d744ebe96142075ca84a0d639333cbd6 | Shell | dylannorthrup/dotfiles | /bin/auth-to-all-kube-clusters | UTF-8 | 364 | 2.9375 | 3 | [] | no_license | #!/bin/bash
cp /dev/null ~/.kube/config
set -x
for proj in $(gcloud projects list | awk '{print $1}'); do
for line in $(gcloud container clusters list --project="${proj}" --format="value[separator=;](name,zone)")
do
IFS=';' read CLUSTER ZONE <<< "$line"
gcloud container clusters get-credentials ${CLUSTER} --z... | true |
52104eba3ec7c174face9a075d5bb325593bab5a | Shell | harshaswarrier/FossLab | /fourth.sh | UTF-8 | 485 | 2.796875 | 3 | [] | no_license | #! /bin/bash
speaker-test -t sine -f 1000 -l 1
echo "Deleting the file ls_output.txt ..."
sleep 5
rm ls_output.txt;
sleep 5
echo "Redirecting output of ls command ..."
sleep 5
ls > ls_output.txt;
sleep 5
echo "displaying the content of ls_output.txt ..."
sleep 5
cat ls_output.txt;
sleep 5
echo "Deletin... | true |
c1ff33dee6dfeca79a8bf3fe67e646859cd9bcc7 | Shell | AlexJacobs95/PDS | /setup.sh | UTF-8 | 286 | 2.515625 | 3 | [] | no_license | #!/usr/bin/env bash
echo "Creating required directories"
mkdir dataset -p
mkdir dataset/features -p
echo "Installing all Python packages for the project"
sudo pip3 install -r requirements.txt
echo "Installing the English model for the Spacy library"
sudo python3 -m spacy download en | true |
fa1308683656cb2e7f4d015c8ace5f74273e0439 | Shell | karma0/home-scripts | /.scripts/localeCheck | UTF-8 | 2,972 | 3.4375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#Connection location: function to test where I'm logging in from and what fallbacks should be used.
# There are a number of possibilites to check, we want to use RGB coloursets as much as possible, but have 256 fallbacks when we cannot.
# 1. On Soma (or another linux machine) with .Xresources available an... | true |
0688a12597bc2492894449ae1de2e314fde3ffed | Shell | 8l/lfscript | /scripts/blfs-13994-unchecked/acpid | UTF-8 | 1,288 | 3.28125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# The instructions in this file are extracted from
# 'Beyond Linux From Scratch' (2014-08-22 / r13994) but are modified for use
# with LFScript 4 which installs the software to a fake root directory.
#
# Beyond Linux From Scratch is released under the MIT license.
# Copyright (C) 2001-2014, The BLFS Develo... | true |
ef7319f8033dbaf0a22953b29e9e4e2123f7cb0d | Shell | jenv/jenv | /libexec/jenv-sh-shell | UTF-8 | 1,145 | 4.40625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#
# Summary: Set or show the shell-specific Java version
#
# Usage: jenv shell <version>
# jenv shell --unset
#
# Sets a shell-specific Java version by setting the `JENV_VERSION'
# environment variable in your shell. This version overrides local
# application-specific versions and the global ... | true |
5dd49f08bfa02656d118978047bf01616f0c2205 | Shell | duckdb/duckdb | /scripts/node_build_win.sh | UTF-8 | 320 | 2.65625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
node --version
npm --version
which node
cd tools/nodejs
make clean
./configure
npm install --build-from-source
npm test
npx node-pre-gyp package testpackage testbinary
if [[ "$GITHUB_REF" =~ ^(refs/heads/main|refs/tags/v.+)$ ]] ; then
npx node-pre-gyp publish
npx node-pre-gyp info
fi | true |
0f888dbcf4c960adfcad1d9182b772554a0f1439 | Shell | collinjlesko/provision-aws-bastion | /scripts/gcloud-renew-gke-login.sh | UTF-8 | 2,227 | 3.875 | 4 | [] | no_license | #!/bin/bash
exec 3>&1 4>&2
trap 'exec 2>&4 1>&3' 0 1 2 3
exec 1>>/tmp/gcloud-renew-gke-login-log.out 2>&1
### Script to renew GKE login configurations ###
# This script was added to root crontab during acl provisioning.
# Everything below will go to the file 'gcloud-renew-gke-login-log.out' on the /tmp directory
YLW... | true |
9951aed338fe0221cd6087e6649e1257bf8d4b1e | Shell | grayasm/git-main | /script/i3/setup-i3.sh | UTF-8 | 1,463 | 3.390625 | 3 | [] | no_license | #!/bin/bash
# verbose
set -x
# pwd in this script location
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# last directory must match "i3" -> run from git repository
if [ "`basename $DIR`" != "i3" ]; then
echo "run this script only from git repository"
exit
fi
if [ ! -f /usr/bin/i3 ]; then
ech... | true |
39ce4d69f549c2c0d4bde60471df9133e5f8ef6e | Shell | Ascend/ModelZoo-PyTorch | /ACL_PyTorch/built-in/cv/YoloX_Tiny_for_Pytorch/test/eval_acc.sh | UTF-8 | 1,112 | 2.96875 | 3 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | #!/bin/bash
set -eu
datasets_path="/root/datasets"
batch_size=1
mmdetection_path="/home"
for para in $*
do
if [[ $para == --datasets_path* ]]; then
datasets_path=`echo ${para#*=}`
fi
if [[ $para == --batch_size* ]]; then
batch_size=`echo ${para#*=}`
fi
if [[ $para == --mmdetection_... | true |
a274c5fcc4576c1253a458d781b623959dacc30d | Shell | girijamanoj/BTech-Labsheets | /OperatingSystems/count.sh | UTF-8 | 180 | 3.328125 | 3 | [] | no_license | #!/bin/bash
# SCRIPT: count.sh
# USAGE : ./count.sh
# PURPOSE: To count the number of lines and words in a file
echo "Enter the file name "
read a
echo `wc -l $a`
echo `wc -w $a`
| true |
e57ad89c14bbcd176441df038f1576200657e4c2 | Shell | o2r-project/erc-checker | /etc/extract_original_paper_from_ERC.sh | UTF-8 | 1,477 | 3.59375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# (C) Copyright 2017 o2r-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... | true |
33e6d75c38260a8a8bdf87c7a571cbc6ca90f59c | Shell | kunpengcompute/hmpi | /config/ompi_check_gpfs.m4 | UTF-8 | 2,765 | 2.8125 | 3 | [
"BSD-3-Clause-Open-MPI"
] | permissive | dnl -*- shell-script -*-
dnl
dnl Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
dnl University Research and Technology
dnl Corporation. All rights reserved.
dnl Copyright (c) 2004-2005 The University of Tennessee and The University
dnl ... | true |
cb0b0a3d36ec3e52ea5a29faccd775d7359778ea | Shell | ferhaty/developer_mac | /install_on_my_mac.sh | UTF-8 | 1,408 | 3.296875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
### Manage the (developer) software on your Mac with this command.
### @bbaassssiiee
### https://github.com/bbaassssiiee/developer_mac
## download_apple_xcode: http://appstore.com
# You need to download XCode, or only the command line tools
xcrun -f git || (open https://developer.apple.com/xcode/downloads... | true |
74d80616b3d1a966fc2585dce4849718f7afe9f5 | Shell | istlab/ba-lab | /makelabs.sh | UTF-8 | 1,090 | 3.390625 | 3 | [
"CC0-1.0"
] | permissive | #!/bin/bash
mkdir html
html="html"
cp common/ba-lab-index.html $html
for dir in `find . -type dir -maxdepth 1|grep '[0-9]\{1,2\}-'|grep -v CVS|sed -e 's/\.\///g'`;
do
cp $dir/$dir.pdf $html
title=`cat $dir/$dir.tex|grep \\labtitle\}\{|perl -ne '$_ =~/\{([\+\-\*A-Za-z0-9 ]+)\}/; print $1;'`
version=... | true |
6cdebab336f7950a08f7574424ab681ba92a8ed0 | Shell | iftekharnaim/MSA-Scribe | /msa_astar/bin/shell_script_all.sh | UTF-8 | 730 | 2.8125 | 3 | [] | no_license | #!/bin/bash
start=0
end=360
beamsize=20.0
## declare an array variable
declare -a arr=(e6p11 e6p22 sch1p11 sch1p22)
declare -a arrchunk=(5 7 10 15 20 30 40 60)
#declare -a arrweight=(2 2.5 3 3.5 5 6 7)
declare -a arrweight=(1.7 1.75 1.8 2 2.5 3 4 5 6 7 8)
for weight in ${arrweight[@]}
do
## now loop through the datase... | true |
cd1ad7a2525319e4ed2df1949bc403ed524cd70d | Shell | danielyaa5/flightfutures | /scripts/Server.sh | UTF-8 | 199 | 2.546875 | 3 | [] | no_license | #!/bin/bash
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
cd "$parent_path"
. ~/.nvm/nvm.sh use stable && node -v && kill -9 $(lsof -i tcp:3031);
cd ../server && DEBUG=* npm start &
| true |
a84fce73a1afc3cb84c1f7007463a347c346c2b2 | Shell | occlum/occlum | /demos/grpc/grpc_musl/run_server_on_host.sh | UTF-8 | 200 | 2.703125 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
INSTALL_DIR=/usr/local/occlum/x86_64-linux-musl
export PATH=$PATH:$INSTALL_DIR/bin
cd server
make -j$(nproc)
if [ $? -ne 0 ]
then
echo "demo make failed"
exit 1
fi
./greeter_server
| true |
802863a888515cfa1dff6665b54dc4bf79065acc | Shell | ministry-of-silly-code/buddy_metarepo | /test_scripts/test_flow.sh | UTF-8 | 885 | 3.28125 | 3 | [] | no_license | #!/bin/bash
set -e
# Setup phase - Set the correct user.email and user.name and activate the ssh agent
eval "$(ssh-agent)" && ssh-add
git config --global user.email "$GIT_MAIL"
git config --global user.name "$GIT_NAME"
# Setup phase - Also remember to set your $WANDB_API_KEY (More info in the readme)
if [[ -z "$WAND... | true |
ba46298da6fcecf9803482bccc794290fb0d4989 | Shell | estelle-tock/scripts | /tracking-imports/2020_03_05_prod_clutch_bar.sh | UTF-8 | 2,133 | 2.671875 | 3 | [] | no_license | # --------------------- DETAILS --------------------------
# Business Name - Clutch Bar
# Final Demo - 3160
# Prod ID - 8717
# Booking System - OPENTABLE_GUESTCENTER
# Config Type - Flex
# Reminder Texts - Yes
# Welcome Texts - YES
# PUSH CONFIGURATIONS
# from: 3159 (demo)
# to: 3160 (final demo)
# ... | true |
e8eec0bf08abd52f208e81407781f898317f0570 | Shell | Nogal/gamepad-switcher | /modules/xpad.sh | UTF-8 | 235 | 3.359375 | 3 | [] | no_license | #!/bin/bash
# Check if the gamepad module is loaded, if not, load it.
module=xpad
if lsmod | grep -q "^$module "
then echo "Xpad already loaded."
else echo "Controller has been returned to normal function."
sudo modprobe xpad
echo
fi
| true |
02f09b49f20793088533ade92467c7654ce1f4d7 | Shell | tomsmeding/latexmd | /latexmd | UTF-8 | 572 | 3.625 | 4 | [] | no_license | #!/usr/bin/env bash
if test $# -ne 1; then
echo "Usage: $0 <file.md>"
exit 1
fi
resolved="$(readlink "$0")"
if test $? -ne 0; then mybase="$(dirname "$0")"; else mybase="$(dirname "$resolved")"; fi
mdfile="$1"
filebase="$(echo "$mdfile" | sed 's/\.[^.]\+$//')"
cat "$mdfile" | sed 's/`/\`/g' | sed 's/\$/`/g' | markdow... | true |
93980febdb299f73be58fa326f94f2ead77bb3c9 | Shell | PacktPublishing/Qt-5-Cookbook | /ch01/distributing-linux-raspberrypi-applications/application-launcher.sh | UTF-8 | 252 | 3.078125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
appname=`basename $0 | sed s,\.sh$,,`
dirname=`dirname $0`
tmp="${dirname#?}"
if [ "${dirname%$tmp}" != "/" ]; then
dirname=$PWD/$dirname
fi
export LD_LIBRARY_PATH=$dirname/lib
export QML2_IMPORT_PATH=$dirname/qml
$dirname/$appname "$@"
| true |
c5f97c76a5e0f6134e7b8226ead58a9e132a2edd | Shell | Odka33/b3c-parsage-2019 | /parsage.sh | UTF-8 | 4,262 | 3.09375 | 3 | [] | no_license | #!/usr/bin/bash
#-*- coding: utf-8-*-
# ==============================================================================
# title :parsage.sh #
# description :Parse log file . #
# author :Odka33 - Elie BEN AY... | true |
c3d5c92568e0e027037268694c9af39e17ed3c6f | Shell | axltxl/i3-desktop | /bootstrap | UTF-8 | 1,323 | 3.171875 | 3 | [] | no_license | #!/bin/bash
# Setup i3wm configuration
# FIXME: document me
set -e
# Absolute path to this script
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
packages=( stow
i3
i3lock-fancy
dex
xinit
x11-xserver-utils
xsel
xclip
... | true |
f19abbe7727fd065fb684a5e9765610563139059 | Shell | jtaca/BSc-Computer-Engineering-Projects | /2nd_Year/SO/Trabalho_SO (Versão 10)(Entregue 21-10-2017)(1º Entrega)/cria_utilizador.sh | UTF-8 | 1,918 | 3.765625 | 4 | [] | no_license | #!/bin/bash
ficheiroPasswd=/etc/passwd
ficheiroUtilizadores=./utilizadores.txt
cicloUser=0
cicloTurma=0
cicloSaldo=0
numeroDeCaracteresMinimo=2
numeroDeLetrasParaTurma=4
touch $ficheiroUtilizadores
echo "Insira o numero de aluno válido por favor: "
read numberGiven
if [ $(cat $ficheiroPasswd | cut -d':' -f1 | grep "^a... | true |
5ccf3607b63436c669e5541f663fd6d02c26ac56 | Shell | flexflow/FlexFlow | /conda/build.sh | UTF-8 | 813 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | #! /usr/bin/env bash
set -euo pipefail
# Cd into FF_HOME
cd "${BASH_SOURCE[0]%/*}/../"
# build flexflow
# "search and replace" bash syntax used below to make shellcheck happy.
# see here: https://wiki-dev.bash-hackers.org/syntax/pe
CXXFLAGS="${CXXFLAGS//-O2/}"
CXXFLAGS="${CXXFLAGS//-std=c++17/}"
CXXFLAGS="${CXXFLAGS/... | true |
d515837218b2bc9154955b58cd0b61cfababa15c | Shell | genneko/freebsd-install-on-zfs | /install.sh | UTF-8 | 13,300 | 3.375 | 3 | [] | no_license | #
# install.sh
# FreeBSD ZFS custom installation script for use with bsdinstall.
#
# Usage
# First, create a config/script folder for this installation
# by executing prepare.sh script on a host such as your laptop.
#
# cd ~/work
# /somewhere/freebsd-install-on-zfs/prepare.sh myfolder
#
# Then, edit con... | true |
b44c0f6366dbd91970bb3b0c55ad1d3597b5b590 | Shell | raghav007bisht/Intrusion-Detection-System-IDS-v5.0 | /IDS V5.0/ids/Firewall/Block_Website.sh | UTF-8 | 1,481 | 3.453125 | 3 | [] | no_license | #!/bin/bash
# This file is part of Intrusion Detection System By - Raghav Bisht.
#
# Intrusion Detection System By - Raghav Bisht 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 o... | true |
403d8ac66528281022150a8a0258b0d8c06aff80 | Shell | orpheus/fabric | /scripts/buildNodes.sh | UTF-8 | 730 | 3.796875 | 4 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | #!/bin/bash
for i in "$@"
do
case $i in
-p=*|--peer=*)
PEER="${i#*=}"
shift
;;
-o=*|--orderer=*)
ORDERER="${i#*=}"
shift
;;
--default)
DEFAULT=YES
shift
;;
*)
;;
esac
done
echo "PEER = ${PEER}"
echo "ORDERER ... | true |
363f636bb78e15feac4193b6915b16c4830d7890 | Shell | rlrq/MINORg_sh | /find_gRNA.sh | UTF-8 | 37,698 | 3 | 3 | [] | no_license | #!/bin/bash
## ?? TODO: properly enable --query file to be used as background automatically without overwriting --background ## and --nonreference
## TODO: ensure that using --background doesn't override -a when --target is used (i.e. allow bg check in both user-provided background file and VdW's renseq if -b and -a ... | true |
0072642a5ae991efa126dd99cb71e1a2ea38aff8 | Shell | Urs-Bruelhart/beer-garden | /resources/centos6/after_install.sh | UTF-8 | 3,423 | 3.515625 | 4 | [
"MIT"
] | permissive | APP_NAME="beer-garden"
GROUP=$APP_NAME
USER=$APP_NAME
APP_HOME="/opt/${APP_NAME}"
PID_HOME="/var/run/${APP_NAME}"
CONFIG_HOME="$APP_HOME/conf"
LOG_HOME="$APP_HOME/log"
BIN_HOME="$APP_HOME/bin"
PLUGIN_LOG_HOME="$LOG_HOME/plugins"
PLUGIN_HOME="$APP_HOME/plugins"
BARTENDER_CONFIG="${CONFIG_HOME}/bartender-config"
BARTEN... | true |
bbf5a25b18549b949e13f7cf42cab7093d78ebf8 | Shell | pashadag/Tools | /validation/makeReport | UTF-8 | 18,534 | 2.828125 | 3 | [] | no_license | #!/bin/sh
runname=$1
chrname=$2
results_dir=${SVN_BASE}/cnv/results/${chrname}/working.$1
echo Report for run $1 and chromosome $2 > report.txt
echo "Figure 1: Size correlation between our calls and the Database of Genomic Variants (DGV)" >> report.txt
cp ${results_dir}/val/${chrname}.cnvs.merged.cnvs-dgv_all.p2v.val.... | true |
1af40beaf6cc950290f4773a4af39a46ff941443 | Shell | msimonin/vagrant-g5k | /lib/vagrant-g5k/util/launch_vm.sh | UTF-8 | 1,866 | 3.65625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# This script is originally borrowed to pmorillo
# Thanks to him !
# I've made some addition though :)
# ARGS
# $1: cpu demand
# $2: mem demand
# $3: net type {BRIDGE, NAT}
# BRIDGE | NAT
# $4 subnet_file | $left other net, drive options
# $left net/drive options
set -x
function net_bridge() {
SUBNET... | true |
9eda763d14877b6de09b6c2534fec3182cecc36e | Shell | Kartik1801/Linux-Shell-Programming-Lab | /lab-11-3.sh | UTF-8 | 191 | 3.328125 | 3 | [] | no_license | #Sum of Array Element
echo "Enter No of Element"
read length
sum=0
echo "Enter elements:"
for ((i=0;i<length;i++))
do
read num[$i]
sum=$(($sum+${num[i]}))
echo "Sum = "$sum
done
| true |
c16813dd102efb52622fdcb9b29c3d05a6f82efd | Shell | orez-/520proj | /joos/jjoos-scc-2/Bin/internal/srcdescent.sh | UTF-8 | 354 | 3.71875 | 4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/sh
#
# descent.sh - customizable recursive source tree descent
#
ROOT=$JOOSDIR/src
visit() {
# TODO: make copy of this file and fill this function
echo `basename $1`
}
# 1 param: directory
descent_rec() {
echo descending $1...
for f in `ls $1`; do
visit $1/$f
if test -d $1/$f; then
descent_rec $1/$... | true |
b11aeb3007cb9670b26629b32e9df5a87c79f2a8 | Shell | mmatuska/oss-fuzz | /projects/mruby/build.sh | UTF-8 | 1,290 | 2.75 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -eu
# Copyright 2019 Google Inc.
#
# 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 agree... | true |
e8cd409bffabea727932636c8265176bb3891eac | Shell | BiomedicalMachineLearning/CAGE_Analysis | /CAGE_Mapping/Mapping.sh | UTF-8 | 1,007 | 3.09375 | 3 | [] | no_license | #!/bin/sh
#PBS -N "map"
#PBS -l select=1:ncpus=8:mem=50GB
#PBS -l walltime=8:00:00
module load bwa/0.7.15
module load samtools
Wdir=/path/to/inputs
cd $Wdir
#map
for fastqfile in `ls fastq_files/*_merged.fastq.gz`; do
bwa mem -t 8 Homo_sapiens.GRCh38.dna.primary_assembly.fa $fastqfile > ${fastqfile}.se.sam
samt... | true |
79689f5c0f87ff438a4088a091472f365564da63 | Shell | IBM-Cloud/secure-file-storage | /app/generate_yaml.sh | UTF-8 | 1,376 | 3.453125 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
set -o pipefail
if [[ -z "$INGRESS_SUBDOMAIN" ]]; then
echo "INGRESS_SUBDOMAIN must be in the environment"
exit 1
fi
if [[ -z "$IMAGE_REPOSITORY" ]]; then
echo "IMAGE_REPOSITORY must be in the environment"
exit 1
fi
if [[ -z "$INGRESS_SECRET" ]]; then
echo "INGRESS_SECRET must be in the... | true |
0fae013d679a6a5d144349c6a56871eb7836e0cd | Shell | xing/fpm-fry | /lib/fpm/fry/templates/debian/before_install.erb | UTF-8 | 138 | 2.640625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
case "$1" in
install)
<%= install.join("\n") %>
;;
upgrade)
<%= upgrade.join("\n") %>
;;
*)
exit 1
;;
esac
| true |
06378e3600233d51e8e2ed0eca6c96f1aeb566e5 | Shell | uchan-nos/mikanos-build | /devenv/make_image.sh | UTF-8 | 646 | 3.828125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh -ex
if [ $# -lt 3 ]
then
echo "Usage: $0 <image name> <mount point> <.efi file> [another file]"
exit 1
fi
DEVENV_DIR=$(dirname "$0")
DISK_IMG=$1
MOUNT_POINT=$2
EFI_FILE=$3
ANOTHER_FILE=$4
if [ ! -f $EFI_FILE ]
then
echo "No such file: $EFI_FILE"
exit 1
fi
rm -f $DISK_IMG
qemu-img create -f... | true |
7da580b00323510a76e57177452f5f3c816909ee | Shell | darthdeus/devops | /install.sh | UTF-8 | 491 | 2.953125 | 3 | [] | no_license | #!/bin/sh
DEVOPS="$HOME/.devops"
if [ ! -z "$HOST_COLOR" ]; then
echo "$HOST_COLOR" > "$HOME/.host_color"
fi
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
mkdir -p "$HOME/.vim/backup"
if [ ! -d "$DEVOPS" ]; then
git clone https://... | true |
9a52d0e8f20764d3d0896439caf756a7cc864868 | Shell | kbrock/dotfiles | /bashrc.d/perf.bash | UTF-8 | 246 | 2.59375 | 3 | [] | no_license |
# determine the query count of an html file
# it is off by 12
function qcount() { sed -E "s/\"formatted_command/\\`echo -e '\n\r'`&/g" $1 |wc -l ; }
alias profile='beer mini_profiler --storage Redis --storage-options db=2 --collapse Rendering'
| true |
423b134bd322212986336836ec05f0243e3402e4 | Shell | Fluepke/luca-web-clone | /scripts/yarnAll.sh | UTF-8 | 188 | 2.515625 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
set -euo pipefail
SERVICES="backend contact-form health-department locations scanner webapp"
for SERVICE in ${SERVICES}
do
pushd "services/$SERVICE"
yarn "$@"
popd
done | true |
73f7e2ff2ba940bbdb17a7f45e1f474eb8ab47a3 | Shell | delkyd/alfheim_linux-PKGBUILDS | /python-pomegranate/PKGBUILD | UTF-8 | 1,074 | 2.59375 | 3 | [
"MIT"
] | permissive | pkgname=python-pomegranate
pkgver=0.6.1
pkgrel=1
pkgdesc="Pomegranate is a graphical models library for Python, implemented in Cython for speed."
arch=('i686' 'x86_64') # packages contains arch dependend libs
url="http://pypi.python.org/pypi/pomegranate/"
license=('MIT')
depends=('python' 'cython' 'python-networkx' 'py... | true |
ea456deff1dbba25f12ffb2c6dc16f34069f144d | Shell | heroku/hk | /contrib/hk-bash-completion.sh | UTF-8 | 453 | 3.171875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
_hk_commands()
{
hk help commands|cut -f 2 -d ' '
}
_hk()
{
cur=${COMP_WORDS[COMP_CWORD]}
prev=${COMP_WORDS[COMP_CWORD-1]}
if [ $COMP_CWORD -eq 1 ]; then
COMPREPLY=( $( compgen -W "$(_hk_commands)" $cur ) )
elif [ $COMP_CWORD -eq 2 ]; then
case "$prev" in
help)
... | true |
6625508e2bd5dacb01630b57b634d5c71dae983f | Shell | lzh9102/bash-countdown | /countdown.sh | UTF-8 | 7,030 | 4.1875 | 4 | [] | no_license | #!/bin/bash
# A simple countdown timer written in bash script
# Author: Timothy Lin <lzh9102@gmail.com>
# Date: 2011-07-21
# Messages
INTERRUPT_MSG="Count down stopped by user interrupt."
TIMEUP_MSG="Time is up."
# Constants
SEC_PER_MIN=60
SEC_PER_HOUR=`expr $SEC_PER_MIN \* 60`
SEC_PER_DAY=`expr $SEC_PER_HOUR \* 24`
... | true |
a5a17ea194bf35ebfe4268e48d8df71d4a197f0e | Shell | amaurybsouza/public-bash-scripts | /tail-color-log.sh | UTF-8 | 954 | 3.40625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# @author Ryan McIntyre
# log like: /c/wamp/www/proto/portal/log/frontend_local.log
ME="$(basename "$(test -L "$0" && readlink "$0" || echo "$0")")"
MY_DIR=`dirname $0`
if [ -e $MY_DIR/unix-color-codes-not-escaped.sh ]; then
. $MY_DIR/unix-color-codes-not-escaped.sh
fi
if [ $# == 0 ]; then
echo -e "${... | true |
52c2d44b97fe4f10d2d58952aacd7ae724d536fa | Shell | tulanthoar/prezto | /runcoms/funcs/man | UTF-8 | 133 | 2.984375 | 3 | [] | no_license | man() {
local width=$(tput cols)
[[ $width -gt $MANWIDTH ]] && width=$MANWIDTH
env LC_CTYPE=C MANWIDTH=$width man "$@"
}
| true |
7367e10fec538e14c0faaccd85978f12e422bcb8 | Shell | 0xmzn/Hackerrank-Shell-Solutions | /ArraysInBash/Slice-an-Array.sh | UTF-8 | 77 | 2.90625 | 3 | [] | no_license | #!/bin/bash
arr=($(cat))
for i in {3..7}
do
echo -n "${arr[$i]} "
done
| true |
f229b4f8a13c8602f5e43c8a32a949262e6dba47 | Shell | RGM-OSC/nagios | /SOURCES/nagios-rgm/nagiosconf.sh | UTF-8 | 423 | 2.796875 | 3 | [] | no_license | #!/bin/sh
# appliance group and use
APPLIANCEGRP="rgm"
# nagios paths
rgmdir="/srv/rgm"
linkdir="${rgmdir}/nagios"
chown -R nagios:${APPLIANCEGRP} ${linkdir}*
chmod 775 ${linkdir}/etc
chmod 775 ${linkdir}/etc/objects
chmod 775 ${linkdir}/var/log/spool/checkresults/
systemctl enable nagios.service &>/dev/null
system... | true |
ef41410af05df23d190f8794ba0a3116edf411b2 | Shell | mlocati/docker-php-extension-installer | /scripts/tests/stomp | UTF-8 | 278 | 2.9375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
. "$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)/_bootstrap.sh"
rc=0
if test -z "$(php --ri stomp | grep 'SSL Support => enabled')"; then
echo 'stomp has not been compiled with SSL support' >&2
rc=1
else
echo 'stomp has been compiled with SSL support'
fi
exit $rc
| true |
acbd3c72b336538d1cea37113d83b1b790ee855a | Shell | svrist/itu | /adm/assignment1/countmyrun.sh | UTF-8 | 965 | 3.4375 | 3 | [] | no_license | #!/bin/bash
#ython run.py [options] #options:
#-h, --help : this help message
#-t, --threads= : number of swap threads (1..59)
#-s, --swaps= : total number of swaps (< 1000)
#-r, --runs= : number of repetitions (< 100)
#-i, --isol= : isolation level ('UR', 'CS', 'RS','RR')
#-o, --output= : pat... | true |
b4b977b582b360153a56c528bb2480b4c980b7ca | Shell | dalmirdasilva/glcd | /make.sh | UTF-8 | 992 | 2.921875 | 3 | [] | no_license | INCLUDES="-I/home/dalmir/Dropbox/Microcontrollers/picnix/ \
-I/home/dalmir/storage/github/pic/sdcc/driver/graphic/lcd/ \
-I/home/dalmir/storage/github/pic/sdcc/library/graphic/lcd/ \
-I/home/dalmir/storage/github/pic/sdcc/driver/graphic/glcd/ \
-I/home/dalmir/storage/github/pic/s... | true |
281415bc1994f117cab5f3d7a4cdfbbf820b7755 | Shell | suizman/dform | /push.sh | UTF-8 | 599 | 3.28125 | 3 | [] | no_license | # /bin/bash
# Exit script on command fail
set -e
# Auto export variables
set -a
# Exit if there are any parameter reference not passed as argument
set -u
# Tag as latest and push both versions
echo "Tag suizman/dform:`cat version | sed '/^\s*$/d' | tail -n1` as suizman/dform:latest"
docker tag suizman/dform:`cat ... | true |
f6f4ee6832f6bd60173d773b2e575a767d3ec732 | Shell | upcloudcom/dev-ops-node | /tools/transferFile.sh | UTF-8 | 1,100 | 3.578125 | 4 | [] | no_license | #!/usr/bin/expect
#Shell command to transfer file using scp on Linux
#Don't support windows yet for now
#Usage
# localFIle remoteAddr remoteFile user password isToRemote
set localFile [lindex $argv 0]
set remoteAddr [lindex $argv 1]
set remoteFile [lindex $argv 2]
set user [lindex $argv 3]
set password [lindex $argv ... | true |
8007b3302a6973430894996c64e3041d1f9d81b4 | Shell | Mityai/contests | /inno/summer-shop-2017/05:07/kthstat/src/doall_old.sh | UTF-8 | 2,516 | 3.140625 | 3 | [] | no_license | #!/bin/bash
logfile=tests.comments
function die {
echo "$*"
exit 1
}
tn=1
function makeTest
{
fn=`printf "%02d" $tn`
echo $fn : $*
echo $fn : $* >> $logfile
$* > $fn || exit
let tn=$tn+1
}
function compile
{
echo compile $1
g++ -O2 -Wall $1.cpp -o $1.exe || exit
}
compile gen_rand
compile gen_ra... | true |
b747f137af8663d0d6e5f2a98bf7843a704ff84d | Shell | Circuitsoft/sensei_mesh | /reprog.sh | UTF-8 | 644 | 3.046875 | 3 | [] | no_license | #!/bin/sh
CHANNEL=39
make || exit -1
function program {
if [ -c $1 ]; then
if [ "$3" == "clock_master" ]; then
ARGS="--no-sleeping"
fi
make install SERIAL_PORT=$1 && ./pyaci/configure_sensor.py --channel $CHANNEL $ARGS -d $1 $2
if [ "$3" == "clock_master" ]; then
./pyaci/set_time.py -d ... | true |
3524103b8f7a05af997ceaa808850642e9402a63 | Shell | hamilton2br/pos-memreader | /dumper.sh | UTF-8 | 816 | 2.703125 | 3 | [] | no_license | #!/bin/bash
#lendo memoria do conteiner via nsenter
grep rw-p /proc/$1/maps | sed -n 's/^\([0-9a-f]*\)-\([0-9a-f]*\) .*$/\1 \2/p' | while read start stop; do gdb --batch --pid $1 -ex "x/4096wx 0x$start"; done > $1.dump
#lendo a memória do processo do contêiner
#grep rw-p /proc/$1/maps | sed -n 's/^\([0-9a-f]*\)-\([0-... | true |
29985017ada20fd550fe8915162a284031abbdfd | Shell | machine-intelligence/arbital-open-source | /scripts/create_db.sh | UTF-8 | 1,169 | 3.953125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Creates xelaie DB and tables on MySQL server at localhost.
source init.sh || exit
HOST=localhost
read -r -p "This script will DROP ALL DB DATA and rebuild the database at ${HOST}. Is this your intent? [y/N] " response
if [[ ! $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
exit
fi
DB_NAME=$(cfg mysql.... | true |
f4bca9ed896d5c013ab4d774ea18f11cb50507f2 | Shell | tushar8871/Shell_Pprograms | /RepetationSelection/primeNumInRange.sh | UTF-8 | 291 | 3.390625 | 3 | [] | no_license | #!/bin/bash -x
echo "Prime number between range"
read -p "Enter num1 " num1
read -p "Enter num2 " num2
for (( i=$num1; $i<$num2; i++ ))
do
count=0;
for (( j=1; $j<=$i; j++ ))
do
if [ $(($i%$j)) -eq 0 ]
then
((count++));
fi
done
if [ $count -eq 2 ]
then
echo $i
fi
done
| true |
bbbd8957de7ee1c348b574ecdb62cf0cdf324647 | Shell | 5l1v3r1/pooldetective | /docker-coindaemons/fto/prepare.sh | UTF-8 | 349 | 3.09375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
FILE="$PWD/futurocoind"
if [ ! -f "$FILE" ]; then
git clone --depth=1 https://github.com/futuro-coin/Futuro-binaries
cd Futuro-binaries
tar -xvf futurocoincore-1.1.0-ubuntu18_04-x86_64.tar.xz
mv futurocoincore-1.1.0-ubuntu18_04-x86_64/futurocoin* ..
rm ../futurocoin-qt
cd ..
... | true |
010797b03b2f1bf18feb8255f53182b9fad391d9 | Shell | pdxgx/ri-tests | /data_preparation/processing/shortread/HX1/scripts/run_irfinders.sh | UTF-8 | 1,031 | 3.359375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env
# Author: Sean Maden
#
# Run IRFinder-S from a Docker image. Follow instructions in the GH repo
# to download the software and save its annotation files to the
# `annodpath` variable. With the docker image we use -r and -d flags
# to specify the local paths to the intron annotations references and the... | true |
3976bcba0380c590846a0e84d73bd0389ab657d3 | Shell | fisherevans/SmartShift | /server/bin/undeploy | UTF-8 | 463 | 3.578125 | 4 | [] | no_license | #!/bin/bash
project="$1"
if [ ! "$project" == "accounts" ] && [ ! "$project" == "business" ] ; then
echo "Please pass a project to build: accounts business"
exit 1
fi
running=`ps -ef | grep org.apache.catalina.startup.Bootstra[p] | wc -l`
if [ ! $running == "0" ] ; then
echo "Tomcat is currently running..."
... | true |
7424583141962c6c90c6fb952a79132bf2d4e527 | Shell | GewoonMaarten/Waterschade-project | /scripts/install.sh | UTF-8 | 1,927 | 3.984375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
if [ $# -eq 0 ]; then
>&2 echo "No arguments supplied"
>&2 echo "Possible arguments are: kernel, boot, dependencies, dhcp"
exit
fi
if grep -q kernel <(echo $@); then
if [ ! -f /etc/modules ]; then
>2& printf "Couldn't Find kernal module file\nManualy add dwc2 to modules"
else
... | true |
528007da5e892a62909ae97044e83b6700a1ec00 | Shell | artujose/EPAM_EpicGamesTask | /Solution - 1a/copy_logs_remotely.sh | UTF-8 | 879 | 3.765625 | 4 | [] | no_license | #!/bin/bash
remote_host=$1
dest_dir=$2
user_name=$3
user_password=$4
log_date=$(date +"%Y_%m_%d")
log_folder="logs_folder_"$log_date
today=$(date +"%d")
#we could certainly use $APACHE_LOG_DIR var is this exist on ENV
apache_log_dir=/var/log/apache2
#make a local folder to copy all log files matching the condition
m... | true |
1b771aa530bd4edd6fa25957c76208d2c73d3bde | Shell | somasis/s6-exherbo | /libexec/s6/init2.sh | UTF-8 | 189 | 2.5625 | 3 | [
"ISC"
] | permissive | #!/bin/sh
# Try state-normal, else fallback to state-basic
if s6-rc-db list bundles | grep -xFq state-normal;then
s6-rc -u change state-normal
else
s6-rc -u change state-basic
fi
| true |
259bd2515c517abdbec58c2cdc4c6f031286aa0b | Shell | ltr01/dotfiles | /bash/.alias.sh | UTF-8 | 6,093 | 2.8125 | 3 | [
"MIT"
] | permissive | # useful dockers
alias phpserver='docker run --rm -p 2000:80 -v "$PWD":/var/www/html mastermindzh/php-xdebug'
alias nodeserver='docker run --rm -p 3000:3000 -v "$PWD":/app mastermindzh/generic_node'
alias reactserver='docker run --rm -p 8080:8080 -v "$PWD":/app mastermindzh/generic_node'
alias mongoserver='docker run -... | true |
4805c471bcf6ebe613cd68787f52416c96e47bf5 | Shell | CliveCarrington/raspberryCamera | /bin/statusCamera.sh | UTF-8 | 315 | 3.171875 | 3 | [] | no_license | #!/bin/bash
cd ~/Code/raspberryCamera/bin
echo "Current Activity"
ps -ef | grep piCamera.py
tail ./log/images.log
ls -lrt ./images | tail -5
### Checking run status
status=`/bin/ps -ef | grep piCamera.py | wc -l`
if [ $status -eq "1" ]
then
echo "Need to start"
./startPiCamera.sh >./log/images.log &
fi
| true |
5e5dc94f8188c86cef7b029c3fe3210ce6c7765a | Shell | datasets-at/mi-jenkins | /customize | UTF-8 | 1,019 | 3.25 | 3 | [
"MIT"
] | permissive | #!/usr/bin/bash
PATH=/opt/local/gnu/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/usr/sbin
JENKINS_VERSION='1.609.3'
# Exit if any commands fail
set -o errexit
# Ensure we have updated standard packages
echo "* Updating standard packages.";
pkg_delete -v nodejs smtools zoneinit
pkg_add -v nodejs smtools zoneinit
npm ... | true |
32f56f69c5a9b5efc798a7e1a6e52398a73d32ac | Shell | thz/retain | /make-more.sh | UTF-8 | 156 | 2.8125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
name=retain
build() {
export GOOS=$1 ; shift
export GOARCH=$1 ; shift
go build -o $name-$GOOS-$GOARCH
}
build solaris amd64
build linux arm64
| true |
8f6ac0ab3f8aa5beba25046df812f7bb073a558e | Shell | d-henness/aux | /BS_sub_auto.sh | UTF-8 | 5,292 | 3.34375 | 3 | [] | no_license | #!/bin/bash
kind='both' # can be equal to 'm' for minus sym, 'p' for plus sym, or 'both' for both sym
sym=''
nuc=''
exepath=/home/dhenness/prophet/exe
ver=dfratomgpu_binarysearch2.x
alljobs=false
bottom=false
wtime=01:00:00
while [ $# -gt 0 ]
do
val=$1
shift
case $val in
"-a")
alljobs=true
;;
... | true |
00dedf2e8da3e7567193d3ad449d3722cc0fb472 | Shell | nasa/GMSEC_API | /csharp/gmsec5/fixOther.sh | UTF-8 | 4,636 | 3.015625 | 3 | [] | no_license | #!/usr/bin/env bash
# Copyright 2007-2023 United States Government as represented by the
# Administrator of The National Aeronautics and Space Administration.
# No copyright is claimed in the United States under Title 17, U.S. Code.
# All Rights Reserved.
GENERATED_SRC="interfaces/BinaryField.cs"
OLD_TEXT_1="public... | true |
bdae27799c357eb56fe37259a2d9da448b45a433 | Shell | bf-rmzi/sumologic-aws-lambda | /awsautoenableS3Logging/test/TestTemplate.sh | UTF-8 | 1,848 | 3.375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
export AWS_REGION="ap-south-1"
export AWS_PROFILE="personal"
# App to test
export AppName="tag"
export InstallTypes=("s3" "s3exiting" "vpc" "vpcexisting" "alb" "albexisting")
export BucketName="sumologiclambdahelper-${AWS_REGION}"
export FilterExpression=".*"
for InstallType in "${InstallTypes[@]}"
do
... | true |
b8d152e9798a7f5572f2b28c864a1d820c5e9109 | Shell | laujonat/dotfiles | /scripts/install_go.sh | UTF-8 | 200 | 2.671875 | 3 | [] | no_license | VERSION=1.17
OS=linux
ARCH=amd64
cd $HOME
wget https://storage.googleapis.com/golang/go$VERSION.$OS-$ARCH.tar.gz
tar -xvf go$VERSION.$OS-$ARCH.tar.gz
mv go go-$VERSION
sudo mv go-$VERSION /usr/local
| true |
87ebb79da0a8975f99346240f87d887d0e15e6a0 | Shell | sabram/scripts | /findt | UTF-8 | 191 | 3.015625 | 3 | [] | no_license | #!/usr/bin/env bash
#Find Text in files
echo "Searching for files containing the text '$1' in current dir and all sub-dirs"
find . -type f -not -iwholename '*.git*' -exec grep -il "$1" {} \;
| true |
6330fd354cb9b8dddcc615f21ae2ef27d39e7325 | Shell | wying3/cnf-features-deploy | /ztp/ztp-playbooks/common-roles/offline-mirror-olm/templates/upgrade-mirror.sh.j2 | UTF-8 | 744 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Disconnected Operator Catalog Mirror and Minor Upgrade
# Variables to set, suit to your installation
export OCP_REGISTRY=quay.io/openshift-release-dev/ocp-release-nightly
export OCP_RELEASE={{ ocp_release_nightly_version }}
export LOCAL_REGISTRY={{ provisioner_cluster_registry_var }}
export LOCAL_REPOSIT... | true |
d531e1f187d981902e282b4a712a7e1b78a70031 | Shell | BenMusch/microblog | /bin/deploy | UTF-8 | 799 | 2.734375 | 3 | [] | no_license | #! /bin/bash
set -e
echo 'Setting env...'
export MIX_ENV=prod
echo 'Copying config from server...'
sshpass -p $PASSWORD scp -o StrictHostKeyChecking=no ben@$IP:~/www/microblog-config/prod.secret.exs ./config/prod.secret.exs
# create release
echo 'Compiling assets...'
cd assets
npm install
./node_modules/brunch/bin/b... | true |
e64dd2701d14465d601e7fef5696207641a339f0 | Shell | wki/MyHomeBinaries | /bin/make_pod.sh | UTF-8 | 1,266 | 3.78125 | 4 | [] | no_license | #!/bin/bash
#
# Generate PDF files from .pod/.pm files
#
# my lazy script for generating all (at least for me) relevant pod documents
# converted to PDF in a tree that is parallel to the CPAN installation
# not perfect but works for me.
#
# pod2pdf is required, please install from CPAN first!
# http://search.cpan.org... | true |
d725f110cf322d6b22df5a67a993a88e0979ecb9 | Shell | mdyaseenahmed/USP_Lab | /Lab - 04/factorial.sh | UTF-8 | 137 | 3.328125 | 3 | [] | no_license | #!bin/bash
echo "Enter a Number : "
read n
fact=1
while [ $n -gt 1 ]
do
fact=$((fact * n))
n=$((n - 1))
done
echo "Factorial: $fact"
| true |
e64425aa0b326dd045ff0e3be5cf862c168b1e52 | Shell | Mithul/HackathonS | /cs.sh | UTF-8 | 342 | 3.015625 | 3 | [] | no_license | s=''
for i in $(cut -d: -f1 /etc/passwd)
do
s=$s' -e '$i
done
echo $s
while inotifywait -q -e modify /var/log/auth.log > /dev/null; do
echo "filename is changed"
op=`sudo tail -3 /var/log/auth.log | grep $s -o --color`
echo $op
s='?users='
for j in $op
do
s=$s$j','
done
echo $s
curl localhost:... | true |
c90c7ebceea5900fb35bae193491112f8bec55bb | Shell | Privet-mir/demo | /educhain_production/deploy_org/orderer.sh | UTF-8 | 1,277 | 3.125 | 3 | [] | no_license | #!/bin/bash
echo -e "\e[34m Install Kafka chart \e[0m"
helm install incubator/kafka -n kafka-hlf --namespace orderer -f ../helm_values/kafka-hlf.yaml
echo -e "\e[34m Please be patient Kafka chart is getting install it migth take upto 10 min\e[0m"
# sleep 500
kubectl wait --for=condition=ready --timeout=800s -n orderer... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.