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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
c35fbd65771a013e8b8f27d311ee48fbdebe9509 | Shell | sparkmbox/scripts | /xuguilian/test/path1.sh | UTF-8 | 366 | 3.53125 | 4 | [] | no_license | #!/bin/bash
find -name "*.*" > ~/file.txt
#cp ~/file.txt ~/file1.txt
num=1
while [ ${num} -gt 0 ]
do
exec < ~/file.txt
num=`wc -l ~/file.txt | awk '{print $1}'`
# echo ${num}
if [[ ${num} -gt 0 ]];then
read a1
# echo $a1
path=${a1}
dirname ${path} >>path.txt
sed -i '1d' ~/file.txt
fi
done
#rm -rf ~/file.t... | true |
558743d64c0a13b257c0130ee64a8b982f5b72a6 | Shell | jrock2004/dotfiles | /files/.config/rofi/scripts/screenshot.sh | UTF-8 | 704 | 3.296875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
## Author : Aditya Shakya
## Mail : adi1090x@gmail.com
## Github : @adi1090x
## Twitter : @adi1090x
dir="$HOME/.config/rofi/styles"
rofi_command="rofi -theme $dir/three.rasi"
# Options
screen=""
area=""
window=""
# Variable passed to rofi
options="$screen\n$area\n$window"
chosen="$(echo... | true |
782a5d4eeb992129d11dea952ad25729f87fb0e9 | Shell | mtangh/dot-bashrc | /files/etc/bash.bashrc.d/99user_bashrc.sh | UTF-8 | 808 | 3.171875 | 3 | [
"BSD-3-Clause"
] | permissive | # ${bashrc_dir}/99user_bashrc.sh
# $Id$
: "user_bashrc" && {
# No Unset Off
set +u
# User local .bashrc file(s)
for dot_bashrc in $( {
__pf_rc_loader -r "${HOME}"/{.bash,}.bashrc
} 2>/dev/null || :; )
do
[ -f "${dot_bashrc}" ] ||
continue
[[ "${BASH_SOURCE[@]}" \
=~ .*\ ${dot_bashrc... | true |
05977affc505e9ed39448417b4db23eadf095352 | Shell | syspimp/openstack | /scripts/openstack-convert-vmdk-to-image.sh | UTF-8 | 679 | 3.796875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
DATASTORE=/var/lib/nova/instances
if [ ! "$1" ]
then
echo "need file name ( minus .vmdk ) vmdk in ${DATASTORE} to convert. "
echo "example PBX if exists ${DATASTORE}/PBX.vmdk"
fi
FILE="$1"
pushd ${DATASTORE}
if [ -e "${DATASTORE}/${FILE}-flat.vmdk" ]
then
echo converting $FILE
if [ ! -e "./${FILE}.... | true |
d390d800cd41415f005fae7cf646edf1303a5a46 | Shell | mcavazotti/Ray-Tracing | /InOneWeekendCUDA/runTests.sh | UTF-8 | 966 | 3.078125 | 3 | [] | no_license | BLOCK_X_SIZES=( 1 2 4 8 16 32 )
BLOCK_Y_SIZES=( 8 32 64 128 256 512 1024 )
REPETITIONS=10
echo "Block dimention, Iterative Time(ms), Recursive Time(ms)" > data.csv
for x in "${BLOCK_X_SIZES[@]}"
do
for y in "${BLOCK_Y_SIZES[@]}"
do
TOTAL_ITER=0
make clean
make ARGS="-DREC_MAX_DEPTH=5 -DBLOCK_X=$x -DBLOCK_Y=$y... | true |
a0f4e6eedfc837239f29a6c1e078002d24d7a2dd | Shell | Uetty/shells | /certbot/certbot-generate.sh | UTF-8 | 1,134 | 3.21875 | 3 | [] | no_license | #!/bin/bash
# sudo yum install epel-release
# sudo yum install snapd
# sudo systemctl enable --now snapd.socket
# sudo ln -s /var/lib/snapd/snap /snap
#https://certbot.eff.org/lets-encrypt/centosrhel7-nginx
#sudo snap install core
#sudo snap refresh core
#sudo snap install --classic certbot
#sudo ln -s /snap/bin/certb... | true |
69d6458a60dff2fd68ad2846888d14b913628f4b | Shell | HiDeStore/HiDeStore | /script/benchmark.sh | UTF-8 | 333 | 2.546875 | 3 | [] | no_license | #!/bin/bash
dataset="kernel"
kernel_path="/home/lpf/workspace/kernel_data_debug/"
#kernel_path="/home/lpf/workspace/kerneldata/"
path=$kernel_path
./rebuild
> log
./build/destor $path > log
#for file in $(ls $path); do
# ./build/destor $path/$file >> log
#done
./script/split.sh
./script/dedup_split.sh
./script/fil... | true |
80e3c4e1e96a94e78fcb03eeaadd15acb34f7766 | Shell | adisubagja/custom-openwrt | /gas.sh | UTF-8 | 6,817 | 2.71875 | 3 | [] | no_license | #!/bin/bash
#========================================================================================================================
# https://github.com/ophub/amlogic-s9xxx-openwrt
# Description: Automatically Build OpenWrt for Amlogic S9xxx STB
# Function: Diy script (After Update feeds, Modify the default IP, hostn... | true |
cb6b32f2779e9bd85c6fb9266ad6e5a9adfcbf3f | Shell | jianlianggao/dhcp-structural-pipeline | /scripts/misc/structure-data.sh | UTF-8 | 7,120 | 3.328125 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
usage()
{
base=$(basename "$0")
echo "usage: $base entries.csv results_dir release_dir
This script uploads all the results.
Arguments:
entries.csv Entries for the subjects (subjectID-sessionID) used for the release
release_dir The directory used for the release.
data_dir ... | true |
fce46904a2bf4f80bd7d990750184f21d5b41286 | Shell | moneytech/che | /test.sh | UTF-8 | 360 | 3.09375 | 3 | [
"MIT"
] | permissive | if [ ! -d bin ]; then
mkdir bin || exit 1
fi
for i in prog/*.c; do
name=`basename $i`
echo $name
./che build "$i" "bin/$name" || exit 1
done
# ./che lexer < prog/lexer.c > lexertest.php.txt
# ./bin/lexer < prog/lexer.c > lexertest.che.txt
# diff --suppress-common-lines lexertest.php.txt lexertest.che.txt || echo ... | true |
09a7059d6e3598ec20ef702ed7d5f30f16ca8fff | Shell | raejoon/graph-process | /experiments/solo-alpha-convergence-experiment/RUNME.sh | UTF-8 | 1,123 | 3.546875 | 4 | [] | no_license | #!/bin/bash
set -e
ROOT_DIR=../../
GRAPH_DIR=./graphs/
LOG_DIR=./logs/
ANALYSIS_DIR=./analysis/
FIG_DIR=./figs/
rm -rf $GRAPH_DIR
rm -rf $ANALYSIS_DIR
rm -rf $FIG_DIR
mkdir empty_dir
rsync -a --delete empty_dir/ $LOG_DIR
rm -rf $LOG_DIR
rmdir empty_dir
mkdir $GRAPH_DIR
mkdir $LOG_DIR
mkdir $ANALYSIS_DIR
mkdir $FIG_D... | true |
3e1134f2d56c17d37ae42036ce5793d94ddff339 | Shell | HaMster21/dotfiles | /zsh/prompt.zsh | UTF-8 | 1,428 | 3.390625 | 3 | [
"MIT"
] | permissive | precmd() {
export RPROMPT="$(git_quickinfo)$(last_exitcode)"
export PROMPT="$(current_user)@$(current_machine)$(directory_name)$(prompt_symbol) "
}
current_user() {
if [[ -n $SSH_CONNECTION ]]; then
#react to running ssh session
else
if [[ $(id -u) -eq 0 ]]; then
echo "%{$fg[brightred]%}root%... | true |
7c96878785d3db0dfe47177bd27e55a64d87a0d8 | Shell | MerrimanLab/GenomicPred | /scripts/riskscore.sh | UTF-8 | 4,112 | 2.96875 | 3 | [] | no_license | # assume a directory structure with software, data directories
# data contains keepfiles for lists of samples labelled keep????.txt and bed, bim, fam files. also contains a residuals.csv
# with ID and columns of residuals
# software contains the GCTA, LDAK and BayesR tools
# run commands from the base directory, script... | true |
2fbf7f09083663fa62cdcf718cd25899c389fb7e | Shell | GiovanniCS/PanDelosFragments | /main.sh | UTF-8 | 2,535 | 4.125 | 4 | [] | no_license | #!/bin/bash
cd `dirname $0`
chmod +x align_to_candidate_genome.sh
chmod +x align_to_reconstructed_genome.sh
chmod +x gene_prediction.sh
chmod +x chromosomer_genome_recontruction.sh
genome=$1
if [[ -f $genome ]]
then
reference_genome=$3
if [[ -z "$reference_genome" || ! -f $reference_genome ]]
then
echo "ER... | true |
6fb8e605080f934fb7d42ba731f5a1bb495c6d19 | Shell | hassan11196/OSA1 | /shell_calc.sh | UTF-8 | 268 | 3.078125 | 3 | [] | no_license | echo -e "\nShell_calc Script arguments : $1 and $2"
num1=$1
num2=$2
sum=$(($1+$2))
sub=$(($1-$2))
mul=$(($1*$2))
div=$(($1/$2))
echo "Sum of $1 and $2 = $sum"
echo "Difference of $1 and $2 = $sub"
echo "Product of $1 and $2 = $mul"
echo "Quotient of $1 and $2 = $div" | true |
833f5e84df655f897853f7c7335dbf59fd2c14d6 | Shell | SchellDa/cautious-lamp | /scripts/shiftHephyByTable.sh | UTF-8 | 437 | 3.515625 | 4 | [] | no_license | #!/bin/bash
checkTbEnv.sh && exit 1
if [ $# -ne 1 ]; then
echo "Usage: $0 CSV-FILE"
echo ""
echo "A CSV file with three columns (MPA-RUN REF-SHIFT TEL-SHIFT)"
echo "is expected by this script."
fi
counter=0
csvfile=$1
for line in `cat $csvfile`; do
IFS=","
set -- $line
echo "Start Run $1"
if [ `expr $counter ... | true |
e3ebad30347c8266aae38a99a2317d3d7f51191f | Shell | ansemjo/dotfiles | /bash/aliases.d/fsnoise.sh | UTF-8 | 607 | 3.90625 | 4 | [] | no_license | #!/usr/bin/env bash
# create some "filesystem noise" in the current directory by
# creating directories and files randomly
fsnoise() {
D=$1; F=$2; R=${3:-30};
if [[ -z $D ]] || [[ -z $F ]]; then
printf 'fsnoise a..f 0..9 [rand%%]\n' >&2
printf ' ^dirs ^files ^percentage\n' >&2
return 1
... | true |
ab56ef06bbefadaa67c8c551457ea3a6d0c0a167 | Shell | ahmadassaf/oh-my-zsh | /themes/gaudi/segments/docker.zsh | UTF-8 | 2,366 | 3.890625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env zsh
#
# Docker
#
# Docker automates the repetitive tasks of setting up development environments
# Link: https://www.docker.com
# ------------------------------------------------------------------------------
# Configuration
# ------------------------------------------------------------------------------... | true |
8ad3987954497b7cf828a3d2c5e969055ecab331 | Shell | jianxiamage/Proj_TestResults | /TestResult_Project_ver0.3/Extended_GetResultsXls/Summary_Excel_Select.sh | UTF-8 | 2,056 | 3.59375 | 4 | [] | no_license | #!/bin/bash
#set -e
#功能:
#多线程执行程序,可以设置测试节点的每个测试用例的测试结果(标记:初值->1,成功->0)
#最终目的是便于之后为在前端展示测试用例的执行结果而做的结果文件
if [ $# -ne 2 ];then
echo "usage: $0 TestType Platform"
exit 1
fi
#----------------------------------------------------------------------------------------
TestType="$1"
Platform="$2"
#-------------------------... | true |
792d01afdb1c6bb3ba567d694ba99adaac109e9f | Shell | AgnitumuS/letv | /puppet/modules/ats_cloud/templates/records.config.sh | UTF-8 | 2,213 | 3.3125 | 3 | [] | no_license | #!/bin/bash
# newcdn ats records.config
tmp_conf="/etc/trafficserver/records.config_tmp"
record_conf="/etc/trafficserver/records.config"
store_conf="/etc/trafficserver/storage.config"
disk_key=0
ssd_key=0
function get_root_disk()
{
echo `lsblk -nl | grep SWAP | awk '{print $1}' | grep -o "[a-z]*"`
}
root_disk=$(get... | true |
128cd3d299ed17c8d7eb24ea1ca8fa584c4cb782 | Shell | vdesabou/kafka-docker-playground | /connect/connect-datadiode-source-sink/datadiode.sh | UTF-8 | 2,299 | 2.859375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
source ${DIR}/../../scripts/utils.sh
${DIR}/../../environment/plaintext/start.sh "${PWD}/docker-compose.plaintext.yml"
log "Creating DataDiode Source connector"
playground connector create-or-update --connector datadiode-source << ... | true |
def06b3001e5b0e1b2440d809186ef416ee7f9c9 | Shell | rigel-eva/rigelPortfolio | /start_server.sh | UTF-8 | 607 | 3.140625 | 3 | [] | no_license | #! /bin/bash
until PGPASSWORD=$DATABASE_PASSWORD psql -h "$DATABASE_HOST" -U "$DATABASE_USER" -c '\q'; do
>&2 echo "Postgres is unavailable - sleeping"
sleep 1
done
>&2 echo "Postgres is up!"
if [ -f ready]; then
>&2 echo "Subsequent run detected - Skipping setup, starting main program"
else
>&2 echo "Initi... | true |
dc04857425b21f0ccde2e875fb3e88183589ade2 | Shell | longzl2015/long12356 | /run_service.sh | UTF-8 | 351 | 2.671875 | 3 | [] | no_license | #!/bin/sh
basePath=$(dirname "$0")
cd "${basePath}" || exit
npm install;
npm install hexo-deployer-git --save;
npm install hexo-filter-plantuml --save;
npm install hexo-generator-searchdb --save;
npm install hexo-server --save;
#npm audit fix;
echo "清空旧数据"
hexo clean
echo "生成静态文件"
hexo g
echo "启动服务"
hexo server
... | true |
7555a6ad2ceb5b8c38d5b071f36b92f44b6cf9a5 | Shell | RoyWarwick/CCSE-Blue-Team | /security/security-unit-installation.sh | UTF-8 | 2,247 | 3.703125 | 4 | [] | no_license | #!/bin/bash
# This file is for enabling a machine to act as a security unit.
echo
echo "#### Security Unit ####"
echo
echo "+---------------------+"
echo "| Installation Script |"
echo "+---------------------+"
echo
if [[ $EUID != 0 ]]
then
echo "This script must be run as the superuser." >&2
echo "Exit statu... | true |
134508a2771f4ab5f23990411410de8a3dfe6927 | Shell | js-scala/play2-on-dotcloud | /playframework/builder | UTF-8 | 349 | 3.0625 | 3 | [] | no_license | #!/bin/bash
set -e
BUILDROOT="$(dirname "$0")"
echo 'Installing application'
rm -rf ~/application
cp -R ./$SERVICE_APPROOT ~/application
echo 'Symlinking application logs to Supervisor area...'
rm -rf ~/application/logs
ln -s /var/log/supervisor ~/application/logs
echo 'Installing run script...'
cp "$BUILDROOT/run... | true |
a84703417e8dd38df0952d1f498fe6d56735ed89 | Shell | cloudera/hue | /tools/ops/create_userprofile_json.sh | UTF-8 | 1,985 | 2.9375 | 3 | [
"CC-BY-3.0",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0",
"Unlicense",
"LGPL-3.0-only",
"CC0-1.0",
"LicenseRef-scancode-other-permissive",
"CNRI-Python",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-2.0-or-later",
"Python-2.0",
"GPL-3.0... | permissive | #!/bin/bash
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use ... | true |
0b460736070094ec40cce4b910fe49e622ca632a | Shell | hemna/oh-my-zsh | /plugins/installer/installer.plugin.zsh | UTF-8 | 718 | 3.578125 | 4 | [
"MIT"
] | permissive | #!/bin/zsh
#
# System agnostic installer aliasing
#
# Assumes if you are on a mac, brew is used
# Suse = zypper
# ubuntu/debian = apt
# Redhat = yum
#
source "${0:h}/core.sh"
case $OS in
'mac')
alias in='brew install'
alias up='brew upgrade'
;;
'linux')
if [[ "$DIST" == "ubuntu... | true |
15a8c34f7b16d4ec70b4bc9e26beff547d81e4e5 | Shell | nhanhoangtran/shared_mem_with_mmap_unrelated_processes_example | /run.sh | UTF-8 | 491 | 3.140625 | 3 | [] | no_license | #!/bin/bash
function is_linux
{
if [[ "$(uname)" == "Linux" ]]; then
echo 1
return
fi
echo 0
}
SET="set"
GET="get"
CFLAGS=""
LDFLAGS=""
if [[ "$(is_linux)" == "1" ]]; then
LDFLAGS="-lrt"
fi
cc ${CFLAGS} -o ${SET} ${SET}.c ${LDFLAGS}
cc ${CFLAGS} -o ${GET} ${GET}.c ${LDFLAGS}
./${SET} &
if [[ "$(is_linux)"... | true |
3d592aead02e6179b5e863e39cc087db228e2f60 | Shell | sbortman/ossim-ubuntu | /builder/build-kakadu.sh | UTF-8 | 229 | 2.59375 | 3 | [] | no_license | #!/bin/bash
cd /work/ossim-private/kakadu/${KAKADU_VERSION}
# for x in $(grep -l pthread_yield\(\) $(find . -type f)); do
# sed -i 's/pthread_yield();/sched_yield();/g' $x
# done
cd make
make -f Makefile-Linux-x86-64-gcc | true |
1acf86e99b724e3e42b20f7565d504cc9ba42104 | Shell | himanshugharat/Shell_Programming_constructs | /sequence/ifProblems/placeNumbers.sh | UTF-8 | 907 | 3.796875 | 4 | [] | no_license |
#program that takes day and month from command line and prints true if day of month is between
#march 20 and june 20 false otherwise
#!/bin/bash -x
read -p "Enter the month : " month
echo $date
read -p "Enter the date : " month
echo $month
if [ "$month" == "MARCH" -o "$month" == "March" -o "$month" == "march" ]
the... | true |
056ac091ef6bbfa1979901a3f28742288f5c1f81 | Shell | ruebenramirez/dev-elk-stack | /2-load-up-some-data.sh | UTF-8 | 380 | 3 | 3 | [] | no_license | #!/bin/bash
# does the dir exist
if [ ! -d data ]; then
mkdir data
fi
# have we already downloaded shakespeare?
if [ ! -f data/shakespeare.json ]; then
curl -o data/shakespeare.json http://www.elasticsearch.org/guide/en/kibana/current/snippets/shakespeare.json
fi
# put the data into elasticsearch
curl -XPUT ... | true |
af6001904ced6e2fd417005c553de914924ff4f2 | Shell | marekolsak/fastgrid | /tests/bench_web.sh | UTF-8 | 1,136 | 3.140625 | 3 | [] | no_license | #!/bin/bash
run_it()
{
echo -n "$fg_executable $1 $2: " >> bench_results_web
./rungridmol.sh $1 $1 $1 $2 2>&1|tail -n 1 >> bench_results_web
tail -n 1 bench_results_web
}
bench_one()
{
export fg_executable=fastgrid4
run_it $1 $2
export fg_executable=autogrid4
run_it $1 $2
export fg_exe... | true |
d50119418bf3c440b4b2e3b20d2ec2f5c6aebe0c | Shell | nategraff-sifive/zephyr-board-template | /customize_board.sh | UTF-8 | 1,165 | 3.9375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
echo "Customizing board template for SiFive Freedom E-Series Chip"
BOARD_NAME=${PWD##*/}
BOARD_IDENTIFIER=$(echo $BOARD_NAME | sed -e 's/-/_/g' | tr '[:lower:]' '[:upper:]')
echo "Using the name of the containing folder for the board identifier: $BOARD_NAME"
echo "Using the upcase of that as an identifie... | true |
48f6192f51a4f8bfaad9e0dc8aa8b423d87d1a13 | Shell | kshub44kamble/BootCampProblem_shellscripting | /ARRAY_PROBLEM/SecondLarge.sh | UTF-8 | 209 | 3.34375 | 3 | [] | no_license | #!/bin/bash
range=10
i=0
while [ $i -lt $range ]
do
num=$RANDOM
arrName[$i]=$(($num%1000))
sort -n <(printf "%s\n" "${arrName[@]}")
i=`expr $i + 1`
done
for number in ${arrName[@]}
do
echo $number
done
| true |
d86d345f08a667f3d6d939ef0062e0ce2fb87198 | Shell | GerritForge/gripmock | /entrypoint.sh | UTF-8 | 346 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
if [ ! -d /etc/nginx/ssl ]
then
mkdir /etc/nginx/ssl
CWD=`pwd`
cd /etc/nginx/ssl
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes \
-subj "/C=US/ST=NRW/L=Earth/O=CompanyName/OU=IT/CN=localhost/emailAddress=email@localhost"
cd $CWD
fi
mkdir -p /run/ngi... | true |
d362af3999791b808a73b5e020fb33bb97d918a7 | Shell | Ravenspark/CD-Spotwelder | /sources/fixSPI | UTF-8 | 390 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# The current spi driver seems to have a bug when using 8bit mode and unaligned variables...
# As a quick workaround this file replaces the generated file with a fixed one
rm ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_spi.c
cp ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_spi.c.fix ./Drivers/STM32F... | true |
80a83966ead6da0589d939f17e68c1633c9b8048 | Shell | someuser3/bin | /lab6 | UTF-8 | 2,518 | 4.15625 | 4 | [] | no_license | #!/bin/bash
#
# Lab Objective: Create a script called lab6.sh that will check to see if each media file in the medialab directory is in medialab/media.xml
#
# List the filenames in the medialab directory that are not in media.xml
# Display the number of files in the medialab directory that are not in media.xml
# List t... | true |
0bf84212e2fbcef2a4da2f6d06d4bbfd9f0f56ba | Shell | oracle/dtrace-utils | /test/unittest/io/tst.nfs.sh | UTF-8 | 1,695 | 3.234375 | 3 | [
"UPL-1.0"
] | permissive | #!/bin/bash
#
# Oracle Linux DTrace.
# Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at
# http://oss.oracle.com/licenses/upl.
#
# Test the io:::start probe for write and read operations by creating
# a file and reading it b... | true |
25cafd681e2b948f0fa3d7674c7b825827047adb | Shell | Francesco10681/FunctionalClassificationEpigenome | /bedToNormalizedSignal.sh | UTF-8 | 7,127 | 3.453125 | 3 | [] | no_license | #!/bin/bash
###############################################################################################################################
### Preliminary analysis for the Data-Integration (ENCODE/Roadmap Epigenomics) project: #######################################
###################################################... | true |
fdf5e32dc42056ae53ad5664f0d6284d3a03ecd5 | Shell | faucetsdn/daq | /resources/runtime_configs/discover/port-01/ping_runtime.sh | UTF-8 | 171 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | filter="ether host 9a:02:57:1e:8f:02 and port 47808"
count=$(tcpdump -en -r $TEST_ROOT/scans/monitor.pcap $filter | wc -l)
echo Found $count from $filter
[ $count -gt 0 ]
| true |
fa7fc6d3a7a51e86958aacc56389867c90e95208 | Shell | navarr393/assignment1assembly | /run.sh | UTF-8 | 553 | 3.03125 | 3 | [] | no_license | #!/bin/bash
#Program: Floating IO
#Author: F. Holliday
#Delete some un-needed files
rm *.o
rm *.out
echo "Assemble float-input-output.asm"
nasm -f elf64 -l perimeter.lis -o perimeter.o perimeter.asm
echo "Compile manage-floats.c using the gcc compiler standard 2011"
gcc -c -Wall -m64 -no-pie -o rectangle.o rectangl... | true |
0a449421b841eaf465c0c0c646f03ab3e531732a | Shell | aschrab/dotfiles | /bin/cal | UTF-8 | 464 | 3.734375 | 4 | [] | no_license | #!/bin/bash
set -u
set -e
set -o pipefail
if [ "$(date +%d)" -lt 8 ] ; then
early=y
else
early=n
fi
if gcal --help >/dev/null 2>&1
then
if [ $early = y ] ; then
gcal -sMon .
else
gcal -sMon .+
fi
exit
fi
args=(
-b # Old-style output
-M # Week starts on Monday
)
if [ $early = y ] ; then
# In first week... | true |
d3e5941105777d0cdedf62a9c0fa32ff67161463 | Shell | k3nno88/forcrawler | /parse_ad_sold.sh | UTF-8 | 1,486 | 3.3125 | 3 | [] | no_license | #!/bin/zsh
# This script goes through all link scraped by parselink.sh and scrape its content
export PATH=/home/uh/anaconda3/bin:$PATH
export PATH=/home/uh/anaconda3/bin/scrapy:$PATH
source ~/anaconda3/etc/profile.d/conda.sh
#conda init zsh
conda activate base
cd ~/funda-sold
echo "DELETE VERKOCHT IN URL"
# This make a... | true |
e1d999a0cf896e8bea55baa54730788e35be73c5 | Shell | NCAR/container-dtc-nwp | /components/scripts/common/run_wrf.ksh | UTF-8 | 2,848 | 3.984375 | 4 | [] | no_license | #!/bin/ksh
#
# Simplified script to run WRF in Docker world
# Optional arguments: -np, -slots, -hosts, -face
#
set -x
# Constants
WRF_BUILD="/comsoftware/wrf"
INPUT_DIR="/data/case_data"
SCRIPT_DIR="/home/scripts/common"
CASE_DIR="/home/scripts/case"
WRFPRD_DIR="/home/wrfprd"
GSIPRD_DIR="/home/gsiprd"
# Check for the... | true |
8e3ebc8fea47d4a1b296f6f5d0666e35be1b1bcd | Shell | melo0187/codingground | /registered mail checksum/.bash_history | UTF-8 | 2,640 | 2.53125 | 3 | [] | no_license | s
ls
clear
g++ -o main *.cpp
main
g++ -o main *.cpp
main
g++ -o main *.cpp
main
g++ -o main *.cpp
main
g++ -o main *.cpp
clear
main
g++ -o main *.cpp
clear
main
g++ -o main *.cpp
main
g++ -o main *.cpp
main
g++ -o main *.cpp
g++ -o main *.cpp
g++ -o main *.cpp
g++ -o main *.cpp
g++ -o main *.cpp
main
g++ -o main *.cpp
... | true |
6117b4769d4fe057e589a9dc35806c283be58319 | Shell | kego1992/cli-1 | /install-from-code.sh | UTF-8 | 1,364 | 3.09375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# ----------------------------------
# Colors
# ----------------------------------
NOCOLOR='\033[0m'
RED='\033[0;31m'
GREEN='\033[0;32m'
ORANGE='\033[0;33m'
BLUE='\033[0;34m'
PURPLE='\033[0;35m'
CYAN='\033[0;36m'
LIGHTGRAY='\033[0;37m'
DARKGRAY='\033[1;30m'
LIGHTRED='\033[1;31m'
LIGHTGREEN='\033[1;32m'
YELL... | true |
6a463ece84b1e41028a0c66bd9a7315f86d5561e | Shell | mhagander/pggit_migrate | /repository_fixups | UTF-8 | 118,328 | 2.53125 | 3 | [] | no_license | #!/bin/bash
set -e
# Kill some generated files that somehow had patches committed even after
# they were marked dead.
for r in 2.89 2.90 2.91; do rcs -x,v -sdead:$r /cvsroot/pgsql/src/backend/parser/Attic/gram.c ; done
for r in 1.3 1.4 1.5 1.6; do rcs -x,v -sdead:$r /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/p... | true |
29c3dabf0ec0428653e4eaad322313761623f8fa | Shell | dhungvi/publiy | /publiy/misc/bash_bin/extract_pathlength_deliveries | UTF-8 | 3,613 | 3.5625 | 4 | [] | no_license | #!/bin/bash
exit 0;
source common.sh
if [ -z "$1" ]; then
red "Missing working dir ($0)";
exit -1; fi
workingdir="$1";
process1() {
local resultsdir="$1";
local tempdir="$2";
local plotsdir="$3";
blue "Process 1";
all_ports="";
all_machines="";
all_subs="";
all_pubs="";
... | true |
45423f3e7e578d869f76d0a5918afffa18bf5b98 | Shell | technopreneural/jonawifi | /iptables/scripts/inetshare.sh | UTF-8 | 717 | 3 | 3 | [] | no_license | #!/bin/bash
#-----------
# VARIABLES
#-----------
WLAN=wlan0
LAN=eth0
WLANRANGE=192.168.253.0/24
LANRANGE=192.168.69.0/24
PORTAL=192.168.253.1
#------------------
# Internet Sharing
#------------------
# 1) Forward existing connections
iptables -t filter -A FORWARD \
-i $LAN -o $WLAN -d $WLANRANGE \
-m conntrack --c... | true |
cca3a72751f1fa641970574bae3217264d9ffe41 | Shell | Llinjing/bigdata | /nearline-feedback/ad-nearline-feedback-native/shell/monitor.sh | UTF-8 | 410 | 3.140625 | 3 | [] | no_license | #!/bin/bash
source ../conf/project.conf
source ../conf/warning.conf
for((i=0;i<${APP_NUM};++i))
do
app_id=`yarn application -list | grep "${APP_NAME[$i]}" | awk '{print $1}'`
if [ -z "${app_id}" ]
then
${WARNING_BIN} "${PRODUCT_LINE}: ${APP_NAME[$i]} is not running, service will restart !" "${SMS_USER[$FATAL]}"
... | true |
54fc357b3a8f755678e34682e9f26fab0dcb306e | Shell | halkon/ng-resource-demo | /test/jenkins.example.sh | UTF-8 | 674 | 2.703125 | 3 | [] | no_license | #!/bin/bash -e
# If using a ubuntu box for builds you need to install python3 python3.3-dev
# Kill any left over grunt tasks, avoid throwing error if not orphaned process
killall grunt || true
npm install --loglevel warn
bower install --quiet
# prep for unit tests
grunt ngTemplateCache
grunt plato
grunt jshint
grunt... | true |
6f383da17ca2486417d9bdf79cbd2dca9f72b73c | Shell | souvik-sarkhel/assignments_for_z | /assignment2/crun | UTF-8 | 1,059 | 4.40625 | 4 | [] | no_license | #!/bin/bash
# The below conditions is for showing the usage of crun command
if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
echo 'Runs command on list of hosts specified as host1,host2,host3,....,hostn'
echo 'Usage: crun [list_of_hostnames_comma_seperated]'
exit 0
fi
#If the number of arguments passed to th... | true |
c017ede9c5c6d34b7e82a9af0e90a8680af759f7 | Shell | shdunning/dev_env | /.cdstack.sh | UTF-8 | 3,346 | 3.8125 | 4 | [] | no_license | # maximum size of directory stack
: ${CDSTACKSIZE:=36}
# restore stack elements from saved file, if any
if [ -r ~/.cdstack ] ; then
read CDSTACK < ~/.cdstack
fi
# newer bashes appear to do 'cd -P' on login, but if part
# of your $HOME is symlinked (ie, your $HOME is /home/david
# but /home is a symlink to /usr/ho... | true |
74735ec7dc983e815627d8658b4bb80b04939b72 | Shell | rdicosmo/docked-aspcud | /aspcud | UTF-8 | 515 | 3.390625 | 3 | [] | no_license | #!/bin/sh
#
# Simple wrapper script to call a dockerised aspcud
# feel free to improve it
#
cudfpath=$1
cudf=`basename $cudfpath`
solutionpath=$2
solution=`basename $solutionpath`
criteria=$3
volume=/tmp/aspcudwrapper.$$
if [ ! -d $volume ]; then
mkdir -p $volume
fi
cp $cudfpath $volume/$cudf
sudo docker run -v $v... | true |
a78b53a50c5d3e988526358a298d0130b8de9acd | Shell | gavin2lee/incubator | /docs/sourcecodes/OpenBridge-passos-ui/ob-paasos-web/install/module/install_agent.sh | UTF-8 | 1,634 | 3.84375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# 安装openbridge-agent
# wangxinxiang@yihecloud.com
# 2016-08-08
OPTS=$(getopt -o s: --long registry: -- "$@")
if [ $? != 0 ]; then
echo "[ERROR] 参数错误!"
usage;
exit 1
fi
eval set -- "$OPTS"
registry="docker.yihecloud.com:443"
version="1.9"
monitor_ip=
while true; do
case "$1" in
-s) monitor_i... | true |
0bfe5f88fa4e24e7224a88bc16334a4e28a189f9 | Shell | jtw10/pokemon_trainer_manager | /Module Installation Scripts/startup.sh | UTF-8 | 149 | 2.921875 | 3 | [] | no_license | #!/bin/bash
read -n1 -r -p "Press space to continue..." key
if [ "$key" = '' ]; then
pip install pygame
pip install pillow
else
exit
fi
| true |
18b90c32af339d9f6829c0061dcbf393e88d1fc2 | Shell | joy13975/vpnshuttle | /scripts/run/config_ssh.sh | UTF-8 | 181 | 2.703125 | 3 | [
"MIT"
] | permissive | #!/bin/bash -e
host_ip=$(./scripts/run/get_host_ip.sh)
echo "
PasswordAuthentication yes
PermitRootLogin yes
PermitTunnel yes
AllowUsers appuser@${host_ip}" > /etc/ssh/sshd_config | true |
8fe38af1b859702007a8f3a1d9d19bce7a1c17a4 | Shell | montymxb/closure-compiler-bash-wrapper | /closure-compiler.sh | UTF-8 | 619 | 3.859375 | 4 | [
"MIT"
] | permissive | ## Closure compiler path, please update this as needed for you own system
CC_PATH="/closure-compiler/compiler.jar"
if [ $# -eq 0 ]; then
echo "Please include the file path(s) for the file(s) that you would like to compress." 1>&2
exit 1
fi
for file in "$@";
do
if [ -f "$file" ]; then
java -jar "$CC_PATH" --... | true |
33f06b75b44c39e664039380a8b26a0081d6b8e9 | Shell | mad01/deadman | /hacks/verify-gofmt | UTF-8 | 277 | 3.46875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
GOFMT="gofmt -s -w"
bad_files=$($GOFMT -l *.go)
if [[ -n "${bad_files}" ]]; then
echo "FAIL: '$GOFMT' needs to be run on the following files: "
echo "${bad_files}"
echo "FAIL: please execute make gofmt"
exit 1
fi
| true |
1d4f1bb51164299425f89fc69e0c4a85384c03ba | Shell | SametSisartenep/dotfiles | /.kshrc | UTF-8 | 1,234 | 3.09375 | 3 | [
"ISC"
] | permissive | # $Antares: .kshrc,v 1.0 2016/10/17 05:17:26 samet Exp $
#
# Interactive Korn Shell resources.
#
# Copyright (C) 2016 Rodrigo González López.
# All rights reserved.
#
# Prompt
case $LOGNAME in
root) PS1="\# "
;;
*) PS1="\% "
;;
esac
# Functions
clipcopy() {
file=$1
if [[ -z $file ]]; then
xsel --cl... | true |
6c8b99b7900cfddcca3d5883c3c104f36f74e3d4 | Shell | vieirinhasantana/aws-lambda-golang | /scripts/checkcoverage.sh | UTF-8 | 504 | 3.265625 | 3 | [] | no_license | #!/usr/bin/env bash
THRESHOLD=$1
go test -timeout=2m -covermode=atomic -coverprofile coverage.out ./...
sed -i '/mock.go/d' coverage.out
COVERAGE=$(go tool cover -func=coverage.out | grep total | awk '{print $3}')
COVERAGE=${COVERAGE%\%}
if (( $(echo "${COVERAGE} >= ${THRESHOLD}" | bc -l) ));then
echo "coverage ... | true |
afd2292e9ea930a004d08dd78dcb7f4673482b17 | Shell | noda50/RubyItk | /GIS/gml2wfsInsert | UTF-8 | 3,113 | 2.953125 | 3 | [
"Apache-2.0"
] | permissive | #! /bin/tcsh
## -*- Mode: shell-script -*-
##======================================================================
## help doc section
cat << __END_HELP__ > /dev/null
__HELP__
Usage: % __ThisProgram__ <SrcFile> [<DstFile>]
__END_HELP__
##======================================================================
set s... | true |
3a167a94c02055fb48a35d962f2754c62e0ae6cb | Shell | locuslab/stable_dynamics | /train_vae_simple | UTF-8 | 704 | 2.90625 | 3 | [] | no_license | #!/bin/bash
DATASET="$1"
LR="0.0005"
W1="-0.25"
INNER="PSICNN"
if [ -z "$DATASET" ]; then
echo "NO DATASET"
exit
fi
OUTDIR="experiments/vae_simple/${DATASET}"
mkdir -p "$OUTDIR"
MODEL="vae_trajectory[w=$W1,projfn=$INNER]"
date >> "$OUTDIR/progress.txt"
./.colorize ./train.py \
--log... | true |
6105e14de261c914e325884cb0c44bdb91c9df53 | Shell | rms1000watt/vagrant | /scripts/15-stern.sh | UTF-8 | 240 | 3.15625 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
stern_version=1.19.0
if ! command -v stern &> /dev/null; then
asdf plugin add stern
asdf install stern ${stern_version}
asdf global stern ${stern_version}
exit 0
fi
echo "Skipping stern installation"
| true |
19093cc68ec6b1297d7e03bb9ffdbe9a5b4862a0 | Shell | openhpc/ohpc | /misc/get_source.sh | UTF-8 | 1,192 | 4.21875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if [ $# -ne 1 ]; then
echo "${0} requires the name of the spec file as parameter."
exit 1
fi
# If running on Fedora special defines are needed
DISTRO=$(rpm --eval '0%{?fedora}')
if [ "${DISTRO}" != "0" ]; then
FLAGS=(--undefine fedora --define "rhel 8")
fi
PATTERN=${1}
IFS=$'\n'
find . -name "${PAT... | true |
f42cb64568af588674a311003a7c3d110a36db42 | Shell | mohamdmido/iotencoder | /build/build.sh | UTF-8 | 680 | 3.140625 | 3 | [] | no_license | #!/bin/bash
# Script used when compiling binary during build phase
set -o errexit
set -o nounset
if set -o | grep -q "pipefail"; then
set -o pipefail
fi
# export build flags
export CGO_ENABLED="${CGO_ENABLED:-0}"
export GOARCH="${ARCH}"
# generate bindata assets
go generate -x "${PKG}/pkg/migrations/"
go generate... | true |
249edece899e38344c640beae311f2b3129364f0 | Shell | gfontenot/dotfiles | /local/bin/git-create-branch | UTF-8 | 393 | 3.875 | 4 | [] | no_license | #!/usr/bin/env bash
#
# create local and remote branch
set -e
name="$1"
if [ -z "$name" ]; then
echo "Branch name required"
printf "> "
read -r name
fi
origin=$(git remote get-url origin)
if [[ "$origin" =~ .*github\.com:gfontenot.* ]]; then
branch_name="$name"
else
branch_name="gfontenot/$name"
fi
git ... | true |
f036b4c9148512a86a588f673b4d084d9c8931ce | Shell | mike79-cdev/hello-world | /test.sh | UTF-8 | 139 | 3.265625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if (($# == 2))
then
echo "$1 $2"
let RESULT=$1+$2
echo "Ergebnis: $RESULT"
else
echo "Falsche Anzahl !"
fi
echo "$0"
| true |
90aecac82723fb84f5394518f11db0ba69404346 | Shell | Sanj25/CSI6203 | /portfolio/week6/GuesingGame.sh | UTF-8 | 738 | 3.859375 | 4 | [] | no_license | #!/bin/bash
printError() # Print Error Function.
{
echo -e "\033[31mERROR:\033[0m $1"
}
getNumber() # Function for getting number.
{
read -p "$1:"
while (( $REPLY < $2 || $REPLY > $3 )); do
printError " Input must between $2 and $3"
read -p "$1:"
done
}
checknum() # Function for checking input n... | true |
a586fab70f916751f212780050eacb03d81baa6a | Shell | Natthaphong/speke-reference-server | /local_build.sh | UTF-8 | 1,180 | 3.03125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language go... | true |
271994bad9db5782d859cb30430154dec6b3f81f | Shell | tykowale/vimconfig | /.bash_profile | UTF-8 | 2,998 | 3.375 | 3 | [] | no_license | # echo is like puts for bash (bash is the program running in your terminal)
# echo "Loading ~/.bash_profile a shell script that runs in every new terminal you open"
# $VARIABLE will render before the rest of the command is executed
echo "Logged in as $USER at $(hostname)"
if [ -f ~/.git-completion.bash ]; then
. ~/... | true |
dfb8c55149b2d5ab6fdfcb19a2acfeb32bcecff3 | Shell | cboettig/dockerfiles | /bce-extensions/rstudio-recipe.sh | UTF-8 | 1,115 | 3.078125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
## Download and install RStudio server & dependencies
## Attempts to get detect latest version, otherwise falls back to version given in $VER
## Symlink pandoc, pandoc-citeproc so they are available system-wide
rm -rf /var/lib/apt/lists/ \
&& apt-get update \
&& apt-get install -y --no-install-... | true |
defdfd58172270d60b93904102be84d77eb0df5c | Shell | telatin/telatin.github.io | /scripts/new.sh | UTF-8 | 713 | 4.03125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -euo pipefail
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
OUT_DIR="$SCRIPT_DIR/../_posts"
DATE=$(date +%Y-%m-%d)
if [ -z ${1+x} ];then
echo "Provide post title (eg. with dashes instead of spaces)";
exit 2;
else
TITLE=$(echo "$1" | sed 's/ /-/g' | sed 's/_/-/g'... | true |
5d74c0828f9c27442dc942fcfd929af1427d2217 | Shell | CS262aCalvinFitness/server | /src/manual/start-java.sh | UTF-8 | 465 | 3.015625 | 3 | [] | no_license | #!/bin/bash
# Environment variables
NAME=CalvinFitness
DIR=/var/cs262/$NAME/src/
PID=$DIR/$USER-$NAME.pid
# Write our PID file
echo $$ > $DIR/$USER-$NAME.pid
# Change to our working directory
cd $DIR
# Run this script to compile/start the cs262 data service.
javac -cp "../lib/*" edu/calvin/cs262/User.java edu/calvi... | true |
00b3a7636914f419c12c9d83175a9681ba4c882e | Shell | dsyer/docker-services | /bootable/build.sh | UTF-8 | 892 | 3.140625 | 3 | [] | no_license | #!/bin/bash -x
docker rm bootable
docker build -t dsyer/bootable .
docker create --name=bootable dsyer/bootable
rm disk.*
qemu-img create -f raw disk.img 1G
sfdisk disk.img <<EOF
label: dos
label-id: 0x5d8b75fc
device: disk.img
unit: sectors
disk.img1 : start=2048, size=2095104, type=83, bootable
EOF
OFFSET=$(exp... | true |
d538953fe3b8262b01fb6e9475e451d3866821a6 | Shell | RemyKaloustian/EZConcurrency | /rendu_1/execution.sh | UTF-8 | 1,497 | 3.015625 | 3 | [] | no_license | #!/usr/bin/env bash
#################################
# #
# Execution of the project #
# #
#################################
EXE="./bin/executable.exe"
if [ "$0" = "bench" ]; then
echo > ./test/data.txt
for i in `seq 0 9`;
do
for j in `seq 0 2`;... | true |
1eab5e7c04d20300e49cd5e1fa540499c188c16a | Shell | alexisDubus/ppeGSB-LAB | /mysqlrestore.sh | UTF-8 | 407 | 3.03125 | 3 | [] | no_license | #!/bin/bash
cd ./BackupMYSQL/
ls -al
echo "saisir le nom de la base de données à restaurer"
read BDDNAME
echo "saisir le nom complet du fichier SQL à restaurer"
read SQLFILE
echo "Saisir le mot de passe de securité pour se connecter à mysql"
echo "CREATE DATABASE IF NOT EXISTS $BDDNAME" | mysql -uroot -p
echo "Saisir ... | true |
f447b6fbe6395055652d79d959c122431fc255cd | Shell | bubaley/django-clean-template | /install.sh | UTF-8 | 2,069 | 3.53125 | 4 | [] | no_license | #!/bin/bash
base_python=""
default_python="/home/www/.python/bin/python3.8"
project_domain=""
project_path=`pwd`
basedir=`basename $(pwd)`
git_url=""
read -p "Python interpreter (default=$default_python): " base_python
if [ "$base_python" = "" ]
then
base_python=$default_python
fi
read -p "Your domain without protoc... | true |
ccbf1d8769eec38e9ce7d4c0fc3ce92178e31eea | Shell | hdng/scripts | /.bashrc | UTF-8 | 1,392 | 3.328125 | 3 | [] | no_license | # .bashrc
# source global definitions
if [ -f /etc/bashrc ]; then # redhat
. /etc/bashrc
elif [ -f /etc/bash.bashrc ]; then # debian
. /etc/bash.bashrc
fi
# source the gapp bashrc
if [ -f /gapp/noarch/share/login/gapp.bashrc ]; then
. /gapp/noarch/share/login/gapp.bashrc
fi
# source alias file
if [ -f ~/... | true |
78d0c4f56adf2a44696524cd4897bbadb70971f1 | Shell | megalithic/dotfiles | /config/sketchybar/plugins/yabai_spaces.sh | UTF-8 | 1,259 | 3.15625 | 3 | [] | no_license | #!/usr/bin/env bash
# TODO: Remove spaces that do not exist anymore
icons=("" "" "" "" "" "" "" "" "" "" "" "" "" "" "") #0 to 14
highlight_colors=("" "0xff9dd274" "0xfff69c5e" "0xff72cce8" "0xffeacb64" "0xff9dd274" "0xfff69c5e" "0xff72cce8" "0xffeacb64" "0xff9dd274" "0xfff69c5e" "0xff72c... | true |
f4577ac7898f90c36aa5ff4ec9656f1addad7d26 | Shell | mirzaelahi/quest | /version | UTF-8 | 2,108 | 4.125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# FileName: version
# Description: Updates or prints current version number crom cmake config.
#
# Copyright (C) 2014 K M Masum Habib <masum.habib@gmail.com>
#
# Created: 18 June 2014.
function usage(){
echo "Usage: version [x.yy.z]"
echo " When no option is given, it return version string."
... | true |
1b380c49e889cadcf9eeed5c95acd033a041e68e | Shell | gauravv7/SoftwareEngineerChallenge | /run-project.sh | UTF-8 | 692 | 3.640625 | 4 | [] | no_license | if type -p java; then
echo found java executable in PATH
_java=java
elif [[ -n "$JAVA_HOME" ]] && [[ -x "$JAVA_HOME/bin/java" ]]; then
echo found java executable in JAVA_HOME
_java="$JAVA_HOME/bin/java"
else
echo "no java found, please install to run this project"
exit 1
fi
if [[ "$_java" ]]; ... | true |
f2ad49f1e64fb876357252123a85c320da3eea18 | Shell | oarthursilva/stocks-market-job | /db/postgres/db-init.sh | UTF-8 | 1,538 | 3.25 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo "Verifying DB $POSTGRES_DB presence ..."
result=`psql -v ON_ERROR_STOP=on -U "$POSTGRES_USER" -d postgres -t -c "SELECT true FROM pg_database WHERE datname='$POSTGRES_DB';" | xargs`
if [[ $result == "t" ]]; then
echo "$POSTGRES_DB DB already exists"
else
echo "$POSTGRES_DB DB does not exist, creat... | true |
fbaa4aa8b2d8d9db1f284f8daeaa2839c6f4b18f | Shell | eugenepaniot/initscripts-vxlan | /ifdown-vxlan | UTF-8 | 348 | 2.796875 | 3 | [] | no_license | #!/bin/bash
. /etc/init.d/functions
cd /etc/sysconfig/network-scripts
. ./network-functions
[ -f ../network ] && . ../network
CONFIG=$1
need_config "$CONFIG"
source_config
/sbin/ip link set dev "$DEVICE" down
/sbin/ip link del "$DEVICE"
/etc/sysconfig/network-scripts/ifdown-eth "$CONFIG"
/etc/sysconfig/network-sc... | true |
6f9fa3c92b54b48afc1ac1bfde07bb185af383cc | Shell | kiranhegde/MeshPreprocessorUG3 | /RunUg3Pre | UTF-8 | 692 | 3.328125 | 3 | [] | no_license | #!/bin/bash
argu=$#
if [ $argu -lt 2 ]
then
echo "Input arguments missing..."
echo
echo 'Input argument format'
echo
echo 'ug3pre No_of_partition optional_write '
echo
echo 'No_of_partition : no. of cpu cores or partions for parallel run > 0'
echo 'optional_write : ... | true |
2c377ca896f9f938173cc1b6d10e4636bcf87102 | Shell | masteringkubernetes/hub-spoke-appdev-terraform | /app/k8s/test-internal-lb.sh | UTF-8 | 3,474 | 3.8125 | 4 | [] | no_license | #!/bin/bash -x
BLUE="false"
GREEN="false"
BLUE_IP=192.168.4.4
GREEN_IP=192.168.4.5
# Function that writes out Yaml for sample app
function writeYaml() {
COLOR=$1
cat <<EOF > nginx-$COLOR.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-$COLOR-dep
spec:
replicas: 1
selector:
matchLabels:... | true |
e808d26caf1e652bd14c73e15239a8a48bf80b3f | Shell | lqshow/dotfiles | /.functions | UTF-8 | 871 | 3.125 | 3 | [] | no_license | #!/usr/bin/env bash
# Create a new directory and enter it
function mkd() {
mkdir -p "$@" && cd "$_";
}
# Docker
export DOCKER_IP=127.0.0.1
docker-ip() {
docker inspect --format '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' "$@"
}
docker-ips() {
docker inspect --format='{{.Name}} - {{range .Networ... | true |
69c821a55311ab56d64d5a4c49519db5b37950ec | Shell | ychenracing/ourvaast | /vaast/VST/VST.sh | UTF-8 | 1,005 | 3.234375 | 3 | [] | no_license | #!/bin/bash
cd ../case
concentrations=$(ls)
for concentration in $concentrations
do
cd $concentration
number=$(ls|wc -l)
prefix="VST -o 'U(0..$number)' -b hg19 "
vatGvfNames=$(ls *.vat.gvf)
space=" "
for nameItem in $vatGvfNames
do
prefix="${prefix}""${nameItem}""${space}"
done
suffix="> case_"${con... | true |
f6052a75c969285db9bfbb636ed746109a444501 | Shell | danielemidi/SecureAuditLog | /gen_keys.sh | UTF-8 | 670 | 2.578125 | 3 | [] | no_license | #!/bin/bash
echo Removing previous keys and certificates...
rm -f *.pem
echo Generating keys and certificates...
openssl genrsa -out keyU.pem 2048
# openssl rsa -in keyU.pem -RSAPublicKey_out -out pub-keyU.pem
openssl req \
-outform PEM -new -x509 -nodes -days 365 \
-subj '/C=US/ST=Indiana/L=West Lafayette/CN=unt... | true |
2d618b10f0a0f7fd9a7c402f0c55fe8cbb82940f | Shell | guimauveb/tinyDLM | /install.sh | UTF-8 | 5,217 | 4.3125 | 4 | [] | no_license | #!/bin/bash
# Install script that will look for the required dependencies in the envionrment and will try to install them
# if not found. Once all the required dependencies are installed the script will build tinyDLM from source and
# launch the program.
# I only provide cURLpp source since it does not seem to be fo... | true |
98fb9d20e5bc4c0f2a068cf06659862e403f4a01 | Shell | data-intuitive/Portash | /tests/test_exit.sh | UTF-8 | 490 | 3.25 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
exit0=$(cat defaults.yaml | ../porta.sh 2> /dev/null| yq r - "output.result[1]")
exit0_ret=$?
exit1=$(cat errors.yaml | ../porta.sh 2> /dev/null| yq r - "output.result[1]")
exit1_ret=$?
# echo "$actual"
# echo "$expected"
echo -n "Exit code test... "
if [[ $exit0_ret -eq 0 ]]; then
echo -n "$(tput seta... | true |
ff02b7bf3d87cff41195d6f08ecb0e839331cbc3 | Shell | nosseb/Ehwaz | /Scripts/Ubuntu/ManualSetup.sh | UTF-8 | 781 | 3.375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Provided under MIT Licence
# https://github.com/nosseb/Ehwaz
version=2.0
if [ -z "$1" ]
then
printf "No argument supplied" >&2
exit 128
fi
# REQUIREMENTS
printf "\n\n\nInstalling requirements\n=======================\n\n"
sudo apt-get install steamcmd
printf "\n\nPath export\n====... | true |
25cb7ca60a19f34c805585f132eb56d1f2a513ce | Shell | bmustiata/dotfiles | /bin/keys.sh | UTF-8 | 818 | 3.5 | 4 | [] | no_license | #!/usr/bin/env bash
yad=$(which yad)
setkeyboard() {
if [[ "$1" == "co" ]]; then
setxkbmap us -variant colemak -print | xkbcomp - $DISPLAY
echo "Reset the keys as colemak"
exit 0
fi # [[ "$1" == "co" ]]
if [[ "$1" == "ro" ]]; then
setxkbmap ro -variant std -print | xkbcomp... | true |
31f28de9712f9e2a64d0f340eeb8a5670ce9c55b | Shell | murer/sandbox | /proj/pyrnet/net.sh | UTF-8 | 1,561 | 3.40625 | 3 | [] | no_license | #!/bin/bash -xe
pyrnet_name="PYRNET"
pyrnet_device="$(nmcli -g TYPE,DEVICE d | grep '^wifi:' | cut -d':' -f2)"
cmd_wifi() {
nmcli -g NAME,UUID c | grep ^"$pyrnet_name": | cut -d':' -f2 | xargs nmcli con delete || true
sleep 1
nmcli con add type wifi ifname "$pyrnet_device" con-name "$pyrnet_name" autoconnect yes s... | true |
6fcf5b025e6efcf73245a5bf673ae2cb312e6c65 | Shell | imatharv/Shell-Programming-Constructs | /for-loop/power-of-two.sh | UTF-8 | 149 | 3.359375 | 3 | [] | no_license | #!/bin/bash
read -p "Enter a number " n
powerOfTwo=1;
for (( i=0; i<=$n; i++ ))
do
echo "$i $powerOfTwo";
powerOfTwo=$((2 * powerOfTwo));
done | true |
b2ae0921ec9feacafff44a5307879cf096bdac1e | Shell | liyang85/scripts-during-mage-linux-training | /insert_shell_script_header.sh | UTF-8 | 503 | 2.75 | 3 | [] | no_license | #!/bin/bash
# insert_shell_script_header.sh: create script description automatically
fullFileName="${1}_by_liyang.sh"
cat << _EOF_ > ${fullFileName}
#!/bin/bash
#
#===== ===== ===== ===== ===== ===== ===== ===== ===== ===== ===== =====
# Filename: ${fullFileName}
# Description:
# Date: `date +%F`
# Author: Li Y... | true |
313ae0566c264f61fdc0d3374f436bd58dbaca0f | Shell | treblalee/hackbop2016Feb | /regress.sh | UTF-8 | 805 | 2.671875 | 3 | [] | no_license | #! /bin/bash
#HOST='http://ec2-52-23-125-147.compute-1.amazonaws.com'
HOST='localhost'
PORT='8000'
HOME_ENDPOINT="$HOST:$PORT"
SIM_ENDPOINT="$HOME_ENDPOINT/similar?image=https://s3.amazonaws.com/treblalee.images/watches7.jpg"
SIM_PATH_ENDPOINT="$HOME_ENDPOINT/similarbypath?image=localS3Images/watches7.jpg"
BAD_INPUT_E... | true |
a2191a13a7c8849bf17c9fbe2f3c1501ab761ece | Shell | kokkytos/DMSP-OLS-Forecast | /source/srtm.sh | UTF-8 | 2,201 | 3.078125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#NASA Shuttle Radar Topography Mission Global 3 arc second V003
#https://search.earthdata.nasa.gov/
#read settings
source ../config.sh
cd ../data/SRTM
# unzip
unzip -o '*.zip'
# convert hgt to geotiff
for i in *.hgt
do
gdal_translate -r bilinear $i "${i}.hgt.tif"
done
# merge tiles
gdalbuildvrt mos... | true |
f4f21906cd1ebf0f95733b20458d3d96c084e10e | Shell | chef/bento | /packer_templates/scripts/suse/repositories_suse.sh | UTF-8 | 595 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh -eux
version=$(grep VERSION= /etc/os-release | cut -f2 -d\" | cut -f1 -d\ )
zypper removerepo "openSUSE-${version}-0"
zypper ar http://download.opensuse.org/distribution/leap/"${version}"/repo/oss/ openSUSE-Leap-"${version}"-Oss
zypper ar http://download.opensuse.org/distribution/leap/"${version}"/repo/non... | true |
692d4edc69da72729173e5571a95770634d4f1f5 | Shell | insight-decentralized-consensus-lab/ICON-P-Rep-Node | /modules/ec2/data/attach-data-volume.sh | UTF-8 | 1,123 | 3.375 | 3 | [
"Apache-2.0"
] | permissive | # Mount EBS
# Source: https://github.com/hashicorp/terraform/issues/2740#issuecomment-375144680
EC2_INSTANCE_ID=$(wget -q -O - http://169.254.169.254/latest/meta-data/instance-id || die \"wget instance-id has failed: $?\")
EC2_AVAIL_ZONE=$(wget -q -O - http://169.254.169.254/latest/meta-data/placement/availability-zone... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.