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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
bbfa4c8e752ed0def122cd175b685d622ad9e60d | Shell | jorgediaz-lr/liferay-faster-deploy | /tomcat/catalinastart | UTF-8 | 4,475 | 3.609375 | 4 | [] | no_license | #!/bin/bash
SCRIPT_FOLDER=$(dirname ${BASH_SOURCE[0]})
catalinaconf() {
# Identify a usable port
local TOMCAT_PORT=$(python ${SCRIPT_FOLDER}/getport.py)
if [ "" == "${TOMCAT_PORT}" ]; then
return 1
fi
export TOMCAT_PORT_PREFIX=$(echo "${TOMCAT_PORT}" | sed 's/80$//')
# Update the port in server.xml to the... | true |
8ec9597697b59e21075d3f30e93d4de638b3c4e3 | Shell | davidcoheny/Linux | /peer_check.sh | UTF-8 | 3,766 | 3.828125 | 4 | [] | no_license | #!/bin/bash
## This script will run bash commands (on RHEL 7 and Centos 7) according to "Virtual Machine Checklist" and dispaly them in coloer
## each number corresponds to the number on the XLS sheet
## To use the scrip run in a bash sheel USER@SERVER "bash -s" < script
## This scrip will run as root
sudo -i
## ... | true |
847aaad5bde77634b5a9bb6af0729e995b199968 | Shell | delkyd/alfheim_linux-PKGBUILDS | /gamera-git/PKGBUILD | UTF-8 | 703 | 2.609375 | 3 | [] | no_license | # Maintainer: Carsten Feuls <archlinux@carstenfeuls.de>
pkgname=gamera-git
pkgver=3.4.2.r42.g51a0c59bd547
pkgrel=1
pkgdesc="Framework for building document analysis applications."
arch=('i686' 'x86_64' 'armv5h' 'armv6h' 'armv7h')
url="http://gamera.informatik.hsnr.de"
license=('GPL')
depends=('python2' 'libtiff' 'libpn... | true |
107fa0fcd356e502f2281a1e98bbb2d2a6d24dea | Shell | xia1990/LEYU_TECH | /编译脚本/quick_build.sh | UTF-8 | 20,792 | 2.75 | 3 | [] | no_license | WsRootDir=`pwd`
MY_NAME=`whoami`
CONFIGPATH=$WsRootDir/device/ginreen
ARM=arm64
KERNELCONFIGPATH=$WsRootDir/kernel-3.18/arch/$ARM/configs
CUSTOMPATH=$WsRootDir/device/ginreen
RELEASEPATH=$1
BUILDINFO=$WsRootDir/build-log/buildinfo
RELEASE_PARAM=all
LOG_PATH=$WsRootDir/build-log
BASE_PRJ=gr6750_66_r_n
Mode_Path=$WsRootD... | true |
132b0e3ada844ed24a9f8450a88c0ae9fabf7c9f | Shell | xPMo/i3wm-config | /LIB/i3blocks/playerctl.sh | UTF-8 | 1,607 | 3.59375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
IFS=$'\n'
#click, play/pause
[[ ${BLOCK_BUTTON:-0} = 1 ]] && playerctl play-pause
player_status=$(playerctl status)
pango_escape() {
sed -e 's/&/\&/g; s/</</g; s/>/\>/g'
}
# exit 0 lets the block text be cleared
if [ -z $player_status ]; then exit 0; fi
if [ $player_status = Sto... | true |
924b493cfa1a5bae33119e313e1a48db4eece320 | Shell | fishyoo/develop | /tools/vscode/.bashrc | UTF-8 | 939 | 2.546875 | 3 | [] | no_license | alias ,='cd -';
alias .='cd ..';
alias ..='cd ../..';
alias ...='cd ../../..';
alias ....='cd ../../../..';
alias l='ls -alF';
alias la='ls -la';
alias ll='ls -al --color=tty';
alias lx='ls -lhBX --color=auto';
alias lz='ls -lhrS --color=auto';
alias lt='ls -lhrt --color=auto';
alias egrep='egrep --color=... | true |
b7bcaf687013133a7d97aab26e8f86f1d0d8efb1 | Shell | objectiveceo/devops | /bin/start-remote-image.sh | UTF-8 | 800 | 3.875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -euo pipefail
function main {
local sshHost="${1:?Must provide an ssh host}"
local containerName="${2:?Must provide an image name (org/image:version)}"
shift
shift
local additionalFlags="$@"
local org
local image
local version
IFS=: read -r tmp version <<< "$containerName"
IFS=/ r... | true |
51b3f7bdb4e5bbb35cc83ae870b4297b07319c7c | Shell | arash1902/deepeda | /benchmarks/RitircBiereKauers-FMCAD17-data/experiments/3_mathematica_sparrc_notpromote/run.sh | UTF-8 | 232 | 2.96875 | 3 | [] | no_license | #!/bin/sh
i=8
case x`basename $0` in
xsubmit.sh) run=sbatch;;
*) run="";;
esac
echo "running jobs $run"
while [ $i -le 64 ]
do
echo launching $i
$run ./launch.sh ../../benchmarks/aoki/sp-ar-rc-$i.aig
i=`expr 2 \* $i`
done
| true |
660d434f80dff6247a815352ac46309778393eb7 | Shell | rebl0x3r/aut0_mak3r | /lib/random_mac.sh | UTF-8 | 908 | 3.46875 | 3 | [] | no_license | #!/bin/bash
export PURPLE="\e[01;35m"
export Z="\e[0m"
export BLUE="\e[01;34m"
if [ $# -eq 0 ]
then
echo "Please specify an interface:
$0 eth0
$0 wlan0
"
else
echo -e $PURPLE "Generate random mac address...."
a1=`cat /dev/urandom | tr -dc 'a-fA-F0-9' | fold -w 2 | head -n 1`
a2=`cat /de... | true |
96e429772b74d141ddc94269045e19bbd146c881 | Shell | dreibh/planetlab-lxc-build | /lbuild-bridge.sh | UTF-8 | 4,647 | 3.828125 | 4 | [] | no_license | #!/bin/bash
# taking this bridge-initialization code out of lbuild-initvm.sh
# so we can use it on our libvirt/lxc local infra
# there's something very similar in
# tests/system/template-qemu/qemu-bridge-init
# that the current code was actually based on, but
# nobody was ever bold enough to reconcile these two
# har... | true |
905e6affa29c3b9ff2fd34639553b6005ed758ab | Shell | Gontxx/showboard | /launch.sh | UTF-8 | 599 | 2.765625 | 3 | [] | no_license | #!/usr/bin/env bash
echo -e "\033[32m"
echo "##############################################"
echo "# Auto-Launch System #"
echo "##############################################"
echo "pku2018!)#)"
echo "##############################################"
echo -e "\033[0m"
echo "当前上线服务器:39.106.6.6"
... | true |
6d8e475234f1bf26fa0e25ed62dd11c12e8461c3 | Shell | ucsd-ccbb/cirrus-ngs | /src/cirrus_ngs/server/Pipelines/scripts/SmallRNASeq/bowtie2/miRNA_merge_counts.sh | UTF-8 | 1,301 | 3.640625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
project_name=$1
workflow=$2
file_suffix=$3 #extension of input file, does not include .gz if present in input
root_dir=$4
fastq_end1=$5
fastq_end2=$6
input_address=$7 #this is an s3 address e.g. s3://path/to/input/directory
output_address=$8 #this is an s3 address e.g. s3://path/to/output/directory
l... | true |
1270eacb8a4ad1cb5fac0c0438a3902d98066060 | Shell | pchandra/chef-bcpc | /vmware/vmware_create.sh | UTF-8 | 4,219 | 3.546875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash -e
# bash imports
source ./vmware_env.sh
if [[ -z "$VMRUN" ]]; then
echo "vmrun not found!" >&2
echo " Please ensure VMWare is installed and vmrun is accessible." >&2
exit 1
fi
if [[ -z "$VMDISK" ]]; then
echo "vmware-vdiskmanager not found!" >&2
echo " Please ensure VMWare is installed and v... | true |
ff9e4bb8bdd9a7b3e1dfc9250d9568a5712318cb | Shell | qcastel/github-actions-maven-cmd | /mvn-action.sh | UTF-8 | 430 | 3.359375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
pwd
if [ -d "${M2_HOME_FOLDER}" ]; then
echo "INFO - M2 folder '${M2_HOME_FOLDER}' not empty. We therefore will beneficy from the CI cache";
ls -l ${M2_HOME_FOLDER};
else
echo "WARN - No M2 folder '${M2_HOME_FOLDER}' found. We therefore won't beneficy from the CI cache";
fi
... | true |
76496d9e666c651040d437d40978aba9f7c2d373 | Shell | bioinformatics-ua/BioASQ9b | /Baseline/setup.sh | UTF-8 | 884 | 3.609375 | 4 | [] | no_license | #!/bin/bash
# exit when any command fails
set -e
VENV_NAME="py-bioasq"
# remove the virtual env if alredy exists
if [ -d "$(pwd)/$VENV_NAME" ]; then
echo "Removing alredy existing venv first"
rm -r $VENV_NAME
fi
# PYTHON DEPENDENCIES
PYTHON=python3.6
echo "Creating a python environment ($VENV_NAME)"
$PYTHON -... | true |
9a7d06eae7c0807b3c0854d9bdf9d33d27d9f093 | Shell | podismine/pac2019 | /scripts/T1processing/RR1_FSprocessing.sh | UTF-8 | 1,782 | 2.5625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# CLUSTER OPTIONS
wd="working/directory"
fsdir="freeSurfer/directory"
echo ${SLURM_ARRAY_TASK_ID}.$(sed -n "${SLURM_ARRAY_TASK_ID}{p;q}" ${wd}/dataset/PAC2019_BrainAge_Training.csv)
dat=$(sed -n "${SLURM_ARRAY_TASK_ID}{p;q}" ${wd}/dataset/PAC2019_BrainAge_Training.csv)
echo ${dat}
ID=$(echo ${dat} | cut... | true |
14303a818bcaf669ee8bcc311d63965a7e63f389 | Shell | packetfield/infra-core | /ansible/vars/encrypt-string.sh | UTF-8 | 359 | 3.28125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
####
# Usage example
####
# Run something like this:
#
# ./encrypt-string.sh some_secret_variable "the-actual-secret-goes-here" >> ./shared-secrets.yml
#
# it should add a secret string variable called {{some_secret_variable}} to shared-secrets.yml
KEY="$1"
VAL="$2"
printf "$VAL" | ansible-vault... | true |
e83f8ae31f08aed7dd70f6de9581bab70e15af1b | Shell | wei-tang/OpenArkCompiler | /tools/setup_tools.sh | UTF-8 | 7,003 | 3.125 | 3 | [] | no_license | #!/bin/bash
#
# Copyright (C) [2020-2021] Futurewei Technologies, Inc. All rights reverved.
#
# Licensed under the Mulan Permissive Software License v2.
# You can use this software according to the terms and conditions of the MulanPSL - 2.0.
# You may obtain a copy of MulanPSL - 2.0 at:
#
# https://opensource.org/lic... | true |
c7aa18ebe260ab83361e6debfdeca013ca8ac00a | Shell | gianpietrodimatteo/dotfiles | /bin/gians_home | UTF-8 | 462 | 2.84375 | 3 | [] | no_license | #!/bin/bash
# Periodically update my ip
# crontab -e
# 0 */6 * * * /home/USERNAME/bin/gians_home >/dev/null 2>&1
name="$GIANS_DEVICE"
ip="$(hostname -I | awk '{print $1}')"
appurl="$GIANS_HOME/address"
curl -sSd "{\"name\":\"$name\", \"address\":\"$ip\", \"user\":\"$USER\"}" -H "Content-Type: application/json" -X PO... | true |
98b1102be7cd9b86e0a623504e29e5ade3a6a23c | Shell | jknightlab/Abu-Dhabi | /RNASeq/PaxGeneCohort/Scripts_for_mapping/MakeScriptsTophat2Mapping.sh | UTF-8 | 1,587 | 3.390625 | 3 | [] | no_license | #!/bin/bash
##### define your paths
# 1) a directory of fastq files
#fastq_files="/well/jknight/AbuDhabiRNA/P170245"
# 2) project directory
#mkdir -p ./mapping/2.mapping/mappingscripts
#mkdir -p ./mapping/2.mapping/fastq
# make links all fastq files in $fastq_files directory to $PROJECT_DIR/mapping/2.mapping/ ;
#cm... | true |
7de871295e61ed04dbbcd2018a248692c388cbb3 | Shell | ryanseys/dotfiles | /common/aliases | UTF-8 | 2,917 | 3.328125 | 3 | [
"MIT"
] | permissive | #!/bin/zsh
# git-open to open the current branch in github
function git-open() {
CURRENT_BRANCH=$(git branch --show-current)
REMOTE_BRANCH=$(git config --get branch.$CURRENT_BRANCH.remote)
MERGE_BRANCH=$(git config --get branch.$CURRENT_BRANCH.merge | cut -d '/' -f 3-)
GIT_REMOTE_URL=$(git ls-remote --get-url ... | true |
a6952302a53efc71647e2eb7cb3915b2b7658a5e | Shell | 88IO/dotfiles_old | /.zshrc | UTF-8 | 3,257 | 2.75 | 3 | [] | no_license | # Set up the prompt
autoload colors
colors
PROMPT="%{${fg[green]}%}%n@%m:%{${fg[yellow]}%}%~%{${fg[green]}%}%j%#
%{${fg[yellow]}%}↪ %{$reset_color%}"
PROMPT2="%{$fg[green]%}%_> %{$reset_color%}"
SPROMPT="%{$fg[red]%}correct: %R -> %r [nyae]? %{$reset_color%}"
setopt histignorealldups sharehistory
# Use emacs keybin... | true |
e54d58e26f46557e833333123ca3096c709c9f61 | Shell | fbuether/GoodNight2 | /service/runPerformance.sh | UTF-8 | 539 | 2.765625 | 3 | [
"MIT"
] | permissive | #!/bin/sh -xm
sudo echo "requesting sudo privs, to properly launch sub-process..."
if [ ! -f perfcollect ]
then
curl -OL http://aka.ms/perfcollect
chmod +x ./perfcollect
sudo ./perfcollect install
fi
make build
sudo ./perfcollect collect testSession &
sudoprocid=$!
sleep 1
echo `ps --ppid $sudoprocid -o pid=`
p... | true |
001210771ce86024e037be17b8f05883352c6198 | Shell | azago-dev/docker-magento2-7.4 | /updateUrl | UTF-8 | 498 | 3.421875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
url=$1
if [ "$2" != "" ]
then
container=$2
else
container=$(docker ps -qf "name=db")
fi
if [[ $url == *"http"* ]]; then
echo "Error! Enter your URL without http, like: google.com"
exit 0;
fi
docker exec -i $container mysql -umagento -pmagento magento <<< "UPDATE core_config_data... | true |
8c56e13757af8969fda8621784b66fa3de209dda | Shell | f1lm/MS-2014-Boise-State-University | /Programming Languages/pub/ch8/excep.sh | UTF-8 | 220 | 3.203125 | 3 | [] | no_license | #!/bin/bash
Error() {
echo "not ok"
exit 1;
}
trap "Error" SIGUSR1
foo() {
if [ $# -lt 1 ] ; then
kill -SIGUSR1 $$
fi
# much more code
echo "foo() done"
}
foo "$@"
# much more code
echo "ok"
| true |
2e9b2461b7c4f2b05a6c7b621c5e69fb84d4ee0b | Shell | olivierpierre/openflash | /cmake/check_params.sh | UTF-8 | 1,451 | 3.6875 | 4 | [] | no_license | #!/bin/sh
if [ ! "$#" = "1" ]; then
echo "Usage : $0 <Path to Param.cpp>"
exit
fi
sed -rn "s/^.*parseInt\(\"(.*)\".*/\1/p" $1 > parsed.tmp123456
sed -rn "s/^.*parseDouble\(\"(.*)\".*/\1/p" $1 >> parsed.tmp123456
sed -rn "s/^.*parseString\(\"(.*)\".*/\1/p" $1 >> parsed.tmp123456
sed -rn "s/^.*parseBool\(\"(.*)\".*... | true |
9575907521191c28f0ef9538e39864fe2c5951ad | Shell | fish2000/Praxa | /Praximes/Library/venv-functions.sh | UTF-8 | 1,937 | 2.921875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
cd $VIRTUAL_ENV
echo "+ Setting up development environment bash functions ..."
function vcd () {
HOME=$VIRTUAL_ENV \
CDPATH="${VIRTUAL_ENV}:${VIRTUAL_ENV}/local:${VIRTUAL_ENV}/var:/tmp:${CDPATH}" \
eval "cd $@"
}
function vbp () {
SIGNALQUEUE_RUNMODE=SQ_SYNC \
${INSTAN... | true |
aac502fe98a4f15486ceabe53ff488634192a022 | Shell | drzhnin/docker-ikev2-vpn-server | /run.sh | UTF-8 | 3,979 | 2.65625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
VPNIPPOOL="10.15.1.0/24"
LEFT_ID=${VPNHOST}
sysctl net.ipv4.ip_forward=1
sysctl net.ipv6.conf.all.forwarding=1
sysctl net.ipv6.conf.eth0.proxy_ndp=1
if [ ! -z "$DNS_SERVERS" ] ; then
DNS=$DNS_SERVERS
else
DNS="1.1.1.1,8.8.8.8"
fi
if [ ! -z "$SPEED_LIMIT" ] ; then
tc qdisc add dev eth0 handle 1: ingress
... | true |
1238ede570a95f7fa29a0667a4cb50199f44a12b | Shell | timoast/ngs-tools | /download_from_sra.sh | UTF-8 | 3,559 | 4.15625 | 4 | [] | no_license | #! /bin/bash
# downloads data for all accessions in an input file
# sra files are moved to their own folders
# then converted to fastq and gzipped
# input can be a list of SRA runs (SRR) or SRA projects (SRP)
infile= cores=10 fastq=false outdir="."
usage="$(basename "$0") -- download data from NCBI SRA or ENA
-... | true |
11645b7b0502972fb472b33dbc3e9eb255f4abd1 | Shell | kogn/scft | /script/schedule.sh | UTF-8 | 282 | 3.109375 | 3 | [] | no_license | #!/bin/bash
pro_name=$1
task_num=$2
cycle_num=$3
i=1
while (( $i <= $cycle_num ))
do
pro_num=$(ps -A | grep $pro_name |wc -l)
if (( $pro_num < <ask_num )); then
echo $i
./main 2 2
sleep 1s
i=$(($i+1))
else
echo 'sleeping 600s'
sleep 600s
fi
done
| true |
540208d86c2872881ed19941d6fa2b6c5d33bd81 | Shell | timoguin/shell-functions | /source-functions.sh | UTF-8 | 596 | 4.4375 | 4 | [
"Unlicense"
] | permissive | #!/bin/bash
# =============================================================================
# Sources a list of functions passed into the script. Functions must have a
# matching directory with *.sh files.
# =============================================================================
functions="$@"
echo "Sourcing fu... | true |
7a50aa736939fc0f6ac76df05a541aaa2d773993 | Shell | wnielson/cement | /scripts/mkrelease.sh | UTF-8 | 719 | 3.546875 | 4 | [
"MIT",
"Python-2.0"
] | permissive | #!/bin/bash
status=$(git status --porcelain)
version=$(python -c "from pkg_resources import get_distribution ; print get_distribution('cement').version")
short=$(echo $version | awk -F . {' print $1"."$2 '})
dir=~/cement-${version}
if [ "${status}" != "" ]; then
echo
echo "WARNING: not all changes committed"
... | true |
de45388fee5d4fa0d28f9717b3dfe1f4073453c1 | Shell | badgeek/DocsifyWebhook | /publish.sh | UTF-8 | 829 | 3.875 | 4 | [] | no_license | pushd `dirname $0` > /dev/null
SCRIPTPATH=`pwd`
popd > /dev/null
cd $SCRIPTPATH
. "./config.sh"
export GIT_SOURCE_FOLDER="source_git"
export GIT_DEPLOY_DIR="dist"
function generate_package_template() #platforms
{
local _platforms=${1}
local _template=${2}
eval "cat <<EOF
$(<./${_template})
EOF
" 2> /dev/null
}
i... | true |
a10c14538b5a374afda61e49bf91059fe7cdc062 | Shell | tetherless-world/whyis | /upgrade_py3.sh | UTF-8 | 917 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
echo "Archiving Python 2 virtualenv to /apps/py2venv.tgz..."
pushd /apps/whyis
sudo tar cfz /apps/py2venv.tgz venv
sudo rm -rf venv
popd
echo "Done."
sudo service stop jetty8
sudo /opt/puppetlabs/bin/puppet module uninstall stankevich-python
sudo /opt/puppetlabs/bin/puppet module install puppet-python
su... | true |
585ca1d96c53f1ff1d03f3720ca9bdb69de83b3f | Shell | neam/dokku-host-provisioning | /shell-scripts-to-include/docker-enter.sh | UTF-8 | 358 | 3.046875 | 3 | [] | no_license | #!/bin/bash
# Uses nsenter to step into a running container
# usage:
# ./docker-attach.sh CONTAINER_ID
# for docker 0.9+
export PID=`docker inspect $1 | grep '"Pid":' | sed 's/[^0-9]//g'`
set -x
nsenter --target $PID --mount --uts --ipc --net --pid
# for docker <0.9
# lxc-attach -n `sudo docker inspect $1 | grep '"... | true |
2221d78239731336aa07ddb6324e85b98cde44b4 | Shell | kaihendry/pi.dabase.com | /newinfo.sh | UTF-8 | 635 | 3.03125 | 3 | [] | no_license | cat <<END
<table>
<thead>
<tr>
<th>Name</th>
<th>Port</th>
<th>Mac Address</th>
<th>Local IP</th>
<th>Origin IP</th>
<th>Origin port</th>
<th>Host</th>
<th>Host port</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
END
for i in */index.txt
do
echo "<tr>"
echo "<td>$(dirname $i)</td>"
set -- $(tail -n1 $i)
if test $1 == ... | true |
fb85b7a113db6c5a0b131fa5f41adef864d91c2a | Shell | BGforgeNet/BGforge-MLS-IElib | /docs/generate.sh | UTF-8 | 253 | 2.59375 | 3 | [] | no_license | #!/bin/bash
set -xeu -o pipefail
site_dir="docs"
pages_dir="_pages"
data_dir="data"
cd "$site_dir"
mkdir -p "$pages_dir"
pip3 install ruamel.yaml
./yaml_to_md.py "$data_dir" "$pages_dir"
bundle install
JEKYLL_ENV=production bundle exec jekyll build
| true |
706e26795a015510b5aba779b40997a4855ea0d7 | Shell | samsalisbury/sous-demo | /set-version.sh | UTF-8 | 197 | 3.328125 | 3 | [] | no_license | #! /usr/bin/env bash
set -ex
if [ $# -lt 1 ]; then
echo "Usage: $0 <version>"
exit 1
fi
echo "$1" > customstring
git commit -am "Updating version to $1"
git tag "$1"
git push
git push --tags
| true |
879ba1dfc0e20b62d6e4ede00525c0aca9e4c544 | Shell | Royaladvisor26/automatic-romancescam-digger | /captions/im2txt/generate_caption.sh | UTF-8 | 1,171 | 2.875 | 3 | [] | no_license | cd im2txt-workspace
# Path to checkpoint file or a directory containing checkpoint files. Passing
# a directory will only work if there is also a file named 'checkpoint' which
# lists the available checkpoints in the directory. It will not work if you
# point to a directory with just a copy of a model checkpoint: in t... | true |
3db7a9135e43a56e63939244f86bd5903cf6c307 | Shell | dozent2018/IFA_LINUX_DEV | /locktest 2.sh | UTF-8 | 1,543 | 3.765625 | 4 | [] | no_license | #!/bin/bash
# lockfile.sh prüft, ob die Datei /tmp/locktest/lock existiert. Wenn nicht, legt es sie an.
# Wenn Sie existiert, prüft es, ob es in die Datei schreiben darf
# Wenn Schreibrecht vorhanden ist:
# Berechtigungen für (-r--r--r--) setzen
# Nachricht mit PID, Datum und Uhrzeit... | true |
eff65788f8e4032fdd55021ee4795216e8035b72 | Shell | ookamiinc/Sporticon | /.circleci/deploy-website.sh | UTF-8 | 434 | 2.671875 | 3 | [
"Apache-2.0"
] | permissive | git config user.name "$USER_NAME"
git config user.email "$USER_EMAIL"
git checkout gh-pages
git pull origin gh-pages
find . -maxdepth 1 ! -name 'website' ! -name 'CNAME' ! -name '.git' ! -name '.gitignore' ! -name '.circleci' -exec rm -rf {} \;
mv website/_site/* .
rm -R website
git add -fA
git commit --allow-empty ... | true |
6130ce48c134982ec71d78a7d49e826ee8b6a658 | Shell | dmnzs10/mk | /mk-updater.sh-2019010201 | UTF-8 | 3,116 | 3.625 | 4 | [] | no_license | #!/bin/bash
USERS="admin avato noc"
PASSW="senha1 lib6shahco senha2"
PORTS="22 222"
DBTI_HOST=""
DBTI_USER=""
DBTI_PASS=""
DBTI_BASE="avisos_mikrotik"
PORT="222"
DBDM_HOST=""
DBDM_USER="bash_script"
DBDM_PASS=""
DBDM_BASE="hosts_discovery"
COMMAND_LINE=$1
# Conecta no banco DM para obter o comando a ser executado
DBD... | true |
70f34df17aa100be70c7e6b8335366785bbdd9df | Shell | valebedu/vps-init | /vps-install.sh | UTF-8 | 863 | 3.921875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# ---------------------
# ----- FUNCTIONS -----
# ---------------------
function log() {
prefix=""
suffix=""
line=""
for (( i = 0; i < ${#1}; i++ )); do
line+="-"
done
if [[ $2 == "1" ]]; then
prefix="\e[1m\e[31"
suffix="\e[0m"
fi
echo -e ... | true |
04c035b3a2d76f1d56bef86358e650ac7b24ad04 | Shell | rainerilgen/CHIP-Files | /scripts/chip_ha_venv_install.sh | UTF-8 | 666 | 2.765625 | 3 | [
"MIT"
] | permissive | echo "Installing Home Assistant and Mosquitto"
apt-get -y install python-pip python3-dev mosquitto
pip install --upgrade virtualenv
mkdir /srv/hass
chown chip /srv/hass
su -s /bin/bash chip
#as user chip
virtualenv -p python3 /srv/hass
source /srv/hass/bin/activate
pip3 install --upgrade homeassistant
exit
#as root
su ... | true |
45cc9a23cbc2cf554191899b0be237c5009f9061 | Shell | BlackPepperSoftware/dockerfiles | /build.sh | UTF-8 | 706 | 3.390625 | 3 | [] | no_license | #!/bin/bash
set -e
build_container() {
local NAME="blackpepper/$1"
local DIR="$2"
local VERSION="$3"
echo "Building $NAME..."
if [ -x "$DIR/build.sh" ]; then
cd "$DIR"
# Expected to create $NAME:latest
./build.sh $NAME
else
docker build -t $NAME $DIR
fi
docker tag $NAME:latest registry.blackpepper.c... | true |
9f503355e02bc5c7989167ac109fcfbbd84a40c8 | Shell | abyjacobajk/Snake-Ladder | /CheckPlaying_UC3.sh | UTF-8 | 608 | 3.8125 | 4 | [] | no_license | #!/bin/bash -x
echo "Welcome To Snake And Ladder"
#constants
NO_PLAY=0
LADDER=1
SNAKE=2
#variables
playerPosition=0
#Function to set playerPosition according to playing Options like NO_Play or Snake or Ladder
function setPlayerMoves()
{
dieValue=$(( RANDOM % 6 + 1 ))
playingOptions=$(( RANDOM % 3 ))
#Move play... | true |
827b47ef0ac297b37f3632490d1deadb1d6caf95 | Shell | g-koutsou/CDS-1 | /Optim/Ex/Lapl-3D/sub-A.job | UTF-8 | 355 | 2.640625 | 3 | [] | no_license | #!/bin/bash
#SBATCH -J lapl-A
#SBATCH -N 1
#SBATCH -o A-%j.out
#SBATCH -e A-%j.err
module load openmpi
L=128
omps=(4 8 16 32 64 128)
for omp in ${omps[*]}; do
export OMP_NUM_THREADS=$omp
srun numactl --membind 1 ./lapl $L > orig-nomp${omp}.txt
done
for omp in ${omps[*]}; do
echo $omp $(grep 'lapl()' orig... | true |
c033d98cd76d175b094d56346852905518813b5c | Shell | japorized/bin | /rofi-netctl | UTF-8 | 3,506 | 3.984375 | 4 | [] | no_license | #!/usr/bin/env bash
# This is just a very simple and naive interface to netctl
# It works for what I need for now
# It is desirable to be able to manage netctl-auto via systemd w/o rp
# See https://wiki.archlinux.org/index.php/Polkit#Allow_management_of_individual_systemd_units_by_regular_users
# This scripts requires ... | true |
c92cba2ee00ac8d5443047ed7a1b92a6d793ddfe | Shell | badams/yii2-skeleton | /vagrant/provision.sh | UTF-8 | 5,909 | 2.96875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env bash
HOSTNAME=$1
SERVER_TIMEZONE=$2
PHP_TIMEZONE=$3
MYSQL_ROOT_PASSWORD=$4
DB_NAME=$5
DB_USER=$6
DB_PASS=$7
#######################################
# Apt #
#######################################
echo 'deb mirror://mirrors.ubuntu.com/mirrors.txt trusty main restricted u... | true |
3699b0be234e65a67081ae59e120ca97e4179b81 | Shell | ABHISHEK-AMRUTE/Hello-world-1 | /Bash/triangle.sh | UTF-8 | 267 | 2.984375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo -n "input the repetition number : "
read repeat
for((i=1;i<=repeat;i++))
do
for((k=1;k<=(repeat-i);k++))
do
echo -e " \c "
done
for((j=1;j<=i;j++))
do
echo -e "* \c \c"
# awk 'BEGIN{printf "%c ", 178}'
done
echo -e "\n"
done | true |
ac6313fc7f7fd26409b0d2bc98bb43f51962dc99 | Shell | GabrielNicolasAvellaneda/boundary-api-cli | /src/main/scripts/events/event-get | UTF-8 | 1,114 | 3.15625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
###
### Copyright 2014-2015 Boundary, 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 b... | true |
3f90da4e3bc0e174f6d4002d30603d124d65f81e | Shell | alxshine/dotfiles | /zsh/zshrc | UTF-8 | 1,543 | 2.734375 | 3 | [] | no_license | #!/bin/zsh
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%... | true |
22e2abaf3f38db9f027e90db5515071bf20548a0 | Shell | wizzup/code-a-la-mode | /run.sh | UTF-8 | 872 | 3 | 3 | [] | no_license | #! /usr/bin/env nix-shell
#! nix-shell -i bash -p openjdk11 python3
# TODO: reduce dependencies, move python dependency to python AI file
# log should save at script caller directory
CWD=$(pwd)
echo "cwd : $(pwd)"
# make use of script full path, this will allow running `run.sh` from anywhere
DIR="$( cd "$( dirname "... | true |
cafddddd6b714d4538a2e8bc9ebd7dfd602b166c | Shell | thinleyS/dotfiles | /.bashrc | UTF-8 | 567 | 2.859375 | 3 | [] | no_license | # ~/.bashrc
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
alias grep='grep --color=auto'
# Bash prompt
orange=$(tput setaf 166)
yellow=$(tput setaf 228)
red=$(tput setaf 9)
white=$(tput setaf 15)
blue=$(tput setaf 12)
reset=$(tput sgr0)
PS1="\[${red}\]\u"; # ... | true |
eff1defa5a3b175a94458dd96b93d8f6f4c997f7 | Shell | boxenergie/script_Pi | /dashboard_install.sh | UTF-8 | 816 | 3.171875 | 3 | [] | no_license | #!/bin/bash
echo "Ce script va installer la boxenergie sur votre raspberry."
echo "Début d'installation de Node-Red et Node.js."
sleep 5
yes Y|bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)
echo "Fin d'installation de Node-Red et Node.js"
echo "Ajout ... | true |
48cab11e09cf76d78c8ea23a4b1f067aaaadd97f | Shell | Learning-jusuE404/BIOC281 | /Classes/2/STARmale_2p_scr | UTF-8 | 2,021 | 3.109375 | 3 | [] | no_license | #!/bin/bash
# Set reference genome, genome indexes, junction and annotation database directory paths
REF=$HOME/BIOC281/Classes/2/STARindex_2p/PARYMSK_100bp
FTQ=$HOME/BIOC281/Classes/2/reads
# Set parameters
CmmnPrms="--runThreadN 4 --outSJfilterReads Unique --outFilterType BySJout --outSAMunmapped Within \
--outSAMat... | true |
1b8e770e079ab4ad1fe6f675b8b75aa1fe699ea7 | Shell | limonhowlader/HackerRank---The-Linux-Shell-Solutions | /Arrays in Bash/Slice an Array.sh | UTF-8 | 289 | 3.109375 | 3 | [] | no_license | #Given a list of countries, each on a new line, your task is to read them
#into an array. Then slice the array and display only the elements
#lying between positions 3 and 7, both inclusive. Indexing starts from from 0.
#Starting point and step/range
array=($(cat))
echo ${array[@]:3:5}
| true |
2913a777a858ca3eebeb290d4ebdfd9b21e52371 | Shell | jason75023/LTMI | /SAN3/networkmanage.sh | UTF-8 | 1,705 | 3.25 | 3 | [] | no_license | #!/bin/bash
#######################################################################
## This script is to setup LTMI ACRS subnet ##
## Version 1.1 ... | true |
5f6b4f7ba0198be59bf344be709dad00acfce335 | Shell | p0tr3c/TerraKVM | /tests/test_debug_container.sh | UTF-8 | 948 | 3.265625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
PROJECT_DIR=`realpath "$PWD/../"`
TEST_DIR=`realpath $PWD`
TEST_NAME="`basename $0`"
TEST_NAME="${TEST_NAME%.*}"
cd "${PROJECT_DIR}" && \
sudo docker-compose --log-level ERROR up >> "${TEST_DIR}/${TEST_NAME}.log" 2>&1 &
RETRY_COUNT=10
while :
do
res=`sudo docker ps -f name=terrakvm -q`
if [ !... | true |
1bc9422416575209c93d4b52316025c3f7fc7db7 | Shell | macsx82/Singletons-bash | /ja_runner_par.sh | UTF-8 | 2,524 | 3.125 | 3 | [] | no_license | #!/usr/local/bin/bash
# This is the runner file run by bsub
# Arguments: runner.sh filelist
# Environment variables: LSB_JOBINDEX
#Example command:
#mkdir -p LOGS;size=`wc -l result.list|cut -f 1 -d " "`;bsub -J "p_check[1-${size}]" -o "LOGS/%J_p_check.%I.o" -M 5000 -R"select[mem>5000] rusage[mem=5000]" -q normal -- ~... | true |
9f3b09f9a0d5a084682a1275146d6688e93c3ad3 | Shell | fishilico/home-files | /bin/podman-markdownlint | UTF-8 | 4,882 | 3.203125 | 3 | [] | no_license | #!/bin/bash
# SPDX-License-Identifier: MIT
#
# Copyright (c) 2020-2023 Nicolas Iooss
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the ri... | true |
7c22cbf1986e41c8e1eefeea8c524a33f74ab49f | Shell | delkyd/alfheim_linux-PKGBUILDS | /mcabber-crew-hg-extended/PKGBUILD | UTF-8 | 1,896 | 2.640625 | 3 | [] | no_license | pkgname=mcabber-crew-hg-extended
pkgver=2062
pkgrel=2
pkgdesc="mcabber-crew jabber client with extended autocompletion and highlighting"
arch=('i686' 'x86_64')
provides=('mcabber=0.10.2')
conflicts=(mcabber mcabber-lm-hg mcabber-hg mcabber-crew)
url="http://www.mcabber.com"
license=('GPL')
provides=('mcabber-crew-hg')
... | true |
9a0b0698218ee44df5585a6b3c48fa7924e004a6 | Shell | readex-eu/readex-scorep | /vendor/cubelib/test/test31/run_test_31.sh.in | UTF-8 | 2,440 | 3.484375 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | #!/bin/bash
##*************************************************************************##
## CUBE http://www.scalasca.org/ ##
##*************************************************************************##
## Copyright (c) 1998-2016 ... | true |
96d5f81e49554e1710dd54fe62aac339fc26577d | Shell | xphillyx/yui-modules | /bin/yui3doc | UTF-8 | 617 | 3.640625 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
# http://yui.github.com/yuidoc/syntax/index.html
DEBUG=$1
parser_in_prefix=~/tools/yui-modules/src
generator_out=~/tools/jafl.github-yui3/yuidoc
# The version of your project to display within the documentation.
version=1.0.0
if [[ -z $DEBUG ]]; then
rm -rf $generator_out
else
server="--server 5000";
... | true |
634afeb9ecf1d1d7bfcc26bbbce8a9ad48c097d7 | Shell | Cadair/xmpp_chat | /slapd-configure/wait | UTF-8 | 261 | 3.21875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
set -e
#host=$(env | grep _TCP_ADDR | cut -d = -f 2)
host=ldap
port=$(env | grep _TCP_PORT | cut -d = -f 2)
echo -n "waiting for TCP connection to $host:$port..."
while ! nc -z $host $port 2>/dev/null
do
echo "waiting"
sleep 1
done
echo 'ok'
| true |
9aa069058840d7002cb6919e7c207442e0e2a1bc | Shell | thiefaine/42_test | /get_next_line/test.sh | UTF-8 | 4,441 | 2.875 | 3 | [] | no_license | # **************************************************************************** #
# #
# ::: :::::::: #
# test.sh :+: :+: :+: ... | true |
d3097f191fe93ffb553dcccd5962366863a3e60a | Shell | mrestuccio/dge | /3-tecnologia/1-sistemas/2-STP-Stack-de-Planificación/1-SGA-sistema-de-gestion-de-activos/3-entregables/v1/activador.sh | UTF-8 | 2,522 | 3.046875 | 3 | [] | no_license | #!/bin/ksh
mv -f actividad.php ./BK 2>/dev/null
mv -f area.php ./BK 2>/dev/null
mv -f bien.php ./BK 2>/dev/null
mv -f ejecuta.php ./BK 2>/dev/null
mv -f empresa.php ./BK 2>/dev/null
mv -f espacio.php ./BK 2>/dev/null
mv -f insumo.php ./BK 2>/dev/null
mv -f lectura.php ./BK 2>/dev/null
mv -f lugar.php ./BK 2>/dev/null
... | true |
6a2c5e64f1bb6ac176cf41b1515ce504410270c0 | Shell | argylelabcoat/asdf-lsd | /bin/install | UTF-8 | 405 | 3.3125 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -e
# check ASDF environment variables
[ -n "$ASDF_INSTALL_PATH" ] || (echo 'Missing ASDF_INSTALL_PATH' >&2 && exit 1)
[ -n "$ASDF_DOWNLOAD_PATH" ] || (echo 'Missing ASDF_DOWNLOAD_PATH' >&2 && exit 1)
mkdir -p "${ASDF_INSTALL_PATH}/bin"
toolPath="${ASDF_INSTALL_PATH}/bin/lsd"
cd "${ASDF_DOWNLO... | true |
3af8f5891f7d78667e797bfc2f7d4c03cf1be27b | Shell | amanaplan/setup-macos | /scripts/homebrew-packages/casks/panic.sh | UTF-8 | 663 | 3.453125 | 3 | [] | no_license | #!/usr/bin/env bash
RESET="\033[0m"
BRAND="\033[1;34m"
INFO="\033[33m"
SUCCESS="\033[32m"
DANGER="\033[31m"
# Install Transmit
if [ ! -d /usr/local/Caskroom/transmit ]; then
printf "${INFO}Installing Transmit...${RESET}\n"
brew cask install transmit 2</dev/null >/dev/null
if [ -d /usr/local/Caskroom/tran... | true |
459a33567dec754ee76cb998029351431b8a9584 | Shell | datachand/lattice | /terraform/scripts/local/get-lattice-tar | UTF-8 | 835 | 3.796875 | 4 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
if [ -f "$1" ]; then
LATTICE_TAR_PATH=$(cd $(dirname "$1") && pwd )/$(basename "$1")
ln -sf "$LATTICE_TAR_PATH" .terraform/lattice.tgz
exit 0
fi
if [ `echo "$1" | grep -E '^[a-zA-Z0-9]+://.+'` ]; then
if [ -f ".terraform/lattice.tgz" ]; then
URL_VERSION=`echo "$1" | sed -E 's/https?:\/\/.+\/ba... | true |
3dce61436a88f8bc33d50d5f92a7873d90059527 | Shell | amey-sam/cassandra | /replace_node_patch.sh | UTF-8 | 1,772 | 3.859375 | 4 | [
"Apache-2.0"
] | permissive |
# Deal with containers scaling down and up,
# when they will scale up with the same IP as before,
# they will exit with an error because they need --replace-address while booting to take back their seat inside the cluster
seeds=$(echo $CASSANDRA_SEEDS | tr "," "\n")
# dont replace_address if node allready bootstraped... | true |
b80116734f650f8bf5fd7b4cdf9005f5a734da98 | Shell | cbaoth/dotfiles | /bin/image-concat | UTF-8 | 3,828 | 3.84375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# image-concat: Concatenate images creating a simple collage
# Author: Andreas Weyer <dev@cbaoth.de>
# Keywords: bash shell-script
declare -r _SCRIPT_PATH="$(cd "$(dirname "$0")"; pwd -P)"
declare -r _SCRIPT_FILE="$(basename "$0")"
# include commons lib
for f in {$_SCRIPT_PATH/,$_SCRIPT_PATH/li... | true |
a928abf3d0cb798f5a81b6df014fc8f0076fd5db | Shell | curry-lang/kics2 | /scripts/kics2-makecgi.sh | UTF-8 | 7,883 | 3.875 | 4 | [] | no_license | #!/bin/sh
# Compile a Curry program (using the HTML library) into a cgi script
KICS2BUILDDIR=`echo KICS2HOME must be defined here!`
KICS2INSTALLDIR=
# Define the main directory where KICS2 is installed:
if [ -d "$KICS2INSTALLDIR" ] ; then
CURRYROOT=$KICS2INSTALLDIR
else
CURRYROOT=$KICS2BUILDDIR
fi
# Standard suff... | true |
b335f87812747c21fd9c92f1226035f9bab1c709 | Shell | ronnycoding/django-docker-seed | /src/codestyle.sh | UTF-8 | 418 | 3.5625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
SRC_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}/" )" && pwd )"
# convert any windows path to linux style (c:/path, c:\path, /c/path => //c/path)
if [[ ! "$(uname -a)" == *"Linux"* ]] && [[ ! "$(uname -a)" == *"Darwin"* ]] ; then
SRC_DIR=$(echo ${SRC_DIR} | sed 's/://g' | sed -r 's/\\/\//g' | sed ... | true |
46ed1e83070dc3f7b78ca62488adb731dba00048 | Shell | yandex/yandex-taxi-testsuite | /testsuite/databases/pgsql/scripts/service-postgresql | UTF-8 | 1,731 | 3.703125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
. $TESTSUITE_LIB_UTILS
. $(dirname $0)/find-pg.sh
if [ "x$POSTGRESQL_CONFIGS_DIR" = "x" ]; then
die "POSTGRESQL_CONFIGS_DIR must be set"
fi
if [ "x$POSTGRESQL_PORT" = "x" ]; then
die "POSTGRESQL_PORT must be set"
fi
if [ "x$POSTGRESQL_TMPDIR" = "x" ]; then
die "POSTGRESQL_TMPDIR must be set"
fi
... | true |
6e61cf8e6577983cc091f601777ea28c2205c119 | Shell | sasipalakizhi/keytool-certificate-chain-example | /src/02_genkeypair_root.sh | UTF-8 | 615 | 2.6875 | 3 | [] | no_license | #! /usr/bin/env bash
set -o nounset
set -o errexit
# Generating key pair for the Root CA into its key store.
"$JAVA_HOME/bin/keytool" -genkeypair \
-alias "$ROOT_ALIAS" \
-dname "CN=$ROOT_COMMON_NAME, OU=$ROOT_ORGANIZATIONAL_UNIT, O=$ROOT_ORGANIZATIONAL_UNIT, L=$ROOT_LOCALITY, S=$ROOT_STATE, C=$ROOT_COUNTRY" \
-ext... | true |
de4cc91b50fb7f1336224b8852cfe8e42c2160de | Shell | Adven27/Exam | /.utility/update-gh-pages.sh | UTF-8 | 588 | 3.125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
echo -e "Starting to update gh-pages\n"
cp -R example/build/reports/specs $HOME/specs
cd $HOME
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git config --global user.name "${GITHUB_ACTOR}"
git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/Adven27/Exam.g... | true |
03e5aa8494e15745674b9f9ccc690e35e29a7b97 | Shell | prenaux/ham | /specs/toolsets/repos/setup-toolset.sh | UTF-8 | 1,766 | 3.484375 | 3 | [
"Jam",
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
# toolset
export HAM_TOOLSET=REPOS
export HAM_TOOLSET_NAME=repos
export HAM_TOOLSET_DIR="${HAM_HOME}/toolsets/repos"
# platform
case $HAM_OS in
NT*)
toolset_check_and_dl_ver repos nt-x86 v4 || return 1
export REPOS_DIR="${HAM_TOOLSET_DIR}/nt-x86"
export OPENSSL_CONF="${REPOS_DI... | true |
99de1eddcedafeddcaf896446c078e6c3eeb424c | Shell | n1v0lg/fresco-logistic-regression-2 | /run-single.sh | UTF-8 | 668 | 2.953125 | 3 | [] | no_license | #!/bin/bash
#test -f target/logistic-regression-jar-with-dependencies.jar || mvn package
#mvn package
echo "Started at $(date)"
run () {
java \
-jar target/logistic-regression-jar-with-dependencies.jar \
-p1:localhost:8871 \
-p2:localhost:8872 \
--privacy-budget 0 \
--sens... | true |
7b7eb653071b7ea3fe707e24ff328db03b583876 | Shell | alpe/cctrl_ci_test | /ci_maven/constraints | UTF-8 | 168 | 2.859375 | 3 | [] | no_license | #!/bin/bash -e
if [ -z "$APP_NAME" ]; then
echo "APP_NAME not set" >&2
exit 1
fi
if [ -z "$CCTRL_HOST" ]; then
echo "CCTRL_HOST not set" >&2
exit 1
fi
| true |
d5063d913c2bfc6c299fa6aac9c3f4519a2a560f | Shell | ucl-cssb/CIN_PDO | /script/dic/sub_dic_real_logdist_withbratio.sh | UTF-8 | 481 | 2.84375 | 3 | [
"MIT"
] | permissive | pdir=./
odir=../../data/dic
msample=100
nsample=100
dataset=$1
ncell=$2
epsilon=$3
type=$4
s3_weight=$5
only_mut=$6
suffix="logs3_weight${s3_weight}_mut${only_mut}_espilon${epsilon}"
fout=$odir/dic_${type}_1-100_${suffix}_$dataset
cat /dev/null > $fout
for i in {1..100..1}
do
echo $i
dic=`julia $pdir/comp... | true |
ec17b9f3817320e3eeef59ae64e5507cc3f9e6ce | Shell | epidemics/epifor | /fetch_csse.sh | UTF-8 | 231 | 3.28125 | 3 | [] | no_license | #!/bin/sh
set -eu
D=CSSE-COVID-19
cd data
if [ -e "$D" ]; then
echo "Updating CSSE github"
cd "$D"
git pull
cd ..
else
echo "Cloning CSSE github"
git clone https://github.com/CSSEGISandData/COVID-19 "$D"
fi | true |
da8884e76cdab0ac883e8fc443272c0c82f684e1 | Shell | kakabisht/Sem_4 | /OS-LAB/assignment_7/assignment7-2.sh | UTF-8 | 463 | 3.53125 | 4 | [] | no_license | echo "Welcome to lcm and and gcd"
echo "Enter the first number :"
read a
echo "Enter the second number : "
read b
if [ $a -gt $b ]
then
num=$a
den=$b
else
num=$b
den=$a
fi
r=`expr $num % $den`
totloop=$(( $a + $b ))
for (( i=0; i< $totloop ; i--))
do
if [ $r -ne 0 ]
then
num=$den
den=$r
r=`expr $num % $de... | true |
6c5b6708174c4de1e5748568e042e865ddd1d866 | Shell | sharyanto/scripts | /show-bash-history | UTF-8 | 221 | 2.921875 | 3 | [] | no_license | #!/bin/bash
# this is a useless script, but somehow i keep forgetting that there is the 'history' command
if [[ "$PAGER" == "" ]]; then PAGER=less; fi
perl -pe'$_=localtime($1)."|" if /^#(\d+)$/' ~/.bash_history | $PAGER
| true |
d3780a77fe6a4a0b6ff69ba12c02fcb05d729e4e | Shell | deflaux/workbench | /api/db-cdr/generate-cdr/generate-private-cdr-counts.sh | UTF-8 | 2,783 | 4.0625 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
# This generates new BigQuery dataset for use in cloudsql by the workbench
# and dumps csvs of that dataset to import to cloudsql
# End product is:
# 0) Big query dataset for cdr version cdrYYYYMMDD
# 1) .csv of all the tables in a bucket
# Example usage, you need to provide a bunch of args
# ./project.r... | true |
602716889baeca8962faecca89482a4410abf2fa | Shell | knowsuchagency/cs160b | /lab-iftest/what | UTF-8 | 317 | 3.921875 | 4 | [] | no_license | #!/usr/bin/env bash
arg=${1:?"need an argument"}
if [ -L "$arg" ]; then
echo "$arg is a symbolic link"
elif ! [ -e "$arg" ]; then
echo "$arg does not exist"
elif [ -f "$arg" ]; then
echo "$arg is a regular file"
elif [ -d "$arg" ]; then
echo "$arg is a directory"
else
echo "$arg is unknown"
fi
| true |
867478bedcd281eeb4f516e40307c6f186fb9e1a | Shell | theverything/kp-web | /build/init.sh | UTF-8 | 1,080 | 2.5625 | 3 | [] | no_license | ## Install the additional packages ##
sudo apt-get install -y python-software-properties nano git curl
## Install nodejs ##
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install -y nodejs
sudo ln -s /usr/bin/nodejs /usr/bin/node
## Install MongoDB ##
sudo apt-key adv --keyserver hkp:/... | true |
151290d27fa2884e9dd9bb92aea81cb728b40036 | Shell | aws-quickstart/quickstart-microfocus-amc-es | /scripts/Setup-Fileshare.sh | UTF-8 | 734 | 3.1875 | 3 | [
"Apache-2.0"
] | permissive | #! /bin/bash -e
#Log output
exec > >(tee /var/log/Setup-Fileshare.log|logger -t user-data -s 2>/dev/console) 2>&1
if [ "$#" -ne 1 ]
then
echo "Not Enough Arguments supplied."
echo "Setup-Fileshare <FSVIEWUserPassword>"
exit 1
fi
FSVIEWUserPassword=$1
export TERM="xterm"
shift
source /opt/microfocus/EnterpriseDe... | true |
4540c278df6cf116b83b86d8411eea474f3b256e | Shell | hivesolutions/scudum | /scripts/build/tools/xz.sh | UTF-8 | 291 | 2.921875 | 3 | [
"Apache-2.0"
] | permissive | VERSION=${VERSION-5.2.4}
set -e +h
wget --content-disposition "http://tukaani.org/xz/xz-$VERSION.tar.xz" "--output-document=xz-$VERSION.tar.xz"
rm -rf xz-$VERSION && tar -Jxf "xz-$VERSION.tar.xz"
rm -f "xz-$VERSION.tar.xz"
cd xz-$VERSION
./configure --prefix=$PREFIX
make && make install
| true |
ed75fdaa95ccfba468dcbbf6f8b74466c89a84cc | Shell | Docheinstein/easyshare | /devscripts/make-mans.sh | UTF-8 | 527 | 3.03125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
SCRIPT_DIR="$(dirname "$0")"
PROJECT_DIR="$SCRIPT_DIR/.."
. "$SCRIPT_DIR/utils.sh"
cd "$PROJECT_DIR" || exit
if ! command_exists sphinx-build; then
abort "sphinx must be installed for build docs"
fi
if ! pip_module_exists sphinx_rtd_theme; then
abort "sphinx_rtd_theme must be installed for build docs... | true |
1a976ba074cb22fbf84f5e7629777ee9c56d91ad | Shell | UBC-ECE-Sasha/PIM-JSON | /sparser/sparser_dpu/scripts/eval_size_sub.sh | UTF-8 | 461 | 2.53125 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
# $1 filename $2 number of the queries $3 number of tasklets $4 number of DPUs $5 query name
sed -i '4d' Makefile
sed -i "4 i NR_TASKLETS\ ?=\ $3" Makefile
sed -i '5d' Makefile
sed -i "5 i NR_DPUS\ ?=\ $4" Makefile
sed -i '6d' Makefile
sed -i "6 i QUERY\ ?=\ $5" Makefile
make clean
make
./bench $1 15 >> e... | true |
ef5468b264473544795164c5f8b5fb1977261855 | Shell | SwintonStreet/CppCodingExamples | /sizeOf/runSizeOff | UTF-8 | 171 | 2.515625 | 3 | [] | no_license | #!/bin/bash
#
g++ --std=c++17 \
-Wall \
-Werror \
-Wshadow \
sizeOf.cc \
-o sizeOf
if [ $? == 0 ]
then
./sizeOf
rm sizeOf
fi
| true |
64b47f45afa91db849199cd0a8e5a784712ec476 | Shell | hossein-f/GxE_pipeline | /MESH_pipeline/MESH_QuASAR_master_split.sh | UTF-8 | 354 | 3.15625 | 3 | [] | no_license | #!/bin/bash
## warning: each parition of the data needs to be run in its own analysis folder
set -v
set -e
data=$1
outdir=../analysis
mkdir -p $outdir
less ${data} | grep -v "snp" | awk '{print $1,$2,$3,$4"\n"$1,$7,$8,$9}' | tr " " "\t" > ${outdir}/allPlates_allSnps.txt
cp ../../../GxE_pipeline/MESH_pipeline/MESH/* $... | true |
7c5849c538b8090c1136712204deaaa3c9157eb8 | Shell | paddycarey/kafka-docker | /scripts/start_kafka.sh | UTF-8 | 763 | 3.15625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
# Set the advertised host value (if set)
if [ ! -z "$KAFKA_ADVERTISED_HOST" ]; then
echo "Setting advertised.listeners value to: PLAINTEXT://$KAFKA_ADVERTISED_HOST:9092 or SSL://$KAFKA_ADVERTISED_HOST:9093 or SASL_SSL://$KAFKA_ADVERTISED_HOST:9193"
sed -i.bak "s/advertised.listeners=PLAINTEX... | true |
995c777bfb0c2b4200116e24d3e7861dc3522ea3 | Shell | google/santa | /Testing/integration/VM/make_ro_img.sh | UTF-8 | 585 | 3.9375 | 4 | [
"MIT",
"Apache-2.0"
] | permissive | #!/bin/bash
# This script is manually run to create a read-only disk image
# which is mounted into new VMs to help automate the setup process.
set -xeuo pipefail
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
if [ $# -ne 2 ]; then
echo "Usage: $0 image_path xcode_xip_path" >&2
exit... | true |
7eee7075ca76f6ffca2e1ec317d2285aa30979dd | Shell | mftb/lena | /moisa/rodalab.sh | UTF-8 | 112 | 2.734375 | 3 | [] | no_license | #!/bin/bash
rm -rf out
mkdir out
FILES=*.pgm
for f in $FILES
do
mkdir out/$f
./main.m $f
mv *.pbm out/$f/
done
| true |
e09308b13c77d685fead4a3d42dc5ed3e8b1c326 | Shell | rainskript/skriptimine | /praks10/yl2.sh | UTF-8 | 599 | 3.15625 | 3 | [] | no_license | #!/bin/bash
#
#Soovime väljastada aastaaegu
echo -e "Tervist! Sisestage kuu nr: \c"
read kuu
#Kuud 1,2,12 vastamisel on kuu Talv
if test $kuu -eq 1 -o $kuu -eq 2 -o $kuu -e1 12
then
echo "Vastus"
sleep 1
echo "Praegu on talv!"
#Kuud 3 ja 5 vastamisel on kevad
elif test $kuu -ge 3 -a $kuu -le 5
then
echo "vastus"
sleep ... | true |
763ebc4ba1474f467b1645760b3152e4714ae7b1 | Shell | chris-olszewski/dotfiles | /scripts/pacback | UTF-8 | 679 | 4.1875 | 4 | [] | no_license | #!/usr/bin/bash
set -e
# Basic script to manage pacman package list backups
BACKUP_DIR="$HOME/pacback"
ROOT_BACKUP="/backup.tar.bz2"
function backup {
mkdir -p "$BACKUP_DIR"
pushd "$BACKUP_DIR" > /dev/null
FILE="$(date -Iseconds).tar.bz2"
echo $FILE
tar cjf "$BACKUP_DIR/$FILE" /var/lib/pacman/loca... | true |
c99af4d23fc828946a3d1a5b91c0608fcadac5af | Shell | hgxl64/mariadb-benchmarks | /sysbench-runs/series36/run.mysqld | UTF-8 | 864 | 3.609375 | 4 | [] | no_license | #!/bin/bash
#
# usage: $0 <subdir in install-dir> <path to my.cnf>
#
# (w) Axel XL Schwenke for MariaDB Services AB
set -e
set -u
#set -x
. config.sh
HERE=$(pwd)
SERVER=${1:?"no server given!"}
test -d ${INST_DIR}/${SERVER} || { echo " ${INST_DIR}/${SERVER} does not exist!"; exit; }
shift
CONFIG=${1:?"no config gi... | true |
20719da75ec0384a7e02606158bca4209a3d5fb9 | Shell | darekem73/dotConfig | /_scripts/proc.sh | UTF-8 | 653 | 3.09375 | 3 | [
"MIT"
] | permissive | #! /bin/bash
echo $(date)
cat /proc/cpuinfo | grep MHz | egrep -o "[0-9]+\.[0-9]+"
for p in 0 1 2 3; do
(( f=$(cat /sys/devices/system/cpu/cpu$p/cpufreq/scaling_cur_freq) / 1000 ))
echo $f
done
for h in 0 1 2 3 4 5 6; do
(( temp=$(cat /sys/class/thermal/thermal_zone$h/temp) / 1000 ))
... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.