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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
9024bf46f6140d017c6ad88428bd45bd55b18032 | Shell | Cognitip/artemis_dashboard | /bin/docker/config | UTF-8 | 270 | 2.671875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
source .env
# Print the docker-compose.yml file after variable substitution.
# Can be used to debug environmental variable issues.
# NOTE: For application environmental config values, use `.env` in the
# application root directory.
docker-compose config
| true |
9d7e0064c59f335ef754f5a7130fe0d776593acf | Shell | rust-lang/glacier | /ices/83961.sh | UTF-8 | 792 | 2.625 | 3 | [
"Apache-2.0",
"MIT"
] | permissive | #!/bin/bash
cat > Cargo.toml <<'EOF'
[package]
name = "abc"
version = "0.0.1"
edition = "2018"
EOF
mkdir -p src
cat > src/main.rs <<'EOF'
fn main() {
println!("Hello, world!");
}
EOF
cargo test
cat >> src/main.rs <<'EOF'
/// Examples:
/// ```
/// assert_eq!(fun(), 5);
/// ```
fn fun() -> u8 {
5
}
EOF
carg... | true |
cbc28e9eb7099e5bf100526a8f007c49366c400b | Shell | lattera/my3status | /util.zsh | UTF-8 | 179 | 2.8125 | 3 | [] | no_license | # Copyright (c) 2015 Shawn Webb
# License: 2-clause BSD
function do_header() {
cat<<EOF
{
"version": 1
}
[
[]
EOF
}
function add_module() {
module="${1}"
mymodules+=${module}
}
| true |
e59ee3483b0f993658ae6de3d42439cd48c07ee5 | Shell | matthew-parlette/ubuntu-kickstart | /kickstart.sh | UTF-8 | 1,495 | 3.78125 | 4 | [] | no_license | #!/bin/bash
#################
# Configuration #
#################
install_software=true
install_fonts=true
install_bashprompt=true
# Development Libraries
dev="build-essential git ruby lamp-server"
# IDE
ide="geany"
# Utilities
util="keepassx mirage gimp vym geary"
# Install software
##################
if $insta... | true |
37155e48ac2f7c0433590cee3e77a91c7619b366 | Shell | laomaiweng/scripts | /misc/dotview | UTF-8 | 2,278 | 4.09375 | 4 | [] | no_license | #!/bin/bash
warn() {
printf "warning: %s\n" "$*"
} >&2
die() {
printf "error: %s\n" "$*"
exit 1
} >&2
require() { # 1:prog
command -v "$1" &>/dev/null || die "missing dependency: $1"
}
gen_output_name() { # 1:dot_filename
$keep || return
local out="${1%.dot}"
if [[ "$out" == "$1" ]]; t... | true |
93d385e59987276a8df2041d40558cd0d62b7aeb | Shell | varlink/libvarlink | /lib/test-symbols.sh | UTF-8 | 1,034 | 3.296875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -x
set -e
libvarlink_sym=${1:-lib/libvarlink.sym}
libvarlink_a=${2:-libvarlink.a}
# 77 skip test
which readelf >/dev/null 2>&1 || exit 77
test -e "${libvarlink_sym}" || exit 77
test -e "${libvarlink_a}" || exit 77
rm -f symbols.list symbols.lib
if readelf -s -W "${libvarlink_a}" | grep -q 'FUNC GLOB... | true |
173734505e3c8f235d599aa68227bd5e1de4f938 | Shell | jiaxicheng/xc_python | /service_xc_python.sh | UTF-8 | 1,598 | 4.3125 | 4 | [] | no_license | #!/usr/bin/env bash
# pre-defined Action OPTS and regex to match one of the OPTS
OPTS=(build build-run up down start stop)
regex=$(IFS=\|;echo "${OPTS[*]}")
# usage
USAGE="Usage:
$0 [-h|-d folder] <$regex> [SERVICE..]
"
# shared folder to save working codes
SHARED=~/my_code
# process the command options
while ... | true |
49ecab1fdccb18e191e6c97fb0db4ae9215f042d | Shell | y2q-actionman/cl-aws-custom-runtime-test | /build-bootstrap-out/build_bootstrap_in_vm.sh | UTF-8 | 1,073 | 3.546875 | 4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/sh
ZIP_NAME=$1
BIN_NAME="bootstrap"
# Makes a 'bootstrap' binary with SBCL.
# This code does following:
# - Load some small libraries and quicklisp libraries.
# - Load our custom runtime.
# - Prints list of installed systems. (for AWS-lambda function writers.)
# - Makes a single binary named $BIN_NAME. To ... | true |
36339f1632df37e6c4b3098d46e750edefb6e22d | Shell | ianatol/minic | /minic/benchmark.sh | UTF-8 | 2,095 | 3.953125 | 4 | [] | no_license | #!/bin/bash
function usage {
echo "syntax error : $1"
echo "Usage: $0 <benchmark_name> (compile_target) [optimizations]"
exit 1
}
[ $# -eq 2 -o $# -eq 3 ] || usage "You must provide two or three parameters"
BENCHMARK_NAME="$1"
echo "##################################"
echo "#### Benchmarking : $BENCHMARK_NAME ##... | true |
9d5544a77c3ef664e6a8cd8fefe53790e8483dd5 | Shell | danvk/git-helpers | /admin/git-convert-links-to-aliases | UTF-8 | 1,960 | 4.1875 | 4 | [] | no_license | #!/usr/bin/env bash
source "$GIT_HELPERS_HOME"/config/.helpers-rc
cd "$(git root)"
for arg in "$@"; do
if [ ! -d "$arg" ]; then
echo "Bad arg, not a dir: $arg" 1>&2
continue
fi
aliases_dir="$(find "$arg" -type d -name 'aliases')"
pushd "$aliases_dir" &> /dev/null
config_file_path="../.gitconfig"
... | true |
fa7d3a930f2108f089b71f10d0b0cdd3fed8a613 | Shell | RTEMS/rtems-release | /rtems-source-packages | UTF-8 | 2,352 | 3.046875 | 3 | [] | no_license | #! /bin/sh
#
# RTEMS Tools Project (http://www.rtems.org/)
# Copyright 2015,2016,2019 Chris Johns (chrisj@rtems.org)
# All rights reserved.
#
# This file is part of the RTEMS Tools package in 'rtems-tools'.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided tha... | true |
d60b39ee4d6d3bc71cab258e94f9cfc695c6f648 | Shell | RayHuo/GLoop | /readFiles/run.sh | UTF-8 | 146 | 2.875 | 3 | [] | no_license | #! /bin/bash
cd ./files/
argus=""
for fileName in `ls | xargs realpath`
do
argus=${argus}${fileName}" "
done
#echo $argus
cd ..
./a.out $argus | true |
c8476741b06f27d0b422f5629cdba72659387802 | Shell | cp2017/docker-geth | /start.sh | UTF-8 | 472 | 2.5625 | 3 | [] | no_license | #!/bin/bash
set -m
if [ "X${GETH_TEST_DATABASE}" == "Xtrue" ];then
echo ">>>>>> Use GETH test database"
rm -rf /data/db
cp -r /opt/db /data/
fi
geth --datadir /data/db --nodiscover --port 30301 --rpc --rpcapi db,eth,miner,net,web3,personal,shh --shh --rpcaddr 0.0.0.0 --rpccorsdomain "*" --rpcport 8545 --i... | true |
2d3c31eb77d9e7c289a79076606e4ae80f07461e | Shell | si-medbif/exomeseq | /run_analysis.sh | UTF-8 | 679 | 3.34375 | 3 | [] | no_license | #!/usr/bin/env bash
#################################################
# Check if script is run from the exomeseq folder
# If yes, move to the parent (main project) folder
##################################################
folder=${PWD##*/}
if [ ${folder} = 'exomeseq' ]
then
cd ..
fi
##############################... | true |
f75242faf34d037a9e576d9fabd26a105b6938bb | Shell | graeme-hill/gbox | /init.sh | UTF-8 | 1,510 | 2.90625 | 3 | [] | no_license | cp .zshrc ~/.zshrc
mkdir -p ~/.config
mkdir -p ~/.config/nvim
cp init.vim ~/.config/nvim/init.vim
sudo rm -r /etc/pacman.d/gnupg
sudo pacman-key --init
sudo pacman-key --populate archlinux
sudo pacman -Sy --noconfirm --needed git base-devel
# Install yay itself
if [ ! -d "yay" ] ; then
git clone https://aur.archlin... | true |
427ee04d8e60eaec758dd18dc78832d5dfdc4dad | Shell | ghassan-alaka/GPLOT | /ush/get_ECMWF4.sh | UTF-8 | 7,092 | 3.6875 | 4 | [] | no_license | #!/bin/sh --login
# get_ECMWF4.sh
# This script is retrieves ECMWF model output
# from the ECMWF data store. It uses 'wget' to
# download the GRIB2 data and 'wgrib2' to check
# the status of the GRIB2 file once downloaded.
# Data will be kept on disk for one week
echo "MSG: get_ECMWF4.sh started at `date`"
# Load mo... | true |
1d534243034f46ff3cb587c5d075b0a27042361f | Shell | kibook/1436chan | /newthread | UTF-8 | 2,024 | 3.671875 | 4 | [] | no_license | #!/bin/sh
umask 002
cd $(dirname "$0")
. ./params.sh
comment="$@"
len=$(echo -n "$comment" | wc -c)
if [ -e threads ]
then
no=$(cat threads)
else
no=0
fi
no=$(($no + 1))
stamp=$(date +%s)
post=$no
if [ "$len" -gt "$MAX_TITLELEN" ]
then
pherror 'Thread creation failed.'
phline
phinfo "Title too long ($len/$M... | true |
fe9b02c2ac8e2b66c9640a586d1ef3dd2f5d47b5 | Shell | saintbyte/electronL-lastimage-downloader | /get_by_bash.sh | UTF-8 | 540 | 3.25 | 3 | [] | no_license | #!/bin/bash
set +ui
set -x
cd /root/tmp/electro_git/
#ftp://electro:electro@ftp.ntsomz.ru/2014/January/28/1030/140128_1030_original_RGB.jpg
date
mkdir ./images/
HOUR=`date +%H`
MIN=`date +%M`
DATE_PREFIX=`date +%Y/%B/%d`
DATE_PREFIX2=`date +%y%m%d`
echo $HOUR
if [ $MIN -ge 30 ];
then
MIN=30
else
MIN='00'
fi
echo $MI... | true |
1c8af3311a195132180053b61cddacb1ced39635 | Shell | casturm/dotfiles | /.zshrc | UTF-8 | 9,448 | 2.984375 | 3 | [] | no_license | # 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-${(%):-%n}.zsh" ]]; ... | true |
79206498e23b6ef1d1050e2f549f71890712a877 | Shell | MitchStevens/dotfiles | /dot_config/scripts/blocklets/executable_make_colors.sh | UTF-8 | 499 | 3.640625 | 4 | [] | no_license | #!/bin/bash
# generate files at ./color/<COLOR>
colors=($(xrdb -query | grep '*color*' | awk '{print $NF}'))
names=(black red green yellow blue magenta cyan light_grey dark_grey light_red light_green light_yellow light_blue light_magenta light_cyan white)
if [ ! -d "~/.color" ]; then
mkdir ~/.color
for ... | true |
cba5fe27812a836ff8180312ab8f5d20f8bfc7d2 | Shell | delkyd/alfheim_linux-PKGBUILDS | /suitesparse-mkl/PKGBUILD | UTF-8 | 1,670 | 2.671875 | 3 | [] | no_license | # Maintainer: Israel Herraiz <isra@herraiz.org>
pkgname=suitesparse-mkl
pkgver=4.5.5
pkgrel=1
pkgdesc="A collection of sparse matrix libraries (compiled with the Intel MKL lib)"
url="http://faculty.cse.tamu.edu/davis/suitesparse.html"
arch=('i686' 'x86_64')
conflicts=('umfpack', 'suitesparse')
provides=('umfpack', 'su... | true |
5854db0993c00a03bbf50add301dbda8e2adf3ca | Shell | IANBRUNE/config | /.zshrc | UTF-8 | 3,483 | 2.921875 | 3 | [] | no_license | # If you come from bash you might have to change your $PATH.
export ANDROID_HOME=/Users/ianbrune/Library/Android/sdk
export PATH=$HOME/bin:/usr/local/bin:$ANDROID_HOME/platform-tools:$PATH
export PATH=~/.local/bin:$PATH
# Path to your oh-my-zsh installation.
export idea=/usr/local/bin/idea
export ZSH=/Users/ianbrune/.... | true |
1b6884432460c76bc25bae7c217e38cf28c25236 | Shell | morristech/dot-files-1 | /dotprofile/theme/common/node.bash | UTF-8 | 284 | 3.515625 | 4 | [
"ISC",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ___node_version() {
local npm_prefix node_version
npm_prefix=$(npm prefix 2>/dev/null) || return 1
if [[ -e ${npm_prefix}"/package.json" ]]; then
node_version=$(node --version 2>/dev/null) || return 1
echo -e "$COLOR_GREEN(${COLOR_DARK_BLUE}$node_version$COLOR_GREEN) "
fi
}
| true |
54bcf49da0e6c4e2fac642513d81a85efe0aa55d | Shell | xclarifyio/dataset-librispeech-corpus | /fill_template.sh | UTF-8 | 441 | 3.421875 | 3 | [
"CC-BY-4.0"
] | permissive | #!/bin/sh
TARGET="$1"
NAME="$2"
URL="$3"
MD5="$4"
cat > $TARGET <<-EOD
FROM busybox:latest
RUN mkdir -p /dataset
WORKDIR /dataset
ENV URL=${URL}
ENV NAME=${NAME}
ENV MD5=${MD5}
RUN wget -O ./data.tar.gz "\$URL" \\
&& echo "\$MD5 data.tar.gz" > md5sum \\
&& md5sum -c md5sum \\
&& rm md5sum \\
&& gzip -d ./data... | true |
662e9a22b181e040162206e27bee7c58e93b0ff3 | Shell | PSC-PublicHealth/pyrhea | /src/tools/postprocessing/gen_counts_parallel.proto | UTF-8 | 938 | 2.859375 | 3 | [] | no_license | #! /bin/bash
#
#SBATCH -N 1
#SBATCH --constraint="intel"
#SBATCH --mem-per-cpu=20000
#xxxxSBATCH --ntasks-per-node=2
#xxxxSBATCH -p RM-shared
#SBATCH --time=1:00:00
#SBATCH --array=0-%maxfile%
ar=$SLURM_ARRAY_TASK_ID
scenario=%scenario%
echo $scenario
runyaml=%runyaml%
basedir=%basedir%
bundledir=%bundledir%
workdir... | true |
7870957bcc541927dd08e2080546535eb2bb08de | Shell | barucho/service-installer | /php5.5/install/gd.sh | UTF-8 | 265 | 2.71875 | 3 | [] | no_license | #!/bin/sh
. ./conf.sh
cd $SRC_ROOT_PATH
LIBGD_SRC=libgd-2.1.1
tar -zxvf $LIBGD_SRC.tar.gz
cd $LIBGD_SRC
./configure --prefix=$LIB_PATH --with-freetype=$LIB_PATH --with-jpeg=$LIB_PATH --with-png=$LIB_PATH --without-tiff
make
make install
cd ../
rm -rf $LIBGD_SRC
| true |
7ed1a4dd068e7a59167707d91d71423f4b84e2e3 | Shell | gregnuj/docker-sshd | /rootfs/usr/local/bin/entrypoint.sh | UTF-8 | 126 | 2.8125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
for script in $(ls /etc/entrypoint.d/*.sh); do
echo "$0: running $script"
$script
echo
done
exec $@
| true |
348e3f5cecbf9997a97821fb139b8121042f5d74 | Shell | Crypto2099/cardano | /sendMyVote.sh | UTF-8 | 11,596 | 3.890625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Script is brought to you by ATADA_Stakepool, Telegram @atada_stakepool in
# cooperation with @TheRealAdamDean (BUFFY & SPIKE)
###
# Change the following variables to match your configuration
###
CPATH="/home/<user>/cardano-node"
socket="${CPATH}/db/node.socket"
genesisfile="${CPATH}/config/testnet-shel... | true |
cbae63c7df725b710b928c662f2890fa98916313 | Shell | madhuchary/bash-scripts | /break-continue.sh | UTF-8 | 241 | 2.875 | 3 | [] | no_license | #!/bin/bash
while true
do
echo "Do you want to Continue press y/n"
read ans
if [ "$ans" == "y" ] || [ "$ans" == "Y" ]
then
continue
elif [ "$ans" == "n" ] || [ "$ans" == "N" ]
then
break
else
echo "please enter only y|Y or n|N"
fi
done
| true |
ad3f07fd738a68259142b596ec94d01222c25866 | Shell | majklovec/bivac | /test/integration/docker/tests/01_basic | UTF-8 | 6,894 | 3.46875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Prepare environment
echo "[*] Retrieving internal IP..."
export INTERNAL_IP=$(ip -o -4 addr show dev `ls /sys/class/net | grep -E "^eth|^en" | head -n 1` | cut -d' ' -f7 | cut -d'/' -f1)
test_valid=true
canary=8ft8HJ3teCg8S1WeH5bwhNBZEtBJNs
export AWS_ACCESS_KEY_ID=OBQZY3DV6VOEZ9PG6NIM
export AWS_SECRET... | true |
236ab54a9ac8ad914b950169b72a31d55b6d3f0a | Shell | sprice/pantheon | /bcfg2/Probes/varnish_vcl_hash | UTF-8 | 322 | 2.8125 | 3 | [] | no_license | #!/bin/bash
#If you wish to replace our default value for vcl_hash in /etc/varnish/default.vlc,
#edit the VARNISH_VCL_RECV variable in /etc/pantheon/server_tuneables
if [[ -a /etc/pantheon/server_tuneables ]]; then
. /etc/pantheon/server_tuneables
fi
if [[ -n "$VARNISH_VCL_HASH" ]]; then
echo "$VARNISH_VCL_HASH"
f... | true |
a75350961ea649512d51092b375526c471e192d2 | Shell | JohnOmernik/zetaextra | /drill/build.sh | UTF-8 | 2,981 | 3.5625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
checkdocker
check4package "$APP_TGZ" BUILD
reqdockerimg "${REQ_APP_IMG_NAME}"
# Drill Specific Directories in the shared staging location
mkdir -p ${APP_ROOT}/extrajars
mkdir -p ${APP_ROOT}/libjpam
echo "Place to store custom jars" > ${APP_ROOT}/extrajars/jars.txt
# Check for libjpam (Required)
JPAM=$... | true |
3c3703fcf4b78fdb9f8340721885c3b0725495b6 | Shell | abhiaiyer91/kots | /kotsadm/operator/deploy/install-krew.sh | UTF-8 | 307 | 3.1875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
(
set -x; cd "$(mktemp -d)" &&
curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/krew.tar.gz" &&
tar zxvf krew.tar.gz &&
KREW=./krew-"$(uname | tr '[:upper:]' '[:lower:]')_$(uname -m | sed -e 's/x86_64/amd64/' -e 's/arm.*$/arm/')" &&
"$KREW" install krew
) | true |
beee781a82cb129721f3749535511ea2ac463672 | Shell | dernasherbrezon/r2cloud | /src/main/deb/etc/cron.daily/r2cloud | UTF-8 | 367 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# r2cloud is executed under user pi, thus unable to change cron.daily.
if [ -f /home/pi/r2cloud/DO_NOT_UPDATE ]; then
printf "auto update is disabled" | systemd-cat -t r2cloud
exit 0
fi
MAILTO=""
printf "updating r2cloud" | systemd-cat -t r2cloud
systemd-cat -t r2cloud apt-get -y update
systemd-cat -... | true |
c7d3c5b9bcabd1d3a76ec861bcb1c4d5b38b5fea | Shell | clementmiao/clementmiao-cs123 | /compile.sh | UTF-8 | 532 | 3.46875 | 3 | [] | no_license | #!/bin/sh
if [ $# -lt 2 ]; then
echo "usage `basename $0` <Name> <Java file> [<Java file> ...]"
exit 1
fi
set -e
NAME=$1
shift
FILES=$@
CLASS_DIR=${NAME}-classes
JAR_FILE=${NAME}.jar
module load midway-hadoop
mkdir -p ${CLASS_DIR}
# Compile
javac -target 1.6 -source 1.6 -Xlint:deprecation -cp "${HADOOP_H... | true |
7b439c44023be25c8f6bc73f5313b86b07fd27bb | Shell | douglasnaphas/sg-getatt-v-ref | /itest/itest.sh | UTF-8 | 569 | 3.25 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
STACKNAME=$(npx @cdk-turnkey/stackname@1.1.0 --suffix app)
BUCKET_NAME=$(aws cloudformation describe-stacks \
--stack-name ${STACKNAME} | \
jq '.Stacks[0].Outputs | map(select(.OutputKey == "BucketName"))[0].OutputValue' | \
tr -d \")
CONTENT_DATA="$(aws s3 cp s3://${BUCKET_NAME}/content.json -... | true |
f6150ac68c1e4b160af48d9f4f58d02a6f5e67f3 | Shell | fabiojna02/OpenCellular | /firmware/utilities/jenkins/clang_patch | UTF-8 | 773 | 3.5625 | 4 | [
"CC-BY-4.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
#
# Copyright (c) 2018-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
# Get... | true |
e3970e1160dd22eb2df52a2810bca6fffeae1f4e | Shell | wddwzc/AutoNav_KIT | /script/install-code.sh | UTF-8 | 2,274 | 3.359375 | 3 | [] | no_license | #
#By Wang Zichen
#2020-01
#
#define vars
workspace_name="robot_ws"
basepath=$(cd `dirname $0`; pwd)
# 1) create catkin workspace
echo "---->1. Create catkin space...\n"
#judge if workspace exists?
if [ -d ~/$workspace_name/src ]; then
echo -n "workspace already exists, overlap ? [y/n]:"
read res
if [ $res == "n" ... | true |
40ae1a4c47a8264f4365dd9965f15db54186c812 | Shell | fae75933/BNIF8940 | /Chipseq.sh | UTF-8 | 3,138 | 3.625 | 4 | [] | no_license | #!/bin/bash
#SBATCH --job-name=chipseq
#SBATCH --partition=batch
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=6
#SBATCH --mem=24gb
#SBATCH --time=24:00:00
#SBATCH --output=/scratch/fae75933/log.%j
#SBATCH --mail-user=fae75933@uga.edu
#SBATCH --mail-type=END,FAIL
#SBATCH --error=.%j.log.err
# Iterate over fastq files in a... | true |
d01e7f0a4844a37eb1e0ac4afad13f83476221df | Shell | hivesolutions/scudum | /scripts/build/tools/python3.sh | UTF-8 | 324 | 2.9375 | 3 | [
"Apache-2.0"
] | permissive | VERSION=${VERSION-3.11.1}
set -e +h
wget --no-check-certificate --content-disposition "https://www.python.org/ftp/python/$VERSION/Python-$VERSION.tgz"
rm -rf Python-$VERSION && tar -zxf "Python-$VERSION.tgz"
rm -f "Python-$VERSION.tgz"
cd Python-$VERSION
./configure --prefix=$PREFIX --enable-shared
make && make inst... | true |
69dec6bd84f2af96bb162d80020319ed22bb95c5 | Shell | daveschaefer/psv-admin | /run_backup.sh | UTF-8 | 272 | 2.5625 | 3 | [] | no_license | #!/bin/bash
cd Perspectives-Server
python notary_util/db2file.py ../notary_backup/notary_dump.txt
cd ../notary_backup
rm notary_dump.txt.bz2
bzip2 notary_dump.txt
git add notary_dump.txt.bz2
DATE=`date`
git commit -a -m "binary backup at: $DATE"
git push origin master
| true |
37d65bac24661d5494bf98963fc36fe089711eae | Shell | mono/msbuild | /mono/build/gen_msbuild_wrapper.sh | UTF-8 | 363 | 3.203125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
if [ $# -ne 2 ]; then
echo "Usage: $0 <mono_prefix_dir> <out_dir>"
exit 1
fi
REPO_ROOT="$PWD/../../"
sed -e 's,@bindir@,'$1'/bin,' -e 's,@mono_instdir@,'$1/lib/mono',' $REPO_ROOT/msbuild-mono-deploy.in > msbuild-mono-deploy.tmp
chmod +x msbuild-mono-deploy.tmp
mkdir -p $2
cp msbuild-mono-deploy.tm... | true |
e63a62c8f9bb53ad227099c74a0a596af1152f0f | Shell | vayizmir/gargoyle-plugins | /plugin-gargoyle-logs/files/www/utility/logs_download.sh | UTF-8 | 1,546 | 2.640625 | 3 | [] | no_license | #!/usr/bin/haserl
<?
# Copyright (c) 2013 Saski
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later versio... | true |
8ccbf69f29dc7d45ea44f7f24835dfec599aae82 | Shell | medined/accumulo_stackscript | /install_to_home_directory/install-packages.sh | UTF-8 | 748 | 2.765625 | 3 | [] | no_license | #!/bin/bash
source ./setup.sh
# setup a source for maven3 which is required by Accumulo.
echo "deb http://ppa.launchpad.net/natecarlson/maven3/ubuntu precise main" | sudo tee -a /etc/apt/sources.list
echo "deb-src http://ppa.launchpad.net/natecarlson/maven3/ubuntu precise main" | sudo tee -a /etc/apt/sources.list
sud... | true |
385a2ccdd12a0ac84118632222beb35b375a638b | Shell | kaarelvent/skriptimine | /praks8/yl4 | UTF-8 | 600 | 3.390625 | 3 | [] | no_license | #!/bin/bash
#Küsib arvu
echo -n "Sisesta suvaline täisarv: "
read sisend
jagaja=2
#Kontrollib et kas arv on 0 või 1
if [ $sisend -eq 0 -o $sisend -eq 1 ]
then
echo "Sisestatud arv ei ole algarv"
else #Jagab 2ga nii kaua kuni saab, lõppeb kui jääk on 0
jaak=$(($sisend % $jagaja))
while [ $jaak -ne 0 ]
do
#Jagaja ü... | true |
85cb1f4e98e224dadb3cc18e73f2199e332a123a | Shell | jseun/ddcos | /scripts/run/0225all-rootfs-squash | UTF-8 | 163 | 2.671875 | 3 | [] | no_license | #!/bin/bash
source ./functions
log_begin_msg
for rootfs in ${SQUASHFSDIR}/*/; do
mksquashfs $rootfs ${rootfs%%/}.squashfs -comp xz -noappend
done
log_end_msg
| true |
13067409494118acc20c5172e44b2a1c4ae2665b | Shell | nichtich/minecraft-pi | /mcpi-message | UTF-8 | 360 | 3 | 3 | [
"Unlicense"
] | permissive | #!/bin/bash
set -e
# exit code of this script can be used to check of minecraft is running
if [ $# -gt 0 ]; then
python <<PYTHON 2>/dev/null
from mcpi.minecraft import Minecraft
Minecraft.create().postToChat("$1")
PYTHON
else
# just connect without message
python <<PYTHON 2>/dev/null
from mcpi.minecraft import ... | true |
13647b0f3900527132e65f05d32b8706932a456a | Shell | hargup/dotfiles | /zshrc | UTF-8 | 3,732 | 2.890625 | 3 | [] | no_license | # Hooks
typeset -ga chpwd_functions
typeset -ga precmd_functions
typeset -ga preexec_functions
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
ulimit -Sv 5000000
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each... | true |
59c4f3743b7d827fbca884b401e0c971d77f7811 | Shell | shaunwbell/FOCI_Analysis | /WorldViewRetrieval/worldview_modis_wget.sh | UTF-8 | 458 | 2.78125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
progdir="/Volumes/WDC_internal/Users/bell/Programs/Python/FOCI_Analysis/WorldViewRetrieval/"
for i in `seq 174 194`;
do
python ${progdir}EasternEqPacific.py ${i} VIIRS jpeg large
done
img_dir="/Volumes/WDC_internal/Users/bell/Programs/Python/FOCI_Analysis/WorldViewRetrieval/*.jpeg"
for files in... | true |
61145b4897e13fd20678c789713c47efaa462543 | Shell | Lohkrii/holberton-system_engineering-devops | /0x04-loops_conditions_and_parsing/102-lets_parse_apache_logs | UTF-8 | 146 | 3.125 | 3 | [] | no_license | #!/usr/bin/env bash
# This script parses an apache server logs.
FILE="apache-access.log"
if [ -e $FILE ]; then
awk '{ print $1 " " $9}' $FILE
fi
| true |
1ae052c8de419234c3102736b2883db45bce687c | Shell | cunguyen-agilityio/oh-my-ops | /test/plugin/git/util-remote-test.sh | UTF-8 | 2,193 | 3.625 | 4 | [
"MIT"
] | permissive | _do_plugin 'git'
_do_plugin 'gitlab'
fake_repo_dir=""
function test_setup() {
# Makes an empty git repository
{
fake_repo_dir=$(_do_dir_random_tmp_dir) &&
_do_git_util_init "${fake_repo_dir}" &&
cd "$fake_repo_dir"
} || _do_assert_fail
_do_repo_dir_add "${fake_repo_dir}" "fakerepo"
_do_gitl... | true |
23a00100e33eeb29fdab310d640cd8cbfb05dba7 | Shell | Anirudh-C/dotfiles | /setup.sh | UTF-8 | 996 | 3.484375 | 3 | [] | no_license | #!/bin/sh
setosconfig() {
rm ~/.xinitrc
cp OS/xinitrc ~/.xinitrc
rm ~/.Xresources
cp OS/Xresources ~/.Xresources
rm ~/.xmodmap
cp OS/Keyboard/xmodmap ~/.xmodmap
}
settmuxconfig() {
rm ~/.tmux.conf
cp Work/tmux.conf ~/.tmux.conf
}
setshellconfig() {
}
setconfigdir() {
rm -rf ~/.co... | true |
38b21b61bee5f72d40cf24f5693b045bb348ac54 | Shell | socc19-p10/vSMT-IO | /scripts/update_submodule.sh | UTF-8 | 469 | 2.59375 | 3 | [] | no_license | #!/bin/bash
APP_DIR="$HOME/workshop/vPair/apps"
PARSEC="$APP_DIR/parsec"
PHOENIX="$APP_DIR/phoenix"
IMAGIC="$APP_DIR/ImageMagick6"
pushd $PARSEC
git add -A
git commit -m "update parsec app"
git push
popd
pushd $PHOENIX
git add -A
git commit -m "update phoenix app"
git push
popd
pushd $IMAGIC
git add -A
git commit -... | true |
0f22af826a42319943a073ba8d8fcac4539e8673 | Shell | play-linux/shell-play | /shell-demo/demo5.sh | UTF-8 | 639 | 3.625 | 4 | [] | no_license | #!/bin/bash
#------数组和map------
#1.数组定义
arr=(10 20 30 40 50)
echo "${arr[1]}" "${arr[4]}"
#2.遍历数组
for i in "${arr[@]}"; do
printf "%d," "$i"
done
echo
for ((i = 0; i < ${#arr[@]}; i++)); do
printf "%d->%d\n" "$i" "${arr[i]}"
done
#3.map 需要先使用declare -A声明变量为关联数组(支持索引下标为字符串) 普通数组则不需要声明即可使用
declare -A m
m["n... | true |
f405fc4d191efc535a238851ba1b08b1ac1aa53f | Shell | rctraining/rmacc_2018_container_tutorial | /run_container_w_udocker/make_udocker.sh | UTF-8 | 796 | 3.359375 | 3 | [] | no_license | #!/bin/bash
#set base dir where you want the software installed
BASE_DIR=/projects/$USER
#now remove any previous instances of .udocker from these directories
#(don't do this unless you want to get rid of everything previously installed for udocker)
rm -Rf $BASE_DIR/.udocker
rm -Rf $HOME/.udocker
echo "done"
#Now ... | true |
a6d4d18d295b8d39cd36407895e84981720172fe | Shell | grml/grml-live | /etc/grml/fai/config/scripts/GRMLBASE/91-update-pciids | UTF-8 | 1,540 | 3.703125 | 4 | [] | no_license | #!/bin/bash
# Filename: ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/91-update-pciids
# Purpose: update pciids
# Authors: (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
################################################... | true |
5fa7d66a01512ca08c6d8895da3111b9dafdeb9d | Shell | TheusZer0/ctf-archives | /Balsn/2020/House_of_Cats/share/run.sh | UTF-8 | 1,816 | 3.5625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
pow(){
difficulty=$1
if [ $difficulty -gt 60 ]; then
echo 'too hard'
exit
fi
chalprefix=$(hexdump -n 8 -e '2/4 "%08x" 1 "\n"' /dev/urandom)
echo "sha256($chalprefix+???) == $(printf '0%.0s' $(seq 0 $difficulty))($difficulty)..."
printf "> "
read -t 600 answer
... | true |
84768c31f188167e09ba4d47292092bf190432ed | Shell | termux/termux-packages | /packages/gitoxide/build.sh | UTF-8 | 1,778 | 2.921875 | 3 | [
"Apache-2.0"
] | permissive | TERMUX_PKG_HOMEPAGE=https://github.com/Byron/gitoxide
TERMUX_PKG_DESCRIPTION="Rust implementation of Git"
TERMUX_PKG_LICENSE="Apache-2.0, MIT"
TERMUX_PKG_LICENSE_FILE="LICENSE-APACHE, LICENSE-MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.1.0
TERMUX_PKG_REVISION=1
_RELEASE_PREFIX="git-hashtable"
TERMUX_PKG_S... | true |
ba20f48059a24d6df5d47a5a807481b41f2e415c | Shell | free2rhyme/lct_rpm_tool | /rpm/rpm_build.sh | UTF-8 | 4,524 | 3.625 | 4 | [] | no_license | #!/bin/bash
set -e
set -u
#set -x
CUR_DIR=$( cd "$( dirname "$0" )" && pwd )
LCT_SVC_PRJ_ROOT=$CUR_DIR/../../..
declare -a so_array=""
declare -a so_dir_array=""
declare -a process_array=""
declare rpm_service=""
RPM_PROCESS_DIR=${LCT_SVC_PRJ_ROOT}/src/lct_rpm_tool/process
usage()
{
echo "usage: $(basena... | true |
3ab0db0b93e2f64fc1602c5325e30f49155a6682 | Shell | MoisesTapia/InfoSystem | /InfoSystem.sh | UTF-8 | 2,733 | 3.46875 | 3 | [] | no_license | #!/bin/bash
#fecha: 08.092019
#AUTOR: EQUINOKX
#Proposito: Informacion del sistema con las herramientas mas usadas
NOMBRE="Dart - Security"
clear
echo " "
echo " Herramientas de Informacion del sistema "
echo " $NOM... | true |
c73bd49b8ea42ec97217ca37f2f1a1fe5a137446 | Shell | osen/openbsd_emscripten | /files/emcc | UTF-8 | 537 | 3.265625 | 3 | [] | no_license | #!/bin/sh
# Find absolute path of Emscripten
PREFIX="$(cd "$(dirname "$(which "$0")")" && cd .. && pwd)"
EMDIR="$PREFIX/libexec/emscripten"
BASENAME="$(basename "$0")"
EMPROG="$EMDIR/$BASENAME"
# Emscripten now correctly finds python
#export PYTHON=python3.8
# Environmental variables for the site_emscripten script t... | true |
aecc5f88a8f76742a0c7865d81edab894ed305df | Shell | rgamici/proxy | /proxy.bash | UTF-8 | 1,540 | 3.25 | 3 | [] | no_license | #!/usr/bin/env bash
# Functions to change proxy automatically to use browser and cloud storage
function ProxyOn() {
local PROXY="proxy.noc.titech.ac.jp" # proxy host
local PORT=3128 # proxy port
gsettings set org.gnome.system.proxy mode 'manual'
gsettings set org.gnome.system.proxy.http host $PROXY
gsetting... | true |
a7ecafa96b3507e97a2ed7e792b7a66e9ca1531d | Shell | kudumi/scripts | /nix/dd-progress | UTF-8 | 892 | 3.921875 | 4 | [] | no_license | #!/usr/bin/env bash
# $1: if
# $2: of
if [[ $# -ne 2 ]]; then
cat <<EOF
Usage: ${0##/} if of
This is a wrapper for dd, that will display progress.
EOF
fi
fsize=`ls -s --block-size=1048576 $1 | cut -d' ' -f 1`
file="$$.dd"
dd if=$1 of=$2 bs=1K count=10000 > $file & # start the dd transfer
pid=`pgrep -l '... | true |
946d2984b149df9d0db344a3263e0def06ea337f | Shell | SysSynBio/parPE | /ThirdParty/installGoogleTest.sh | UTF-8 | 632 | 3.921875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Download and build googletest
set -euo pipefail
script_path="$(dirname "$0")"
script_path="$(cd "${script_path}" && pwd)"
cd "${script_path}"
if [[ ! -d "googletest" ]]; then
echo "googletest/ does not exist"
if [[ ! -f "googletest.zip" ]]; then
echo "Downloading googletest..."
wge... | true |
f1c4146daf19d9d2c5831929fcfe3cefbfa4dd61 | Shell | mgijax/pgmgddbschema | /comments/DAG_Label_create.object | UTF-8 | 616 | 2.59375 | 3 | [] | no_license | #!/bin/sh
cd `dirname $0` && . ./Configuration
cat - <<EOSQL | ${PG_DBUTILS}/bin/doisql.csh $0
COMMENT ON TABLE mgd.DAG_Label IS 'A record in this table represents a "label" for a Node or an Edge. A "label" is an attribute of the Note or Edge
which may be specific to a given DAG. A "label" is not necessarily somet... | true |
707df1a9fcfbc826a71a6d8a8e3c3d161922fd99 | Shell | PIPplware/es-pipplware | /etc/emulationstation/pipplware-menus/system/functions.inc | UTF-8 | 8,160 | 3.921875 | 4 | [] | no_license | #!/bin/bash
enable_joystick() {
local params=("$@")
if [[ "${#params[@]}" -eq 0 ]]; then
params=(kcub1 kcuf1 kcuu1 kcud1 0x0a 0x20)
fi
# get the first joystick device (if not already set)
[[ -c "$__joy2key_dev" ]] || __joy2key_dev="/dev/input/jsX"
# if no joystick device, or joy2key is ... | true |
d200787899bab24c7f7f6a2083b2d69aae5cf010 | Shell | draschke/hana-python-securestore | /tools/bas_install_cfdefenv.sh | UTF-8 | 1,647 | 3.59375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
do_run=1 # Execute(evaluate) the commands
#do_run=0 # Don't evaluate any commands
#do_echo=1 # Echo the commands
do_echo=0 # Don't echo any commands
#
echo ""
#destdir="/home/user/projects/hana-python-securestore/tools"
#destdir="/home/user"
pluginver="1_0_0"
pluginmin="1.0.0"
rcfile="~/.bashrc"
#rcfile="ba... | true |
690de5222f645758febdc0f1f68c8c634a561040 | Shell | dujincan/rsync_script | /rsync.sh | UTF-8 | 1,839 | 3.5 | 4 | [] | no_license | #!/bin/bash
# rsync daemon service
# 2018 11 07
# jason
# v1.0
status1=$(ps -ef | grep "rsync --daemon" | grep -v 'grep' | wc -l)
pidfile="/var/run/rsyncd.pid"
function rsyncstart() {
if [ $status1 -eq 0 ];then
rm -rf $pidfile
/usr/bin/rsync --daemon
status2=$(ps -ef ... | true |
968cad84b139e1f005e04d699f380de0721675e3 | Shell | rocknsm/rock-dashboards | /ecs-configuration/kibana/import-saved-items.sh | UTF-8 | 2,070 | 3.65625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
_URL=$1
KIBANA_URL=${_URL:=http://127.0.0.1:5601}
KIBANA_VERSION=$(curl -sI ${KIBANA_URL} | awk '/kbn-version/ { print $2 }')
updated=0
created=0
failed=0
echo "Please be patient as we import 200+ custom dashboards, visualizations, and searches..."
for item in config index-pattern search visualization d... | true |
c477262912986a196d1ad025275e2900fb9f2ef3 | Shell | jmas/fetch-to-request | /make | UTF-8 | 339 | 3.109375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if [ -z "$1" ]; then
echo './make <default|minify|test>'
exit
fi
if [ $1 == 'default' ]; then
npm run dist:default
elif [ $1 == 'minify' ]; then
npm run dist:minify
elif [ $1 == 'test' ]; then
npm run test
npm run dist:default
npm run dist:minify
else
echo './make <default|minify... | true |
ee108b1ecfbb91bee97bd8aa07669ace915af3d5 | Shell | szigyi/expose-to-the-light-web | /ettl-web | UTF-8 | 186 | 2.71875 | 3 | [] | no_license | #!/usr/bin/env bash
# -help
# ettl-web INFO
artif="expose-to-the-light-web_2.13-0.1.33.jar"
export LOG_LEVEL=$1
shift
echo "Starting ettl-web application..."
java -jar "$artif" "$@"
| true |
ed6b51a4573e4f1426cc9f4b738caf760c082f47 | Shell | DavidBorstner/FaksNalogePreverjanja | /1. letnik 17_18/Operacijski sistemi/Preverjanja/Naloga01/nadgradnja2.sh | UTF-8 | 276 | 3.28125 | 3 | [] | no_license | #!/bin/bash
name="Rudolf Eror"
geslo=""
if [ $# -eq 0 ]; then
echo "Napaka!"
exit 42
else
geslo=$1
sudo useradd beton -c "Rudolf Eror" -p $(mkpasswd -m sha-512 $1)
echo "Uporabnik ustvarjen!"
fi
for i in $(seq 0 ${#geslo}); do
echo ${geslo:$i:1}
done
echo "Debeli zajec."
| true |
cf45f6955cd336a2c6775d6ccd8b0ba4ebe6f832 | Shell | leftiness/ton-hub | /bin/clean-fast.sh | UTF-8 | 223 | 2.796875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
IGNORE[0]='vendor*'
IGNORE[1]='font*'
IGNORE[2]='picnic*'
IGNORE[3]='dialog*'
CONCAT=''
for each in "${IGNORE[@]}"
do
CONCAT="$CONCAT ! -iname $each"
done
CMD="find ./dist/* $CONCAT | xargs rm -rf"
eval $CMD
| true |
ac1ffcf4f449684b2fbe6055a9c954b3b3feedac | Shell | hansode/ifutils | /test/unit/ifcfg-setup/t.render_ifcfg_bonding_slave.sh | UTF-8 | 648 | 3.09375 | 3 | [
"Beerware"
] | permissive | #!/bin/bash
#
# requires:
# bash
#
## include files
. $(cd ${BASH_SOURCE[0]%/*} && pwd)/helper_shunit2.sh
## variables
declare device=eth0
## functions
function setUp() {
:
}
function tearDown() {
:
}
function test_render_ifcfg_bonding_slave_no_opts() {
local body="DEVICE=${device}
BOOTPROTO=none
ONBOOT... | true |
0c38753e60081c8fe76b2b048eadf17542498968 | Shell | dareni/shellscripts | /rcsCheck.sh | UTF-8 | 443 | 3.234375 | 3 | [] | no_license | #!/bin/sh
# Find all rcs files with outstanding commits.
read -p "Run updatedb? y/[N]" UPDATE
if [ "y" = "$UPDATE" ]; then
sudo updatedb
fi
locate RCS | grep ",v" | awk '{
segNum=split($0,segs,"/")
rcsfile=segs[segNum]
rcsfile=substr(rcsfile,1,length(rcsfile)-2)
filePathPOS=index($0,"RCS")
fileP... | true |
a90ecaa6468ecdc9051662619b3881489b7ac021 | Shell | keshava/cb | /scripts/setBasePath.sh | UTF-8 | 243 | 2.875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
toBeReplaced=$1
replacement=$2
for i in $(find spec -type f -print)
do
sed -i s,${toBeReplaced},${replacement},g "${i}"
done
for i in $(find schema -type f -print)
do
sed -i s,${toBeReplaced},${replacement},g "${i}"
done | true |
3a699564f373d4de808903ebe9751fa93ccd8e13 | Shell | m0gjr/unifi | /shell_tap/tap_setup.sh | UTF-8 | 250 | 2.59375 | 3 | [] | no_license | #!/bin/ash
#host scp tsh ubnt@ap:/bin/tsh
chmod +x /bin/tsh
echo /bin/tsh >> /etc/shells
sed -i -e 's:/bin/ash:/bin/tsh:g' /etc/passwd
mkfifo /tmp/cmd-fifo
while true
do
< /tmp/cmd-fifo nc 10.11 5000
done
#host nc -lkp 5000
#host nc -lkp 5001
| true |
2bad6ac345c449736bb9c7370bf0d47ccd8edc4e | Shell | angelszymczak/docker-lab | /lab/step01.sh | UTF-8 | 3,332 | 3.171875 | 3 | [] | no_license | #!/bin/bash
docker network create lab
# 4faccf1ff03054d0c56daeeea9c6b1eb05e1904770d0841c0969d615ae963767
# We can set environment variables from container running
docker run --net lab --name db01 -e MYSQL_ROOT_PASSWORD=passw0rd -d mariadb:latest
# Unable to find image 'mariadb:latest' locally
# latest: Pulling from l... | true |
c727b709a8afd5e87bbc0ba6ad9913fd847ceb63 | Shell | fra87/OpenHR20 | /tools/EnvironmentBuilder/FlashDevice.sh | UTF-8 | 4,418 | 4.09375 | 4 | [] | no_license | #!/bin/bash
SCRIPTPATH="${0%/*}"
source ${SCRIPTPATH}/environment.config
SRC_FOLDER=$(realpath ${SCRIPTPATH}/../../${BIN_FOLDER})
TARGET_PREFIX=""
HARDWARE_PLATFORM=""
SETFUSES=0
DRYRUN=0
BACKUP=1
# Logic on EEPROM inverted with respect to original flash to avoid erasing the old EEPROM
EEPROM=0
FIRSTWRITE=0
printUs... | true |
e90679dc028d7b15bb53eac89a4f7880f19f62bd | Shell | kbarnhart/inverting_topography_postglacial | /calibration/sew/QUESO_DRAM/model_000/lowering_history_0.pg24f_ic5etch/start_dakota.sh | UTF-8 | 755 | 2.59375 | 3 | [] | no_license | #!/bin/sh
#SBATCH --job-name sew_mcmc_model_000
#SBATCH --ntasks-per-node 24
#SBATCH --partition shas
#SBATCH --mem-per-cpu 4GB
#SBATCH --nodes 1
#SBATCH --time 24:00:00
#SBATCH --account ucb19_summit1
# load environment modules
module load intel/16.0.3
module load openmpi/1.10.2
module load cmake/3.5.2
#module load p... | true |
91716115a598ed03d9a84412c5b2c62472c4b483 | Shell | iravul/iosched | /tools/setup.sh | UTF-8 | 1,186 | 3.578125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
RED='\033[0;1;31m'
NC='\033[0m' # No Color
GIT_DIR=$(git rev-parse --git-dir 2> /dev/null)
GIT_ROOT=$(git rev-parse --show-toplevel 2> /dev/null)
if [[ ! "$GIT_ROOT" =~ /iosched$ ]]; then
echo -e "${RED}ERROR:${NC} Please run this script from the cloned iosched directory."
exit 1
fi
echo "Installing... | true |
cd96fc49b08eb055e15dabea7be13d0174f8d6cd | Shell | giulioq7/tesi | /Libraries/Grail/tests/unix/fmtest2 | UTF-8 | 936 | 3.4375 | 3 | [] | no_license | #!/bin/sh
# This code copyright (c) by the Grail project.
# No commercial use permitted without written consent.
# May 1992
#######################################################################
# add valid path by ray, at UPEI, 2010/MAY/18
#######################################################################
# A... | true |
8b66a19124905bd77a2ca884dc15a30667b7cc0f | Shell | SpisTresci/shim | /installer.sh | UTF-8 | 3,819 | 3.921875 | 4 | [] | no_license | #! /bin/sh
# Userify Shim Installer
# Copyright (c) 2011-2014 Userify
if [ "$(id -u)" != "0" ]; then
cat << EOF >&2
Unfortunately, the Userify Shim requires root permissions in order to
create user accounts and manage sudoers. The Shim is open source; please
feel free to audit the code for security.
EOF
exi... | true |
845eaeacf3a9d1183617ac1ad6df9ee5ed06f3f6 | Shell | id-tarzanych/site_builder | /build/update.sh | UTF-8 | 818 | 3.6875 | 4 | [] | no_license | #!/bin/bash
path=$(dirname "$0")
source $path/parse_yaml.sh
source $path/common.sh
# Read settings YAML file.
notification "Reading settings file..."
eval $(parse_yaml $path/../cnf/config.yml)
# Get environment variables.
notification "Parsing variables..."
source $path/connection.sh "$1"
# Changing working folder.... | true |
579164fe4e3b87066ad362adadb7e9251cdb029d | Shell | 1500118C/LAB2B | /LAB2B/lab2remediation.sh | UTF-8 | 10,974 | 3.140625 | 3 | [] | no_license | #!/bin/bash
#4.1
#Set User/Group Owner on /boot/grub2/grub.cfg
#set the owner & group to the root user
chown root:root /boot/grub2/grub.cfg
#4.2
#Set Permissions on /boot/grub2/grub.cfg
#set permission to read+write for root only
chmod og-rwx /boot/grub2/grub.cfg
#4.3
#Set Boot Loader Password
#set boot loader pw fo... | true |
dd99dc159bd0ef6eddc354a6dac6e00558fe967b | Shell | xiaobingchan/WenNi | /环境部署/部署脚本/数据库/mongodb.sh | UTF-8 | 1,323 | 2.5625 | 3 | [] | no_license | #!/usr/bin/env bash
# 每个RedHat都有不同版本,不能分发错
wget http://downloads.mongodb.org/linux/mongodb-linux-x86_64-rhel70-v3.4-latest.tgz
tar -xvzf mongodb-linux-x86_64-rhel70-latest.tgz -C /data/soft/
mv /data/soft/mongodb-linux-x86_64-rhel70-4.1.10-309-g4a2b759/ /data/soft/mongodb/
mkdir /data/soft/mongodb/data
mkdir /data/so... | true |
0cc365c444122ea6898adfc73f35957da0e45b64 | Shell | bruceyoung01/wrf-chem.r13172 | /models/wrf_chem/run_scripts/RUN_PERT_CHEM/ICBC_PERT/runICBC_setN_rt_CR.ksh | UTF-8 | 1,910 | 3.046875 | 3 | [] | no_license | #!/bin/ksh -x
unalias ls
export YEAR=${YYYY}
export MONTH=${MM}
export DAY=${DD}
export HOUR=${HH}
export IC_METDIR=${WRFCHEM_MET_IC_DIR}
export BC_METDIR=${WRFCHEM_MET_BC_DIR}
export CHEMDIR=${RUN_DIR}/${YEAR}${MONTH}${DAY}${HOUR}/wrfchem_chem_icbc
let MEM=1
while [[ ${MEM} -le ${NUM_MEMBERS} ]]; do
export IENS=${... | true |
776f3b2a31d5b059f613d6bbad068feed9299f90 | Shell | lintmars/opentsdb-examples | /bin/opentsdb_cli_install.sh | UTF-8 | 1,572 | 3.734375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Variables
#
. /tmp/opentsdb-examples/conf/opentsdb.conf
#
# Sanity Checks
#
if [ `id -un` != "root" ]; then
echo "ERROR: Must be run as root"
exit 1
fi
#
# Main
#
for node in $TSD_CLI_HOST_LIST; do
echo -e "\n##"
echo -e "## Starting OpenTSDB TSD CLI wrapper install on $node"
echo -e ... | true |
8a0ae2de568621804811d45fbb4f09f2d564ca2a | Shell | lesin/awesome-tools | /dotfiles/.zshrc | UTF-8 | 2,484 | 2.96875 | 3 | [] | no_license | export PATH="$HOME/.bin:$PATH"
source /Users/lesin/.asdf/asdf.sh
source "$HOME/.slimzsh/slim.zsh"
source ~/.zsh-nvm/zsh-nvm.plugin.zsh
# Universal
alias c='clear'
alias .='echo $PWD'
alias ..='cd ..'
alias ...='cd ../../../'
alias ....='cd ../../../../'
alias .....='cd ../../../../'
alias wget='wget -c'
alias tree="f... | true |
aadf8b273d2502471f61a8a409b98f4efc1b09da | Shell | quynhlab/KodeKloud_Tasks | /Tasks_31-40/TASK_36-SF_-_Scrapes_-_DB_Server.sh | UTF-8 | 15,526 | 2.625 | 3 | [] | no_license |
-----------------------------------------------------------------------------------------------------------------
# SUPPORTING FILE
# This is a supporting file for the Task of the same name.
# This may contain configurations/config file.
# Basically, any file that is edited/created/modified through the 'vi' or 'nan... | true |
4c765c465fd34e0bd12936097b01c7fee6a273a5 | Shell | parkingvarsson/Recombination_rate_variation | /4-methylation/1_gunzip.sh | UTF-8 | 417 | 3 | 3 | [
"MIT"
] | permissive | #! /bin/bash -l
#SBATCH -p core
#SBATCH -n 2
#SBATCH -t 01:00:00
##### This script contains a loop for unzipping the bismark cov -files #####
for folder in path/to/bismark/results/SwAsp*
do
echo $folder
for file in $folder/new/*bismark.cov.gz
do
echo $file
unzipped=${file##*/}
name... | true |
9fee3e5c61a20ea5e8b5d14603df00e0f38fbf01 | Shell | nodenstuff/http-auth | /gendocs | UTF-8 | 447 | 3 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# Remove current documents.
rm -r docs/*
# List of js files.
FILES=`find lib -name '*.js' | tr '\n' ' '`
TESTFILES=`find tests -name '*.js' | tr '\n' ' '`
# Generating documents.
dox --title "http-auth" --desc "Node.js package for HTTP basic and digest access authentication." $FILES > docs/index.html
dox -... | true |
f834550532cfbf16871174d719233d4a9d2c167d | Shell | resmo/voyage-linux | /voyage-live/config/hooks/031-gen_passwd.chroot | UTF-8 | 232 | 2.578125 | 3 | [] | no_license | #!/bin/sh
echo "($0)"
echo -n "Generating root password ... "
sed -i -e 's/^root::/root:$1$hsP9n7K4$s3iE.gIlAKTmTykPH3Byt1:/' /etc/shadow
sed -i -e 's/^root:\*:/root:$1$hsP9n7K4$s3iE.gIlAKTmTykPH3Byt1:/' /etc/shadow
echo " Done"
| true |
3b77f51d902820b0309209bd9b40ec3363700429 | Shell | LeWaCode/lewa_vendor_lewa | /prebuilt/common/etc/init.d/geno | UTF-8 | 4,356 | 3.25 | 3 | [
"Apache-2.0"
] | permissive | #!/system/bin/sh
# By Genokolar 2011/02/07
mount -o remount rw /system
# log.txt auto delete
logsize=`busybox du -k /system/log.txt |busybox cut -f1`
if [ $logsize -gt 50 ]
then
busybox rm -f /system/log.txt
fi
# start log
echo "============================================" >> /system/log.txt
echo `busybox date +%... | true |
a88c5195d92a55a78e0352039bd5b053e25c907e | Shell | Jerovich/bash-scripts | /upg.sh | UTF-8 | 803 | 3.765625 | 4 | [] | no_license | #!/bin/bash
clear
sudo apt update > /dev/null
list=`sudo apt list --upgradable | grep -v Listing`
IFS=$'\n'
for j in $(sudo apt list --upgradable | grep upgradable)
do
echo "$j"
done
if [ -z $j ]; then
echo All packages are up to date.; echo
exit 0
else
echo; echo 'Do you want to proceed? (y/n)'; echo
fi
i=0
... | true |
963198fa4d7a8ac4888018020d3a700932792608 | Shell | KCP-quarantine-area/apps | /zinnia/PKGBUILD | UTF-8 | 584 | 2.8125 | 3 | [] | no_license |
pkgname=zinnia
pkgver=0.06
pkgrel=1
pkgdesc="Simple and portable open source handwriting recognition system based on Support Vector Machines"
arch=('x86_64')
url="http://zinnia.sourceforge.net/"
license=('BSD')
makedepends=('libtool')
source=("http://sourceforge.net/projects/zinnia/files/zinnia/$pkgver/$pkgname-$pkgve... | true |
de9c1301d9ef2ea27e0f128d7376d2083bc4990a | Shell | sebablasko/Test_DifferentAffinityThreadsBySocket | /run.sh | UTF-8 | 2,773 | 3.046875 | 3 | [] | no_license | #!/bin/bash
MAX_PACKS=1000000
repetitions=60
num_port=1820
threads="1 2 4 8 16 24 36 48 64 128"
num_clients=4
echo "Compilando..."
make all
echo "Done"
#Sin processor Affinity
salida=SinProcessorAffinity
for num_threads in $threads
do
echo "evaluando "$num_threads" threads, "$salida
linea="$num_threads,";
for (... | true |
af5297845dcc55e0fc4af49e296f770b13d2e8b5 | Shell | derekbrokeit/dotfiles | /unity/profile.sh | UTF-8 | 3,480 | 2.953125 | 3 | [] | no_license | #export EDITOR="$HOME/bin/tmvim"
export EDITOR=nvim
if os_is_linux ; then
export BROWSER=google-chrome-stable
else
export BROWSER=v3m
fi
export PAGER="nvimpager"
export MANPAGER="$PAGER"
alias less=$PAGER
ccat() {
# local cols=$(tput cols)
local cols=20
printf "${CYAN}%${cols}s${NC}\n" | tr " " -
... | true |
3e982e80d14e9a2c5db8f7c7685e4913e9d8ad49 | Shell | antonioribeiro/dev-box | /roles/composer/templates/createPackage.sh | UTF-8 | 6,120 | 4.0625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Export those variables in your .bashrc to ease the deployment of new packages
#
# export DEFAULT_VCS_USER=antonioribeiro
# export DEFAULT_VCS_SERVICE=github.com
# export DEFAULT_VENDOR_NAME=pragmarx
# export DEFAULT_SKELETON_NAME=skeleton
# export DEFAULT_SKELETON_REPOSITORY=https://github.com/antoniori... | true |
28691a700603c1e00e390abc5d8f3a5c9b88f776 | Shell | weltonwe/hostinglimit | /bin/cpulimit | UTF-8 | 1,735 | 3.671875 | 4 | [] | no_license | #!/bin/sh
#
# Script to start CPU limit daemon
#
set -e
case “$1” in
start)
if [ $(ps -eo pid,args | gawk ‘$3==”/usr/bin/cpulimit_daemon.sh” {print $1}’ | wc -l) -eq 0 ]; then
nohup /usr/bin/cpulimit_daemon.sh >/dev/null 2>&1 &
ps -eo pid,args | gawk ‘$3==”/usr/bin/cpulimit_daemon.sh” {print}’ | wc -l | gawk ‘{ if ($1... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.