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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
b4d9cc8f5376eb5447a6a9f8f2428f072e9d386e | Shell | qwertie/js-astcompressor-prototype | /test-roundtrip.sh | UTF-8 | 1,186 | 2.796875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
if [ -z $1 ]; then
FILE_PREFIX=ast-encoder.js
INFILE=./ast-encoder.js ;
else
FILE_PREFIX=$2
INFILE=$1/$2 ;
fi
echo // input
gzip -9 -f -k $INFILE
third_party/lzhamtest c $INFILE $INFILE.lzham > /dev/null
ls -la $INFILE $INFILE.gz $INFILE.lzham
echo // encoding
node encode.js $INFILE Test/$FILE_PREF... | true |
1a2a836477fdee4d818dc6dc1bc71dfd5ec703a4 | Shell | loggar/ng | /ng-build-deploy/ng-webpack-router-loader/update_docs.sh | UTF-8 | 434 | 3.140625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
git checkout master
npm run docs 2> /dev/null
git add docs/docs_dist
git commit -m "generate docs"
if [ $? -eq 0 ]
then
cp -r ./docs/docs_dist .docs
git checkout gh-pages
rm -rf ./assets
rm -rf ./interfaces
rm ./index.html
rm ./globals.html
mv .docs/* ./
rm -rf .docs
git add .
git ... | true |
ff4cb072c014ee534d858a68bd6a2d758c20935f | Shell | dorukgezici/SpaceHunt | /deploy.sh | UTF-8 | 520 | 2.859375 | 3 | [] | no_license | git checkout master
git push -f github master:master # force push origin's master to github
FILE="build/CNAME"
[[ -f $FILE ]] || echo "spacehunt.tk" >> $FILE && git add $FILE && git commit -m "Added CNAME file." && echo "Added CNAME file"
git subtree split --prefix build -b gh-pages # create a local gh-pages branch con... | true |
cac12e12387c35c8b7d741d570acf2bcd0d9d0bf | Shell | inderpal2406/my_bash_scripts | /scripts/census.sh | UTF-8 | 2,144 | 4.09375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
###############################################################################
# File : census.sh
# Author : Inderpal Singh Saini <inderpal2406@gmail.com>
# Created : 23 Dec, 2019
# Updated : 23 Dec, 2019
# Description : Record user data for census purpose.
# : The $... | true |
4b300c775995dd24ecc2882874800b58d25c3ff1 | Shell | dictcp/jump.sh | /auto-completion.sh | UTF-8 | 359 | 2.9375 | 3 | [] | no_license |
if [[ -n "$ZSH_VERSION" ]]; then
autoload bashcompinit
bashcompinit
fi
_jumpsh()
{
local cur opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
names="$(~/.jumphost/bin/find-hosts.sh | cut -f1)"
COMPREPLY=( $(compgen -W "${names}" -- ${cur}) )
return 0
}
complete -F _jumpsh jump.sh
e... | true |
11ef67944e134245c1e01fa0290eee86cb218f7f | Shell | shenyongxing/Sh | /获取文件后缀名.sh | UTF-8 | 234 | 3.546875 | 4 | [] | no_license | # /bin/bash
# 获取文件后缀名
# author shenxing
if [[ -n $1 ]]; then
# 注意这种写法是正常的,##从左到右匹配最长的
suffix=${1##*.}
echo $suffix
else
echo "请在shell文件名后面输入文件名称"
fi | true |
331404d5d22bc92b49d4d7f3e9acb8057fe48fe7 | Shell | dawnbreaks/taomee | /monster/doc/db/create_stuff.sh | UTF-8 | 640 | 2.921875 | 3 | [] | no_license | #!/bin/sh
host=127.0.0.1
port=3306
user=monster
password=monster@24
for i in `seq 0 9`
do
for j in `seq 0 99`
do
tb_sentence="set names utf8;use db_monster_$i;\
create table t_stuff_$j(\
user_id int not null,\
stuff_id int not null def... | true |
d628d8d4d6d4787844abcdfab711834040a4c26e | Shell | winterfroststrom/rip_classical_project | /Fast-Downward-8ea549f76262/new-scripts/build-opt-ipc-experiments | UTF-8 | 674 | 3.390625 | 3 | [] | no_license | #! /bin/bash
set -e
# Set TARGET_DIR to the directory in which the experiment directories
# will be located on the machine where qsub is run.
TARGET_DIR=/home/helmert/tmp/downward-ipc/new-scripts
DIRNAME="$(pwd)"
for ARCHIVE in "$@"; do
echo "found optimization track config: $ARCHIVE"
CONFIGNAME=$(basename ... | true |
2240099bf657e29dd62331fbc40616b23829694a | Shell | Ditti4/webserverscriptcollection | /disabledomain | UTF-8 | 442 | 3.328125 | 3 | [] | no_license | #!/bin/bash
#Simple script to disable an entire domain (including all vhosts).
server="apache2"
domain=$1
for link in `ls /etc/apache2/sites-enabled/${domain}`; do
unlink /etc/apache2/sites-enabled/${domain}/${link}
done
for link in `ls /etc/nginx/sites-enabled/${domain}`; do
unlink /etc/nginx/sites-enabled/${doma... | true |
e25aea27e9166c936f61bf4934539f042767d662 | Shell | kepeng/docker_image_download | /auto_download_images.sh | UTF-8 | 1,043 | 3.71875 | 4 | [] | no_license | #!bin/bash
for image in `cat ./images_list.txt`
do
echo "begin download $image"
tmp_image=${image#*\/}
upload_image=harbor.chargerhere.net/gcr.io/${tmp_image}
echo ${tmp_image}
echo ${upload_image}
image_version=${tmp_image//[\:\/]/-}
echo ${image_version}
git checkout .
git pull --force
echo "From ... | true |
deb00547e36d775a9da448a021debe9f5fab6f99 | Shell | sorf/cpp-libraries-env | /clang_6.0_release.sh | UTF-8 | 384 | 2.671875 | 3 | [
"Unlicense"
] | permissive | #!/bin/bash
export CLANGXX_COMMAND="clang++-6.0 -fPIC"
export CLANG_COMMAND="clang-6.0 -fPIC"
# We need gcc as well for Boost.Build.
export GCC_COMMAND="/usr/bin/gcc"
export PS1="[clang_6.0-release]\u@\h:\w>"
export CC=clang
export CXX=clang++
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. ${scrip... | true |
e9d56af6147557865de87debd329abbaca01d29c | Shell | 10gic/dotfiles | /bin/kill_ipcs | UTF-8 | 908 | 4.09375 | 4 | [] | no_license | #!/bin/bash
# This tool remove ALL System V IPC resources belong to current user (or specified user).
if [ ${#@} -ne 1 ] && [ ${#@} -ne 0 ]; then
echo 'This tool remove ALL System V IPC resources belong to specified user.' >&2;
echo 'Usage: kill_ipcs [user_name]' >&2;
exit 1
fi
user="$1"
if [ ! "$1" ]; th... | true |
99f5c5f14b52b517f45ea453faa8c1396cc42810 | Shell | venoodkhatuva12/scripts | /generate_radius_user_report.sh | UTF-8 | 1,121 | 4 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Purpose : Extract Data of last one month from radius logs
Log_Path="/var/log/radius/"
Last_Month=$( date --date="$(date +%Y-%m-15) -1 month" +%b )
OutPut="/tmp/radius_users_$(date +%F).csv"
temp1=$(mktemp)
cd $Log_Path || exit 1
for log in $(find . -type f -iname "*log*" )
do
[[ $log =~ '.g... | true |
b139d83ba3deb6e552ee1dac60b9383dd5ad8fb1 | Shell | LizRuelas/lambdachat | /publish-presentation.sh | UTF-8 | 1,134 | 2.859375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright 2015 CloudNative, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | true |
0f27c527455e747ada311d1187b1ae5ac6d2d707 | Shell | phaag/nfdump | /src/lib/gen_version.sh | UTF-8 | 2,219 | 3.203125 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
# Copyright (c) 2023, Peter Haag
# All rights reserved.
#
# 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 con... | true |
94376a8ef477f3a772ee87a51ce838c0754f84d0 | Shell | libdist-rs/libchatter-rs | /scripts/aws/throughput-vs-latency/clean-data.sh | UTF-8 | 478 | 3.1875 | 3 | [] | no_license | # This scripts converts all raw files in a folder into clean files
for file in $1/* ; do
fname=`basename $file .log`
if [ -e "$1"/$fname-cleaned.log ]; then
rm -rf "$1"/$fname-cleaned.log
fi
grep "DP\[.*\]:" $file >> "$1"/$fname-cleaned.log
sed -i "/\[Start\]/d" "$1"/$fname-cleaned.log
... | true |
a5b8c9b9e58abaa4cccb4eb9f514b0cfda92e777 | Shell | LPD-EPFL/ASCYLIB-Cpp | /scripts/run_qu.sh | UTF-8 | 1,575 | 3.25 | 3 | [] | no_license | #!/bin/bash
ds=qu;
. ./scripts/run.config
mkdir -p data
make clean
make "SET_CPU := 0"
algos=( Q_MS_LF Q_MS_LB Q_MS_H );
# params_initial=( 128 512 2048 4096 8192 );
# params_update=( 100 50 20 10 1 );
param_initial=65534;
params_put=( 40 50 60 );
params_nc=( 10 );
num_params=${#params_put[*]};
. ./scripts/c... | true |
a4e8e2e76e584d13daae5ab65045cf817b13d234 | Shell | hhnwong/MYH7nick | /cross_validation/testsnp/snp_split_test.sh | UTF-8 | 1,701 | 2.546875 | 3 | [] | no_license | #!/bin/bash
file2=snp_final.csv
tail -n +2 snp_final.csv >> data2.csv
number=$(wc -l data2.csv)
shuf data2.csv
split -l 46 -d data2.csv snp_
#for training set 1, testing set 1
cat snp_02 snp_03 snp_04 snp_05 snp_06 snp_07 snp_08 snp_09 snp_00 >> snp_train1.csv
cat ./snp_01 >> snp_test1.csv
#for training set 2, te... | true |
bceca8e88d3909003a462c8cfe344cf1021c41b5 | Shell | holtrop/files | /bash_aliases.d/git | UTF-8 | 2,407 | 3.03125 | 3 | [] | no_license | #!/bin/bash
function git-config-joshs()
{
git config --global user.name 'Josh Holtrop'
git config --global color.ui true
git config --global color.diff.meta yellow
git config --global core.excludesfile ${HOME}/.gitignore
git config --global core.pager 'less -FRXi'
git config --global alias.dc 'diff --cache... | true |
85778c9a54f9f28ad11a5ad776c7f8673ded50e2 | Shell | tnakaicode/jburkardt | /hypersphere_properties/hypersphere_properties_prb.sh | UTF-8 | 668 | 3 | 3 | [] | no_license | #!/bin/bash
#
g++ -c -I/$HOME/include hypersphere_properties_prb.cpp
if [ $? -ne 0 ]; then
echo "Errors compiling hypersphere_properties_prb.cpp"
exit
fi
#
g++ hypersphere_properties_prb.o /$HOME/libcpp/$ARCH/hypersphere_properties.o -lm
if [ $? -ne 0 ]; then
echo "Errors linking and loading hypersphere_propertie... | true |
b9c5038ffdab59140e103dff0d24a65dcd93d740 | Shell | Elrohil44/ComputerVisionBowLegs | /release.sh | UTF-8 | 230 | 2.703125 | 3 | [] | no_license | #!/bin/bash
set -e
VERSION=`cat ./version`
MODULE=$1
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker push elrohil/bow-legs-${MODULE}:latest
docker push elrohil/bow-legs-${MODULE}:${VERSION} | true |
18bb73890f8cd4a178467aaa5738f5d0685ce12e | Shell | suriyadeepan/scripts_and_such | /if_test.sh | UTF-8 | 52 | 2.640625 | 3 | [] | no_license | x=2
if [ $x -eq 2 ]
then
echo cool
else
echo no
fi
| true |
d99dd2eca3ff938c995a2eca32b3d8f0ffb7540a | Shell | mlupton/openshift-internal-roadshow | /scripts/setup_env.sh | UTF-8 | 2,821 | 3.90625 | 4 | [] | no_license | #!/bin/bash
set -e
# Global variables
NUM_USERS=30
USER_PREFIX=
USER_BASE=user
PASSWORD=redhat
OSE_GROUP=roadshow-users
OSE_ROLE=view
OSE_PROJECT=ose-roadshow-demo
OSE_DOMAIN=ose.example.com
OSE_APP_SUBDOMAIN=apps
PASSWD_FILE=/etc/origin/openshift-passwd
# Show script usage
usage() {
echo "
Usage: $0 [options]
... | true |
17b4098e4759ebbfaba3b6f2ea688bd1718e338a | Shell | grussdorian/ARM-Assembly | /assembler/compile.sh | UTF-8 | 693 | 2.859375 | 3 | [] | no_license | #compile -a hello.asm -o hello.o -e hello
# ld -o hello hello.o \
# -lSystem \
# -syslibroot `xcrun -sdk macosx --show-sdk-path` \
# -e _start \
# -arch arm64
while getopts a:o:e: flag
do
case "${flag}" in
a) asmfile=${OPTARG};;
o) ... | true |
cdfa8bf3a3cf123f5698557d77d2633dee42e718 | Shell | kylebailey94/ipoddisk | /src/iPodDisk.app/Contents/MacOS/iPodDisk | UTF-8 | 2,091 | 4 | 4 | [] | no_license | #!/bin/sh
display_warning_dialog () {
# If no arguments were passed, return 1
if [ -z "$1" ]
then
return 1
else
osascript <<WARNINGDIALOG
tell application "Finder"
activate
display dialog "$1" buttons {"Quit"} default button "Quit" with icon caution
end tell
WARNINGDIALOG
fi
}
# check against OS X ... | true |
bcd873a26cfee5a9dc2909a04959738c8b92dc8c | Shell | KazAoyama/KaigoSystem | /E-LIFE/KEIRI/CGI/KOJINATESEIKYUSHO_SAKUSEI.KEISAN.NORMAL_NOTHIWARI | UTF-8 | 5,062 | 3.15625 | 3 | [] | no_license | #!/bin/bash
#
# KOJINATESEIKYUSHO_SAKUSEI.KEISAN.NORMAL_NOTHIWARI 施設請求計算部分のCGI
#
# Written by S.Otsubo
# 設定ファイル読込
source /home/hands/.bashrc &> /dev/null
source /home/hands/E-LIFE/KEIRI/CGI/KOJINATESEIKYUSHO_SAKUSEI.INI &> /dev/null
# ログ
[ ! -e /home/hands/E-LIFE/KEIRI/TRACE_LOG/${today} ] && mkdir /home/hands/E-LIFE... | true |
0a54fc228928bc48d09e0adbc8f7c8f9eca03453 | Shell | pisecurity/opencv-manager | /setup.sh | UTF-8 | 900 | 2.578125 | 3 | [
"MIT",
"BSD-3-Clause"
] | permissive | #!/bin/sh
if [ -f /etc/friendlyelec-release ]; then
echo "OpenCV is not supported on this platform"
exit 0
fi
# Build tools:
apt-get install build-essential cmake make gcc g++ ccache yasm unzip wget
# Media I/O:
apt-get install zlib1g-dev libjpeg-dev libwebp-dev libpng-dev libtiff5-dev libjasper-dev libopenexr-dev... | true |
d4c6c0121157cec3dab8703e38a27e4c224fa2c9 | Shell | tnshibu/daytrader | /aws-resources/api-gatewayv2/api-gatewayv2-linux.sh | UTF-8 | 3,299 | 3.25 | 3 | [] | no_license | #These have the same commands as the readme/commands text file.
#It has been simplified and made into series of shell commands
#====================================================================================================
#Get list of existing API gateways
apiid=`aws apigatewayv2 --profile shibu_admin get-api... | true |
142fcee3793493f063b08d4d4e1ea1f18e9d4e47 | Shell | 190300451/Menu-interactivo- | /Menu interactivo (5 laboratorios) | UTF-8 | 959 | 3.296875 | 3 | [] | no_license | #!/bin/bash
vis(){
echo
echo Menu Interactivo
echo
echo 1.-lab1
echo
echo 2.-lab2
echo
echo 3.-lab3
echo
echo 4.-lab4
echo
echo 5.-lab5
echo
echo 6.-salida
echo
echo
echo
}
echo "Bienvenido Inge, Ingrese su nombre: "
read nombre
echo "Hola inge $nombre"
editor=... | true |
b08ec27b78a805a471ff17e7a36107d240eb0944 | Shell | zalari/vagrant-ubuntu-java-docker | /make_box.sh | UTF-8 | 638 | 3.03125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#this script builds a vagrant box and exports it to vagrant-java-docker.box
#furthermore it fixes the current VirtualBox tools, because docker exchanges the kernel..."
rm -f ubuntu-java-docker.box
vagrant plugin install vagrant-vbguest
echo "Remove old base box and build new one..."
vagrant destroy... | true |
b9aace2cbb7e415d9716d6c23fed0fb251843653 | Shell | cms-analysis/HiggsAnalysis-HZZ4l_Combination | /RunLimits/scripts/make_ML.sh | UTF-8 | 1,141 | 3.265625 | 3 | [] | no_license | #!/bin/bash
STRICT=0; if [[ "$1" == "-s" ]]; then STRICT=1; shift; fi;
MINIM=0; if [[ "$1" == "-1" ]]; then MINIM="--minimizerAlgo=Minuit"; shift; fi;
if test -d $1; then MASS=$1; else echo "Usage: $0 mass [what ]"; exit 1; fi;
cd $MASS
WHAT="ML"
MATCH=$2;
OPTIONS="--X-rtd TMCSO_AdaptivePseudoAsimov --optimizeSim=1 -... | true |
b98f867a6fcada0ef0a60e626ebfdec3a862309b | Shell | alan-turing-institute/data-safe-haven | /tests/srd_smoke_tests/test_databases.mustache.sh | UTF-8 | 1,116 | 3.65625 | 4 | [
"BSD-3-Clause"
] | permissive | #! /bin/bash
db_type=""
language=""
while getopts d:l: flag; do
case "${flag}" in
d) db_type=${OPTARG};;
l) language=${OPTARG};;
*) echo "Invalid option ${OPTARG}"; exit 1;;
esac
done
if [ "$db_type" == "mssql" ]; then
db_name="master"
port="{{SmokeTests.MSSQLPort}}"
server_... | true |
276a079a4cb3df9417fa2dbaea744b5c010a6ddc | Shell | mansurovs/DMI__ | /a_VS_b_C03.sh | UTF-8 | 1,443 | 3.59375 | 4 | [] | no_license | #!/bin/bash
#echo "Input a:"
#read a
#echo "Input b:"
#read b
#if [ $a -eq $b ] #ja a ir vienada ar b
#then
#echo "a ($a) ir vienads ar b ($b)"
#else
#echo "a ($a) nav vienads ar b ($b)"
#fi
#echo "Input a"
#read a
#echo "Input b"
#read b
#if [ $a -gt $b ]
#then
#echo "a ($a) ir lielaks par b ($b)"
#else
#echo "a ($... | true |
8d3b34b58ccce1bec8cffd29dc22aec44a50bcba | Shell | lovesegfault/dotfiles-1 | /bin/emacs_install.sh | UTF-8 | 734 | 3.453125 | 3 | [] | no_license | #!/bin/sh
set -e
if command -v doom 2>&2; then
doom upgrade
doom build
exit
fi
# install in XDG_CONFIG_HOME, but link to HOME nonetheless, as
# XDG_CONFIG_HOME might not be set when launching Emacs from the GUI
if [ -z "$XDG_CONFIG_HOME" ]; then
export XDG_CONFIG_HOME="$HOME/.config"
fi
export DOOMDIR="$XDG_... | true |
e8462af52924ae298d1474ed815bab221df1002c | Shell | DhruvAggarwal98/ECE364 | /Prelab 09/getMoreUsedComponent.bash | UTF-8 | 671 | 3.140625 | 3 | [] | no_license | #!/bin/bash
# ######################################################
# Author : < Your Full Name >
# email : < Your Email >
# ID : < Your course ID , e . g . ee364j20 >
# Date : < Start Date >
# ######################################################
DataPath=~ee364/DataFolder/Prelab09
id1=$1
id2=$2
count1=0
count2=0
fo... | true |
38a4c3c94692dba595ff2c46c17ba37ce6505da2 | Shell | CommandPost/CommandPost | /scripts/build_commandpost_release_retry_notorise.sh | UTF-8 | 805 | 3.34375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#
# COMMANDPOST BUILD RELEASE SCRIPT:
#
set -eu
set -o pipefail
#
# Define Variables:
#
export SENTRY_ORG=commandpost
export SENTRY_PROJECT=commandpost
export SENTRY_LOG_LEVEL=debug
export SCRIPT_HOME ; SCRIPT_HOME="$(dirname "$(greadlink -f "$0")")"
export COMMANDPOST_HOME ; COMMANDPOST_HOME="$(greadl... | true |
ee457002155bfb078777244de56a0cfbacb25826 | Shell | d405f16/chawk | /make.sh | UTF-8 | 316 | 2.546875 | 3 | [] | no_license | #!/usr/bin/env bash
echo "Downloading compiler..."
if [ ! -d "tmp/chawk" ]; then
git clone https://github.com/d405f16/chawk-compiler.git tmp/chawk >/dev/null
fi
cd tmp/chawk
git pull >/dev/null
cd ../..
echo "Building compiler..."
cd tmp/chawk
gradle fatJar >/dev/null
cd ../..
cd src
npm install >/dev/null
cd ..
| true |
0525284c8dadcb6ade5fb63fac013d250a037494 | Shell | mrbian/Other-intel-iot | /build/run_demo | UTF-8 | 1,537 | 3.109375 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
if [ "x$1" == "x" ]; then
echo "HELP: run task, task could be:"
echo " broker start the http broker"
echo " center start the sample center"
echo " hub start the sample hub"
echo " edison start the sample hub in edison (it includes real things)"
echo "... | true |
19b574fba98f65645a27be3263ef8f0683cb959f | Shell | jonepl/Docker-WordPress-Dev-Env | /dev/Scripts/Local/package-wordpress.sh | UTF-8 | 1,048 | 3.78125 | 4 | [] | no_license | #!/bin/bash
SITENAME=$1
WPDBUSER=root
WPDBNAME=`cat ../docker-compose.yml | grep MYSQL_DATABASE | cut -d \: -f 2 | sed -e 's/^[[:space:]]*//'`
WPDBPASS=`cat ../docker-compose.yml | grep MYSQL_ROOT_PASSWORD | cut -d \: -f 2 | sed -e 's/^[[:space:]]*//'`
if [ -z $SITENAME ] || [ -z $WPDBNAME ] || [ -z $WPDBPASS ]; then... | true |
6fd032dc57ceef261cfc36ab24cef69e7d064679 | Shell | harlantwood/dev_env | /shell_ext_any_box.sh | UTF-8 | 4,507 | 3.21875 | 3 | [
"MIT"
] | permissive | # Designed to be used on both dev and production servers
# Read and understand all of this that you use!
#
# As the license says:
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND... | true |
4ebb42bf572f05f5afa946ada1f912e47ec75136 | Shell | yjs1210/robinhood-services | /admin/entrypoint.sh | UTF-8 | 686 | 2.890625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# shellcheck disable=SC2034
TEXT_RESET_="\033[0m"
TEXT_BOLD_="\033[1m"
TEXT_RED_="\033[31m"
TEXT_GREEN_="\033[32m"
TEXT_YELLOW_="\033[33m"
# BASH Init Steps
{
echo 'alias ls="ls --color"'
echo 'export PS1="\[\033[1;34m\]\!\[\033[0m\] \[\033[1;35m\]\u\[\033[0m\]:\[\033[1;35m\]\W\[\033[0m\] $ "'
echo ... | true |
976b8dd5e5189b4e33dd70b778f725fd87208d5f | Shell | fooblic/steem-up | /steem_follow.sh | UTF-8 | 872 | 3.953125 | 4 | [] | no_license | #!/bin/bash
# /usr/local/bin/steem_follow.sh
#
function start {
echo "Steem Follow: starting service"
python3 /usr/local/bin/steem_follow.py &
sleep 5
echo "PID is $(cat /var/run/steem/steem_follow.pid)"
}
function stop {
echo "Steem Follow: stopping Service (PID = $(cat /var/run/steem/steem_follow.pid) )"
... | true |
9210681df062f3947d3759cd8388ec0216972e97 | Shell | scherzhaft/roles | /sysupdate/files/opt/unix_ops/STIG/bin/enableaudit.sh | UTF-8 | 8,036 | 2.71875 | 3 | [] | no_license | #!/bin/bash -x
##GEN002860 ##GEN000000-SOL00040 ##RHEL-06-000313 ##RHEL-06-000311
##RHEL-06-000159 ##RHEL-06-000161 ##RHEL-06-000160 ##RHEL-06-000005 ##RHEL-06-000136 ##RHEL-06-000137
##RHEL-06-000510 ##RHEL-06-000511 ##RHEL-06-000154 ##RHEL-06-000148 ##RHEL-06-000145 ##RHEL-06-000383 ##RHEL-06-000384 #... | true |
8b57f625faa52d022ccd3336f314eea1be8b6cb5 | Shell | tjdevries/config_manager | /install/deprecated/install_zsh.sh | UTF-8 | 401 | 2.515625 | 3 | [] | no_license | sudo apt install zsh
chsh -s $(which zsh)
# Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Install spaceship theme
git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt"
ln -s "$ZSH_CUSTOM/themes... | true |
95223afb99261c02958856c65edf3ea900f999ca | Shell | petermilne/TOMO | /bin/load.AFHBA404 | UTF-8 | 232 | 2.859375 | 3 | [] | no_license | #!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
grep -q afhba /proc/modules
if [ $? -eq 0 ]; then
echo afhba loaded already
exit
fi
cd /home/dt100/PROJECTS/AFHBA404;
exec ./scripts/brotto.loadNIRQ $*
| true |
2b1da40ba3125f6c95d5c93be03592076c3ab64a | Shell | Verumex/heroku-buildpack-libvips | /bin/buildscript.sh | UTF-8 | 2,317 | 3.921875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
indent() {
sed 's/^/ /'
}
arrow() {
sed 's/^/-----> /'
}
ensure_dirs() {
mkdir -p $TMP_DIR
mkdir -p $VIPS_PATH
mkdir -p $CACHE_DIR
}
cleanup_build() {
rm -Rf $TMP_DIR
}
export_profile() {
mkdir -p $BUILD_DIR/.profile.d
cp $BP_DIR/.profile.d/* $BUILD_DIR/.profile.d/
}
inst... | true |
019ac22a909ca0b15b546f0b60fbca2b05a3382a | Shell | mmgc84/bash_scripting | /more_on_bash/testbash_error.sh | UTF-8 | 99 | 3.171875 | 3 | [] | no_license | #!/bin/bash
sum=0
for i in 1 2 3 4
do
sum=(($sum+$i))
done
echo "the sum of "$i" numbers is $sum" | true |
65be7c81695e3839131245cf014f4d4ee26d738f | Shell | sajjadwasim84/asimov | /quick_check._liveserver.bash | UTF-8 | 890 | 3.015625 | 3 | [] | no_license | #!/bin/bash
#ps axuf | egrep -v ^root | tr -s " " | cut -f1,11- -d' ' | column -c2
processes=$(ps axu | egrep -v '(^root|^syslog|^statd|^ntp|^dnsmasq|^daemon|^ganglia|^munge|^postfix|^systemd|^nobody)' | tail -n+2 | awk '{ printf"%-9s", $1; $1=$2=$3=$4=$5=$6=$7=$8=$9=$10=""; printf"%-70s\n", $0}')
all_clear=$(echo -e ... | true |
42ac423dfead1ee65f89d077df23f542c87428cf | Shell | axykon/dotfiles | /install/helm | UTF-8 | 382 | 3.03125 | 3 | [] | no_license | #!/bin/bash
set -e
version="v3.9.0"
curl -sL "https://get.helm.sh/helm-$version-linux-amd64.tar.gz" \
| tar -C $HOME/.local/bin -xz --strip-components=1 --mode=0755 \
linux-amd64/helm
bashcompdir=$HOME/.local/share/bash-completion/completions
[[ -d $bashcompdir ]] || mkdir -p $bashcompdir
bashcomp=$bashcompdir... | true |
50c777fa9f193a8a5413b137e1edc9cd623ba77d | Shell | yanakievv/OS | /Scripting/05-b-7500.sh | UTF-8 | 549 | 4.125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
if [ $# -ne 2 ] || [[ ! "${1}" =~ ^[0-9]+$ ]] || [[ ! "${2}" =~ ^[0-9]+$ ]]; then
printf "The two arguments must be positive integers!\n"
exit 1
fi
lower="${1}"
upper=$(expr ${2} - ${1})
counter=1
number=$(( (RANDOM % ${upper}) + ${lower} ))
echo $number
while true; do
read -p "Guess? " ans
if [ ... | true |
9e1fcdb6f7dc8e6d1c2fd132dc4e055583adbe85 | Shell | ihiji/hudson-dynamic-branch-manager | /remove_job.sh | UTF-8 | 407 | 2.859375 | 3 | [] | no_license | #!/bin/bash
set -e
set -u
#the env var CI_TYPE is expected to be hudson or jenkins, and controls location and name of the cli jar.
project_name=$1 #e.g. pachweb
simple_name=$2 #this should be a simple name (like hotfix-1.3.1 or rc-1.2, never prefixed with origin/)
job_name=${project_name}_$simple_name
java -jar /var/c... | true |
cc53dd3b76877bab37c089a28feec9b907f8e2c9 | Shell | google/kf | /operator/scripts/ci-build.sh | UTF-8 | 1,784 | 3.375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | true |
834f01bddb2111ea662d86ae7f598ba315ca7ed4 | Shell | yitsushi/taskwarrior-docker | /taskd-create-user | UTF-8 | 572 | 3.40625 | 3 | [] | no_license | #!/usr/bin/env ash
org="$1"
username="$2"
if [[ -z "$org" ]]; then
echo "$0 <org> <user>"
return 1
fi
if [[ -z "$username" ]]; then
echo "$0 <org> <user>"
return 1
fi
export SERVER=$(hostname -f)
export CN=$SERVER
echo "creating $org/$username"
taskd add user "$org" "$username"
cd $TASKDDATA/pki
uname=$... | true |
5527925dc6a747196fca76e4faf0febfff281320 | Shell | jpl169/POPL21-artifact | /runOverheadTest.sh | UTF-8 | 1,242 | 3.109375 | 3 | [] | no_license | #!/bin/bash
ResultPath="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
B16_ResultPath="${ResultPath}/B16OvhdRslt.txt"
P16_ResultPath="${ResultPath}/P16OvhdRslt.txt"
F32_ResultPath="${ResultPath}/F32OvhdRslt.txt"
echo -e "\033[1mBuilding math libraries\033[0m"
make -s clean
make -s
echo -e "\033[1mMeasuring bfloa... | true |
ace48a958ed8c4a7db199a5628faa3bf7890fe29 | Shell | josanabr/articulo_ds_2021_I | /codigo/NPB/script_instalacion.sh | UTF-8 | 569 | 3.546875 | 4 | [] | no_license | #!/usr/bin/env bash
#
# Este script invoca los diversos pasos (scripts) que generalmente se deben
# ejecutar para llevar a cabo el proceso de instalacion de un paquete.
#
# Autor: John Sanabria - john.sanabria@correounivalle.edu.co
# Fecha: 2021-05-05
#
if [ "${0}" == "./script_borrado.sh" ]; then
./borrar.sh && exi... | true |
6caeb80bdd9ffa7113ae367a5015912a44a6da99 | Shell | lonkamikaze/bsda2 | /tests/bsda_fifo.sh | UTF-8 | 1,234 | 3.421875 | 3 | [
"ISC"
] | permissive | . ../src/bsda_fifo.sh
. ../src/bsda_test.sh
. ../src/bsda_util.sh
NL=$'\n'
# Record number of file descriptors
IFS=,
bsda:util:count fdcount0 $bsda_obj_desc
# Create a Fifo instance
bsda:fifo:Fifo fifo
# Check if file descriptors were consumed
bsda:util:count fdcount1 $bsda_obj_desc
test $fdcount1 -le $fdcount0
# Fif... | true |
bbf82c4b68ef319025191eb480f19f53f7122edc | Shell | wwone/AUTHOR | /examples/article_lisbon/createPDF.sh | UTF-8 | 1,441 | 3.3125 | 3 | [
"MIT"
] | permissive | #
# from the FOP input (made by AUTHOR), create
# an interactive PDF distribution file
#
# The working directory will contain the
# following:
#
# article.fo (FOP previously combined from AUTHOR output)
# one way to combine the FOP files is the
# following command:
# ca... | true |
57b1f1711655e559ba0414f2819d5149fd0e4c23 | Shell | zhangwei217245/HDF5Meta | /scripts/test_mongo.sh | UTF-8 | 973 | 2.9375 | 3 | [
"BSD-3-Clause-LBNL"
] | permissive | #!/bin/bash
nohup ./bin/hdf5_set_2_mongo /global/cscratch1/sd/houhun/h5boss_v1 100 16 > mongotest_100_16.txt &
#nohup ./sim_mongo.sh > mongotest_100_16.txt &
fakeidx=1
old_num_file=0
echo ""> mongo_mem.txt
while [ $fakeidx -eq 1 ];do
if [ $num_file -eq 100 ];then
break
fi
num_file=`grep -c "[PARSE... | true |
4e54260aca64c443962013ddc16b4cb1802d57fc | Shell | lwilletts/Legions-on-Unix | /legionsoverdrive | UTF-8 | 4,060 | 4.40625 | 4 | [
"MIT"
] | permissive | #!/bin/sh
#
# wildefyr - 2016 (c) MIT
# run script for Legions: Overdrive on Linux.
ARGS="$@"
WINEPRE="$HOME/.wine-legions"
DIRECTORY="$HOME/.legions"
LAUNCHER="http://www.legionsoverdrive.com/launcher/Legions.exe"
usage() {
cat << EOF
Usage: $(basename $0) [-qhV] [-p path] [-w path]
-p | --path: Set pat... | true |
24b0f6a67881ddbf6688f8927c79347007ee9b5f | Shell | sierdzio/tbus | /src/tbus-config | UTF-8 | 393 | 3.140625 | 3 | [
"WTFPL"
] | permissive | #!/bin/bash
# tbus-config is used to read and modify the global/ local configuration of tbus.
. tbus-global
help () {
echo "tbus-config is used to read and modify the global/ local configuration
of tbus.
To get general information about tbus, use tbus info."
}
if [ "${1}" = "-h" ] || [ "${1}" = "--help" ]; then
... | true |
3c50b7f641451698da8b97b2a88f15c4be7b5e05 | Shell | joechen88/scripts | /diskinfo.sh | UTF-8 | 1,748 | 3.609375 | 4 | [] | no_license | #!/bin/bash
usage()
{
cat << EOF
Usage: sh diskinfo.sh <ad|dg>
ad = list all disks
dg = list disks from vsan diskgroup
example:
sh diskinfo.sh dg
EOF
}
#
#
# replace carriage return w/ a TAB when issuing a grep -> awk '... | true |
b3a8341c9662379da064654d2bfde5530cc7fea1 | Shell | getupcloud/origin-server | /cartridges/openshift-origin-cartridge-cron/bin/install | UTF-8 | 974 | 3.46875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -e
source $OPENSHIFT_CARTRIDGE_SDK_BASH
# only print this message on the "main" gear, not any scaled gears (for scalable apps)
# or secondary haproxy gears (for ha applications)
if [ "$OPENSHIFT_GEAR_DNS" == "$OPENSHIFT_APP_DNS" ]; then
frequencies=$(cat $OPENSHIFT_CRON_DIR/configuration/frequencies ... | true |
158b75d2cecc3feb4ea4d97cb64f158fe43e8e5e | Shell | CBIIT/NBIA-TCIA | /software/nbia-search/src/assets/set_api_url.sh~ | UTF-8 | 1,604 | 4 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | #!/bin/bash
OS=`uname`
if [ "$OS" == "Darwin" ]
then
echo "Does not run on Mac (incompatible sed)"
exit 1
fi
if [[ $1 == *"help"* ]]
then
echo
echo "Call from within nbia-client/assets/ directory"
echo "Ex: set_api_url.sh https://public-dev.cancerimagingarchive.net"
echo "Ex: set_api_url.sh h... | true |
3c1a23cbdec0e6ba71ecbe268bf229c465ec9d0d | Shell | petronny/aur3-mirror | /trebuchet/PKGBUILD | UTF-8 | 1,335 | 2.734375 | 3 | [] | no_license | # This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Glen Oakley <goakley123@gmail.com>
pkgname=trebuc... | true |
6c9dedac08b984063c12e32683c5b1095821dfe8 | Shell | Ali-Neyestan/dws-dev-006-bash1 | /try.sh | UTF-8 | 985 | 4.3125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
count=1
### call when an error occurred
function usage {
echo "Usage: $0 -i [interval] -n [numbers] command"
exit 1;
}
### read the &5 and after that if the command has 2 section
### like ping 4.2.2.4
command=${*:5}
### if condition to get the necessary options
if [ -e $1 ] & [ -e $3 ]; then
... | true |
86eb967ec9baf1d2014d8d91ce429c71bb16b621 | Shell | voyage13/factomd | /scripts/performance/pulldata.sh | UTF-8 | 118 | 2.78125 | 3 | [
"MIT"
] | permissive | if [ -z "$1" ]; then
echo "Usage:"
echo " ./pulldata.sh <test name>"
else
cp ../../time.out ./$1.out
fi
| true |
40d9ee9d20d10208afe3812f596d962d2559eecc | Shell | sonnenscheinchen/emu-scripts | /deluaem.sh | UTF-8 | 1,191 | 4.09375 | 4 | [] | no_license | #!/bin/bash
if [ ! -d "$2" ]; then
echo "Delete .uaem files created by fs-uae"
echo "Usage: $0 [-u | -a] /path/to/harddrive_dir [-m]"
echo "Options:"
echo "-u delete (possibly) unwanted .uaem files"
echo "-a delete all .uaem files"
echo "-m also change atime and mtime of host filesystem's files (not a good... | true |
5b2bf2228b867f63c5496d5a9f797819ebf92493 | Shell | afolarin/chip_gt | /opticall/opticall_parsers/sge_opticall_chunker.sh | UTF-8 | 1,233 | 3.375 | 3 | [] | no_license | #!/bin/sh
#$-S /bin/bash
#$-cwd
#$-V
#########################################################################
# -- Author: Amos Folarin #
# -- Organisation: KCL/SLaM #
# -- Email: amosfolarin@gmail.com ... | true |
70591f021426b0c8e624512ef7b16e2dc7ffe6cc | Shell | adyang/dotfiles | /lib/await.sh | UTF-8 | 330 | 3.4375 | 3 | [] | no_license | #!/bin/bash
await() {
local commands=("$@")
local timeoutSecs=15
local current expiry
current="$(date +%s)"
expiry="$(( current + timeoutSecs ))"
until "${commands[@]}"; do
current="$(date +%s)"
if (( current > expiry )); then
echo "Timeout retrying: '${commands[@]}'"
return 124
fi... | true |
c6fed42de212eb10b3c15cda5f8346829194a279 | Shell | hdmsoftware/lightcoder-v1 | /modules/common/bashscripts/script.sh | UTF-8 | 1,162 | 3.828125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# - This is the main script that is used to compile/interpret the source code
# - The script takes 3 arguments
# 1. The compiler that is to compile the source file.
# 2. The source file that is to be compiled/interpreted
# 3. Additional argument only needed for compilers, to execute the object code
#
... | true |
8ee414bfcb3d77648412a7b46259a7776b69642d | Shell | andrius-k/CERNTasks | /task3/aggregate_campaigns | UTF-8 | 1,730 | 3.8125 | 4 | [] | no_license | #!/bin/sh
# Parse date argument
date=20170228
if [[ -n $1 ]]
then
date=$1
fi
date_length=${#date}
if [[ $date_length != 8 ]]
then
echo 'Invalid date. Example: 20170228'
exit
fi
echo 'Aggregating for date: '$date
# Chnage username in location value
location=/cms/users/$USER/campaigns
hdir=hdfs://$locat... | true |
453dfa51eb7ca98b951606915239e5ebd686c8e7 | Shell | avh4/burndown-charts | /optimize-screenshots.sh | UTF-8 | 900 | 3.5 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -euo pipefail
# make animated gifs
colors=64
for i in *-1.png; do
name="${i%-1.png}"
lastframe=$(ls "$name"-*.png | sed -e "s/^${name}-//;s/\\.png$//" | sort -n | tail -n1)
size=$(identify -format '%wx%h' "$name"-"$lastframe".png)
# make a palette that is forced to include #f8f8f8 (fo... | true |
cd8b60fb5ae7c7424546a79c421ac01a0d0d2d96 | Shell | jan-kaspar/elastic_analysis.ctpps.2018.september | /export_candidates | UTF-8 | 197 | 2.546875 | 3 | [] | no_license | #!/bin/bash
export_dir="/afs/cern.ch/user/j/jkaspar/public/for_frici/ctpps-2018-september"
for dir in DS-xangle-*
do
mkdir -p "$export_dir/$dir"
cp $dir/candidates*.txt "$export_dir/$dir"
done
| true |
51400cf072c6e21d37a0daf7dac2e2ca02aab5dd | Shell | droiter/lxc-for-Android-7.1.2 | /envsetup_x86_64.sh | UTF-8 | 1,215 | 2.90625 | 3 | [] | no_license | export ANDROID_SDK_HOME=/home/sting/local/android-sdk-linux
export ANDROID_NDK_HOME=/home/sting/local/android-ndk-r15b
export ANDROID_STANDALONE_TOOLCHAIN_HOME=/opt/toolchain/android-toolchain-x86_64-4.9-android-24
export SYSROOT=$ANDROID_STANDALONE_TOOLCHAIN_HOME/sysroot
# User specific environment and startup progra... | true |
e9eed6a3ab735e206e16cdf9400d4e67d913a815 | Shell | rospix/gazebo_rad_obstacle | /gazebo_files/build.sh | UTF-8 | 293 | 3.453125 | 3 | [] | no_license | #!/bin/bash
./cleanup.sh
for filename in *; do
if [[ -d $filename ]]; then
cd $filename
for f in *; do
echo $f
if [[ $f == *".erb"* ]]; then
echo "Generating ${filename}/${f:0:-4}"
erb "$f" > ${f:0:-4}
fi
done
cd ..
fi
done
echo "Done"
| true |
e38d651f5bfbb5204bbd68b49e6223168160ae89 | Shell | uday745/DEVOPS | /shell scripts/file_handling.sh.txt | UTF-8 | 659 | 3.078125 | 3 | [] | no_license | #!/bin/bash
cat uday.log | while read LINE
do
echo $LINE
echo "Hello world !"
done
---------------------
#!/bin/bash
while read LINE
do
echo $LINE
echo "Hello world !"
done < uday.log
----------------------------
#!/bin/bash
myfile="uday.log"
counter=2
cat $myfile | while read LINE
do
echo $LINE... | true |
6030c29c6cef97a164600cf504420964637a1557 | Shell | dybekm/gws | /src/gws | UTF-8 | 38,380 | 3.546875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
################################################################################
# Author: Fabien Dubosson <fabien.dubosson@gmail.com> #
# OS: (Probably?) All Linux distributions #
# Requirements: git, bash > 4.0 ... | true |
86ca602227459b5e565fced640159980b677dc6d | Shell | sufyanadam/ansible-minecraft | /scripts/ci.sh | UTF-8 | 1,525 | 3.640625 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -euxo pipefail
IFS=$'\n\t'
declare -r OS=${1:-${OS}}
declare -r PROCESS_CONTROL=${2:-${PROCESS_CONTROL}}
declare -r SERVER=${3:-${SERVER}}
declare -r WORKSPACE=${WORKSPACE:-/tmp/ansible-minecraft}
function cleanup() {
docker-compose stop "${OS}"
docker-compose rm -f "${OS}"
}
function deb... | true |
0c47bc2d67d8c381566e0158a374beeaeabbfffa | Shell | shlurbee/dmrs-text-generation-naacl2019 | /scripts/run_silver.sh | UTF-8 | 17,387 | 3.484375 | 3 | [] | no_license | #!/bin/bash
###
# Helpers to prepare different combinations of gold and silver data and train.
# Please run from repo root.
###
echo "Usage: From root dir run:"
echo "sh scripts/run_experiments.sh"
preprocess_silver() {
DATA_DIR=data_gw
mkdir -p $DATA_DIR
# preprocess gigaword data files to create silve... | true |
67a5f4b52f47121cad6b78527d1fe8111b53d165 | Shell | KeenS/sheltar | /test/testSheltar.sh | UTF-8 | 4,146 | 3.546875 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
# Copyright (c) 2015, Sunrin SHIMURA
# All rights reserved.
# 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 condition... | true |
5830e774a5b993e2f916b603b29cb2f3c6136993 | Shell | Elbandi/lighttpd | /debian/lighttpd.postinst | UTF-8 | 508 | 2.734375 | 3 | [
"OML",
"RSA-MD",
"BSD-3-Clause"
] | permissive | #! /bin/sh -e
# postinst script for lighttpd
if [ "$1" = "configure" ]; then
if [ ! -r /var/www/index.lighttpd.html ];
then
cp /usr/share/lighttpd/index.html /var/www/index.lighttpd.html
fi
mkdir -p /var/run/lighttpd > /dev/null 2> /dev/null
chown www-data:www-data /var/log/lighttpd /var/run/lig... | true |
4c1efc3e8b27ed0dafdb875b4dcf1d8ff70c6bf8 | Shell | DavidGamba/bin | /explorer | UTF-8 | 214 | 3.4375 | 3 | [] | no_license | #!/bin/bash
WSL_DISTRO=Ubuntu-20.04
file=$1
shift
if [[ $file != /* ]]; then
file="$PWD/$file"
fi
location="\\\\wsl\$\\$WSL_DISTRO${file//\//\\}"
echo "$location"
#sed -e 's#/#\\#g'
explorer.exe "$location"
| true |
5768bc45c612712b578cf55ce7a53c50da5b2ce8 | Shell | openstack/requirements | /tools/cruft.sh | UTF-8 | 4,029 | 3.90625 | 4 | [] | no_license | #!/bin/bash -ex
# Copyright 2015 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | true |
066fcdf464bc54fa320fedf001da1d85c1c68460 | Shell | prashantpok/Cloud-Computing | /hello.sh | UTF-8 | 395 | 2.75 | 3 | [] | no_license | #!/bin/bash
echo "welcome to shell scripting":
echo "welcome to linux world"
echo "current user $ whoami"
<< c
echo "$(whoami)!!!!!"
echo " hostname $(hostname)"
echo "username $(uname)"
echo "added new line"
c
((sum=23+36))
echo "sum of 23 and 36= $sum"
read number1
#echo "enter a no"
read number2
#echo "enter s... | true |
b1d237ce17d5e0c941dfec523febdca07ceb2391 | Shell | radez/vTNG | /clean.sh | UTF-8 | 555 | 2.609375 | 3 | [] | no_license | source ./vars.sh
# delete Virtual machines
for l in $SPINES $LEAVES; do
for x in $SWITCHES; do
virsh destroy $l-$x
virsh undefine $l-$x --remove-all-storage
done
done
for l in $LEAVES; do
for x in $NODES; do
virsh destroy $l-$x
virsh undefine $l-$x --remove-all-storage
d... | true |
18f062efc124af81d3b8d9cf0828308bca3b5c8d | Shell | NetBSD/pkgsrc | /mail/courier-maildir/files/sharedindexupdate.sh | UTF-8 | 945 | 3.3125 | 3 | [] | no_license | #!@SH@
#
# $NetBSD: sharedindexupdate.sh,v 1.4 2007/10/15 15:37:09 jlam Exp $
#
# This script updates the index of shared folders on the system and is
# only needed if Courier-IMAP or SqWebMail used to serve mail and shared
# folders are used. If so, then this script should be run regularly as a
# system process to en... | true |
1a7a87751e5f8726de4d48f53aabb1ebd0c7b0d6 | Shell | ayshabaij/xml_parsing | /elasticsearch-2.3.1/postinst | UTF-8 | 3,332 | 3.84375 | 4 | [] | no_license | #!/bin/sh
set -e
#
# This script is executed in the post-installation phase
#
# On Debian,
# $1=configure : is set to 'configure' and if $2 is set, it is an upgrade
#
# On RedHat,
# $1=0 : indicates a removal
# $1=1 : indicates an upgrade
# Sets the default values for elasticse... | true |
a3b7e28e70de418ca38297470d26f8481d8c6fc2 | Shell | tomaashcroft/Grafana-Tasks | /getstats-io.sh | UTF-8 | 2,032 | 2.984375 | 3 | [] | no_license | #!/bin/bash
""" Copyright (c) 2015, Genome Research Ltd
All rights reserved.
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 a... | true |
e281a7c6d31007d46af9cafd585fa259fc3fa7e9 | Shell | anlaneg/tools | /build-ovs/build_pktgen.sh | UTF-8 | 778 | 3.265625 | 3 | [] | no_license | #!/bin/bash
export DPDK_BASE_DIR=`pwd`
export DPDK_VERSION=dpdk-16.11
export DPDK_TARGET=x86_64-native-linuxapp-gcc
#export DPDK_BUILD=$DPDK_BASE_DIR/$DPDK_VERSION/$DPDK_TARGET
export PKTGEN=pktgen-dpdk-pktgen-3.0.17
export RTE_SDK='/home/dpdk'
echo "Cleaning.."
if [ -d "$DPDK_BASE_DIR/$PKTGEN" ]; then
rm -rf $DPDK... | true |
7e48177c46288208f458763e3e74f4d988a3f744 | Shell | x3ro/tinyos-legacy | /tinyos-2.x-contrib/diku/common/apps/TTXDemo/PC_display/start_meter.sh | ISO-8859-15 | 1,052 | 3.46875 | 3 | [] | no_license | #!/bin/bash
TREND=trend-20050723/trend
FIFOPATH=/tmp/
# D X Bl #117bff
# D Y Rd
# D Z Grn
# A X Sort
# A Y Gul
GEOMETRY=$(xdpyinfo | grep dimensions | cut -d ':' -f 2 | tr -s ' ' | cut -d ' ' -f 2)
HEIGHT=$(echo $GEOMETRY | cut -d 'x' -f 2)
WIDTH=$(echo $GEOMETRY | cut -d 'x' -f 1)
echo "Screen is ${WIDTH}x${HEIGH... | true |
98b5bf4bd6b5d11f6ee52cd7049eead7d247f514 | Shell | kinsamanka/mksocfpga | /Scripts/SD-Image-Gen/gen_rootfs-stretch.sh | UTF-8 | 18,825 | 2.625 | 3 | [] | no_license | #!/bin/bash
#------------------------------------------------------------------------------------------------------
# Variables
#------------------------------------------------------------------------------------------------------
set -e
CURRENT_DIR=`pwd`
WORK_DIR=$1
ROOTFS_DIR=$2
SD_IMG=$3
IMG_ROOT_PART=$4
distro=$5
... | true |
235a53ef29c7d0321beef41925d44edf0bf78091 | Shell | memorius/policy-auction | /conf/cassandra-dev-dirs.sh | UTF-8 | 1,066 | 3.3125 | 3 | [] | no_license | #!/bin/bash
# Config for cassandra install / start scripts in parent dir
replace_data_and_log_dir_placeholders () {
local data_dir="$1"
local log_dir="$2"
shift 2
for f ; do
rm -f "$f"
cp "$f.template" "$f"
sed -i -r 's!%%cassandra_log_dir%%!'"${log_dir}!" "$f"
sed -i -... | true |
bdaebe051e51afd1edf98c38182c1e5a9c3cb670 | Shell | yuelicn/docker-kong | /run.sh | UTF-8 | 922 | 3.28125 | 3 | [] | no_license | #!/bin/sh
#
# run.sh
# Copyright (C) 2019 yueli <yueli@tusdao.com>
#
# Distributed under terms of the GPL license.
image=yueli/kong:1.0.3
enviroments="
-e KONG_PREFIX=/usr/local/kong
-e ONG_DATABASE=postgres
-e KONG_PG_HOST=192.168.64.58
-e KONG_PG_PORT=5432
-e KONG_PG_USER=kong
-e KONG_PG_... | true |
8fe31c7b859c25b66291827a3a68546212a0732c | Shell | LoveRfy/kubernetes-vagrant-debian-cluster | /prepare.sh | UTF-8 | 2,032 | 3.265625 | 3 | [] | no_license | #!/bin/bash
echo root:vagrant|chpasswd
apt-get install expect -y
expect -c "
set timeout 20
spawn su - root
expect "Password:"
send "vagrant\r"
interact
"
id
cat >> /etc/ssh/sshd_config <<EOF
UseDNS no
PasswordAuthentication yes
PermitRootLogin yes
EOF
ssh-keygen -t rsa -f /root/.ssh/id_rsa -P ""
sshkey=$(cat ~/... | true |
2e9fb85dc3e8fdc5c0afcec1bc93aad45c3ed8f6 | Shell | ilyak93/inheritance_templates_practice | /MoreAVLWithPythonAux/ex1/auto-test-generation/run_test | UTF-8 | 1,572 | 3.765625 | 4 | [] | no_license | #!/bin/bash
function run_test {
if (( $# != 2 )); then
echo "Usage: ./run_test <number_of_lines> <test_id>"
exit
fi
num_of_lines=$1
test_name="randtest"$2
out_file=${test_name}.res
if (( num_of_lines <= 0 )); then
echo "<number_of_lines> must be positive"
exit
... | true |
7b7318ef80d64209e2baecdc0a0c506aa89620c9 | Shell | SergLih/bash_project_guessing | /guessinggame.sh | UTF-8 | 511 | 4.21875 | 4 | [] | no_license | #!/usr/bin/env bash
function guessinggame {
cur_dir_count_files=$(ls | wc -l)
echo "Hi, how many files are there in the current directory? Enter the number:"
while read ans_usr
do
if [[ $ans_usr -gt $cur_dir_count_files ]]
then
echo "Your guess is high, try to guess again."
continue
elif [[ $ans_usr ... | true |
d68ac198273f36b8e844845960b6a1bbf66df211 | Shell | hsandt/LD45 | /build_itest.sh | UTF-8 | 1,496 | 3.46875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Build a PICO-8 cartridge for the integration tests.
# This is essentially a proxy script for pico-boots/scripts/build_game.sh with the right parameters.
# Extra options are passed to build_cartridge.sh (with $@).
# This is useful in particular for --symbols.
# Configuration: paths
picoboots_scripts_pat... | true |
f69e229f26f753a136e60d4d76332cddbeac6565 | Shell | bouk/nixpkgs-1 | /config/bash/bashrc.sh | UTF-8 | 3,068 | 3.078125 | 3 | [] | no_license | # If not running interactively, don't do anything
[ -z "$PS1" ] && return
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# allow recursive ** globs
shopt -s globstar
# make less more friendly for non-text input files, see lesspipe(1)
[ -x... | true |
d1e5e58abf63ddbdc5fc422d37b978c276b99a73 | Shell | yukikokubo/system_software_lecture | /kadai3.sh | UTF-8 | 171 | 3.453125 | 3 | [] | no_license | #!/bin/sh
if [ $# -ne 2 ]; then
echo "input 2 argments" 1>&2
exit 1
fi
a=$1
b=$2
while [ $b -ne 0 ]; do
remainder=$(( $a % $b ))
a=$b
b=$remainder
done
echo $a
| true |
224c632a3078280f8d2e906ebfe5e4302349b228 | Shell | kitimark/bashscript | /quiz1/600610773/04.sh | UTF-8 | 165 | 3.203125 | 3 | [] | no_license | #!/bin/bash
for dir in `find $2 -name $1`
do
echo $dir > .dir_file
echo --- `cut -d'/' -f3 .dir_file` ---
cat $dir
echo
shift
done
rm .dir_file | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.