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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
4d8d0f6433c98a25b7b82bd8c6397c55de71dd32 | Shell | nickdirienzo/gitspot | /spgit | UTF-8 | 1,894 | 3.5625 | 4 | [
"MIT"
] | permissive | #!/bin/sh
## Array of all the dbus names of applications ##
unamestr=`uname`
if [[ $unamestr == "Linux" ]]; then # Linux bit of the script
destlines=`qdbus|grep Media`
oldIFS="$IFS"
IFS=' '
dest=( $destlines )
destNum=`echo $destlines | wc -l`
IFS=$oldIFS
while (( $destNum >= 0 ))
do
destNum=$(( destNum - 1 ))
... | true |
b6216a6036431fc261adce2b662d198102b4bf05 | Shell | zhang3wind/mxnet | /example/speech-demo/run_extract.sh | UTF-8 | 953 | 3.125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -u
. ./cmd.sh
. ./path.sh
# SDM - Signle Distant Microphone
micid=1 #which mic from array should be used?
mic=sdm$micid
# Set bash to 'debug' mode, it prints the commands (option '-x') and exits on :
# -e 'error', -u 'undefined variable', -o pipefail 'error in pipeline',
set -euxo pipefail
# Path where ... | true |
e9c8e7776d37da59b8bd655c5a1720869510c47e | Shell | PhilHarnish/forge | /config/osx/.bashrc | UTF-8 | 2,469 | 3.34375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
export HISTCONTR... | true |
3db8d42630f906715594d887f8b9b14ee8b7988c | Shell | nfischer/dotfiles | /bin/scripts/edit_screenshot.sh | UTF-8 | 487 | 3.78125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
which gimp &>/dev/null && has_gimp=true || has_gimp=false
# Edits the last screenshot I took, so I don't have to do all that damn
# searching myself. Only works on systems that have gimp installed. Probably
# only works on Ubuntu (since relies on naming convention of screenshots)
function edit_screenshot()... | true |
f3c8e92cb1cb2789c68fbcfecec9eb730b54e6bb | Shell | Varat7v2/PERSON-DETECTION-TRAINING | /myGenerate_tfrecord_widerPerson.sh | UTF-8 | 903 | 2.90625 | 3 | [] | no_license | #!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# echo $DIR
if $DATASET == 'widerPerson':
# CSV GENERATION FROM ANNOTATIONS TEXT FILE FOR TFRECORD PREP
python convert_txt2csv_annotations.py
if $DATASET == 'cityPerson':
# CSV GENERATION FROM ANNOTATIONS TEXT FILE FOR TFRECORD PREP
python conve... | true |
67cd4e1b5325d522147148f5a69a081deb7857c4 | Shell | rodney-peng/examples | /shell/object-oriented/SWDL/sync_swdl.sh | UTF-8 | 3,596 | 3.828125 | 4 | [] | no_license | #!/bin/sh
ACTIVE_SW_TYPE=ACTIVE_SW_TYPE
ACTIVE_SW=ACTIVE_SW
COMMIT_SW=COMMIT_SW
SWDL_BASE=/bl/swdl
SWDL_INSTALL=/bl/etc/SWDL
INTERFACE=interface.sh
# $1 = Image id
Reset_Commit_Image()
{
echo Reset $COMMIT_SW to $1 !
fw_setenv $COMMIT_SW $1
}
# $1 = Active image type
# $2 = Committed image type
Validate_Commit... | true |
f16bc3207acf81437b31c0133c4387982c89294b | Shell | mbd-doc2vec-team/mbd-doc2vec | /data-processing/imdb_cleaner.sh | UTF-8 | 925 | 2.953125 | 3 | [] | no_license | #!/bin/bash
# Point at IMDB dump directory
rm -r $1/processed/
mkdir -p $1/processed/test
mkdir -p $1/processed/train
declare -a type=("test" "train")
declare -a label=("pos" "neg")
for i in "${type[@]}"; do
for j in "${label[@]}"; do
cp -r $1/$i/$j $1/processed/$i
perl -C -pe 's/<br \/>/ /g' -i... | true |
5e7cd584dd98008115c2e91dfb35bce127f8b673 | Shell | DaHuMao/Commonly-used-configuration | /dotfiles/pre_install.sh | UTF-8 | 1,861 | 3.3125 | 3 | [] | no_license | source ./scrip_tool/script/tool_function.sh
function check_and_install() {
bin_file=$1
check_cmd="check_cmd ${bin_file}"
install_cmd="brew install ${bin_file}"
log_info "check_and_install ${bin_file} ....."
eval $check_cmd || (log_info "Preparing to install ${bin_file} ....." && eval $install_cmd && log_info... | true |
647ec6ea2fb260cb4788bfc89435e54dbb8e5b5e | Shell | fabic/bash-it | /fabic/bin/s | UTF-8 | 4,577 | 3.859375 | 4 | [] | no_license | #!/bin/bash
#
# s : grep source code files, using ripgrep.
#
# F/2018-05-25
# egrep compatible regular expression, which `find` understand
# thanks to `-regextype egrep`
# FIXME: now unused
regex=".*\.(s?css|js(on)?|php|x?html?|c|h|cc|hh|cpp|hpp|cxx|hxx|h\.inc|hxx\.inc|hpp.inc|hh.inc|s|x)$"
unset regex
skipdirs=()
se... | true |
375dad596fd1f7ccbb13bb29e104ed47d69bd243 | Shell | Brownbull/docker | /Docker4Devs/SimpleWebApp/runStaticSite.sh | UTF-8 | 865 | 3.0625 | 3 | [] | no_license | # run site
$ docker container run -d seqvence/static-site
# run conttainer in detached mode
$ docker container run --name static-site -e AUTHOR="Gabriel C" -d -p 32769:80 seqvence/static-site
#- d will create a container with the process detached from our terminal
# -P will publish all the exposed container ... | true |
728ece545975abb8e6170ed1650bbbf2970a0c3f | Shell | JulTob/Shell | /MakeFile.sh | UTF-8 | 276 | 2.796875 | 3 | [] | no_license | # specify the compiler
CC=gcc
# specify options for the compiler
CFLAGS=-c -Wall
all: hello
hello: main.o hello.o
$(CC) main.o hello.o -o hello
main.o: main.cpp
$(CC) $(CFLAGS) main.cpp
hello.o: hello.cpp
$(CC) $(CFLAGS) hello.cpp
clean:
rm -rf *o hello
| true |
a7e13498e83e571014944ae99b5c46ee11fc5606 | Shell | ashishbijlani/npm-analysis | /runWithDocker.sh | UTF-8 | 213 | 2.59375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
EXEC=$1
ARGS=$2
docker build -t goapp --build-arg exec_name=$EXEC .
docker run --net="host" --restart on-failure -d --name goapp goapp $ARGS
echo "Container runs in background with name goapp" | true |
c1d083dfe295f0dd60463abf67f0dc9f8c62fa09 | Shell | dzahka3/OpenFAM | /test/microbench/fam-api-mb/scripts/fam_micro_benchmark.sh | UTF-8 | 2,640 | 2.84375 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
#
# fam_micro_benchmark.sh
# Copyright (c) 2020 Hewlett Packard Enterprise Development, LP. 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 r... | true |
d17b4b0dff9a338d0c9a0dc179fd99f4253dab63 | Shell | sfiligoi/tnrp-net-tests | /unifrac2210/nrp/t1M/run_1M_wn_support.sh | UTF-8 | 509 | 2.53125 | 3 | [
"MIT"
] | permissive | if [ "x$ICORES" == "x" ]; then
# just in case
export ICORES=0-63
fi
for ((i=$ISTART; $i<$IEND; i=$i+$ISTEP)); do
let j=$i+$ISTEP; if [ $j -gt 606494 ]; then j=606494; fi
echo start $i stop $j gpu ${ACC_DEVICE_NUM} cores $ICORES
time taskset -c $ICORES ssu -m weighted_normalized_fp32 -i x_merged.withplacemen... | true |
49fd8494980650e265ad7852cba299fa9039b598 | Shell | seanyeh/misc-scripts | /ifonline | UTF-8 | 247 | 3.40625 | 3 | [] | no_license | #!/bin/sh
#
# Sean Yeh
#
# Usage: ifonline some_command
# If online, will run command. else, wait 10 secs and retry
check_online () {
wget -q --spider http://google.com
echo $?
}
while [ `check_online` -ne 0 ]; do
sleep 10
done
$*
| true |
aba539cb24c4f5015f458e681eeaf2a131895546 | Shell | Anibus/blueprint-examples | /getting-started/scripts/http-server/install.sh | UTF-8 | 151 | 2.609375 | 3 | [] | no_license | #!/bin/bash -e
cd ~
nohup http-server ~ -p 8080 > /dev/null 2>&1 &
PID=$!
ctx instance runtime_properties pid ${PID}
ctx logger info "PID is ${PID}"
| true |
34fdfdf066e29ed3d8d0634f2d1733a1aa17f6f0 | Shell | dmwm/PHEDEX | /Testbed/RouterScaling/worker.sh | UTF-8 | 2,323 | 3.8125 | 4 | [] | no_license | #!/bin/sh
TMPDIR=`pwd`;
START=$(date +%s)
# Set up local state and log directories. $PHEDEX_NODE is the name of
# the node for which this agent runs and is used by the download agent
# configuration. The $PHEDEX_LOCAL is used by the configuration too.
export PHEDEX_BASE="$1"
export PHEDEX_NODE="$2"
export PHEDEX_AR... | true |
690a0724fc312ef09eecc3bda8df9cf8d616ff9d | Shell | shalaby/scripts | /vidcat | UTF-8 | 557 | 4.0625 | 4 | [] | no_license | #!/bin/bash
# Join multiple videos
# Program(s) required
progs_req=(mencoder)
for p in ${progs_req[@]}; do
hash "$p" 2>&- || \
{ echo >&2 " Program required \"$p\" not installed."; exit 1; }
done
# Display usage if no parameters given
if [[ -z "$@" ]]; then
echo " ${0##*/} <video1.ext video2.ext> - join multipl... | true |
251d2000a78d6ddc74fa1bb6686b62fd63178f0b | Shell | castci/dotfiles | /tmux/tmux-start.sh | UTF-8 | 347 | 2.890625 | 3 | [] | no_license | #!/bin/bash
session='castci'
SESSIONEXISTS=$(tmux list-sessions | grep $session)
if [$SESSIONEXISTS = ""]
then
tmux new-session -d -s $session
tmux rename-window -t 0 'console'
tmux new-window -t $session:1 -n 'vim'
tmux select-window -t $session:1
tmux split-window -v
tmux resize-pane -D 10
fi
tmux at... | true |
aec46e76988a57920cfa15fed155e19e3da7daf7 | Shell | ArmstrongWall/programmer | /src/other/test_tool/semantic_segmentation_label/python_matlab/annotation/auto.sh | UTF-8 | 344 | 2.9375 | 3 | [] | no_license | #!/bin/bash
clear
rm -rf label_pic
mkdir label_pic
ls *.json > ls.txt
for line in $(cat ls.txt)
do
labelme_json_to_dataset ${line}
dirname=${line/./_}
pngfilename=${line%.*}'.png'
txtfilename=${line%.*}'.yaml'
cp ${dirname}/label.png ./label_pic/${pngfilename}
cp ${dirname}/info.yaml ./label_pic... | true |
77c4ada135d828406ac8bd897c358fbdf91960fe | Shell | xxxludixxx/bash-framework | /core/commands/core-upgrade/action.sh | UTF-8 | 3,385 | 3.859375 | 4 | [] | no_license |
BACKUP_DIR=""
UPGRADE_DIR=""
#Enter point of the command
function runAction() {
doBackup
doUpgrade
persistCurrentVersion
cleanupAfterUpgrade
info "Successfuly Upgrated ! :)"
}
function doBackup() {
BACKUP_DIR=$( createTmpDir )
debug "Making a backup of current core... (${BACKUP_DIR})... | true |
763e0689a5202a8920ac87ea7f7766d2938df074 | Shell | acb17ssp/Linux-Stage1 | /Day-6/EmpWageUsingFunction.sh | UTF-8 | 274 | 3.125 | 3 | [] | no_license | #!/bin/bash -x
isPartTime=1
isFullTime=2;
empRate=20;
randomValue=$((RANDOM%3))
function myFunc(){
salary=$(($empHrs*$empRate));
}
case $randomValue in
$isFullTime)
empHrs=8
myFunc
;;
$isPartTime)
empHrs=4
myFunc
;;
*) empHrs=0
myFunc
;;
esac
echo "Salary: $salary"
| true |
1f4379f0fe33dd395d9c8b37429a3a1e23e56895 | Shell | HemilModi/Hemil_Modi | /Lab_3/Shell_script_4.sh | UTF-8 | 297 | 3.53125 | 4 | [] | no_license | clear
echo "Enter one number_1:"
read num1
echo "Enter second number_2:"
read num2
if [ "$num1" -eq "$num2" ];
then
echo "Both numbers are equal!!!";
else
if [ "$num1" -gt "$num2" ];
then
echo "Number_1 is greater then number_2"
else
echo "Number_2 is greater then numbe_1";
fi
fi
| true |
064e02a02e41eedf3140ec39b99137538cb61d5e | Shell | cardboardci/docker-luacheck | /tools/luarocks.bash | UTF-8 | 625 | 3.46875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
apt update
apt install luarocks -y
# Emit the current versions
echo "Current versions"
cat provision/lualist
mv provision/lualist provision/lualist.bak
touch provision/lualist
while read line; do
echo "Working with ${line}"
input=(${line// / })
echo "Determining version for ${input}"
... | true |
1fcfa5cd6b9ba040552c2786a890275dcb4bb57a | Shell | cloudendpoints/esp | /script/linux-gae-instance | UTF-8 | 7,873 | 4.125 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
#
# Copyright (C) Extensible Service Proxy Authors
# 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 above copyright
# notice, th... | true |
64619948351684d5f65ec6fa9f5287e80b9c582b | Shell | vanadium23/doc484 | /scripts/doctypes | UTF-8 | 1,687 | 3.96875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
function gitfiles() {
root=$(git rev-parse --show-toplevel 2> /dev/null)
if [ ! -z "$root" ]; then
if [ "$1" == "." ]; then
# FIXME: limit to the paths below pwd
# echo "Processing all files in repository"
paths=$(git ls-files | grep "\.py$" | awk -v root... | true |
ff23f3157de47ac6999a092a74d4876158bd8cf1 | Shell | andybondar/jenkins-rally | /change_symlink.sh | UTF-8 | 733 | 3.140625 | 3 | [] | no_license | #!/bin/bash -x
if [ "$change_symlink" = "true" ] && [ ! -z "$snapshot_build_number" ] ; then
echo "=== Change symlink"
snapshot=$snapshot_build_number
ssh -oConnectTimeout=5 -oStrictHostKeyChecking=no -oCheckHostIP=no -oUserKnownHostsFile=/dev/null root@${STORAGE_IP} -p ${STORAGE_PORT} "rm -f /store/fuel_... | true |
f4f2790732f5401ec7a0eb6776875e9bf4004c15 | Shell | spinlockirqsave/scripts | /target_kgdb_setup.bash | UTF-8 | 914 | 3.78125 | 4 | [] | no_license | #!/bin/bash
# file target_kgdb_setup.bash
# author Piotr Gregor
# purpose Setup kgdb for remote debugging on target machine PHY1.
# details TARGET script.
# Set kgdb to use kgdboc via specified serial port.
# This script MUST be run AS root (sudo is not enough).
# date 5/12/2016 12:59
usage () {
... | true |
854c91698ab97eab6c3b870c8a91f77b6ecf57ee | Shell | stahta01/CocoPi3 | /scripts/backupBluetoothPairings.sh | UTF-8 | 619 | 3.15625 | 3 | [] | no_license | clear
echo -e "Backup any existing paired Bluetooth controller settings" > msg.txt
echo -e >> msg.txt
echo -e "This script will place an archived copy of your Bluetooth pairings" >> msg.txt
echo -e "into /media/share1/bluetooth_pairings.tgz." >> msg.txt
echo -e >> msg.txt
echo -e "Existing pairing(s):" >> msg.txt
echo... | true |
29fee52c0608cc5f3b889d33556029d9ecd0d15b | Shell | sakshisharma84/turnbuckle | /cgroup_test/setup_cgroups_direct.sh | UTF-8 | 1,205 | 3.015625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
mkdir -p /sys/fs/cgroup/cpu/cgtest/con1
mkdir -p /sys/fs/cgroup/cpuacct/cgtest/con1
mkdir -p /sys/fs/cgroup/cpu/cgtest/con2
mkdir -p /sys/fs/cgroup/cpuacct/cgtest/con2
echo "Current CPU share: con1"
/bin/echo 1024 > /sys/fs/cgroup/cpu/cgtest/con1/cpu.shares
cat /sys/fs/cgroup/cpu/cgtest/con1/cpu.shares
e... | true |
8fb2ce1481b68833f71dc339883046fe60f5b76e | Shell | FauxFaux/debian-control | /i/inn2/inn2_2.6.2-1_amd64/postinst | UTF-8 | 5,623 | 3.546875 | 4 | [] | no_license | #!/bin/sh -e
init_inn_files() {
PATHDB=$(/usr/lib/news/bin/innconfval pathdb)
if [ -z "$PATHDB" ]; then
echo "Cannot determine the database path, aborting."
exit 1
fi
cd $PATHDB
for file in active newsgroups; do
if [ ! -f $file ]; then
echo "Installing initial content for $PATHDB/$file"
... | true |
6201abe025375f5b1196c43b8c06d074e59e078d | Shell | AdamSharif-MSFT/AksScripts | /stopClusters.sh | UTF-8 | 333 | 2.96875 | 3 | [] | no_license | input=$(az aks list --query "[].[name, resourceGroup]" -o tsv)
echo $input | while IFS=$'\n' read -r line
do
clusterName=$(echo $line | awk '{print $1}')
resourceGroup=$(echo $line | awk '{print $2}')
echo stopping $clusterName in $resourceGroup
az aks stop --name $clusterName --resource-group $resourceGroup --... | true |
5cac85272ca3db9836a0b3721ae12cbe3b1ace13 | Shell | kyma-project/kyma | /hack/verify-lint.sh | UTF-8 | 2,759 | 4.09375 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# standard bash error handling
set -o nounset # treat unset variables as an error and exit immediately.
set -o errexit # exit immediately when a command fails.
set -E # needs to be set if we want the ERR trap
readonly CURRENT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
readonly R... | true |
8cddb597830ba2b6bfe4bfed45fcee1f59567d45 | Shell | banqusli/first | /praxis/cs16-1/parameter.bash | UTF-8 | 457 | 2.890625 | 3 | [] | no_license | #!/bin/bash
# Wie wurde Programm aufgerufen
echo 'Parameter 0: '$0
# Kommandozeilenparameter 1 bis 9
echo 'Parameter 1: '$1
echo 'Parameter 2: '$2
echo 'Parameter 3: '$3
echo 'Parameter 4: '$4
echo 'Parameter 5: '$5
echo 'Parameter 6: '$6
echo 'Parameter 7: '$7
echo 'Parameter 8: '$8
echo 'Parameter 9: '$9
# Hier wird... | true |
8ccf3bf337bc4c366844607390bfea8bacecd4f9 | Shell | gwuhaolin/myccnu | /auto.sh | UTF-8 | 513 | 3.1875 | 3 | [] | no_license | #自动部署脚本
#!/bin/bash
cd ~
dirName="myccnu"
serverWebPath="/opt/jetty/webapps/"
if [ -e "$dirName" ]
then
echo "$dirName已经存在,删除它"
rm -rf "$dirName"
fi
echo "创建文件夹$dirName"
mkdir "$dirName"
echo "从github上下载源代码"
git clone https://github.com/gwuhaolin/myccnu.git
echo "下载完成"
cd "$dirName"
echo "开始编译代码"
gradle war
echo "重... | true |
1282f11d7ec4cb9b8e3a7b8841b58d165a905d1c | Shell | jodunk/LearnKubernetes | /kamran/cluster-setup-scripts.NotUsedAnyMore/loadbalancers/loadbalancers.sh | UTF-8 | 1,472 | 3.703125 | 4 | [] | no_license | #!/bin/bash
# prepares lb nodes
SCRIPT_PATH=$(dirname $0)
pushd $(pwd)
cd $SCRIPT_PATH
echo "Installing HA software (Pacemaker, Corosync, haproxy, jq) on the load balancer nodes:"
for node in $(grep -v \# /etc/hosts| grep "lb[0-9]\." | awk '{print $2}'); do
echo "Processing node: ${node}"
scp /etc/hosts root@... | true |
1b5cf6407018d2176ddc9b9012eedb2dcbc81934 | Shell | gsaraogi/FI_2018 | /shell_scripts/db_obj_ddl_extract.bash | UTF-8 | 1,466 | 2.84375 | 3 | [] | no_license | #!/bin/bash
export script_name=`basename $0 .bash`
export bin_dir="/C/Users/gsaraogi/Desktop"
if [[ -f $bin_dir/prop.cfg ]];
then
. $bin_dir/prop.cfg
else
echo "Config file sql_config.cfg not found. Exiting..."
exit 1
fi
if [[ ! -f $bin_dir/obj_lst.csv ]];
then
echo "object list not found. Exiting..."
exit 2
fi
for ... | true |
c4aa3c3fa30646c072236f7231b9dfdb67b344c7 | Shell | codeallyio/cTask | /test.sh | UTF-8 | 545 | 3.328125 | 3 | [] | no_license | gcc -c -Wall -Wextra src/main.c src/utils.c src/trip.c
gcc -o travelAnalyzer main.o utils.o trip.o
rm *.o
count=0;
passed=0;
for f in $(find tests/in -name '*.in');
do
((count++));
dir=$(dirname $f);
name=$(basename $f);
./travelAnalyzer t <$f> tests/result.out
echo -n "TEST ${f##*/} : ";
if diff -q tests/r... | true |
72a0d99c3bb30a10905dea0b1090a0a31abb8405 | Shell | hodayaGamliel/docker-tests2 | /share/run.sh | UTF-8 | 838 | 3.21875 | 3 | [] | no_license | #!/bin/bash
# set -x
# HOST_URL=https://backend.takipi.com
TAKIPI_PROPERTIES_FILE="/opt/takipi/takipi.properties"
# SECRET_KEY=S10330#hYkm9nIxDxbZL/Ks#UCn8QfrACntPjjwUm7rAG7mbuXjEa7w614joKUtMMeE=#ad7e
# JAR=https://s3.amazonaws.com/app-takipi-com/chen/scala-boom.jar
# JAR_FILE=/tmp/share/jar-files/test6.jar
HOST_URL... | true |
11efdfd2106fd8e06948dc8e0feced0b2dd53b39 | Shell | leogouttefarde/InfraOpenstack | /provision/provision.sh | UTF-8 | 4,391 | 4.40625 | 4 | [] | no_license | #! /bin/bash
# This script fails if any command does.
set -eo pipefail
# Defining global parameters.
PROVISIONING_DIR=$(cd $(dirname $0) && pwd)
CONNECTION_DIR="${PROVISIONING_DIR}/../connection"
SSH_KEY="${CONNECTION_DIR}/g1"
# Lists all the available provisioning scripts, and prints a brief
# description of the la... | true |
861c85dd6a6883c3f4b8cdc8e3f64b0b4dacc493 | Shell | kskovpen/bTag | /LTAnalysis/test/CFIT/batch/job.sh | UTF-8 | 816 | 2.671875 | 3 | [] | no_license | #!/bin/sh
echo "$HOSTNAME"
cd ${hdir}/jobs/${pt}
export ROOTSYS=/cvmfs/cms.cern.ch/slc6_amd64_gcc491/lcg/root/6.02.00-odfocd4
ls $ROOTSYS/bin/thisroot.sh
source $ROOTSYS/bin/thisroot.sh
rootV=$(root-config --version)
echo "ROOT v${rootV} has been set up"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${hdir}/jobs/${pt}
e... | true |
d93612c121eae42a1251b6ab46c6fea6f3fb2290 | Shell | Fei00Wu/NTU_phonecall | /data_preparation_vic.sh | UTF-8 | 1,054 | 3.4375 | 3 | [] | no_license | #! /bin/bash
corpus=${1:-"data/corpus"}
numspk=${2-2}
data=${3:-"data"}
mkdir -p $data
tmp_audio=$data/tmp_audio
rm -rf $tmp_audio
mkdir $tmp_audio
./file_check.sh $data
for wav in $corpus/*; do
uttID=$(basename $wav)
uttID=${uttID%".wav"}
format=$(file $wav | cut -d, -f 3 | cut -d ' ' -f 3)
sampl... | true |
f141d57d8401c861a6e03ad6669c0fd0d60b9ded | Shell | Evercoast/EvercoastOpenSource | /bash_scripts/ec/registration/ec-reg-collapse-all.sh | UTF-8 | 421 | 3.046875 | 3 | [
"MIT",
"BSD-3-Clause"
] | permissive | #!/bin/bash
# example usage:
# ec-reg-collapse-all 1 100 ec-reg-collapse.sh
# 1 = start frame
# 100 = end frame
# ec-reg-collapse.sh = path to script
rm -f .ec_reg_collapse_all
ssls | grep "DEPTH" | awk '{print substr($1,3); }' | sed 's/-.*//g' > .ec_reg_collapse_all
while read l... | true |
d96edb3b10b4a0513ebac444c4945cdd35a6c5c6 | Shell | narci2010/springboot-jpa | /build.sh | UTF-8 | 897 | 2.921875 | 3 | [] | no_license | #!/bin/bash
source /etc/profile
MYIMAGE=192.168.3.188:8082/springboot/springboot-jpa
# uncomment if you need push
#docker login 192.168.3.188:8082 -u admin -p admin123
# stop all container
if [ -n "$(docker ps -q)" ]; then
docker kill $(docker ps -q)
fi
# remove all container
if [ -n "$(docker ps -aq)" ]; then
... | true |
86cb6ee2162640cde6c83c9abc523a513c2397bc | Shell | zoyoeproject/specgen | /verisimple.sh | UTF-8 | 1,093 | 3.703125 | 4 | [] | no_license | SPEC_BUILDER=./_build/default/llvmspec/specBuilder.exe
TMP_BC_FILE=./verimini.bc
if [ ! -f $TMP_BC_FILE ]; then
$(mktemp $TMP_BC_FILE)
fi
if [ $# -eq 0 ]
then
echo "no command specified"
exit 1
fi
if [ $1 = "create" ]
then
if [ $# -eq 2 ]
then
if [ -d $2 ]
then
echo ... | true |
b47a3d775a44b8186cde85d7e6e3646b3b3b075b | Shell | GAIGResearch/rhNEAT | /results_cog_2020/gvgai.sh | UTF-8 | 1,156 | 2.859375 | 3 | [] | no_license | #!/bin/sh
#$ -pe smp 1 #Request 10 CPU cores
#$ -l h_rt=80:00:00 # Request 7h 20m 10s of walltime
#$ -l h_vmem=2G # Request 2GB RAM for each core requested
#$ -M diego.perez@qmul.ac.uk # Sends notifications email to this address
#$ -m bea # Emails are sent on begin, end and abortion
#$ -t 1-20 # Index of the job array... | true |
30b26b915af2295d1f3caa26de106b069b04aa39 | Shell | sor88/Scripts | /kerio-vpn.sh | UTF-8 | 2,278 | 3.4375 | 3 | [] | no_license | #!/bin/bash
testzenity=$(sudo apt list | grep zenity-common)
if [ -n $"testzenity" ]; then
echo start # zenity --info --timeout=1 --width=300 --title="Установка zenity" --text="Zenity уже установлен"
else
zenity --info --timeout=1 --width=300 --title ="Установка Zenity" --text="Требуется установка графического интерф... | true |
e929031eab13dd306a7bbe74f4f951c5ffaaaad2 | Shell | selatotal/signalfx-agent | /scripts/patch-interpreter | UTF-8 | 356 | 3.578125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# The interpreter on all binary files will be set to the bundled interpreter.
set -eu
root=${1}
interpreter="${root%/}/bin/ld-linux.so"
echo "Setting interpreter on ${root%/}/bin/* to $interpreter"
cd $root
for f in ${root%/}/bin/* ${root%/}/jre/bin/*; do
${root%/}/bin/patchelf --set-interpreter $inte... | true |
982af56c98754212131468b601775c73b7b05b47 | Shell | cleric-sh/cleric | /sanity/bash/relative_paths/run.sh | UTF-8 | 365 | 3.078125 | 3 | [] | no_license | #!/usr/bin/env bash
#echo BASH_SOURCE_0: "${BASH_SOURCE[0]}"
#echo \$0: "$0"
echo $(realpath "$0")
#printf "\n"
#echo "Test 'src \$0' should return script's actual path, even when nested:"
$(dirname $0)/nested/exec-src.sh
#
#printf "\n"
#echo "Test 'src \$0' should return script's actual path, even when nested and s... | true |
f13b5fe5d56add953e99600cf64c5c763ba36c96 | Shell | Exp-Optimization-Tools/MapLib | /wrapper.sh | UTF-8 | 825 | 2.796875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
comm_matrix="./comm_matrix/APP/file.csv" #Update this line with the target communication matrix path
mappings=(peano hilbert gray sweep scan bokhari topo_aware greedy FHGreedy greedyALLC bipartition pacmap)
topologies=(mesh torus haec)
dimensions="4 4 4"
#dimensions="16 8 8" #Example of other topology dime... | true |
d2fcb1296ac3669f7630dbe841b875708f0feb1f | Shell | AlessioPsych/AnalysisAfni | /surfaces/generateSurfacesFromBoundaries.sh | UTF-8 | 966 | 3.671875 | 4 | [] | no_license | #!/bin/bash
BOUNDARYTHR=$1
SMOOTHPAR=$2
INFLATESURFACES=$3
INFLATEITERATIONS=$4
REMESHFRACTION=$5
if [ -z "$1" ]
then
echo
echo
echo 'generates the surfaces starting from a boundaries volume'
echo 'see defineBoundaries.sh for that'
echo
echo 'Inputs:'
echo 'BOUNDARYTHR=$1, e.g. boundariesThr.nii.gz, generated by defi... | true |
e21ead6624141ac8f898cb13a7b18fdbe099def4 | Shell | ccp4/dimple | /tests/test.sh | UTF-8 | 865 | 2.953125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh -e
test_dir=$(dirname $0)
dimple="$test_dir/../dimple"
echo "Run dimple on artificial thaumatin example"
$dimple "$@" $test_dir/thaumatin.* $test_dir/out/
exit
# test the command used in ccp4i gui
out2="$test_dir/dimple_pipeline"
$dimple $test_dir/thaumatin.mtz $test_dir/thaumatin.pdb \
--hklout $out2/... | true |
6b91a4a4e120054829437612d031c46b3d85275e | Shell | mickaelperrin/dotfiles-machine-mac-opensource | /zsh/includes/functions.d/git.sh | UTF-8 | 274 | 3.5625 | 4 | [] | no_license | # Git diff and new files
gdn() {
if test "$#" = 0; then
(
git diff --color
git ls-files --others --exclude-standard |
while read -r i; do git diff --color -- /dev/null "$i"; done
) | `git config --get core.pager`
else
git diff "$@"
fi
} | true |
bb30c9927514cab46b74b70062f7fc3fb7eff02b | Shell | ekfriis/farmout | /cmsRun.sh | UTF-8 | 10,894 | 4.0625 | 4 | [] | no_license | #!/bin/sh
#
start_time=`date "+%s"`
user_time=0
sys_time=0
jobcfgs=$1
shift
datafile=$1
shift
SRM_OUTPUT_DIR=$1
shift
if [ "$SRM_OUTPUT_DIR" = "." ]; then
# no SRM stage-out; files are being copied back to submit dir
SRM_OUTPUT_DIR=""
fi
if [ "$SRM_OUTPUT_DIR" != "" ]; then
SRM_OUTPUT_FILE="$SRM_OUTPUT_DIR/$dat... | true |
482d662a7110fbfa79a3b2e7d1c82747b0ddb789 | Shell | asonje/PAT | /PAT-collecting-data/WORKER_scripts/instruments/_common.sh | UTF-8 | 2,002 | 3.40625 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
#
# Copyright (c) 2015, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions an... | true |
ab9a11695de5ab45c27c1e9ab38fecb8548fec14 | Shell | kiranmehetre/nodejs-sensor | /packages/aws-fargate/images/test-images/build-and-push.sh | UTF-8 | 782 | 3.84375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -eo pipefail
cd `dirname $BASH_SOURCE`
source utils
NODEJS_VERSION=$1
if [[ -z "${NODEJS_VERSION-}" ]]; then
echo 'Missing parameter: Node.js version'
exit 1
fi
LINUX_DISTRIBUTION=$2
if [[ -z "${LINUX_DISTRIBUTION-}" ]]; then
LINUX_DISTRIBUTION=standard
fi
if [[ ! -f .env ]]; then
... | true |
831f3f014754c3d6ac42a2175cc18d02ad1e165d | Shell | akandimalla/terryscripts | /userinte.sh | UTF-8 | 226 | 3.03125 | 3 | [] | no_license | #!/bin/bash
#
# Script to demo echo and read command for user interaction
#
echo "Your good name please :"
read na
echo "Your age please :"
read age
neyr=`expr $age + 1`
echo "Hello $na, next year you will be $neyr yrs old."
| true |
050b1a4b8a79f0070d80a2f7faf8619cbcf1c8e9 | Shell | jocolloman/scl-mod-merger | /scripts/merge-modules.sh | UTF-8 | 1,350 | 3.796875 | 4 | [] | no_license | #!/bin/bash
TEXT_ASSETS="/repos/SCL-Text-Assets/Mod"
TMP="/tmp"
BASE="$TMP/scl-mod-merge-base"
BRANCH="branch"
if [ -e $TMP ]; then
rm $TMP -rf
fi
# Ensure Latest Text-Assets
cd $TEXT_ASSETS
git pull
# Ensure Latest Modules
cd /repos/scl-mods/
git pull
mkdir $TMP
cd $TMP
# Build up Base Files
git clone git@g... | true |
4d9f3b1d6f9eb878d2324ff246f3ca607c17ab3a | Shell | Akira1Saitoh/openjdk-tests | /external/payara-mp-tck/test.sh | UTF-8 | 854 | 2.875 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #/bin/bash
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distrib... | true |
7776a66c2fa143067187b3a8ff70e2381a817135 | Shell | Ragin-LundF/k8s-jcasc-management | /scripts/validator_utils.sh | UTF-8 | 2,254 | 3.8125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#########
## DO NOT USE THIS SCRIPT DIRECTLY!
## This script will be loaded by the 'k8s-jcasc.sh' script.
##########
# This functions will check, if the IP is correct
#
# argument 1: IP address
# argument 2: variable in which the result should be written (return value)
# true = IP address was c... | true |
7f32aae94f9380b34d42b574d8eca27bbb9cf230 | Shell | NajlaBH/gql-dg-tmp | /run_test.sh | UTF-8 | 422 | 2.859375 | 3 | [
"BSD-3-Clause",
"MIT"
] | permissive | #!/bin/bash
# Setup for returning a non-zero exit code if any of the command fails.
err=0
trap 'err=1' ERR
#Run the tests present inside generate project
python3 -m venv env
source env/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
#python manage.py migrate
#Run tests
python manage.py tes... | true |
cd3933f0a16682c88c2360301f7762a67850a39e | Shell | djsilenceboy/LearnTest | /Shell_Test/expansion_parameter.sh | UTF-8 | 1,055 | 3.40625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -v -x
# ":="
# Return default value, when unset or set but empty.
# And also change variable.
unset Var
echo ${Var:=123}
echo $Var
Var=
echo ${Var:=123}
echo $Var
# "="
# Return default value, when unset.
# And also change variable.
Var=
echo ${Var=123}
echo $Var
unset Var
echo ${Var=123}
echo $V... | true |
08ec372d00e106bf798415faf145afae8104fb0b | Shell | RickCogley/rc-script-and-config-archive | /mySQL/synctiki.sh | UTF-8 | 1,485 | 3.3125 | 3 | [] | no_license | #!/bin/bash
# $Header: /cvsroot/tikiwiki/tiki/doc/devtools/synctiki.sh,v 1.2 2004/01/02 23:19:28 mose Exp $
# that script runs intelligent syncronize operation.
# It reads db/local.php to find proper mysql info
# and duplicate db on a local mirror
#
# tested on debian only for now
#
# mose@tikiwiki.org
# Remote inf... | true |
2504315ba60891af238fc4eacc22c7adfff24fbf | Shell | AntonyMoes/ui5-system-programming | /lab2/date_setter.sh | UTF-8 | 1,096 | 3.78125 | 4 | [] | no_license | #!/bin/bash
OPTION=0
q=0
while [[ "$OPTION" -ne 5 ]]; do
clear
echo 1. Установить дату 2019-01-01
echo 2. Установить дату 2000-10-20
echo 3. Вернуть введенную дату и время
echo 4. Справка
echo 5. Выход
# Запрос нажатия клавиши
echo Введите номер пункта меню:
read OPTION
#... | true |
70cc12ccd0723c7efa00800280aea0d7d180c4e0 | Shell | totalgee/ofxLua | /scripts/test_project_in_app_dir.sh | UTF-8 | 645 | 3.46875 | 3 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | #! /bin/bash
WD=$(dirname $0)
APP="ofxLuaExample-beta"
###
cd $WD
# copy example
echo -e "\n== Copying example ==\n"
mkdir -p ../../../apps/myApps/exampleTest
cp -R ../example/* ../../../apps/myApps/exampleTest
# cd
cd ../../../apps/myApps/exampleTest
# build
echo -e "== Building ==\n"
xcodebuild -project $APP.x... | true |
af7b114c600eb5dc1acec97f08c21ffdc0eeb47d | Shell | Firebladee/docker_fly | /fly_script.sh | UTF-8 | 1,991 | 3.828125 | 4 | [] | no_license | #!/bin/bash
set -e
#set -u
set -o pipefail
ip=127.0.0.1
port=8080
config_file=concourse.yaml
username=test
passwd=test
help() {
printf '%s\n' "-c --concourse_ip = ip address of concourse. Default 127.0.0.1\n"
printf '%s\n' "-t --concourse_port = port of the concourse. Default 8080\n"
printf '%s\n' "-w --what_... | true |
5cb29519adc1aff66583c2de9651f493bb6df382 | Shell | apereo/cas | /ci/tests/puppeteer/scenarios/saml2-idp-login-concurrent/ready.sh | UTF-8 | 1,198 | 3.359375 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/bin/bash
echo "Running SAML2 server..."
echo "Accessing CAS SAML2 identity provider metadata"
curl -k -I --connect-timeout 10 https://localhost:8443/cas/idp/metadata
metadataDirectory="${PWD}/ci/tests/puppeteer/scenarios/${SCENARIO}/saml-md"
echo "Metadata directory: ${metadataDirectory}" && ls ${metadataDirectory... | true |
182c7b7cb24552d56eb68dc70c37ac9aa5d2820d | Shell | elbosso/expect-dialog-ca | /upload-ct-cert.sh | UTF-8 | 994 | 3.640625 | 4 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env bash
#This script is used to upload a pre certificate to a certificate log and receive the
#Signed Certificate Timestamp (SCT) for integration into the final certificate
#Because the return is a JSON structure, it has to be converted into the needed
#SCTList form that is needed by OpenSSL
if [ $# -ne... | true |
c3a8fea0850d38278deb7404e6650a9cfcffb9c7 | Shell | ManticoreProject/benchmark | /branches/black-scholes/benchmarks/scripts/work_stealing_stats_sh.in | UTF-8 | 6,327 | 3.359375 | 3 | [] | no_license | #!/bin/bash
#
# COPYRIGHT (c) 2008 The Manticore Project (http://manticore.cs.uchicago.edu)
# All rights reserved.
#
# See the README file for instructions.
MANTICORE_ROOT="@MANTICORE_ROOT@"
RESULTS_DIR="@MANTI_BENCH_RESULTS@"
SCRIPTS_DIR="@MANTI_BENCH_SCRIPTS@"
PMLC="@PMLC@"
SIZE=""
PROCS=""
SEQUENTIAL_BINARY="false"... | true |
56e12259b3ca0f29d7102218a0bda5713deec287 | Shell | rchicoli/daemon-it | /example/create-jail-pt2.sh | UTF-8 | 1,604 | 3.984375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# check that we ar running as root
if [ "$(whoami)" == "root" ] ; then
:
else
echo "Usage: !! run as root"
exit 1
fi
D="$1"
U="$2"
G="$3"
P="$4"
if [ -z "${D}" ] ; then
echo "Usage: create-jail-pt2.sh PathToJail UserToCreate GroupToUse ProgramName- ProgramName can not be empty"
exit 1
fi
if [ -z "$... | true |
425357b2b046e9d34d5080df6a30c18690f51ec7 | Shell | steeve/libtorrent-go | /swig | UTF-8 | 772 | 3.59375 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
if [ "$1" == "-go" ]; then
args=`getopt -a -q --long go,outdir:,module: -n ${0} -- "$@"`
swig_args=
while [ $# -gt 0 ]; do
case "$1" in
(-go) swig_args+="${1} ${SWIG_FLAGS}"; shift;;
(-module)
module=$2
swig_args+=" ${1} ${2} "
... | true |
1d76f71f8a02e5e4813fb3b82edc3dd87958dbcb | Shell | elzup/dotfiles | /scripts/install_mac.sh | UTF-8 | 909 | 3.484375 | 3 | [] | no_license | #!/bin/sh
set -e
set -u
setup() {
readonly DOTFILES=$HOME/dotfiles
readonly LAUNCHD=$HOME/Library/LaunchAgents
readonly PLISTFILE=$DOTFILES/sync.dotfiles.plist
if [ ! -d "$DOTFILES" ]; then
git clone https://github.com/elzup/dotfiles "$DOTFILES"
fi
symlink() {
ln -sf "$1" "$2"
}
declare -... | true |
a515e41e25d2508a9d86ed0d7a6bdaa004bf4f8d | Shell | yassineaboub/holberton-system_engineering-devops | /0x04-loops_conditions_and_parsing/7-clock | UTF-8 | 187 | 3.234375 | 3 | [] | no_license | #!/usr/bin/env bash
#script that displays the time for 12 hours and 59 minutes
i=0
while [ $i -lt 13 ]
do
echo "Hour:" $i
m=1
while [ $m -lt 60 ]
do
echo $m
(( ++m ))
done
(( ++i ))
done
| true |
ea2e14495613959d820dcfa73a1214f7671eb529 | Shell | tymaoz/bigbiocode | /Shells/GATK-workflow-TQ-Martin.sh | UTF-8 | 3,588 | 2.609375 | 3 | [] | no_license | #!/bin/bash
#echo Generating consensus sequences
#export PATH=$PATH:/home/username/bowtie2-2.1.0:/home/username/samtools:/home/username/samtools/bcftools:/home/username/samtools/misc
roots=(
Tauschii-all
)
#module load jdk
#module load GATK
#module load samtools
#module load bwa
#module load picard-tools
for x in ... | true |
3e2c690d6233d9a4b650215cdc85c6d3f1ac14af | Shell | jlkeesey/jlkdots | /future/durdn/.bashrc | UTF-8 | 10,913 | 3.328125 | 3 | [
"MIT"
] | permissive | # .bashrc
# Author: Nicola Paolucci <nick@durdn.com>
# Source: http://github.com/durdn/cfg/.bashrc
#Global options {{{
export HISTFILESIZE=999999
export HISTSIZE=999999
export HISTCONTROL=ignoredups:ignorespace
shopt -s checkwinsize
shopt -s progcomp
#!! sets vi mode for shell
set -o vi
if [ -f ~/.bash_aliases ]; th... | true |
aab97ba060c423038fad5d89413437e893149649 | Shell | jessewei/HDPLAB | /scripts/resourcemanager_run.sh | UTF-8 | 425 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if [ $# -lt 2 ]
then
echo "Usage: resourcemanager_run.sh <namenode_ip_address> <docker_image_name>"
exit
fi
docker run -link namenode:namenode -e namenode_ip=$1 -e NODE_TYPE=resourcemanager -dns 127.0.0.1 -p 8088:8088 -p 8032:8032 -p 50060:50060 -p 8081:8081 -p 8030:8030 -p 8050:8050 -p 8025:8025... | true |
108c2833e955f277261c29178ab1f98e0e94fa3a | Shell | aereal/dotfiles | /bin/git-catchup | UTF-8 | 258 | 3.109375 | 3 | [] | no_license | #!/bin/bash
# Catching up with upstream
set -e
command git fetch -q
develop_branch='staging/master'
upstream_ref=$develop_branch\@\{u\}
if git rev-parse @{u} 2>/dev/null; then
command git merge --no-ff $upstream_ref
else
git rebase $upstream_ref
fi
| true |
7018c08835dd8d7b63bb56e892c386e93fcb82e0 | Shell | TheSledgeHammer/2.11BSD_X44 | /tools/gdb/mknative-gdb.old | UTF-8 | 4,358 | 3.1875 | 3 | [
"BSD-3-Clause",
"BSD-4-Clause-UC"
] | permissive | #!/bin/sh
# $NetBSD: mknative-gdb.old,v 1.2 2020/10/09 23:48:42 rin Exp $
#
# Shell script for generating all the constants needed for a native
# platform build of src/contrib/gnu/gdb.old
#
# initialise
_TMPDIR=$2
_TOP=$3
_PLATFORM=$4
_MACHINE_SUBDIR=$5
_VPATH=`grep VPATH ${_TMPDIR}/Makefile | sed 's,^.*=[ ]*,,'`
_G... | true |
970c13d261cc2891495c1c262a09e0b8c6e900d3 | Shell | blu/gemm | /cxx_util.sh | UTF-8 | 4,700 | 2.765625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#
# update array CXXFLAGS with uarch-specific flags
#
function cxx_uarch_arm() {
# clang can fail auto-detecting the host armv8 cpu on some setups; collect all part numbers
VENDOR=`cat /proc/cpuinfo | grep -m 1 "^CPU implementer" | sed s/^[^[:digit:]]*//`
UARCH=`cat /proc/cpuinfo | grep "^CPU part" | se... | true |
d614d26e7de9cb8c194c7bf9e41e7c89a6aeb0d1 | Shell | punchagan/omnium-gatherum | /w_raise.sh | UTF-8 | 234 | 3.25 | 3 | [] | no_license | #!/bin/bash
found=0
for win in `xdotool search --class $1`;
do
if [ `xdotool get_desktop_for_window $win` -eq `xdotool get_desktop` ];
then found=1; break;
fi;
done
if [ $found -eq 1 ]; then xdotool windowactivate $win; else $1; fi
| true |
48cbba9133dcd1eb1c2c6250512814f0e8037321 | Shell | mandre/diskimage-builder | /elements/fedora-minimal/install.d/99-ramdisk | UTF-8 | 836 | 3.671875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
# The RPM postinst packages for "kernel-core" have used kernel-install
# to (quoting from man)
#
# add KERNEL-VERSION KERNEL-IMAGE
# kernel-install creates the directory /boot/MACHINE-ID/KERNEL-VERSION/
# and calls ever... | true |
7dec10bab60f64bae6971f5ffd54994ec4baf7fb | Shell | KrbAlmryde/Utilities | /Dichotic/adwarp_dich.sh | UTF-8 | 1,754 | 2.96875 | 3 | [
"MIT"
] | permissive | . $UTL/${1}_profile
cd ${run_dir}
####################################################################################################
echo "------------------------------------- adwarp_tap.sh -------------------------------------"
echo "---------------------------------- ${subbrik} ------------------------------------... | true |
c34e54b939f9154eea2fde7ef2bf4333b2a5bf85 | Shell | pangfumin/hfnet | /colmap-helpers/example_scripts/run_robotcar_sift.sh | UTF-8 | 959 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
image_dir="images"
sift_db="overcast-reference.db"
nvm_file="all.nvm"
temp_model="robotcar_temp_sift_model"
final_model="robotcar_sift_model"
# Fix the inconsistency in the image file extension.
# The database fill be updated to JPG file paths.
python3 robotcar_db_png_to_jpg.py --db_file ${sift_db}
# Upda... | true |
9bfd541d5e796796266da5f2b8386a0cecdca710 | Shell | scholix/scholix-consumer-api | /cli/import | UTF-8 | 382 | 2.734375 | 3 | [] | no_license | #!/bin/sh
FILE=$1
# Elasticsearch config
SERVER=http://localhost:9200
INDEX=scholix
TYPE=link
# Tools config (add your install dir, if not in path)
JQ=jq
curl -s -XDELETE "$SERVER/$INDEX"
curl -s -XPUT "$SERVER/$INDEX" --data-binary @indexconfig.json
cat $FILE | $JQ --compact-output '.[].link | {"index": {}}, .' |... | true |
727574a2c84027251c17357458bf351ec755d8df | Shell | s4mur4i/leats-install | /mount.sh | UTF-8 | 1,550 | 3.953125 | 4 | [] | no_license | #!/bin/bash
###########
# Install Desktop system
#
#
####
# Functions
do_mount() {
mkdir /target >$OUT 2>&1
mount $TARGET"2" /target >$OUT 2>&1
mkdir -p /target/boot >$OUT 2>&1
mount $TARGET"1" /target/boot >$OUT 2>&1
mount --bind /dev /target/dev >$OUT 2>&1
mount -t proc none /target/proc >$OU... | true |
8cc673e8eaf96da019cdbef73d10c19c80b7db14 | Shell | adammichaelwilliams/591-scripts | /run.sh | UTF-8 | 1,293 | 3.34375 | 3 | [] | no_license | # Use: ./script/run.sh {{bottleName}} {{optionsFile}}
#!/bin/sh
echo "bottleName: " $1
echo "optionsFile: " $2
echo "inputGenFile: " $3
# Create inputGen files
./script/inputGen.sh $3
DIR=~/CDNsim/output/
BOTTLEDIR=~/CDNsim/output/$1/
if [ ! -d "$DIR" ]; then
mkdir ~/CDNsim/output
fi
if [ ! -d "$BOTTLEDIR" ]; t... | true |
d52b7e81e76ba2d43e33dec2315966f538cf4d08 | Shell | jamochl/proxmox-config | /scripts/libraries/cimgsetup.sh | UTF-8 | 2,336 | 3.96875 | 4 | [] | no_license | # Common functions for use in setting up cloud images
# From 9000
cimgsetup::first_available_template() {
local num=9000
set -e
for vm_id in \
$(qm list | awk '{print $1}' | grep --perl-regexp '9\d{3}')
do
if [[ $num -eq $vm_id ]]; then
num=$(($num + 1))
else
... | true |
32ab4bd4d185477fc42a9f12c76a4ef8d1c90f70 | Shell | syluccy/enzoldhazam-cli | /enzoldhazam_v1.1.sh | UTF-8 | 2,544 | 3.484375 | 3 | [] | no_license | #!/bin/bash
case "$1" in
login)
echo -n "Username: "
read USER
echo -n "Password: "
read -s PASS
echo -n "Bathroom thermostat ID: "
read THERM_BR
echo -n "Master bedroom thermostat ID: "
read THERM_MB
echo -n "Second bedroom thermostat ID: "
read THERM_SB
echo -n "Livingro... | true |
abe36f38c25aed22fc27733cf980a739c1c78b2b | Shell | ipudu/leetcode | /solutions/192_word-frequency.sh | UTF-8 | 836 | 3.78125 | 4 | [] | no_license | #Write a bash script to calculate the frequency of each word in a text file words.txt.
#
#For simplicity sake, you may assume:
#
#words.txt contains only lowercase characters and space ' ' characters.
#Each word must consist of lowercase characters only.
#Words are separated by one or more whitespace characters.
#Examp... | true |
6d343006df17bde5d62c126b928eff38dc1e012c | Shell | macisamuele/loader-rs | /scripts/cargo-features.sh | UTF-8 | 942 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -euo pipefail -o posix -o functrace
if echo "${RUST_TOOLCHAIN:-stable}" | grep --quiet "^nightly" ; then
features_to_ignore=""
else
features_to_ignore="$(grep -v '#' features-enabled-on-nightly-only 2> /dev/null || true)"
if [ "${features_to_ignore}" != "" ]; then
echo "Igno... | true |
65869ffb3cdc90c0adc7d4fdd1dca04d3621ec7c | Shell | dracorp/offline-upgrade | /offline-upgrade.sh | UTF-8 | 6,816 | 3.875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#===============================================================================
#
# FILE: offline.upgrade.sh
#
# USAGE: ./offline.upgrade.sh
#
# DESCRIPTION: Offline upgrade Archlinux's packages
#
# REQUIREMENTS: makepkg, pacman
# BUGS: ---
# NOTES: ---
# ... | true |
2deaacc4a672c2d20492bb7e8800115e70f5ced3 | Shell | Zahidsqldba07/HackerRank-Solutions-1 | /linux/looping-and-skipping.sh | UTF-8 | 94 | 3.046875 | 3 | [] | no_license | for item in {1..99}
do
if [[ $(($item % 2)) == 1 ]]; then
echo $item
fi
done
| true |
c5fc4fee6714ca4cf718f2a6308cab6d44923011 | Shell | number5/dotzsh | /zshrc/30-aliases | UTF-8 | 2,141 | 2.75 | 3 | [] | no_license |
# ip on mac (use iproute2mac instead)
#alias ip="ifconfig | grep 'inet ' | grep -v 127.0.0.1 | awk '{print \$2}'"
# terraform
alias tplan='terraform plan -refresh -out=plan.b'
alias ae='asdf exec'
alias gc='git gc --prune=now'
alias gbm='git branch --merged'
alias gfc='git fetch origin'
alias gpull='git pull --reba... | true |
3b6a5fb60846384d7c2d4075e58b4553dd07b68e | Shell | Jac21/CustomGitCommands | /scripts/util/git-sparse-checkout-dir.sh | UTF-8 | 271 | 3.328125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
#
# git-sparse-checkout-dir
#
# Quick sparse checkout and directory set combination script
dir="$*"
if [[ -z ${dir} ]]; then echo "ERROR: Repository directory is required for checkout" & exit 1; fi
git sparse-checkout init --cone
git sparse-checkout set $dir | true |
b650e6c1767b83bf4d8106706a10542993a094d8 | Shell | ZJU-SEL/kubernetes | /cluster/gce/templates/mount-pd.sh | UTF-8 | 2,482 | 3.65625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright 2014 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | true |
21c240a4bbd1e96410b7a73891b6cb305f12c088 | Shell | wbuck/gymon | /scripts/gymon | UTF-8 | 1,621 | 4.1875 | 4 | [] | no_license | #!/bin/sh
#
# processname: gymon.out
# pidfile: /var/run/gymon.pid
# chkconfig: 5 99 01
# description: Starts the gymon service
# Source function library.
. /etc/rc.d/init.d/functions
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="gymon"
NAME=gymon
DAEMON=/opt/delphax/gymon/bin/${NAME}.out
DAEMON_ARGS="-p... | true |
a00c653cf9ba6120ea9d2b6018c5768580997467 | Shell | knomi/LevelDB-Cocoa | /LevelDB/version.bash | UTF-8 | 3,016 | 3.765625 | 4 | [] | no_license | #!/bin/bash
# Xcode: Set version and build number from Git
# --------------------------------------------
#
# This script sets the version number `CFBundleShortVersionString` to one of
#
# - `1.2.3` -- for the tagged commit `v1.2.3` or a hyphen-separated prerelease,
# e.g. `v1.2.3-alpha`, `v1.2.3-alpha.2`, `v1.2.3-b... | true |
05d9b106828d791940653228db8a71b9aa9ef4af | Shell | swarodaya/website | /newpost.sh | UTF-8 | 130 | 2.546875 | 3 | [] | no_license | ((!$#)) && echo Did not create post. Need title. && exit 1
post=blog/$(date +%Y%m%d)-$1.markdown
hugo new $post
vim content/$post
| true |
e266b0af85b18a944aa212f060a1055ebeaaff0c | Shell | ahmed-youssef/yRouter | /src/del_iface.sh | UTF-8 | 364 | 2.640625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# Author: Ahmed Youssef
# Date: April 2015
# This script is used by the WGINI server to delete
# the wlan interface that was created for the yRouter
# takes as input the interface name.
NAME=$1
uci delete network.$NAME
uci delete wireless.$NAME
uci delete dhcp.$NAME
uci delete firewall.z_$NAME
uci delete ... | true |
95201c20b5008dd56ab7b589df8d3e26c45a0f2c | Shell | InesdeSantiago/BaalChIP | /inst/extra/run_simulations.sh | UTF-8 | 4,639 | 3.359375 | 3 | [] | no_license | #!/bin/sh
#BSUB -o BEdup.out.log
#BSUB -e BEdup.err.log
#BSUB -a R
#########################################################################################
# Will perform simulated set of reads for a list of SNP locations
# It is build to work within BaalChIP R package pipeline
# ---*---
#Arguments:
# ---*---
#picard... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.