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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
1aa0ee615bf22f4a6cee3b100faab66ce97d2b10 | Shell | ginnocen/preliminarystudyPythonb | /Official_Repo_7nov2018/ALICEanalysis/buildtree/skimTreeFromEvtBased.sh | UTF-8 | 1,075 | 2.875 | 3 | [] | no_license | #!/bin/bash
#source clean.sh
MCSAMPLE="$HOME/MLproductions/MLDmesonsproductionsEventBased/LHC18a4a2_fast_run282343/AnalysisResultsDmesonsMC.root"
MCSAMPLEOUT="$HOME/MLproductions/MLDmesonsproductionsEventBased/LHC18a4a2_fast_run282343/AnalysisResultsDmesonsMC_skimmed.root"
DATASAMPLE="$HOME/MLproductions/MLDmesonsprod... | true |
e0c05a85dbf7074d7327153400afde3d623da483 | Shell | OneMainF/delete-avamar-backups | /delete_backups.sh | UTF-8 | 2,046 | 3.5 | 4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/bash
##Licensed to the Apache Software Foundation (ASF) under one
##or more contributor license agreements. See the NOTICE file
##distributed with this work for additional information
##regarding copyright ownership. The ASF licenses this file
##to you under the Apache License, Version 2.0 (the
##"License"); ... | true |
addde4cd8143eab97b025bc54a75acd59e412b35 | Shell | jameshollingshead/WslTools | /unmountsdcard | UTF-8 | 96 | 2.625 | 3 | [] | no_license | #!/bin/bash
drive_letter=$1
mount_folder="/mnt/${drive_letter,,}"
sudo umount ${mount_folder}
| true |
f3c951dfb9df961177cf572f00d7862636f5fb34 | Shell | NFyue/parallel_Kmeans | /archive-linux/examples/_clean.sh | UTF-8 | 209 | 3.203125 | 3 | [] | no_license | #!/bin/bash
if [ "$1" = "" ];
then
e="fib karatsuba tutorial"
else
e=$1
fi
for example in $e
do
cd $example
if [ -f "_clean.sh" ];
then
./_clean.sh
else
make clean
fi
cd ..
done
| true |
e779178b9b71e488b028cc818c899adbbd8a5593 | Shell | Cloudxtreme/bitmeteros | /build/osx/build.sh | UTF-8 | 2,134 | 2.578125 | 3 | [] | no_license | #!/bin/sh
export VERSION=0.7.5
./makeHelpTextC.sh
./makeManPage.sh
./makeLicense.sh
make bmcapture
make bmclient
make bmdb
make bmws
make bmsync
make clean
PACKAGE_DIR=package
sudo rm -rf $PACKAGE_DIR
BIN_DIR=$PACKAGE_DIR/usr/local/bin
mkdir -p $BIN_DIR
mv bmcapture $BIN_DIR
mv bmclient $BIN_DIR
mv bmws ... | true |
14e8a2ff0d32afa123d80876c126daa22232ac49 | Shell | braoult/exercism | /bash/darts/darts.sh | UTF-8 | 2,160 | 3.6875 | 4 | [] | no_license | #!/usr/bin/env bash
#
# external tools: none (only integer operations).
#
# V1 : Initial version.
# V2 : Using reference instead of subshell, as of
# https://stackoverflow.com/questions/540298
# moved valid numbers in parseval function.
# V3/4 : added some quotes following suggestions
# set to mask ... | true |
b25de8558c242ba590c21e2f5e74902ec5690d2d | Shell | mellemaeliss/linux-bash | /exercice1.sh | UTF-8 | 699 | 3.484375 | 3 | [] | no_license | #!/bin/bash
tes=0
moy=0
occurence=0
while [ $tes -eq 0 ];do
read -p "saisir une note:\n" note
if [ $note == "q" ]
then
let "$tes = 1"
elif [ $note -lt 0 ]
then
let "$tes = 1"
else
if [ $note -ge 0 ];
then
let "moy=$moy+$note"
let "occurence=$occurence+1"
fi
if [ $note -le 20 ] && [ $note -ge 16 ];
then
echo 't... | true |
d0a8a54e8e8d0c29f02a6cfe6650f425bbd1a22b | Shell | freebsd/freebsd-ports | /security/kstart/files/kstart.in | UTF-8 | 1,829 | 3.4375 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
# PROVIDE: kstart
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
# Add the following lines to /etc/rc.conf to enable kstart:
# kstart_enable (bool): Set to YES to enable kstart
# Default: NO
# kstart_flags (str): Extra flags passed to kstart
# Default: -LUFK 120
# kstart_keytab (str): Defau... | true |
cd8bfdd1f35f16254ff74135efb2d8b75025312b | Shell | zongjiayun/Shell | /ftp/test0813/2/ftp_2.sh | UTF-8 | 818 | 3.34375 | 3 | [] | no_license | #!/bin/sh
START=`date +%s%N`;
echo "Data trans start at "$START
LOCAL_DIR=/tmp/hdfs
FILENAME=""
mkdir $LOCAL_DIR
FILE_ARRAY=($(hdfs dfs -du -h /input/lbs/recommend/user_click_sup_d/partitiontime=20140407 | awk '{print $3}'))
CYC=${#FILE_ARRAY[@]}
for((i=0;i<$CYC;i++))
do
HDFSFILEPATH=${FILE_ARRAY[i]}
FIL... | true |
b287a53a3be0193dda7f29d55d2c6179ccd79b24 | Shell | brandondees/.dotfiles | /.zshrc | UTF-8 | 5,507 | 2.515625 | 3 | [
"MIT"
] | permissive | # 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=$HOME/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See ht... | true |
59d5113a2588b19e825628185fbd2344eb6a795a | Shell | ewon/efive | /src/rc.d/rc.conexantpciadsl | UTF-8 | 1,871 | 3.671875 | 4 | [] | no_license | #!/bin/bash
#
# $Id: rc.conexantpciadsl 4231 2010-02-12 16:31:09Z gespinasse $
#
# Debugging. Comment it out to stop logging
DEBUG="yes"
msg() {
if [ "z$DEBUG" != "z" ] ; then
/usr/bin/logger -t red "CnxPCI ADSL: $*"
fi
/bin/echo "$*"
}
function wait_for_showtime() {
msg "waiting for sync"
... | true |
a4b46feb6d2eee128d1b3a2585e425e03f93a974 | Shell | deis/tips-n-tricks | /slack/chkube/chkube.sh | UTF-8 | 657 | 3.5625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
KUBES=~/.kubes
case "$1" in
clear)
unset KUBECONFIG
;;
info)
echo "KUBECONFIG=${KUBECONFIG}"
;;
list)
ls ${KUBES}
;;
*)
if [[ -d ${KUBES}/$1 && -e ${KUBES}/${1}/e... | true |
d3df856e0ebb22dac076a8f740108615d3a03dbb | Shell | milhidaka/iclr2017 | /bench_blas/do_bench.sh | UTF-8 | 649 | 2.625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#bench_cublas or bench_clblas
CMD=$1
function bench_oneshape() {
NAME=$1
M=$2
N=$3
K=$4
#forward
RESULT=`$CMD $M $N $K N N`
echo "$NAME,0,$RESULT"
#backward
RESULT=`$CMD $M $K $N N T`
echo "$NAME,1,$RESULT"
#gradient
RESULT=`$CMD $K $N $M T N`
echo "$NAME,2,$RESULT"
}
bench_ones... | true |
67fb4b9269806f283fe5aa6d2b3f5de6c9fa5ec8 | Shell | edchainio/testnet | /masters/nginx/configuration.sh | UTF-8 | 12,966 | 2.703125 | 3 | [] | no_license | #!/usr/bin/env bash
cat /home/<username>/.htpasswd-credentials | htpasswd -i -c /etc/nginx/htpasswd.users <username>
rm /home/<username>/.htpasswd-credentials
sed -i '/^\s*server_name/a auth_basic_user_file \/etc\/nginx\/htpasswd\.users;' /etc/nginx/sites-available/default
sed -i '/^\s*server_name/a auth_basic "Res... | true |
2fa6ef89d02b7102e1e7d671e22579b595e0d416 | Shell | p/phpbb-tools | /cdb-fetch | UTF-8 | 1,722 | 3.4375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
pages=42
set -e
if ! test -e work.index_fetched; then
for page in `jot $pages`; do
start=$(expr \( $page - 1 \) \* 25) || true
fetch -o "index$(printf %02d $page).html" "http://www.phpbb.com/customise/db/contributions/all/start_$start"
done
touch work.index_fetched
fi
if ! test -e work.pages_parsed... | true |
0f111e85ace3ae5ea63533eb4b9e589656d34cfb | Shell | binary-c/menu | /info_sub_btc_value.sh | UTF-8 | 560 | 2.78125 | 3 | [] | no_license | #!/bin/bash
./system_sub_header.sh 'Finance'
response=$(curl -s http://api.coindesk.com/v1/bpi/currentprice.json | python -c "import json, sys; print json.load(sys.stdin)['bpi']['USD']['rate']")
echo ""
echo "$(tput setaf 2) Bitcoin $(tput sgr0) $response"
for fname in aapl goog msft
do
url="http://download.finance.... | true |
7bc471e87980f57d9356620a9efdc2e474e79d17 | Shell | bizm/zyme-caucus-integration | /dev/entrypoint.sh | UTF-8 | 1,044 | 3.59375 | 4 | [] | no_license | #!/bin/bash
# if project_source directory exists we assume it as a fresh start for this container
if [ -d "/root/project_source" ]
then
echo "Doing initial setup..."
# move all the sources
cp -r /root/project_source/* /root/workspace/
rm -rf /root/project_source
# not sure what's the point of settings-docker... | true |
8e171c9c909e469d9540483e965566007a1adfa8 | Shell | Erukino/Login | /opciones | UTF-8 | 4,030 | 3.359375 | 3 | [] | no_license | #!/data/data/com.termux/files/usr/bin/bash
#codigo 17 dw Noviembre del 2018
pregunta1=$(base64 -d $PREFIX/libexec/termux/.quiz/pregunta_1)
respuesta1=$(base64 -d $PREFIX/libexec/termux/.quiz/resp_1)
clave_1=$(base64 -d $PREFIX/libexec/termux/.password/pass)
function inicio_opc {
source $PREFIX/libexec/.banners/lo... | true |
701102ae62a9183e633ae045ef865888aab986c9 | Shell | ruohoruotsi/voodoohop-ableton-tools | /backupModificationTimesOfMusic | UTF-8 | 2,064 | 2.859375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
find . -iname "*.mp3*" -o -iname "*.flac*" -o -iname "*.aif*" -o -iname "*.wav*" -o -iname "*.mp4*" -o -iname "*.ogg*" | while read filename;
do
IFS=$'\n' printf "\ntouch -t $(stat -f "%Sm" -t "%Y%m%d%H%M" "$filename") \"$filename\"";
#printf "\ntouch -t \"$filename\"";
done;
printf "\n";
Object.defin... | true |
38144f36b31b72302196249bdd38ede1ecddb4dc | Shell | ilventu/aur-mirror | /chromium-dev/PKGBUILD | UTF-8 | 17,627 | 2.875 | 3 | [] | no_license | # Old Maintainer: Mikhail Vorozhtsov <mikhail.vorozhtsov@gmail.com>
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
# Change PKGBUILD sugested by: Nagisa
#########################
## -- Build options -- ##
#########################
_use_nacl=1 # Enable Native Client support.
_use_libpdf=1 # Enable C... | true |
358ca70454ecc7078ef54a90d072a2a1dd27c2fb | Shell | cityofcapetown/dockerfiles-nginx-auth-ldap | /bin/run.sh | UTF-8 | 267 | 2.609375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
echo "$(date -Iminutes) Injecting Env Variables."
./inject-env-vars.sh "$BIND_DN" "$BIND_DN_PASSWORD" "$LDAP_WELCOME_MSG" "$LDAP_URL" "$BACKEND_SERVER"
cat /nginx.conf
echo "$(date -Iminutes) Starting Nginx Proxy."
nginx -c /nginx.conf
| true |
456d5f7e85523471f421b6d99cb975a63b065ac8 | Shell | sarusso/sind | /entrypoint.sh | UTF-8 | 160 | 3.3125 | 3 | [] | no_license | #!/bin/bash
if [ $# -eq 0 ]; then
echo "I am just a container, tell me what command to run inside me (i.e. singularity, bash, ...)"
exit 1
fi
exec $@
| true |
39822dc34115120df26e73e6b007cead5fee4099 | Shell | simondeziel/custom-nagios-plugins | /plugins/check_puppet_agent | UTF-8 | 6,525 | 3.359375 | 3 | [] | no_license | #!/bin/bash
# Nagios plugin to monitor Puppet agent state
#
# Copyright (c) 2011 Alexander Swen <a@swen.nu>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copie... | true |
3eb8adbdd32c14c8510543a3c7e475463c1d4ea9 | Shell | gear259/openvix | /se2-upgrade-s-only.sh | UTF-8 | 2,282 | 2.890625 | 3 | [] | no_license | !/usr/bin/sh
###################################### script version ##########################################
###################################### se2 satellite only upgrade.sh ##########################################
echo ""
echo ""
echo "This script will backup userfiles and download cu... | true |
6e8366851b78df84f229080b8a1cc75338228fcb | Shell | 2000dB/dotfiles | /bashrc | UTF-8 | 3,885 | 3.328125 | 3 | [] | no_license | #! /bin/bash
export HISTIGNORE="&:ls:la:clear:exit:c:[*"
######## COLORS ########
export LSCOLORS="DxGxBxDxCxEgEdxbxgxcxd"
export LS_COLORS="di=1;33"
cyan='\033[0;36m\'
cyan='\033[0;36m'
purp='\033[0;35m'
WHITE='\033[1;37m'
YELLOW='\033[1;33m'
NC='\033[0m'
######## PROMPT ########
function parse_git_dirty() {
if... | true |
1798da02a55f8ac2a55121b299818b24d5c751e4 | Shell | TelegramBots/Telegram.Bot.Examples | /Serverless/Telegram.Bot.Examples.AwsLambda.WebHook/2-deploy.sh | UTF-8 | 478 | 2.6875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -eo pipefail
ARTIFACT_BUCKET=$(cat bucket-name.txt)
# comment out below 3 lines if you are using aws cli docker image
# it does not have .net, just launch this command from lambda-bot folder
cd lambda-bot
dotnet lambda package
cd ../
aws cloudformation package --template-file template.yml --s3-bucket ... | true |
0176aa14fc11f19686c1b9fffb4d85526aec6cf7 | Shell | okode/spring-boot-ionic | /release.sh | UTF-8 | 624 | 3.71875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
if [ $# -ne 2 ]; then
echo "Syntax: release [CURRENT_VERSION] [NEXT_VERSION]"
exit 1
fi
CURRENT=$1
NEXT=$2
# Create release
git flow release start $CURRENT || exit 1
GIT_MERGE_AUTOEDIT=no git flow release finish -m $CURRENT $CURRENT
# Publish release
git push origin HEAD --tags
# Merge release into... | true |
343110232e4d6556f0c13cbb56de9446a8caa686 | Shell | sztomi/options_display_error | /repro.sh | UTF-8 | 625 | 2.96875 | 3 | [] | no_license | #! /usr/bin/bash
set -ex
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
pkgs=(ffmpeg fontconfig harfbuzz zlib)
export CONAN_USER_HOME=$DIR/conan_cache
export CONAN_USERNAME=_
export CONAN_CHANNEL=_
rm -rf $CONAN_USER_HOME
conan config set general.revisions_enabled=1
conan config set genera... | true |
b8c95684f2e888a2949726332a07b0d46e537473 | Shell | Empty0ne/blackarch | /scripts/get-real | UTF-8 | 269 | 2.75 | 3 | [] | no_license | #!/bin/bash
cd "$(dirname "$0")/.."
site=blackarch.real
dir=pub/blackarch
real_local=real-repo
real_local_bak=real-repo.bak
sitedir=/var/www/blackarchlinux.org/pub/blackarch
rsync -avz --delete-after \
"${site:-safety}:${sitedir:-safety}/" "${real_local:-safety}"
| true |
5eaed0d0b8379f47c01f77d3c40e4f8cfce5e77d | Shell | peebles/dynamodb-import | /launch-kafka.sh | UTF-8 | 667 | 3.265625 | 3 | [] | no_license | #!/bin/sh
TOPIC="$1"
if [ -z "$TOPIC" ]; then
echo "Must supply the DDB table name as a topic name for Kafka"
exit 1
fi
docker run -d --name zookeeper -p 2181:2181 jplock/zookeeper:3.4.6
MACHINE_IP=$(basename $DOCKER_HOST|awk -F: '{print $1}')
docker run -d --name kafka --link zookeeper:zookeeper --env KAFKA_AD... | true |
bb5f253579b3c2f98ed6bcda222fc9920a49b5ff | Shell | level5/LaTeX | /programming/code/shell/abs-guide/chapter24/demonstration-recursion.sh | UTF-8 | 259 | 3.625 | 4 | [] | no_license | #!/bin/bash
# Demonstration of recursion.
RECURSION=9
r_count=0
recuse ()
{
var="$1"
while [ "$var" -ge 0 ]
do
echo "Recursion count = "$r_count" +-+ \$var ="$var""
(( var-- )); (( r_count++ ))
recuse "$var"
done
}
recuse $RECURSION
exit $? | true |
f7a30e2de5f3cabf220e42dae5b77146cc079c8b | Shell | fnfly2005/public_work | /base_code/sh/modify_gitrepo.sh | UTF-8 | 152 | 2.734375 | 3 | [] | no_license | #!/bin/bash
#批量修改git仓库提交人
for i in `seq 1 $1`
do
git commit --amend --author "fnfly2005 <fnfly2005@aliyun.com>"
git rebase --continue
done
| true |
6afa54bf2f12797807c9fad71c6d3ae81f402d46 | Shell | Cloudxtreme/dbl-service | /dev-scripts/install-soci.sh | UTF-8 | 539 | 3.296875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# NOTE: You need sqlite development files, e.g. on ubuntu:
# libsqlite3-dev
if test ! -d $VIRTUAL_ENV; then
echo "Need VIRTUAL_ENV env"
exit 1
fi
ME=$(readlink -f $0)
MY_DIR=$(dirname $ME)
EXTERNDIR=$(readlink -f "$MY_DIR/../extern")
BUILD_DIR="$ROOTDIR/tmp/soci-build"
mkdir -p $BUILD_DIR
cd $BUIL... | true |
44d955642f0559bf73d2431f152ddf8cc33080b3 | Shell | jbalogh/twttr | /bootstrap/app-setup.sh | UTF-8 | 790 | 2.53125 | 3 | [] | no_license | yes | sudo yum install -y git mysql{,-devel,-server} gcc screen nginx zsh make
yes | sudo yum groupinstall "Development Libraries"
sudo mv nginx.conf /etc/nginx/
sudo service nginx start
sudo easy_install pip virtualenv{,wrapper}
mkdir ~/.virtualenvs
sudo chsh ec2-user -s /bin/zsh
git clone git://github.com/jbalogh/dot... | true |
5f87e78413e6a755287b788d8b269c48a0890c97 | Shell | busraerkoc/Basic-Bash-Exercises | /shell-scripting/exercise6.sh | UTF-8 | 247 | 3.75 | 4 | [] | no_license | #!/bin/bash
read -p "Please enter the name of the file or directory:" FILE
if [ -f FILE ]
then
echo "${FILE} is a regular file."
elif [ -d FILE ]
then
echo "${FILE} is a directory."
else
echo "${FILE} is other type of file."
fi
ls -l $FILE
| true |
8b0709d7a38f36329631b3679881342760301835 | Shell | stevenschobert/dotfiles | /setup.sh | UTF-8 | 11,402 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
ASDF_DIR="$HOME/.asdf"
OMZSH_DIR="$HOME/.oh-my-zsh"
TPM_DIR="$HOME/.tmux/plugins/tpm"
VUNDLE_DIR="$HOME/.vim/bundle/Vundle.vim"
RUBY_VERSION="3.0.2"
NODE_VERSION="18.17.0"
DENO_VERSION="1.35.1"
JAVA_VERSION="adoptopenjdk-jre-8.0.252+9.1"
KOTLIN_VERSION="1.6.0"
PYTHON_VERSION="3.9.9"
GROOVY_VERSION=... | true |
23b97eae143ca94be531de454ac1cceb42e9c08b | Shell | takov/docker | /hadoop-dfs/resources/start_hadoop.sh | UTF-8 | 294 | 2.71875 | 3 | [] | no_license | #!/bin/bash
#TODO Enhance the script
#Start ssh service
sudo -S service ssh start && \
#Run only in the name node
if [ $1 == true ]
then
echo "Y" | /home/hadoop/hadoop/bin/hdfs namenode -format
/home/hadoop/hadoop/sbin/start-dfs.sh
fi
#Keep the containers running
tail -f /dev/null
| true |
6ff1455bd3d6ac9082c379c655290359c3e2c79c | Shell | tjablin/ck-mlperf | /program/sylt/ck-compile.sh | UTF-8 | 405 | 2.703125 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
cwd=$(pwd)
cd ${CK_ENV_BENCH_SYLT_TRACE_GENERATOR}
rm -f ./a.out
echo ""
echo "$CK_CXX $CK_COMPILER_FLAGS_OBLIGATORY $CK_FLAGS_DYNAMIC_BIN ${CK_FLAG_PREFIX_INCLUDE}./ demo.cc ${CK_FLAGS_OUTPUT}a.out"
$CK_CXX $CK_COMPILER_FLAGS_OBLIGATORY $CK_FLAGS_DYNAMIC_BIN ${CK_FLAG_PREFIX_INCLUDE}./ demo.cc ${CK_FLAG... | true |
931e249cc6f2abadb9fb9de88562a4efc7be6bff | Shell | csuzhangxc/dm-k8s | /examples/test-case-2/generate.sh | UTF-8 | 334 | 2.9375 | 3 | [] | no_license | #!/bin/bash
function assaemble_config() {
read -r -d '' line <<- EOF
-
source-id: "dm-worker-$1"
black-white-list: "instance"
mydumper-config-name: "global"
loader-config-name: "global"
syncer-config-name: "global"
EOF
printf ' %s\n\n' "$line"
}
for i in $(seq 100); do
assaemble_c... | true |
0133291bb3ebe8d3f7e1e7b5d29e407b38c8bd34 | Shell | UN-labs/shokku | /provisioners/terraform/modules/cluster/docker/vultr/scripts/boot-script.sh | UTF-8 | 459 | 3.640625 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-other-permissive"
] | permissive | #!/bin/sh
# Enable private network if not previously enabled
if ! grep -Fxq "auto ens7" /etc/network/interfaces
then
# Fetch private ip
METADATA_ENDPOINT=http://169.254.169.254/v1/interfaces/1/ipv4/address
PRIVATE_IP=$(curl $METADATA_ENDPOINT)
# Append auto network configuration
cat <<EOT >> /etc/network/interfaces
... | true |
bba12526785534646b59396bcbfd9ac36f4b6863 | Shell | haskell-crypto/cryptonite | /cbits/decaf/tools/generate.sh | UTF-8 | 4,746 | 3.5625 | 4 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | #!/bin/sh
# Usage: ./generate.sh /path/to/ed448goldilocks-code
#
# Generate all files from ed448goldilocks branch 'master'
# (available at <git://git.code.sf.net/p/ed448goldilocks/code>).
#
# Project is synced with upstream commit
# '807a7e67decbf8ccc10be862cdf9ae03653ffe70'.
#
# Notes about transformations applied:
#... | true |
8f7f65f2381f55c9a8938fbb3a3589b3404e2d23 | Shell | Shubh9907/ShellScript_Programs | /Shell_Script/IfElsePrograms/Head_Tail.sh | UTF-8 | 84 | 2.515625 | 3 | [] | no_license | random=$((RANDOM%2))
if (($random==1))
then
echo "Heads"
else
echo "Tails"
fi
| true |
196fcd31668d708757857b2a23a4c2a31a22881c | Shell | jaredquinn/ogbbsguides | /processnodelist.sh | UTF-8 | 900 | 3.40625 | 3 | [] | no_license | #
# This uses a modified version of nl2binkd v1.00 by Markus Reschke
# My modified version is available in this repository.
#
#
# Environment
# =====================================================================================
# Note: These variables make up my environment for using these scripts
#
# export SBBSBAS... | true |
7af1723236a420f75f1d77e06f51ea774a0bac65 | Shell | zzmg/script | /checkPodStatu.sh | UTF-8 | 1,016 | 3.421875 | 3 | [] | no_license | #!/bin/bash
namespace=$1
pod_name=$2
container_name=$3
if kubectl get pods -n $namespace $pod_name
then
reason=`kubectl describe pods -n $namespace $pod_name | grep "Reason:" | cut -d : -f 2`
if [ $reason ];
then
if [ '$reason' = 'OOMKilled' ];
then
echo The reason of $pod_name restart is $reason.
elif [ '$reason... | true |
a13393991e938c6f0e41e0822cadee53c46d0657 | Shell | Funz/plugin-Telemac | /src/main/scripts/Telemac-singularity.sh | UTF-8 | 790 | 3.3125 | 3 | [] | no_license | #!/bin/bash
CAS=$1
if [ 1 -le `echo \`pwd -P\` | grep --color='auto' -P -n "[\x80-\xFF]" | wc -l` ]; then
echo "Telemac will not support non ISO char in path. Exiting.";
exit 1
fi
NCPU=`grep ^cpu\\\\scores /proc/cpuinfo | uniq | awk '{print $4}'`
## singularity run using docker image:
singularity run -B `echo... | true |
7f7c1676dadb9fc8986515d69a06394f9cd963be | Shell | DiegoDeDios/compilers-lecture | /labs/01/asm-analytics.sh | UTF-8 | 385 | 3.359375 | 3 | [
"MIT"
] | permissive | echo Hi, this is the output of the analysis:
echo You have the following kind of instructions:
awk -F '[[:space:]][[:space:]]+' '$2 !~ /%/ && $2 !~/x86/ {print $2}' $1 | awk NF | sort | uniq -c | awk '{print $2 " : Executed " $1 " times"}'
echo You have the following functions:
awk ' /<[a-zA-Z]+>:/ {print $0}' $1 |... | true |
d6fa63adce091e47b7e95369dab6156c57f0cff5 | Shell | AndsuLucas/ShellScript-I | /useCases/Note/addNote.sh | UTF-8 | 1,812 | 3.84375 | 4 | [] | no_license | #! /usr/bin/env bash
##########################
# Add a note on database #
##########################
addNote() {
printf "\n Type your note:"
read
local CONTENT="${REPLY}"
if [ "${#CONTENT}" -eq 0 ]
then
printf "\n Empty text is not allowed."
... | true |
38ee136f8c8d90bf660cd52f150246d69b8c28cc | Shell | flxndn/bin | /csvviewer | UTF-8 | 915 | 3.96875 | 4 | [] | no_license | #!/bin/bash
if [ "$1" == "" ]; then
cat <<DONE
PROGRAM DESCRIPTION
semicolon separated (csv) file viewer
USAGE
$0 FileName
AUTHOR
Peter Borkuti, 2003.01.19
DONE
exit 0
fi;
colnum=`tr -dc ';\n' < $1 | wc -L` # Number of columns
CELLPAD=2 # Extra spaces between cols
tabs[0]=0 # First tab pos... | true |
658128d96e3422f586cddbefb931a8bed0464503 | Shell | flazzarini/munin-apcups | /apcups_apcaccess_temp.sh | UTF-8 | 452 | 3.671875 | 4 | [] | no_license | #!/bin/bash
APCACCESS='/sbin/apcaccess'
function GetValue {
localoutput=`$APCACCESS | grep ITEMP | sed 's/.*: \(.*\) C$/\1/' | tr -d ' '`
echo $localoutput
}
if [[ $1 == config ]]; then
echo "graph_title APC UPS Temperature"
echo "graph_vlabel Degrees Celcius"
echo "graph_category power"
echo... | true |
95cfc9b95157405407035271e324457d61f7d345 | Shell | xiaoronglv/Practice-Cplusplus | /2018-ACM-SIGMOD-Contest/4-papercup/run.sh | UTF-8 | 343 | 2.84375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
if [ "$1" == "-g" ]; then
gdb ${DIR}/build/release/Driver
elif [ "$1" == "-vc" ]; then
valgrind --tool=cachegrind ${DIR}/build/release/Driver
elif [ "$1" == "-vm" ]; then
valgrind --leak-check=full -v ${DIR}/build/release/Driver
else
${DIR}/b... | true |
393963db91cd50e036a0d92ee02b163629dfa1d6 | Shell | koobonil/Boss2D | /Boss2D/addon/_old/webrtc-qt5.11.2_for_boss/modules/audio_coding/codecs/isac/fix/test/QA/runiSACfault.txt | UTF-8 | 1,015 | 3.03125 | 3 | [
"MIT",
"LicenseRef-scancode-google-patent-license-webrtc",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"GPL-1.0-or-later",
"LicenseRef-scancode-takuya-ooura",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown",
"MS-LPL",
"LicenseRef-scancode-google-patent-licen... | permissive | #!/bin/bash
(set -o igncr) 2>/dev/null && set -o igncr; # force bash to ignore \r character
LOGFILE=logfault.txt
echo "START FAULT TEST" > $LOGFILE
ISAC=../Release/kenny.exe
ISACFIXFLOAT=../Release/testFixFloat.exe
INFILES=$(cat InputFiles.txt)
SUBSET=$(cat InputFilesFew.txt)
CHANNELFILES=$(cat ChannelFiles.txt)
CHA... | true |
97767b1b663a4e16a91ecc8bda601a56e7e238df | Shell | emagii/at91bootstrap | /ALLCONFIGS | UTF-8 | 334 | 3.046875 | 3 | [
"LicenseRef-scancode-bsd-atmel"
] | permissive | #!/bin/sh
# Support Ubuntu ARM C compiler
export CROSS_COMPILE=/usr/bin/arm-linux-gnueabi-
source ./scripts/mk-config-list.sh
reconfig ()
{
make $1_defconfig
make oldconfig
make CROSS_COMPILE=arm-linux- update
}
reconfig_all ()
{
for f in `cat $CONFIG_LIST` ; do
reconfig $f
done
}
reconfig_all
echo
echo
ech... | true |
b30570cb5ea8485cb7848836cb5d7ee9fb92341c | Shell | fluffynuts/scripts | /mknoise | UTF-8 | 1,626 | 4.03125 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/zsh
len='8:00:00'
noisetype="brownnoise"
outputfile=""
lastarg=""
function usage {
echo "$(basename $0) {-l <len>} {-t <type} {-o <outputfile}"
echo " where <len> is a time spec in hh:mm:ss (eg 00:30:42)"
echo " and <type> is one of:"
echo " pink / pinknoise"
echo " white / whitenoise"
echo " br... | true |
3299aa81416ea8c8b3543c5785f196b556000ae7 | Shell | moteesh-in2tive/asdf-minio | /bin/install | UTF-8 | 1,048 | 4.15625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
set -o pipefail
install_minio() {
local version install_path bin_install_path binary_path download_url
version="${1}"
install_path="${2}"
bin_install_path="${install_path}/bin"
binary_path="${bin_install_path}/minio"
download_url=$(get_download_url "${version}")
echo "Creati... | true |
473e8076cf83bb0b97371d09fa55569c529c18a9 | Shell | RuchirDixit/CodinCLub-Day07-Assignment | /day07-Assignment/secondMinAndMax.sh | UTF-8 | 626 | 3.359375 | 3 | [] | no_license | #!/bin/bash
for (( i=0; i<10; i++ ))
do
Num[i]=$((100+RANDOM%900))
done
echo ${Num[*]}
max=${Num[0]}
min=${Num[0]}
for (( i=1; i<10; i++ ))
do
if [[ Num[$i] -gt $max ]]
then
max=${Num[$i]}
fi
if [[ Num[$i] -lt $min ]]
then
min=${Num[$i]}
fi
done
secondMax=${Num[0]}
secondMin=$max
for (( i=0; i<10; i++ ))
d... | true |
8bf97c9d543d66c9aa7bda9ee33055db0b336418 | Shell | TsutomuNakamura/dotfiles | /bin/open-with-google-chrome | UTF-8 | 430 | 3.65625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
main() {
[[ $# -eq 0 ]] && {
echo "ERROR: There are no arguments" >&2
return 1
}
command -v google-chrome && {
google-chrome "$@"
return $?
}
[[ -f /opt/google/chrome/google-chrome ]] || {
echo "ERROR: There are no command found for goo... | true |
bd4a64d554fff136d028a670e58db501b813dc7a | Shell | mfkiwl/gps-freq-counter | /fpga/quartus/full.sh | UTF-8 | 798 | 3.53125 | 4 | [
"MIT"
] | permissive | #! /bin/bash
set -e
COMMAND="$1"
PROJECT="gps-freq-counter"
function log()
{
echo -ne '\033[1;36m'
echo "[STATUS]: " "$@"
echo -ne '\033[0m'
}
cd $(dirname $0)
OUTDIR=output_files
SOFFILE=${OUTDIR}/${PROJECT}.sof
SVFFILE=${OUTDIR}/${PROJECT}.svf
if [ "$COMMAND" != "flashonly" ]; then
log "Building the firmwar... | true |
73198d0f232ab661907bef7017dedc4dc160037c | Shell | lsl/SlackBuilds | /tor_browser/tor_browser_bundle-2.2.38-2/set-tor-user | UTF-8 | 3,602 | 4.4375 | 4 | [] | no_license | #!/bin/bash
#
# set-tor-user ( 20120903 )
#
# Configures Tor Browser Bundle to run as the specified user when ownership belongs to root.
# This script must be placed it TBB's root directory (with start-tor-browser)
# Anyone can freely modify and/or distribute this script without restrictions
#
# Written by Luke Willia... | true |
246c4e38102028cd73ad63c510573e65082b0675 | Shell | sveinnfannar/advent-of-code | /2020/new-day.sh | UTF-8 | 358 | 3.359375 | 3 | [] | no_license | #!/bin/bash
if [[ -z $1 ]]; then
echo "usage: new-day.sh <day>"
exit 1
fi
if [[ -z $AOC_SESSION ]]; then
echo "AOC_SESSION environment var is unset"
exit 1
fi
set -xe
mkdir $1
cp template.py $1/$1_1.py
touch $1/$1_2.py
curl --cookie "session=$AOC_SESSION" https://adventofcode.com/2020/day/$1/input > $1/inp... | true |
6700b33fee7bdbe3c662deeafb4080960b2e248c | Shell | tatthien/dotfiles | /install | UTF-8 | 656 | 3.265625 | 3 | [] | no_license | #!/bin/bash
GITIGNORE_PATH=~/.config/.gitignore
if [[ ! -x "$(command -v brew)" ]]; then
echo "brew could not be found"
exit
fi
echo ">>> brew bundle install"
brew bundle install
echo ">>> creating symbolic links"
ln -sfv ~/dotfiles/nvim ~/.config
ln -sfv ~/dotfiles/alacritty ~/.config
ln -sfv ~/dotfiles/.tmux.co... | true |
7975230c63414e04611de4bb93d179b60e945a73 | Shell | scottellis/meta-jumpnow | /recipes-qt/qt4/files/qte.sh | UTF-8 | 395 | 2.671875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
if [ -e /dev/input/touchscreen0 ]
then
QWS_MOUSE_PROTO=Tslib:/dev/input/touchscreen0
export QWS_MOUSE_PROTO
fi
QWS_SIZE=480x272
export QWS_SIZE
QWS_DISPLAY="linuxfb:mmHeight=53:mmWidth=95"
export QWS_DISPLAY
# For development convenience, can remove later for production
if [ -e /usr/share/qtopia/e... | true |
2dfb064322b4f750b2ebc2271336d1f62b206e45 | Shell | pjotrsavitski/icoworker | /i18n/generate-mo.sh | UTF-8 | 970 | 2.640625 | 3 | [] | no_license | # Generate .mo file
#ENG
if [ -f en_GB.UTF-8/LC_MESSAGES/teke.mo ]
then
rm en_GB.UTF-8/LC_MESSAGES/teke.mo
fi
msgfmt -o en_GB.UTF-8/LC_MESSAGES/teke.mo en_GB.UTF-8/LC_MESSAGES/teke.po
echo "TeKe ENG Done"
#EST
if [ -f et_EE.UTF-8/LC_MESSAGES/teke.mo ]
then
rm et_EE.UTF-8/LC_MESSAGES/teke.mo
fi
msgfmt -o et_EE.... | true |
679164c595106653821b07f7a78591a0cd2e4475 | Shell | DariHT8/EvidenciasPC | /Bash/E5/E5_Bash.sh | UTF-8 | 787 | 3.296875 | 3 | [] | no_license | #!/bin/bash
#llave = cfccfca8a55b497f9f3c5b22a9cd132a
#Integrantes
#Angela Montoya Aldape
#Dariela Hurtado Torres
#Ian Israel Leija Medina
function verificacion {
sleep 5
if [ "$invocacion" == "" ];
then
echo "Su correo no ha sido vulnerado :)"
else
servicios=$(echo $invocacion ... | true |
eba311d046ccb6333c695638376d0bfdd1178d09 | Shell | book000/server-backup | /FullBackup/rsync.sh | UTF-8 | 1,008 | 3.484375 | 3 | [] | no_license | #/bin/bash
SCRIPT_DIR=$(cd $(dirname $0); pwd)
usage_exit() {
echo "Usage: $0 [-h host] [-r port] [-u user] [-i identity] [-p passphrase] [-f from] [-o output]" 1>&2
exit 1
}
while getopts h:r:u:i:p:f:o: OPT
do
case $OPT in
h) HOSTNAME=$OPTARG
;;
r) PORT=$OPTARG
;... | true |
27f951ec8c0680d47f2de25de8f75866126c7642 | Shell | danielrowles-wf/cheapskate | /build.sh | UTF-8 | 1,129 | 3.53125 | 4 | [] | no_license | #! /bin/bash
set -e
FRUGAL=drydock.workiva.org/workiva/frugal:35054
PREFIX=github.com/danielrowles-wf/cheapskate/gen-go/
IMPORT="github.com/Workiva/frugal/lib/go"
TOPDIR=$PWD
echo "Building parsimony"
go get github.com/Workiva/parsimony
if [ -e ./gen-go ]; then
echo "Remove existing gen-go directory"
rm -Rf... | true |
e3cab1bdf19ba89560cf71ef94134513712126d3 | Shell | gaboriaudj/dots | /.profile | UTF-8 | 1,117 | 2.890625 | 3 | [] | no_license | #!/bin/sh
# __ _ _
# _ __ _ __ ___ / _(_) | ___
# | '_ \| '__/ _ \| |_| | |/ _ \
# _| |_) | | | (_) | _| | | __/
# (_) .__/|_| \___/|_| |_|_|\___|
# |_|
#
# Profile file. Runs on login.
#
# default programs/environmental variables
export PATH="$PATH:$HOME/.local/bin"
export EDITOR="vim... | true |
5ab8fcde83a973f631b12afe53b29eb9d41b1fb3 | Shell | AdamMcCarthyCompSci/OS-Assignment | /project-AdamMcCarthyCompSci-master/P.sh | UTF-8 | 278 | 3.390625 | 3 | [] | no_license | #! /bin/bash
# New P.sh
if [ -z "$1" ]; then
echo "Usage $0 mutex-name"
exit 1
else
# You can just use the P.sh script itself to link to
#We know this file will always exist (we're running it after all)
while ! ln "$0" "$1-lock" 2>/dev/null; do
sleep 1
done
exit 0
fi
| true |
2d6deb1d942f9bcf1c1df711e51423429f7d8a5c | Shell | FancyChaos/debian-i3 | /installations/install_applications.sh | UTF-8 | 1,752 | 3.015625 | 3 | [] | no_license | #!/bin/bash
echo "Installing non apt applications..."
sleep 1
### Installing custom applications from github
cd /tmp/
### Install Alacritty
wget https://github.com/alacritty/alacritty/releases/download/v0.4.3/Alacritty-v0.4.3-ubuntu_18_04_amd64.deb
sudo dpkg -i Alacritty*.deb
### Install bat
wget https://github.com... | true |
942739bc8bfa7bedf438489c46e9db7c71e18b0b | Shell | baoquocnguyen/HAS | /Server_machine/Test/05_automation_tool/01_performance_QUIC_QUIC/server_bandwith_100mb_netem.sh | UTF-8 | 514 | 2.640625 | 3 | [] | no_license | #!/bin/bash
echo run initial script!
# add path for file
# initial environment
export GOPATH=$HOME/work
export PATH=$PATH:$GOPATH/bin
export GOROOT=/usr/local/go/
# kill process which hold port 6121
# netstat -tulnap
sudo kill -9 $(lsof -t -i:6121)
# setup network condition delay 100 miliseconds
sudo tc qdisc de... | true |
033290e24004028ceb1b08275160e0d4dceda3f0 | Shell | tensorflow/text | /oss_scripts/pip_package/build_pip_package.sh | UTF-8 | 2,564 | 4.1875 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Tool to build the TensorFlow Text pip package.
#
# Usage:
# bazel build oss_scripts/pip_package:build_pip_package
# bazel-bin/oss_scripts/build_pip_package
#
# Arguments:
# output_dir: An output directory. Defaults to `/tmp/tensorflow_text_pkg`.
set -e # fail and exit on any command errori... | true |
195d6a2b51d4978cefbb0f2cd968a7e5f640c363 | Shell | apache/incubator-pekko | /remote/src/test/resources/ssl/gencerts.sh | UTF-8 | 868 | 2.640625 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LicenseRef-scancode-protobuf",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"Unlicense",
"CC0-1.0"
] | permissive | #!/bin/bash
export PW=`cat password`
. gen-functions.sh
rm *.crt
rm *.p12
rm *.pem
./genca.sh
## some server certificates
createExampleECKeySet "one" "serverAuth" "DNS:one.example.com,DNS:example.com"
createExampleECKeySet "two" "serverAuth" "DNS:two.example.com,DNS:example.com"
createExampleECKeySet "island" "ser... | true |
778976bd14b495c4e327d8064ec8ec7a7450c1d3 | Shell | jakirkham/rapids-compose | /etc/conda-merge.sh | UTF-8 | 2,748 | 2.796875 | 3 | [] | no_license | #!/usr/bin/env bash
set -Eeo pipefail
cd "$RAPIDS_HOME"
####
# Merge the rapids projects' envs into one rapids.yml environment file
####
cat << EOF > rapids.yml
name: rapids
channels:
- rapidsai
- nvidia
- rapidsai-nightly
- conda-forge
- defaults
dependencies:
- cmake>=3.17.0,<3.18
- cmake_setuptools
- python=${PYT... | true |
9b09922961e175ef8e20c9119b91dafa5caf335f | Shell | ShipSoft/shipdist | /sodium.sh | UTF-8 | 1,056 | 3.078125 | 3 | [] | no_license | package: sodium
version: v1.0.8
source: https://github.com/jedisct1/libsodium
tag: 1.0.8
build_requires:
- autotools
- "GCC-Toolchain:(?!osx)"
---
#!/bin/sh
rsync -av --delete --exclude="**/.git" $SOURCEDIR/ .
autoreconf -i
./configure --prefix=$INSTALLROOT
make ${JOBS+-j $JOBS}
make install
# Modulefile
MODULEDI... | true |
daf7860698f8830c376275dc414358150676a7a6 | Shell | buildpacks/lifecycle | /acceptance/testdata/detector/container/cnb/extensions/simple_extension/simple_extension_version/bin/detect | UTF-8 | 156 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
plan_path=$2
cat >> "${plan_path}" <<EOL
[[provides]]
name = "some_requirement"
EOL
echo "simple_extension: output from /bin/detect"
| true |
bb9e742da57ea6a83ffe3d018ad23928b63fe172 | Shell | dlaststark/machine-learning-projects | /Programming Language Detection/Experiment-2/Dataset/Train/UNIX-Shell/play-recorded-sounds.sh | UTF-8 | 169 | 2.515625 | 3 | [] | no_license | #!/usr/bin/sh
# play.sh
# Plays .au files.
# Usage: play.sh <recorded_sound.au>
cat $1 >> /dev/audio # Write file $1 to the speaker's Character Special (/dev/audio).
| true |
dbf394c83d6db13a76d59de9e906d2d780f18734 | Shell | witnesslq/bigdata-9 | /weblogOffline/run/common/getOriginalContentLogAndCheck.sh | UTF-8 | 1,665 | 3.65625 | 4 | [] | no_license | #!/bin/bash
if [ $# = 0 ]; then
yesterday=`date +%Y%m%d -d "-1days"`
else
yesterday=$1
fi
export JAVA_HOME=${JAVA_HOME}
export HADOOP_HOME=${HADOOP_HOME}
export HADOOP_CONF_DIR=${HADOOP_CONF_DIR}
baseDir=$(cd "$(dirname "$0")"; pwd)
source $baseDir/../weblogHeader.sh
echo $yesterday
ycLocalDestDir=${WEBL... | true |
7f2a8e1fe4683962f8d74d2b429ce0acdf9239f4 | Shell | milinddinesh/Tasks | /bash/medium.sh | UTF-8 | 535 | 3.53125 | 4 | [] | no_license | #! /bin/bash
function fileSort () {
ls ~/Downloads | while read -r i
do
if [ -f ~/Downloads/"$i" ]
then
fy=$(date -r ~/Downloads/"$i" +%Y)
fmonth=$(date -r ~/Downloads/"$i" +%b)
fday=$(date -r ~/Downloads/"$i" +%d)
fname=${fmonth}_${fday}
if [ ! -d ~/Downloads/$fy ]
then
`mkdir ~/Downloads/$fy`
fi
... | true |
b36ace42a11f109b8bd79460c2830e41fd445ead | Shell | kwozyman/rhel-on-bf2 | /PXE_setup_RHEL_install_over_mlx.sh | UTF-8 | 14,142 | 3.265625 | 3 | [] | no_license | #!/bin/sh
# ex:ts=4:sw=4:sts=4:et
# ex:expandtab
#
# Copyright (c) 2020, Mellanox Technologies
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the... | true |
f030442bde950a1a85134048229120c28e3b8e46 | Shell | remedyhealth/scripts | /cloudwatch/cloudwatch.sh | UTF-8 | 3,320 | 3.65625 | 4 | [] | no_license | #!/bin/bash
if [ ! -f ~/.baseline_check.cfg ]; then
echo "~/.baseline_check.cfg does not exist!"
exit 1
fi
. ~/.baseline_check.cfg
NODENAME=$1
ENVIRONMENT=$2
INSTANCE_ID=$3
DISKS=$4
if [ -z "${NODENAME}" ] || [ -z "${ENVIRONMENT}" ] || [ -z "${INSTANCE_ID}" ]; then
echo "NODENAME, ENVIRONMENT, and INSTANCE_ID... | true |
9327db7c9cc4a73b35e0053e379397a223d182d1 | Shell | godane/abs | /extra/muparser/PKGBUILD | UTF-8 | 656 | 2.578125 | 3 | [] | no_license | # $Id: PKGBUILD 69090 2010-02-17 11:14:28Z ronald $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: damir <damir.archlinux.org>
pkgname=muparser
pkgver=1.32
pkgrel=1
pkgdesc="a fast math parser library"
arch=('i686' 'x86_64')
url="http://muparser.sourceforge.net/"
depends=('glibc' 'gcc-libs')
lice... | true |
f733a67da60f5a8061824f2f11331764b95c25c9 | Shell | tow8ie/dotfiles | /shell.d/01-path-helpers.zsh | UTF-8 | 61 | 2.734375 | 3 | [] | no_license | debug_path() {
for entry in $path; do echo $entry; done
}
| true |
972ad38e780be760fc86816030bfb3e8d936e558 | Shell | delkyd/alfheim_linux-PKGBUILDS | /tspc/tspc | UTF-8 | 856 | 3.8125 | 4 | [] | no_license | #! /bin/sh
# Startup script from the Debian tspc package
# Written by Martin Waitz <tali@debian.org>
PATH=/sbin:/bin:/usr/sbin:/usr/bin
TSPC=/usr/sbin/tspc
test -f $TSPC || exit 0
# read tsp client config, to get the interface used
. /etc/tsp/tspc.conf
start() {
$TSPC || exit 1
}
stop() {
killall $TSPC || exit ... | true |
0fcf138ae9c299bf20e286a226e10f20cb7556eb | Shell | wawoutert/GuessingGame | /guessinggame.sh | UTF-8 | 559 | 4.0625 | 4 | [] | no_license | #!/usr/bin/env bash
# File: guessinggame.sh
function hint {
if [[ $1 -gt $2 ]]
then
echo "Your guess is too high, please try again"
else
echo "Your guess is too low, please try again"
fi
}
terminate=0
answer=$(ls | wc -l)
while [[ $terminate -eq 0 ]]
do
echo "How many files are in the current direc... | true |
ea68e93547b4b51eca032556385a791388ea2025 | Shell | mikaelengstrom/wpheadlesslab | /scripts/composer.sh | UTF-8 | 225 | 2.734375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#
# Run composer inside of container
#
# Example usage `scripts/composer.sh update`
cd $(git rev-parse --show-toplevel)
COMMAND="cd /app; composer $@"
docker-compose run --rm web bash -c "$COMMAND"
cd - | true |
1ecbe643d7edbf389e680a823539227be8fd6d9b | Shell | KostasKoyias/semantic-analysis | /src/testing.sh | UTF-8 | 1,432 | 3.984375 | 4 | [] | no_license | #!/bin/bash
# get the right file paths under parent directory
main="Main"
pass=$(find .. -name "pass")
fail=$(find .. -name "fail")
# check whether the offsets flag is on
offsets=""
if [ "$1" == "--offsets" ]
then
offsets=$1
fi
# for each test case folder do
for folder in {$pass,$fail}
do
# display an infor... | true |
aae5c31c33517a894c2b268a8b30c611027509eb | Shell | huntinux/shell | /lastparam.sh | UTF-8 | 412 | 3.21875 | 3 | [] | no_license | #!/bin/bash
#
# 得到最后一个位置参数
# 来自:abs chp4 http://www.tldp.org/LDP/abs/html/othertypesv.html
#
# 测试方法: ./lastparam.sh 1 2 3 4
# 会输出最后一个参数4
argnum=$#
echo "argnum=$argnum"
lastparam=${!argnum} # !表示间接引用 参考: http://www.tldp.org/LDP/abs/html/bashver2.html#VARREFNEW
#lastparam=${!#} # 另一种方法
echo "lastparam is $lastparam"... | true |
8c787d422fab5b1d2d333f3e6671a1fac89cace8 | Shell | Glue-Software-Engineering-AG/LocalSigner | /resources/linux/localsigner.sh | UTF-8 | 802 | 3.3125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# Check for Smart Card Daemon
echo "Checking pcscd (PC/SC Smart Card Daemon)"
if ps -ef | grep -v grep | grep pcscd > /dev/null; then
echo " pcscd running"
else
echo " pcscd not running"
echo "Warning: Smartcard will probably not work until pcscd is running!"
fi
# Home Path to installation direc... | true |
12fd5b50ab322a3c0b28cf245eb0b27538fc3284 | Shell | 0x7f454c46/rc | /.config/shell/qemu/qemu_helpers | UTF-8 | 4,649 | 4 | 4 | [] | no_license | #!/bin/bash
DISK_LOCATION="${HOME}/rootfs/virt-builder"
function check_virt_builder()
{
type virt-builder 2>&1 > /dev/null
if [[ $? -eq 0 ]] ; then
echo y
else
echo n
echo "Install virt-builder (libguestfs)" 1>&2
fi
}
# $1 - arch
# $2 - kernel path
function touch_arch()
{
pushd "${DISK_LOCATION}" > /dev/... | true |
f2a75fd26feed8033a21c67ca8022f8864d786de | Shell | raehik/dotfiles | /TODO/scripts-old/old/pi | UTF-8 | 165 | 2.9375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#
# SSH to a server.
#
user="$USER"
server="86.28.170.125"
port=6176
ssh -o TCPKeepAlive=yes -o ServerAliveInterval=50 -p $port "$USER@$server"
| true |
c1e2a3ec64a611c775a30ee60bfc210e8da2b0bf | Shell | oswaldokko/Gitsept2020 | /Gold_thb20.txt | UTF-8 | 587 | 3.328125 | 3 | [] | no_license | #!/bin/sh -x
# %A% %D% %T%
# For script to evaluate crontab file per tester and replace
# crontab with VrgyVugCronTmp if the two are not the same
#
testercron=/tmp/`uname -n`_oldcron
cron_template=/A5XX/standard_tester_files/TESTER_SCRIPTS/VERIGY/VrgyRootCronTmp
localdir=/.agilent
monitor=/TSESRVR/DISKSTAT/MNTR/`uname... | true |
748791464474bf8f95eb03e1e4158241cae9a5a2 | Shell | sarveshmaurya306/DSA | /Sorting/bubblesort.sh | UTF-8 | 411 | 3.46875 | 3 | [] | no_license | # Bubble Sort
echo "Enter number: "
read n
echo "Enter the elements: "
for(( i=0;i<n;i++ ))
do
read a[i]
done
echo "Unsorted List is:"
echo -e "${a[@]} \t"
echo "Sorted List is: "
for(( i=0;i<n;i++ ))
do
k=`expr $n-$i-1`
for(( j=0;j<k;j++ ))
do
if [ ${a[j]} -gt ${a[$((j+1))]} ]
then
temp=${a[j]}... | true |
d1e189007f28bc1436a224c3490f6636af8b2f78 | Shell | angaza/nexus-embedded | /buildkite/clang-format-ci-wrapper.sh | UTF-8 | 594 | 3.40625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -xuo pipefail
source buildkite/common.sh
za-init
RESULTS_DIR=$ARTIFACTS_DIR/"Clang-Format"
mkdir -p ${RESULTS_DIR}
cd support
OUTFILE=nx_keycode.txt
echo "--- Checking Clang-Format config"
which clang-format
clang-format --version
clang-format --style=file --dump-config
echo "--- Applying clang-... | true |
6af4050bf9b801717d43abb760746d9a0e67bd91 | Shell | Scrappers-glitch/icetone | /icetone-examples-pkg-getdown/src/main/installers/scripts/icetone-examples | UTF-8 | 558 | 3.453125 | 3 | [
"BSD-2-Clause",
"LicenseRef-scancode-other-permissive"
] | permissive | #!/bin/bash
CACHE_DIR="${HOME}/.cache/icetone-examples"
buildno="$(cat /usr/lib/icetone-examples/buildno 2>/dev/null)"
if [ ! -f buildno -o "${buildno}" != "$(cat buildno 2>/dev/null)" ]; then
echo "Detected launcher uprade, clearing cache"
rm -fr "${CACHE_DIR}"
echo "${buildno}" > buildno
fi
mkdir -p "${CACHE_DI... | true |
b984a92f8d8b5b08218561f44aa0fb771c5f4a29 | Shell | perch/st2 | /tools/st2ctl | UTF-8 | 4,665 | 3.640625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
LOGFILE="/tmp/st2_startup.log"
COMPONENTS="actionrunner st2api sensor_container rules_engine mistral st2resultstracker"
STANCONF="/etc/st2/st2.conf"
PYTHON=`which python`
if [ -z "$AR" ];
then
AR=10
fi
DEBTEST=`lsb_release -a 2> /dev/null | grep Distributor | awk '{print $3}'`
if [[ "$DEBTEST" == "Ubu... | true |
41d8989acf06f40369f30b551c4c891c6e23052c | Shell | haykv/linux | /ex3/P3.3 | UTF-8 | 384 | 3.5625 | 4 | [] | no_license | #!/bin/bash
echo -n "Enter file name: "
read filename
ranges=""
echo -n "Enter 2 parameters in the format num1-num2: "
while read range; do
ranges="$ranges $range"
echo -n "Enter 2 parameters in the format num1-num2: "
done
echo
while read line; do
str=""
for range in $ranges; do
str="$str$(echo... | true |
37d622a59ca0d1a4e01d95e0d2f40834924b7aa5 | Shell | decentraland/unity-renderer | /ci-import-required-packages.sh | UTF-8 | 845 | 3.234375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
echo Downloading Required Packages
echo "${GPG_PRIVATE_KEY_BASE64}" | base64 -d > private.gpg
gpg --batch --import private.gpg
if [[ "$BUILD_TARGET" != "WebGL" ]]; then
packagesFile='requiredPackages-desktop.unitypackage.gpg'
else
packagesFile='requiredPackages-webgl.unitypackage.gpg'
fi
... | true |
dcfcf51c34cb6e5a195e9c7c30b1e460dcfbd1d7 | Shell | helloimowen/auto-minecraft-server | /scripts/restore-server.sh | UTF-8 | 799 | 2.515625 | 3 | [] | no_license | #!/usr/bin/env bash
# start server from s3 backup
sudo yum -y install java-1.8.0
sudo mkdir /minecraft
sudo chown -R ec2-user:ec2-user /minecraft
sudo aws s3 sync s3://owen-sanders-minecraft/backups/state/ /minecraft
cd /minecraft
sudo aws s3 cp s3://owen-sanders-minecraft/code/master/server_files/minecraft.service... | true |
2f6680143ee8b2628fefb02143894aa85d3dc747 | Shell | digitalrebar/provision-plugins | /cmds/ipmi/content/templates/ipmi-install-cert-key.sh.tmpl | UTF-8 | 364 | 2.9375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Configure the IPMI subsystem
# Include basic defaults and debugging
{{ template "setup.tmpl" . }}
# Get the vendor functions
{{ template "ipmi-vendor.sh.tmpl" . }}
{{ if .ParamExists "ipmi/configure/certificate" }}
vendor_install_cert
{{ else }}
echo "ipmi/configure/certificate not defined - no... | true |
86f74b27326dc42e29c6bd575000b1ecf8a0a82f | Shell | dlussky/dotfiles | /bin/lockNPause | UTF-8 | 583 | 3.515625 | 4 | [] | no_license | #!/bin/bash
LOCK_CHECK_DELAY=0.5
SCREENSAVER_COMMAND=mate-screensaver-command
function wait_for_unlock {
haslock=
while true; do
sleep ${LOCK_CHECK_DELAY}
locked=$( $SCREENSAVER_COMMAND -q | grep " active" )
if [ -n "${haslock}" ]; then
# lock has happened before. Check unl... | true |
4d9b8ed7cb49dc1a4ba2e3a7e2b7e5d782ed5b12 | Shell | matt-welch/GENI_VT | /install/install_script.sh | UTF-8 | 229 | 2.5625 | 3 | [] | no_license | #!/bin/bash
source installer_fcns.sh
echo "Beginning installation script: $0..."
installPackages
installKernel
# TODO need a switch here to control Docker and DPDK installation
collectSysInfo
printHeader
echo " $0 complete. "
| true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.