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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
2e30fce0c19d0b46e11074d9984fa2d1c5c40585 | Shell | SwissDataScienceCenter/renku-storage | /.travis/check-code-formatting.sh | UTF-8 | 384 | 3.71875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
RESULTS_FILE=$(mktemp)
DIFF=$(git diff --exit-code > $RESULTS_FILE; echo $?)
echo "Running git diff on $(pwd) to check if scalariform changed code..."
if [ $DIFF -eq 0 ]; then
echo "No diff on source code"
rm $RESULTS_FILE
else
echo "Changes detected, code was probably not formatted before co... | true |
a55d5dd839ea3c602563195f6044a4fd4063c72d | Shell | AshutoshMatal/Bridgelabz | /function/Two_No_Pallindrome.sh | UTF-8 | 536 | 3.859375 | 4 | [] | no_license | #!/bin/bash -x
read -p "Enter number : " number
function isPalindrome()
{
local sum=0;
#HERE IS OUR SECOND NUMBER
temp=321
local number=$1
while [[ $number -gt 0 ]]
do
remainder=$((number%10));
sum=$((sum*10+remainder));
number=$((number/10));
... | true |
a6d11e99642700d12c1249af8b285b074bb489a8 | Shell | yigong/PyBeamDiag | /slurm/SLM_add_fName | UTF-8 | 870 | 2.609375 | 3 | [] | no_license | #!/bin/bash -I
#
#SBATCH --job-name=1um_backP_fName
#
#SBATCH --account=ac_etci
#
#SBATCH --partition=lr3
#
#SBATCH --qos=lr_debug
#
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=16
#
#SBATCH --time=00:30:00
#
#SBATCH --mail-type=all
#SBATCH --mail-user=ygzhang@lbl.gov
PyBeamDiag=/global/scratch/ygzhang/PyBeamDiag
G4Bea... | true |
a833b4bac7af7ba63e3a7c26e1f9ac633802a920 | Shell | MinaProtocol/mina | /automation/scripts/gen-keys-ledger.sh | UTF-8 | 2,293 | 3.375 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #! /bin/bash
MINA_DAEMON_IMAGE="minaprotocol/mina-daemon:1.3.2beta2-release-2.0.0-6f9d956-focal-berkeley"
while [ $# -gt 0 ]; do
case "$1" in
--testnet=*)
TESTNET="${1#*=}"
;;
--reset=*)
RESET="${1#*=}"
;;
--whales=*)
WHALES="${1#*=}"
;;
--fish=*)
FISH="${1#*... | true |
ea189d3b1fd448e88404fab8b3b0c8766efd7d6a | Shell | tantlab/digitazation-of-everyday-life | /docker/api/entrypoint.sh | UTF-8 | 592 | 3.265625 | 3 | [] | no_license | #!/bin/bash
cd /api
if [ "$MODE" = "dev" ]; then
echo "/!\\ Mode is set to DEV /!\\"
else
echo "/!\\ Mode is set to PRODUCTION /!\\"
fi
echo "(i) Python version is $(python --version)"
echo
echo " ~"
echo " ~ Install dependencies"
echo " ~"
echo
pip install -r requirements.txt
if [ "$MODE" = "dev" ]; then
echo... | true |
88241dfa72635bbd75999e7d2ded86e9f7fabc55 | Shell | mrpossoms/exo | /bin/exo-cmd-msg.sh | UTF-8 | 750 | 4.125 | 4 | [] | no_license | #!/bin/bash
source exo-utils.sh
function help {
echo "Creates a blank message. Must be used inside a 'msg' directory"
exit 0
}
function usage {
echo "msg [message-name]"
exit 0
}
MOD_DIR=$(get_cfg_val $HOME/.exo template_path)/mod/.mod
name="$1"
invoke help $name
invoke usage $name
if [ $(basename... | true |
0cd783970ed2ddb0f06f774ff5f858aacb3a98ec | Shell | Vivek2s/dev-app-frontend | /build.sh | UTF-8 | 805 | 3.40625 | 3 | [] | no_license | git pull
git commit -am "Building Home Page"
prod='dev-app-live'
echo "**************************************************** $1 ***********************"
if [ "$1" = "prod" ]
then
ng build --prod --aot --output-hashing=none --build-optimizer --base-href=https://vivek2s.github.io/dev-app-live/
dir=$prod
fi
e... | true |
0a36b916c1344ae80864f3508db65ce1397f3c10 | Shell | purna1sai/OS-Shell-Scripting | /pr02_evenodd.sh | UTF-8 | 117 | 3.515625 | 4 | [] | no_license | #!/bin/bash
n=$1
r=$(($n%2))
if [ $r -eq 0 ]
then
echo "$n is an even number"
else
echo "$n is an odd number"
fi
| true |
0aa15897d4447ff7404af2222884c441e51e8fa4 | Shell | OpenVnmrJ/OpenVnmrJ | /src/scripts/restore3x.sh | UTF-8 | 2,039 | 3.375 | 3 | [
"Apache-2.0",
"GPL-3.0-only"
] | permissive | : '@(#)restore3x.sh 22.1 03/24/08 2003-2008 '
#
#
# Copyright (C) 2015 University of Oregon
#
# You may distribute under the terms of either the GNU General Public
# License or the Apache License, as specified in the LICENSE file.
#
# For more information, see the LICENSE file.
#
#
#! /bin/sh
# This scripts copie... | true |
424d68300ac9f4e89855ba55772033e70c04f28c | Shell | sami1riaz/Comp-421 | /P2 Deliverable/SQL_and_Bash_Scripts/execute_sql.sh | UTF-8 | 267 | 3.109375 | 3 | [] | no_license | #! /bin/bash
SQL_FILE=$1
LOG_FILE=$2
ECHO_ALL=$3
printf " executing $SQL_FILE\n"
printf "\npsql cs421 < $SQL_FILE\n\n" >> $LOG_FILE
if [ ECHO_ALL != "" ]
then
psql $ECHO_ALL cs421 < $SQL_FILE >> $LOG_FILE 2>&1
else
psql cs421 < $SQL_FILE >> $LOG_FILE 2>&1
fi
| true |
d362b0d771be057111022cc5203775930ed49cd8 | Shell | liujunai/docx | /shell脚本/myhadoop.sh | UTF-8 | 1,000 | 3.078125 | 3 | [] | no_license | #!/bin/bash
if [ $# -lt 1 ]
then
echo "No Args Input..."
exit ;
fi
case $1 in
"start")
echo " =================== 启动 hadoop 集群 ==================="
echo " --------------- 启动 hdfs ---------------"
ssh liu1 "/opt/module/hadoop-3.2.0/sbin/start-dfs.sh"
echo " --------------- 启动 yarn ---------------"
ssh liu2 "/... | true |
6410f46a57d9c4f5399f265d69f3e6a77cc9155d | Shell | jiangqianghua/workspace | /shell/imocc_study/if2.sh | UTF-8 | 396 | 2.703125 | 3 | [] | no_license | #########################################################################
# File Name: if2.sh
# Author: qianghua jiang
# mail: 240437339@qq.com
# Created Time: Thu 03 Sep 2015 08:51:47 PM PDT
#########################################################################
#!/bin/bash
test1=$(df -h | grep sda1 | awk '{print $5... | true |
f0ef3db620f3f81c10ce0abd7d0285c50406ce54 | Shell | bentech/docker-ikev2-vpn | /image/scripts/entrypoint | UTF-8 | 189 | 3.125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
if [ -z "$(ls -A /etc/ipsec.d)" ]; then
cp -r /etc/ipsec.d.bk/* /etc/ipsec.d/
fi
if [ $# -eq 0 ]
then
create-host-cert
exec start-vpn
else
exec ${*}
fi | true |
6ec5f6b543eb14d0a49fe9ed44171f165f8529e6 | Shell | morhekil/dotfiles | /zsh/includes/S55_git | UTF-8 | 5,565 | 3.4375 | 3 | [] | no_license | #!/bin/zsh
autoload colors
colors
#export GIT_AUTHOR_NAME="${FULLNAME}"
#export GIT_AUTHOR_EMAIL="${EMAIL}"
#export GIT_COMMITTER_NAME="${FULLNAME}"
#export GIT_COMMITTER_EMAIL="${EMAIL}"
# ----------------------------------------------------------------------
# various git scripts
gitize() {
git init \
... | true |
1aecfebfa9c968394128dfd7b64bdff62c628fad | Shell | MOVE-II/move-on-helium-sensors | /tools/grafana/bin/mqttserial/mqttserial.sh | UTF-8 | 102 | 2.546875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
topic=sensors-raw
if [ -n "$1" ]; then
topic=$1
fi
mosquitto_sub -t $topic
| true |
09788969edbecefb1c343bc7fec58b90a9cc0de1 | Shell | billy-wang/shell_test | /TmakeChenyee | UTF-8 | 49,122 | 2.9375 | 3 | [] | no_license | #!/bin/bash
#
# DESCRIPTION: make project
#
# SCRIPT NAME:
#
# Usage:
#
#
# Input: stdin
#
# Output:
#
# AUTHOR: Ling Fen
#
# EMAIL: lingfen@chenyee.com
#
# DATE: 2013-11-49
#
# HISTORY:
# REVISOR ... | true |
4f429f16e3d3fba120304220f652a03818c96085 | Shell | delight09/gadgets | /network/qiniu_logdownload_helper.sh | UTF-8 | 1,752 | 3.8125 | 4 | [
"MIT"
] | permissive | #!/bin/bash --
# Download yesterday's qiniu CDN traffic log for specified domain
# API refer: https://developer.qiniu.com/fusion/api/1226/download-the-log
# NOTICE: Log resource will delay for 8-10 hours, it's a known issue written in API doc.
# It's recommand to trigger this script after 2 AM UTC in order to get a... | true |
fcaa45dc54631afe9e6cd3e3521ae78d8bc56401 | Shell | mrvon/leetcode | /0192/0192_word_frequency.sh | UTF-8 | 194 | 2.765625 | 3 | [
"MIT"
] | permissive | # Read from the file words.txt and output the word frequency list to stdout.
cat words.txt | awk '{ for (i = 1; i <= NF; i++) { print $i } }' | sort | uniq -c | sort -r | awk '{ print $2, $1 }'
| true |
e2f134ffd6f4671696d9dda91988eb4a89f49c08 | Shell | trucnguyenlam/mucke | /contrib/abcd/src/configure | UTF-8 | 652 | 3.828125 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
# (C) 1997 - 1998 Armin Biere
# $Id: configure,v 1.2 2000-05-08 11:33:36 biere Exp $
AUTOMATIC=true
while [ $# -ne 0 ]
do
case $1 in
--manual) AUTOMATIC=false;;
*)
echo "*** unknown command line option $1" 1>&2
echo "*** usage: configure [--manual]" 1>&2
exit 1;;
esac
... | true |
696fcee8eb2eeaeef9e5429a52244c36c589e964 | Shell | woody/dotfiles | /git.sh | UTF-8 | 351 | 3.640625 | 4 | [] | no_license | #!/usr/bin/env bash
export GIT_INCLUDED=true
update_git_repo () {
# Is it git repo?
if [ -d "$1"/.git ]; then
cd $1
else
mkdir -p $1 && cd $1
git init && git remote add origin $2
fi
git pull origin master
# Back to original
cd - >>/dev/null
}
update_github_repo () {
update_git_repo $1 "... | true |
1f251dec729e1a04f2b95eb1f1f70f3a341e68d0 | Shell | hypnoglow/homka | /bin/homka-deploy | UTF-8 | 4,706 | 4.3125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#
# This is a simple deploy tool.
################################################################################
# Include libraries
. ${_SELF_HOME}/lib/std.sh
. ${_SELF_HOME}/lib/io.sh
. ${_SELF_HOME}/lib/errors.sh
main() {
declare -g build=""
declare -g force=false
process_args "$@"
c... | true |
a43c5b99409e99e5ef05bf48018384ee02d3409e | Shell | augix/unsup_vvs | /unsup_vvs/neural_fit/brainscore_mask/run_behavior.sh | UTF-8 | 1,222 | 2.515625 | 3 | [] | no_license | :"
for set_func in \
cate_settings.cate_seed0 \
cate_settings.cate_p03 \
llp_settings.llp_p03 \
mt_settings.mt_p03 \
untrained_settings.untrn_seed0 \
la_settings.old_la_mid \
la_settings.la_seed0 \
ir_settings.ir_seed0 \
color_settings.color_seed0 \
rp_settings.rp_seed0 \
dep... | true |
c5c77af14baa1cfe3f4d37641b3ff77031e7554d | Shell | logan248/dotfiles | /scripts/setup.sh | UTF-8 | 1,324 | 3.65625 | 4 | [] | no_license | #!/usr/bin/env sh
fonts(){
[ ! -d "$HOME/.local/share" ] && \
mkdir -p $HOME/.local/share
echo "Copying ~/.config/fontconfig/ to ~/.config/fontconfig"
[ ! -d "$HOME/.config/fontconfig" ] && \
mkdir -p $HOME/.config/fontconfig
cp -r $HOME/dotfiles/.config/fontconfig \
$HOME/.config/fontconfig && \
... | true |
a3ec61679f250b6923efd3e41581bd94b6c92040 | Shell | FedotovDN/made_hpc_hw2 | /script4 | UTF-8 | 95 | 2.578125 | 3 | [] | no_license | #!/bin/bash
if [ ! -f "Linux" ]; then
echo "very easy"
touch "Linux"
else
echo "course"
fi
| true |
17f0996376941bcb4a429f654474a4951bba4a0b | Shell | gstackio/harbor-boshrelease | /jobs/harbor/templates/bin/post-start.erb.sh | UTF-8 | 1,619 | 3.078125 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-generic-cla"
] | permissive | #!/usr/bin/env bash
set -e # exit immediately if a simple command exits with a non-zero status
source /var/vcap/packages/common/utils.sh
waitForDBReady() {
set +e
TIMEOUT=12
while [ $TIMEOUT -gt 0 ]; do
$DOCKER_CMD exec harbor-db pg_isready | grep "accepting connections"
if [ $? -eq 0 ]; ... | true |
d3f1ee8a7e6c4606969fc0e7f68bde950433c031 | Shell | loboris/OdroidC1-BuildLinux | /install_lxde_desktop | UTF-8 | 7,378 | 3.546875 | 4 | [] | no_license | #!/bin/bash
# ******************************
# Install minimal lxde desktop *
# ******************************
if [ "$(id -u)" != "0" ]; then
echo "Script must be run as root !"
exit 0
fi
echo ""
date
echo -e "\033[36m======================="
echo -e "Installing LXDE Desktop"
echo -e "=======================\033[3... | true |
08784cbe1476ab864f423803bef56f235a686e79 | Shell | FBoisson/ISN-live | /live-isn/DEBIAN/prerm | UTF-8 | 466 | 2.71875 | 3 | [] | no_license | #!/bin/sh -e
# remove alternatives links
if [ "$1" = "remove" ]; then
grep -v "#backup ISN" /etc/crontab > /tmp/crontab
mv /etc/crontab /etc/crontab.dpkg
mv /tmp/crontab /etc/crontab
mv /etc/initramfs-tools/initramfs.conf /etc/initramfs-tools/initramfs.conf.live
mv /etc/initramfs-tools/initramfs.conf /... | true |
bddf0b08ae16a4156b97df01b606da66260d6862 | Shell | ermaker/bootstrap | /vagrant.sh | UTF-8 | 268 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
VAGRANT_VERSION="1.7.4"
VAGRANT_DEB=vagrant_${VAGRANT_VERSION}_x86_64.deb
if ! command -v vagrant &>/dev/null; then
\curl -sSL "https://dl.bintray.com/mitchellh/vagrant/${VAGRANT_DEB}" -o $VAGRANT_DEB
sudo dpkg -i $VAGRANT_DEB
rm -f $VAGRANT_DEB
fi
| true |
414c36c602239f4cba795c31f4c1fc6976999695 | Shell | chenxfeng/kaggle-dogs-vs-cats-caffe | /create_submissions_for_all.sh | UTF-8 | 379 | 2.625 | 3 | [] | no_license | BASE_FOLDER="finetuning" #BASE_FOLDER="learning_from_scratch"
echo "Base folder "$BASE_FOLDER
for item in `ls -v $BASE_FOLDER`
do
echo "Create submission for: "$item
time python create_kaggle_submission_probability.py $BASE_FOLDER/$item/deploy.prototxt $BASE_FOLDER/$item/model.caffemodel $BASE_FOLDER/$item/mean... | true |
7988c3db0f36676f2514f765e09c3433b3477e30 | Shell | emalm/gitea-boshrelease | /jobs/gitea/templates/bpm-pre-start.erb | UTF-8 | 1,295 | 3.203125 | 3 | [] | no_license | #!/usr/bin/env bash
gitea_bin=/var/vcap/packages/gitea/gitea
source_config_dir=/var/vcap/jobs/gitea/config
target_config_dir=/var/vcap/store/gitea/config
mkdir -p $target_config_dir
export PATH=/var/vcap/packages/git/bin:$PATH
if [[ -e $target_config_dir/INTERNAL_TOKEN ]]; then
echo "INTERNAL_TOKEN file exists; s... | true |
6a1a96148dacd637ca642ff00b82a01d85069d21 | Shell | guluchen/z3 | /contrib/ci/scripts/install-lib.sh | UTF-8 | 586 | 3.328125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
function install_openfst {
wget http://www.openfst.org/twiki/pub/FST/FstDownload/openfst-1.7.1.tar.gz
tar zxvf openfst-1.7.1.tar.gz
cd openfst-1.7.1
./configure
make
sudo make install
cd ../
}
function install_apron {
git clone https://github.com/antoinemine/apron.git
cd apron
./configure
make
... | true |
806aae2c6f5a1a76326d6cdde52a4736fb2975f3 | Shell | rbarreiros/vorwerk-tm5-oss-sources | /modified_packages/GPL_LGPL_licensed_packages/imx-bootlets_10.12.01/cst_tools/mk_signed_bootstream.sh | UTF-8 | 2,330 | 3.21875 | 3 | [] | no_license | #!/bin/bash
# expects objcopy, elftosb and sbtool in the path
export PATH=$PATH:../linux:~/build_trunk/ltib/otp_tools:/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/arm-fsl-linux-gnueabi/bin
BOOTLETS_PATH=~/build_trunk/ltib/rpm/BUILD/imx-bootlets-src-10.12.01
OTP_KEY=~/build_trunk/lt... | true |
795938fbbbe2e66c844779fad80563477ac6bee4 | Shell | ximitiejiang/PythonCodingSkill | /sync_codes/sync.sh | UTF-8 | 2,933 | 3.46875 | 3 | [] | no_license | #!/bin/sh
# 本脚本用于同步本文件夹下所有git repo
# 同步之前需要评估:是否有大文件产生,如果有,需要先去除大文件才能同步到github
# 执行方式:从命令行进入该脚本目录,然后运行 sh sync.sh
# -------------------------------------------------------
del_ipch()
{
for element in `find $1 -type d -name "ipch"`
do
rm -rf $element
done
}
echo "starting pull a... | true |
be70d2c873b97a536e8467fb7228eb81887c98b0 | Shell | purinchu/rabornrecord-docker-devenv | /start-dev-env | UTF-8 | 1,312 | 3.953125 | 4 | [
"MIT",
"Apache-2.0"
] | permissive | #!/bin/sh
# Run this script to start Docker with the proper development environment container
# No options are available.
# Assumes the user has already authenticated separately (for now).
if [ "x$GCP_PROJECT" = "x" ]; then
echo "No default Google cloud project is assigned. To set one, export"
echo "GCP_PROJ... | true |
a39a6b17c40d7ebc298fa23d9a819f2eda5d24ee | Shell | jyothimorampudi/sample | /script.sh | UTF-8 | 90 | 2.984375 | 3 | [] | no_license | intA=10
intB=20
if [ $intA == $intB ]
then
echo "Both are equal"
else
echo "Not equal"
fi
| true |
f0bb6f6f36cfc8d9be7ecbc6b973fd116c34923c | Shell | kagurazakayashi/pi | /U盘模式.sh | UTF-8 | 789 | 2.671875 | 3 | [
"MIT"
] | permissive | echo "dtoverlay=dwc2" | sudo tee -a /boot/config.txt
echo "dwc2" | sudo tee -a /etc/modules
echo "g_mass_storage" | sudo tee -a /etc/modules
dd if=/dev/zero of=/home/my_u_disk.bin bs=1024 count=1000 #1G
sudo modprobe g_mass_storage file=/home/my_u_disk.bin removable=1 dVendor=0x0781 idProduct=0x5572 bcdDevice=0x011a iM... | true |
251b6ae042bc987a1c6da811a3f9f34ac0377ae9 | Shell | adellam/ansible-playbooks | /library/debian-ubuntu/roles/postgresql/templates/postgresql_wal_backup_and_removal.j2 | UTF-8 | 388 | 2.859375 | 3 | [] | no_license | #!/bin/bash
BASE_BACKUP_DIR={{ psql_base_backup_dir }}
WAL_ARCHIVES_LOG_DIR={{ psql_wal_archiving_log_dir }}
WAL_LATEST_BACKUP=
# The base backup dir needs to be empty
rm -f $BASE_BACKUP_DIR/*
pg_basebackup -F t -z -D $BASE_BACKUP_DIR
cd $WAL_ARCHIVES_LOG_DIR
WAL_LATEST_BACKUP=$( /bin/ls -1tr *.backup | tail -1 )
p... | true |
7160968c8ce9c0e480b29eb2b7c84a37017c74c7 | Shell | dmedme/web_path_web | /fdbase_windows.sh | UTF-8 | 3,373 | 2.875 | 3 | [] | no_license | # fdbase.sh - Global variables for PATH
# @(#) $Name$ $Id$
# Copyright (c) E2 Systems Limited 1993
#
ulimit -n 1024
PATH_IG=${PATH_IG:-}
PATH_SCENE=${PATH_SCENE:-}
# Establish directory where PATH is run
PATH_HOME=${PATH_HOME:-/c/e2}
# O/S type for establishing executables directory (PATH_SOURCE) and text editor
# (PAT... | true |
b677afc6e2da5091ad5d955bb3f11d6aa457cf69 | Shell | beebus/CPUfactory4 | /scripts/install.sh | UTF-8 | 272 | 2.6875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env bash
mkdir -p deps
# install glui ==================================
if [ ! -d "deps/glui" ]; then
git clone https://github.com/libglui/glui deps/glui
fi
cd deps/glui
make
sudo cp lib/libglui.a /usr/local/lib
sudo cp include/GL/glui.h /usr/local/include
| true |
c3bc30ebca954ea3eb9f3626553122667d88f8d3 | Shell | hakatashi/esolang-box | /boxes/swift/script | UTF-8 | 175 | 2.515625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
infile=$(realpath "$1")
ln -sf "$infile" /tmp/code.swift
/root/.swiftenv/shims/swiftc -o /tmp/code /tmp/code.swift
cat - | /tmp/code
rm /tmp/code.swift /tmp/code
| true |
b193615b69e418d85acc693e36903734b4d56e4f | Shell | vrvenky1407/terraform-aws-ghost | /node-and-mariadb-secure-install.sh | UTF-8 | 857 | 2.5625 | 3 | [] | no_license | MYSQL_ROOT_PASSWORD='mysqlroot123'
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt install -y nodejs
node -v
npm -v
# Install MariaDB
sudo apt update -y
sudo apt install -y mariadb-server mariadb-client
sudo systemctl enable mariadb
sudo systemctl status mariadb
sudo mysql --user=root <<_E... | true |
ff29535f8f415b1477aadcdbc2a3c2838226c22d | Shell | chs2019/dotfiles | /home/.zsh/quotes.zsh | UTF-8 | 2,638 | 2.8125 | 3 | [] | no_license | # empty line
echo ""
# Mensagem
echo -e "\n\"Agora é o lugar onde as perguntas descansam e as respostas crescem, nos seus próprios tempos…\"\n\n~ Jeff Foster, \"Slow Down, Friend\"\n"
echo -e "\"You either die a hero or you live long enough to see yourself become the villain.\"\n\n~ Harvey Dent\n"
echo -e "\"All tho... | true |
8d4825555a7df5871e7f715b3403daa69ca1736b | Shell | fysikum/cmbenv | /pkgs/module-cp2k.sh | UTF-8 | 1,444 | 3.375 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
pkg=module-cp2k
log=$(realpath "log_${pkg}")
echo "Building ${pkg}..." >&2
echo "Creating @MODULE_DIR@/@VERSION@..." >&2
mkdir -p "@MODULE_DIR@" || exit 1
cat > "@MODULE_DIR@/@VERSION@" <<'EOF'
#%Module###<-magic cookie ####################################################
set version @VERSION@
proc ... | true |
98db560f75197f87a1e363859734351b27fa26a5 | Shell | pixelhandler/dotfiles | /bootstrap.sh | UTF-8 | 1,263 | 3.6875 | 4 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/usr/bin/env bash
# Borrowed from https://github.com/mathiasbynens/dotfiles/blob/master/bootstrap.sh
# and https://github.com/toranb/dotfiles/blob/master/symlink.sh
cd "$(dirname "${BASH_SOURCE}")";
git pull origin master;
function doIt() {
source ./bin/ssh.sh
git submodule init
git submodule update
git su... | true |
3d821fdeee9bbedfd2256276f85354f21f50c736 | Shell | gluster/build-jobs | /build-gluster-org/scripts/regression-test-burn-in.sh | UTF-8 | 1,987 | 3.375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
MY_ENV=`env | sort`
BURL=${BUILD_URL}consoleFull
# Display all environment variables in the debugging log
echo "Start time $(date)"
echo
echo "Display all environment variables"
echo "*********************************"
echo
echo "$MY_ENV"
echo
# use "7 and not "7" since RHEL use 7.6 while Centos use 7
gr... | true |
d12b3dbd18310d3308ba0b9fad096bd5ef0e1b4b | Shell | TaylanUB/arch2parabola | /repo-list-diff | UTF-8 | 1,418 | 3.75 | 4 | [] | no_license | #!/bin/bash
# (C) This script is free software! You can do what you want with it, as long as you don't convert it into proprietary software
# and if you redistribute it either vertabim or modified you must do so under the same licence or GPLv3 or later.
dirname=$(pwd)
tempdir=$(mktemp -d)
cd $tempdir
#Run a sanity ch... | true |
118ecb8c8882cd24cf31aac489c49ededfd64e79 | Shell | mmirko/bondmachine | /bondgo/src/regression.sh | UTF-8 | 2,259 | 3.390625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
BASE="test"
if [ "a$1" == "areset" ]
then
for i in $BASE/sourc*go
do
echo
echo
echo "Resetting $i"
TESTIN="$i"".asm"
echo -n " Creating $TESTIN"
go run bondgo_main.go -input-file $i -save-assembly $TESTIN && echo -e "\033[32m\033[300C\033[10D[ Reset ]\033[0m"
done
for i in $BASE/mpm_so... | true |
8681076d7e28619040616a89a3e7fab0317bf34d | Shell | TAREK-ELOUARET/neural_IP | /neural_network_sfixed/neural_network_sfixed.sim/sim_1/behav/simulate.sh | UTF-8 | 260 | 2.640625 | 3 | [] | no_license | #!/bin/bash -f
xv_path="/apps/Xilinx/Vivado/2016.4"
ExecStep()
{
"$@"
RETVAL=$?
if [ $RETVAL -ne 0 ]
then
exit $RETVAL
fi
}
ExecStep $xv_path/bin/xsim neuro_simul_behav -key {Behavioral:sim_1:Functional:neuro_simul} -tclbatch neuro_simul.tcl -log simulate.log
| true |
89beea70c761c07b1b6fc99fda3ec413d93043ce | Shell | djamseed/dotfiles | /.bin/uninstall-go | UTF-8 | 551 | 4.09375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -euo pipefail
current_userid=$(id -u)
if [ "$current_userid" -ne 0 ]; then
echo "$(basename "$0") uninstallation script requires superuser privileges to run" >&2
exit 1
fi
echo "This script will delete these files/directories permanently:"
echo "/usr/local/go"
echo "/etc/paths.d/go"
e... | true |
006a4b9abc02651383d6b456962eb92b00493022 | Shell | ortizjd-jmu/bash-scripts | /Jekyll-setup.sh | UTF-8 | 684 | 2.6875 | 3 | [] | no_license | yes | sudo apt-get update && yes | sudo apt-get upgrade
# Install Dependencies:
yes | sudo apt-get install ruby-full build-essential zlib1g-dev
# Add environement variables to ~/.bashrc to configure gem installation path:
echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc
echo 'export GEM_HOME="$HOME/gems"' >> ~/.bash... | true |
ffd2bc7a61f8da3ac3acb6ac372353984e8fe8d4 | Shell | oweidner/vntg | /vntg-core/lib/vntg_build.sh | UTF-8 | 12,725 | 3.953125 | 4 | [] | no_license | #!/bin/sh
REPO_PATH="/Users/architeuthis/Code/vntg/vntg-formulae"
CONFIG_FILE="/Users/architeuthis/Code/vntg/vntg-formulae/irix64-mips4-cc.cfg"
# do_check_formula(): Parse a formula file
# o param 1: formula name
#
do_check_formula() {
typeset _formula_name=$1
if [ ! -f "${FORMULAE}/${1}" ]
then
... | true |
a84fd8fe737748c91637ea32cda365e3cbf5a87a | Shell | solareenlo/ft_server | /srcs/autoindex.sh | UTF-8 | 277 | 3.53125 | 4 | [] | no_license | #!/bin/bash
INDEX=$1
if [[ "$INDEX" == "on" || "$INDEX" == "off" ]];
then
sed -i -E "/autoindex/ s/on|off/$INDEX/" /etc/nginx/sites-available/default.conf
service nginx reload
echo "Autoindex is now set to $INDEX"
else
echo "Please set a valid value ('on' or 'off')."
fi
| true |
1a1bc5d10bde1c3031a80e1a23d2e497b2e127a1 | Shell | Mangemannen66/bash_grundkurs | /lab5/uppgift2.sh | UTF-8 | 850 | 3.3125 | 3 | [] | no_license | #!/bin/bash
################################################
# Uppgift 2 laboration 5 #
# Magnus Danielsson LX13 #
# Ett enkelt skript för att skriva in ett tal #
#+som ligger mellan 10 och 100. #
#+Här testar skriptet om inslagen siffra är #
#+inom ramen ... | true |
fb685084c69dcb3d0cde5c69d54b2d67354a420a | Shell | rebelplutonium/nixos-configuration | /custom/expressions/initialization-utils/src/pre-push.sh | UTF-8 | 220 | 3.078125 | 3 | [] | no_license | #!/bin/sh
REMOTE="${1}" &&
if [ "${REMOTE}" == "upstream" ]
then
echo Pushing to the UPSTREAM branch is not allowed. &&
echo Use the REPORT branch for pushing upstream. &&
exit 67 &&
true
fi
| true |
bcbbb015ac44f7289b3cb54486ccde38e4ff1944 | Shell | andrebriggs/bedrock-agents | /setup-variable-group.sh | UTF-8 | 2,275 | 2.765625 | 3 | [] | no_license | RESOURCE_GROUP="REPLACE_ME"
ACR_NAME="REPLACE_ME"
AZDO_ORG_URL="https://dev.azure.com/REPLACE_ME"
AZDO_PROJECT_NAME="REPLACE_ME"
AZP_POOL="bedrock-pool" # Must exist in $AZDO_ORG_URL/_settings/agentpools
SUBSCRIPTION_ID="REPLACE_ME"
TENANT_ID="REPLACE_ME"
SP_CLIENT_ID="REPLACE_ME"
# Should come from Azure KeyVault ide... | true |
e7404c78bf68971e3f6e9b3532ce6232d9e409fc | Shell | lightster/pier-11 | /bin/vagrant/install-docker-compose.sh | UTF-8 | 372 | 3.4375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
echo -n "Installing docker-compose... "
if [ ! -f /usr/local/bin/docker-compose ]; then
curl -sS -L https://github.com/docker/compose/releases/download/1.16.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
echo "docker-compose installed!"
el... | true |
ee9696832d78baab569f9204b5ae8042e2c71c4c | Shell | n-daniel/YCSB | /runtest.sh | UTF-8 | 670 | 3.375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# if not set THREADS use default
if [ -z "$THREADS" ]; then
THREADS=1
fi
# if not set GRANULARITY use default (1sec)
if [ -z "$GRANULARITY" ]; then
GRANULARITY=1000
fi
# clean up
CLEANUP=$1.$THREADS.*
for f0 in $CLEANUP
do
echo "delete $f0"
rm $f0
done
# execute test
FILES=workloads/*
for f in ... | true |
1d5314b521cc52c350b16099f307583a3893e9f7 | Shell | donald-e-boyce/libf95dplab | /Dev/Test/Run.sh | UTF-8 | 310 | 3.0625 | 3 | [] | no_license | #! /bin/bash
#
# Script to run test problem.
#
if [ $# -lt 2 ]; then
echo 'need arguments: data-file num_procs'
exit 1
fi
#
DATAFILE=$1
NUM_PROC=$2
#
MAINDIR=`pwd`
BINARY=./linear-solver.x
MPIRUN=/opt/openmpi-1.2.7/bin/mpirun
#
cp $DATAFILE input.txt
$MPIRUN -np $NUM_PROC $BINARY
rm -f input.txt
| true |
5d8e6fd1fc6c97cb43532fd33f906e872bd3edd8 | Shell | algo-cancer/CAMMiQ | /install_CAMMiQ.sh | UTF-8 | 796 | 3.328125 | 3 | [
"MIT"
] | permissive | cd src
if [ -d "./parallel-divsufsort" ]; then
echo "Destination path 'parallel-divsufsort' already exists."
else
make downloads
fi
if [ -d "./robin-hood-hashing" ]; then
echo "Destination path 'robin-hood-hashing' already exists."
else
make downloadr
fi
DIVSUFSORTLIB=./parallel-divsufsort/lib/libdivsufsort.a
if [ ... | true |
69a05df72786066dff12a5f1eb0db5fc0c8e92c7 | Shell | tozd/docker-nginx-mailer | /test.sh | UTF-8 | 1,344 | 3.703125 | 4 | [] | no_license | #!/bin/sh
set -e
cleanup_mailhog=0
cleanup_docker=0
cleanup_network=0
cleanup() {
set +e
if [ "$cleanup_mailhog" -ne 0 ]; then
echo "Logs mailhog"
docker logs mailhog
echo "Stopping mailhog Docker image"
docker stop mailhog
docker rm -f mailhog
fi
if [ "$cleanup_docker" -ne 0 ]; then
... | true |
f666a0fab8e6d2db4eb77a216f756ed8f42c74db | Shell | ukiroot/Epistola_LFS | /step/Chapter_6/chroot/step/Chapter_10/109_step_install_nginx.sh | UTF-8 | 4,496 | 3.1875 | 3 | [] | no_license | #!/bin/bash
#########
#########110 step. Install Nginx.
#########
step_110_install_nginx ()
{
PCRE="pcre-8.35"
PCRE_SRC_FILE="$PCRE.tar.gz"
if [ ! -f /sources/$PCRE_SRC_FILE ]; then
wget -O /sources/$PCRE_SRC_FILE $REPOSITORY/$PCRE_SRC_FILE
fi
cd /sources
tar zxf $PCRE_SRC_FILE
cd $PCRE
./configure --prefix=/us... | true |
5bb780d2b19e8aaed6f2b0c45f664d8af5e4eaa0 | Shell | digcat/puppet-alfresco | /config/ootb_output.sh | UTF-8 | 2,136 | 2.609375 | 3 | [
"MIT"
] | permissive |
function write_output {
domain_name=`get_param domain_name`
initial_admin_pass=`get_param initial_admin_pass`
mail_from_default=`get_param mail_from_default`
alfresco_base_dir=`get_param alfresco_base_dir`
tomcat_home=`get_param tomcat_home`
alfresco_version=`get_param alfresco_version`
download_path=`get_para... | true |
f47590b4af6f43dc3a7eee4a639429fb82d5e595 | Shell | lgz282/virtualization-benchmarks | /tests/boot/boot_time_vm | UTF-8 | 670 | 3.71875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
ITERATIONS=10
VM_NAME=vm1
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
OUTPUT_DIR=$DIR/output
DATETIME=$(date +%Y-%m-%dT%H:%M:%S%z)
LOGFILE_NAME=$OUTPUT_DIR/$DATETIME-vm-boot-time.log
launch_vm() {
virsh start $VM_NAME
}
destroy_vm() {
virsh destroy $VM_NAME
}
ping_vm(... | true |
e1c60e218a5363dbf8ecc527d931cdd378f69071 | Shell | archived-codacy/homebrew-tap | /bin/update.sh | UTF-8 | 831 | 4.15625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#
# Update the Formula version
#
# Requirements:
# * git
# * curl
# * shasum (with 256 algorithm)
# * sed
#
set -e
if [ -z "$1" ] && [ -z "$2" ]; then
echo "usage: $0 <formula> <VERSION>" >&2
exit 1
fi
formula="$1"
formula_path="Formula/${1}.rb"
version="$2"
sha256=$(curl -sL "https://githu... | true |
0f9a34121a06d79d6438af9190ba4aa17b20bb04 | Shell | FreemanX/pocl-android-dependency | /build_llvm_aarch64.sh | UTF-8 | 1,744 | 3.078125 | 3 | [] | no_license | #!/bin/bash
# Scripts for building llvm
INSTALL_DIR=$HOME/data/llvm_arm64-out/
[ ! -d "$INSTALL_DIR" ] && mkdir $INSTALL_DIR
TOOLCHAIN_PATH=your_standalone_toolchain_path
TOOLCHAIN_BIN=$TOOLCHAIN_PATH/bin
SYSROOT=$TOOLCHAIN_PATH/sysroot
ARM_LIB_PATH=$HOME/data/Libs_ARM64
export PATH=$TOOLCHAIN_BIN:$PATH
export LD_LI... | true |
15add917b826ce924ce71a4421f66e91c46008b3 | Shell | gunnjo/twofing | /debian/makeit.sh | UTF-8 | 425 | 2.9375 | 3 | [] | no_license | #!/bin/sh
PKG=twofing
VERSION=0.7
DEBVER=1.0
PKGDIR=${PKG}_${VERSION}-${DEBVER}
TARFILE=${PKG}_${VERSION}.orig.tar.gz
FILES="../*.c ../*.h ../Makefile ../70-touchscreen-egalax.rules"
tar -cvzf ${TARFILE} ${FILES}
mkdir ${PKGDIR}
cd ${PKGDIR}
tar -xvzf ../${TARFILE}
cp -ar ../debian .
[ -e debian/changelog ] || dch ... | true |
8ba6ce686096be513ef0677a76397972a6530601 | Shell | AlexAegis/dotfiles | /modules/xdg-user-dirs/1.root.sh | UTF-8 | 620 | 3.34375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# xdg-user-dirs-update errors out with "No default user directories"
# In the 2.users.sh file becuase on some systems /etc/user-dirs.defaults
# is in /etc/xdg/user-dirs.defaults
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=647313
# Once this resolves, this script can be reprivileged to user
if [ ! -e... | true |
c8a060eaf15893ce6f2c12b0ac5c5579fc990b28 | Shell | jarrettkenny/dillo-bot | /cicd/scripts/build-jar.sh | UTF-8 | 2,671 | 3.453125 | 3 | [] | no_license | #!/bin/bash
NORMAL_COLOR='\033[0m'
PREFIX_COLOR='\033[0;36m'
ECHO_PREFIX="[${PREFIX_COLOR}PIPELINE${NORMAL_COLOR}]"
FAIL_COLOR='\033[1;31m'
FAIL_PREFIX="${ECHO_PREFIX} [${FAIL_COLOR}ERROR${NORMAL_COLOR}]"
SUCCESS_COLOR='\033[1;32m'
SUCCESS_PREFIX="${ECHO_PREFIX} [${SUCCESS_COLOR}SUCCESS${NORMAL_COLOR}]"
INFO_COLOR=... | true |
4cd218a4c426a4f5eb545c5308c9935ff6b94f41 | Shell | ashishforgive/tbs_lamp | /tbs_lamp.sh | UTF-8 | 1,809 | 3.796875 | 4 | [] | no_license | #!/bin/bash
# Author : Ashish Kumar
# Copyright (c) TechBrise.com
#Color script
red=`tput setaf 1`
green=`tput setaf 2`
yellwo=`tput setaf 3`
echo "${green} +++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
echo "${green}| Hola!! you are installing the LAMP using TechBrise LAMP.|
| L- Linux |
| A- Aap... | true |
8e19a610a3057e72507fd16dec5b7e644fb70f0b | Shell | tcider/sh_scripts | /4_linux.sh | UTF-8 | 98 | 2.5625 | 3 | [] | no_license | #!/bin/bash
apt-get install -y procps
echo "Enter pid of parent proccess"
read pp
ps --ppid $pp
| true |
2e403eb354f933e819e3dccb1be7c877bb3e8b1d | Shell | blacknon/dotfiles | /sh/functions/iterm2.sh | UTF-8 | 5,525 | 3.78125 | 4 | [] | no_license | #!/bin/bash
# Copyright(c) 2023 Blacknon. All rights reserved.
# Use of this source code is governed by an MIT license
# that can be found in the LICENSE file.
# ____print_osc():
# about:
# tmuxなどの場合にOSCエスケープシーケンスを出力するためのfunction。
____print_osc() {
if [[ $TERM == screen* ]]; then
printf "\033Ptmux;\0... | true |
ab75a85d24d69eb3915b4f86170e42349711eb90 | Shell | jushikj/work | /portal/CAE/ANSYS_LSDYNA/ANSYS_LSDYNA.run | UTF-8 | 6,555 | 3.265625 | 3 | [] | no_license | #!/bin/bash
get_portal_input()
{
QTIMESTAMP=`date +%G%m%d_%H%M`
PORTALVAR=/tmp/clusportal_$USER$QTIMESTAMP.var
#touch $PORTALVAR
dos2unix -n $1 $PORTALVAR 2>/dev/null
source $PORTALVAR
}
get_basic_params()
{
source /opt/gridview/gridviewAppTemplate/CAE/ANSYS_LSDYNA/ANSYS_LSDYNA.setting
### runfile setting
#... | true |
17fb7dd49d9a9717106090c25b0c21da151a2e88 | Shell | starcoinorg/starcoin | /scripts/update_version.sh | UTF-8 | 1,879 | 4.5 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Default flag value for simulation mode
simulate=true
# Function to display script usage
display_help() {
echo "Usage: ./update_version.sh <old_version> <new_version> [--execute]"
echo " ./update_version.sh -h|--help"
echo ""
echo "Options:"
echo " --execute Perform actual cha... | true |
8bffd9161770a4d299e1fdd94b1c619339930f17 | Shell | PaaS-TA/PaaS-TA-Core | /paasta-controller/src/routing-release/jobs/routing-api/templates/routing-api_ctl.erb | UTF-8 | 1,123 | 3.640625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash -e
RUN_DIR=/var/vcap/sys/run/routing-api
LOG_DIR=/var/vcap/sys/log/routing-api
PIDFILE=$RUN_DIR/routing-api.pid
source /var/vcap/packages/routing_utils/pid_utils.sh
source /var/vcap/packages/routing_utils/syslog_utils.sh
function setup_environment() {
mkdir -p "${RUN_DIR}"
}
case $1 in
start)
... | true |
8be813885b9a28deef65f5c9177eab7cb528b520 | Shell | visavi/rotordock | /.cleanup | UTF-8 | 121 | 2.59375 | 3 | [] | no_license | #!/bin/bash
if [ -n "$(docker ps -a -q)" ]; then
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
fi
| true |
a81c7c2966f0799a23428e85bb8eb34cc5daa4a4 | Shell | coscin/laptop | /bin/ovs-nyc-ifup | UTF-8 | 323 | 3.015625 | 3 | [] | no_license | #!/bin/sh
switch='br-nyc'
/sbin/ifconfig $1 0.0.0.0 up
case "$1" in
tap1) ofport=1
;;
tap3) ofport=2
;;
# tap6) ofport=3
# ;;
# tap7) ofport=4
# ;;
*) echo "Unexpected tap port $1 for NYC"
exit
;;
esac
ovs-vsctl add-port ${switch} $1 -- set Interface $1 ofport_request=${ofpor... | true |
4a27d81de56ae27bc5ce0cada44d1745fa7ec769 | Shell | lisadlima/riptide-ros | /scripts/install-by-deps | UTF-8 | 1,294 | 3.5625 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
# A Script to install only necessary ROS packages
#
# Installs gazebo6-ros-pkgs
# Resolves package dependencies
# Select the appropriate ROS version for the current OS:
if [ "${ROS_DISTRO:-false}" == "false" ]; then
if [ $(lsb_release -cs) == "precise" ]; then ROS_DISTRO=hydro
elif [ $(lsb_relea... | true |
c55f299c4fb9b702a7cab3e06f877947f8ed803a | Shell | tlbanken/Simple_Auto_Grader | /auto_grader | UTF-8 | 2,812 | 4.21875 | 4 | [] | no_license | #!/bin/bash
# Script to automate diffing testcases against user and given executables
# Author: Travis Banken
# MUST give name of the given exec and your exec
EXE_GIVEN=
MY_EXE=
# check for executables
if [ "$EXE_GIVEN" == "" ] || [ "$MY_EXE" == "" ]; then
echo -e "No executables specified. Edit the grader with the... | true |
54ca5a078dae7c7a96e856b0326ea964783fe3eb | Shell | lrocca/push_swap | /test/test.sh | UTF-8 | 2,651 | 3.53125 | 4 | [] | no_license | #!/bin/bash
# **************************************************************************** #
# #
# ::: :::::::: #
# test.sh :+: ... | true |
a31216305b1428d2b4ee86436b912d773b8d3ce4 | Shell | linuxdabbler/debian-dialog-install-script | /dialog.sh | UTF-8 | 29,048 | 3.359375 | 3 | [] | no_license | #!/bin/bash
# Borrowed some of the syntax from DasGeek among others...
# Tested on Debian Buster and Testing
# Version 0.1
## Define Temp location - "dis" stands for "debian-install-script"
tmd_dir=/tmp/dis
## Define some variables because I'm lazy
install='apt install'
update='apt update; apt upgrade -y'
user=$... | true |
541bee75cd21533b98056e246c33000baf40db00 | Shell | vyxxr/afetch | /afetch | UTF-8 | 2,242 | 3.71875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env sh
#
# by mhess
distro="$(sed -rn '/^NAME/ s/^NAME="?([a-z A-Z]+).?$/\1/p' /etc/os-release)"
kernel="$(uname -r)"
shell="$(basename $SHELL)"
get_ppid="$(sed -rn 's/^PPid:\s+([[:digit:]]+)/\1/p' "/proc/${PPID}/status")"
get_term="$(cat "/proc/${get_ppid}/comm")"
term() {
case "$get_term" in
login|Logi... | true |
ec3994881d0fb27c386b677e3127001468ece5cc | Shell | weilaidb/PythonExample | /regularexpress/home/weilaidb/software/git-2.0.5/git-rebase.sh | UTF-8 | 8,667 | 3.09375 | 3 | [] | no_license | #!/bin/sh
#
# Copyright (c) 2005 Junio C Hamano.
#
SUBDIRECTORY_OK=Yes
OPTIONS_KEEPDASHDASH=
OPTIONS_STUCKLONG=t
OPTIONS_SPEC="\
git rebase [-i] [options] [--exec <cmd>] [--onto <newbase>] [<upstream>] [<branch>]
git rebase [-i] [options] [--exec <cmd>] [--onto <newbase>] --root [<branch>]
git-rebase --continue | --abo... | true |
a5c4769ef0d0d91021489bf662a63b38d9b418a5 | Shell | hgxl64/mariadb-benchmarks | /regression-ES/run_one.sh | UTF-8 | 495 | 3.296875 | 3 | [] | no_license | #!/bin/bash
set -e
LOG="log.txt"
DONE="done.txt"
TODO="revlist.txt"
cat $TODO | while read r
do
fgrep -q $r $DONE && continue
NOW=$(date "+%Y-%m-%d %H:%M:%S")
echo "[$NOW] start $r" >>$LOG
echo "running $r"
./runme.sh mariadb-10.5-ES-$r
NOW=$(date "+%Y-%m-%d %H:%M:%S")
echo "[$NOW] finish $r" ... | true |
6feaa1c4e54bf3849deae1af44a949e51c674cb3 | Shell | adlibre/adlibre-backup | /bin/list-backups.sh | UTF-8 | 1,042 | 4.0625 | 4 | [
"BSD-2-Clause"
] | permissive | #!/usr/bin/env bash
# Adlibre Backup - List backups for a host
CWD="$(dirname $0)/"
# Source Config
. ${CWD}../etc/backup.conf
# Source Functions
. ${CWD}functions.sh;
HOSTS_DIR="/${POOL_NAME}/hosts/"
if [ ! $(whoami) = "root" ]; then
echo "Error: Must run as root."
exit 99
fi
if [ "$1" == '--all' ]; the... | true |
4e9fecd0b14635617643511ec49badb61dc42a7b | Shell | diegofps/ngd_docker_images | /bin/ngd_doctor.sh | UTF-8 | 504 | 4.03125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
if [ `whoami` = 'root' ]
then
echo "You should not run this script as root, aborting"
exit 0
fi
NODES_FILEPATH=$1
if [ "$NODES_FILEPATH" = "" ]
then
NODES=`ifconfig | grep tap | sed 's/tap\([0-9]\+\).\+/node\1/'`
else
NODES=`cat $NODES_FILEPATH`
fi
check_ecdsa()
{
NODE=$1
echo "Fixing possible ... | true |
34e23a83ac4a9e4c564aca3e6901dfa7f9d2c7d0 | Shell | nagyist/jitsi | /resources/install/debian/jitsi | UTF-8 | 473 | 3.25 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | #!/bin/sh
SHOW_SPLASH=true
SPLASH_ARG=""
for arg in "$@"; do
if [ "$arg" = "--splash=no" ]; then
SHOW_SPLASH=false
fi
done
SCDIR=/usr/share/jitsi
if $SHOW_SPLASH; then
SPLASH_ARG="-splash:${SCDIR}/splash.gif"
fi
java \
-cp "${SCDIR}/lib/*:${SCDIR}/config/" \
--add-opens=java.base/jdk.internal.loader=A... | true |
6ff1787bcd1e7a35248b84b7564343dd3f0f0ca5 | Shell | JoanClaret/pch-chart | /datesToCommits.sh | UTF-8 | 141 | 3.109375 | 3 | [] | no_license | #!/bin/sh
while read date
do
echo "- $date -"
echo -n " " >> f
git add f
git commit --date="$date" -m "$date"
done < dates.txt
rm f | true |
d668c5ccfad29caa1f5915b193e22d84628d87d6 | Shell | arnabkc/simple-spam-filter | /spamfilter/git_push.sh | UTF-8 | 432 | 2.71875 | 3 | [] | no_license | #!/bin/bash
# STEP 1: Initiate git project - first time
git init
# STEP 2: Add local project to git. This will also add new file to local repo
git add .
# STEP 3: Commit adds to local repo
git commit -m "message"
# STEP 4: Set up new remote repository - First time. This is my github URL
git remote add origin https:... | true |
354858b885794254bc339ef38982ba458af1c7f7 | Shell | ggainey/pulp_startup | /1794647/docopy.bsh | UTF-8 | 3,006 | 3.5 | 4 | [] | no_license | #!/bin/bash
# Poll a Pulp2 task until it is finished.
wait_until_task_finished() {
echo "Polling the task until it has reached a final state."
local task_url=$1
while true
do
local response=$(curl -k -s -u admin:admin --cert ~/.pulp/user-cert.pem -X GET $task_url)
local state=$(jq -r .s... | true |
a6cd4ee21a7cd56e8862d6ee253a0721d32fd8db | Shell | shuo-wu/longhorn-engine | /package/launch-simple-longhorn | UTF-8 | 1,377 | 3.5 | 4 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/bin/bash
set -x
set -e
mount --rbind /host/dev /dev
volume=$1
size=$2
frontend=$3
if [ -z $volume ]
then
echo "Usage: launch-simple-longhorn <volume_name> <frontend> "
echo "<volume_name>: Required. User defined volume name"
echo "<frontend>: Optional. By default 'tgt-blockdev'. "
exit -1... | true |
ab4e074b161096400c75e50b91362884446b3226 | Shell | franchuterivera/automlbenchmark | /frameworks/autoxgboost/setup.sh | UTF-8 | 1,499 | 2.921875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
HERE=$(dirname "$0")
VERSION=${1:-"stable"}
REPO=${2:-"ja-thomas/autoxgboost"}
# currently both stable and latest maps to master branch
if [[ "$VERSION" == "latest" || "$VERSION" == "stable" ]]; then
VERSION="master"
fi
. ${HERE}/../shared/setup.sh "${HERE}"
if [[ -x "$(command -v apt-get)" ]]; ... | true |
2dfc5bd2cf3c95293ee39f04612df9a91f39b82b | Shell | Le0nX/StudyX | /Bash/case3.sh | UTF-8 | 271 | 3.328125 | 3 | [] | no_license | #!/bin/bash
echo "Is it morning? Enter yes or no."
read answer
case "$answer" in
yes | Yes | YES | y )
echo "Good morning"
echo "Bright morning"
;;
[nN]* )
echo "Good afternoon"
;;
* )
echo "Sorry. Enter yes or no."
exit 1
;;
esac
exit 0
| true |
830267086f0c4261ce222d3347b490e20480ee50 | Shell | BenDoan/scripts | /backup_to_remote.sh | UTF-8 | 502 | 3.296875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Performs an incremental backup to a remote client, and commits
# the changes to a git repository. Depends on commit_directory.sh.
#
# Usage ./backup_to_remote directory_to_backup hostname host_location
# Usage ./backup_to_remote ~/documents ben-vps /storage/documents-backup
DIR="$( cd "$( dirname "${BAS... | true |
ec0096627dff03676407b3acf4c8d462c39d3ba8 | Shell | ytlzq0228/Public_Share_Project | /PRTG 自定义传感器Customer Senser/ARM开发板无线质量监测/checknetwork.sh | UTF-8 | 1,858 | 3.046875 | 3 | [] | no_license | #!/bin/bash、
#采集样本数据,交由Python格式化处理,并通过TFTP上报到PRTG服务器
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
cd /home/pi
if [ -f checkresult.txt ]; then
#echo "remove old checkresult.txt file ... "
rm -f checkresult.txt
fi
if [ -f $HOSTNAME-WIFI_Check_result.txt ]; then
#echo "$HOSTNAME-WIFI... | true |
e87862f61041d1805dbad32ee133f5646b8038b7 | Shell | gtrabanco/dotfiles | /scripts/secrets/apply | UTF-8 | 965 | 3.640625 | 4 | [] | no_license | #!/usr/bin/env bash
[[ -z "$DOTLY_PATH" ]] && exit 1
. "$DOTLY_PATH/scripts/core/_main.sh"
. "$DOTFILES_PATH/scripts/secrets/src/secrets_files_helpers.sh"
##? Apply stored secrets aliases
##?
##?
##? Usage:
##? apply [-h | --help]
##? apply [-v | --version]
##? apply revert
##?
##? Options:
##? -h --help ... | true |
fbc9ce69c0328a745a8e1172aa154d3d55e5c948 | Shell | HashDefineElectronics/HDE_Environment | /bootstrap.sh | UTF-8 | 2,808 | 3.28125 | 3 | [] | no_license | #!/bin/bash
# Use single quotes instead of double quotes to make it work with special-character passwords
PASSWORD='zattaz#'
# update / upgrade
sudo apt-get update
sudo apt-get -y upgrade
# install apache 2.5 and php 5.5
sudo apt-get install -y apache2
sudo apt-get install -y php5
# install mysql and give password ... | true |
09fc849af1ea13bcd7b97ba0f40ab7b7c5595d88 | Shell | mxmlnkn/indexed_bzip2 | /results/asciinema/show-benchmark.sh | UTF-8 | 1,738 | 2.84375 | 3 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | # xfce4-terminal --geometry 94x17
# asciinema rec --overwrite rapidgzip-comparison-2.rec -c 'bash show-benchmark.sh'
tmux new-session '
( echo '"'"'^[OSgzip ^M'"'"'; sleep 1h; ) | htop
' \; split-window -t top -l 10 '
export PS1="$ "; bash --norc
' \; split-window -h '
export PS1="$ "; bash --norc
' \; se... | true |
f45cd50993871911adef6a3d5ffbcf9bd63e2d09 | Shell | crypdex/blackbox | /services/bitcoin/docker/download-release.sh | UTF-8 | 898 | 3.59375 | 4 | [] | no_license | #!/usr/bin/env bash
platform=$(uname -sm)
if [[ ${platform} == "Linux x86_64" ]]; then
arch=x86_64
archive_name=bitcoin-${VERSION}-${arch}-linux-gnu.tar.gz
elif [[ ${platform} == "Linux aarch64" ]]; then
arch=aarch64
archive_name=bitcoin-${VERSION}-${arch}-linux-gnu.tar.gz
elif [[ ${platform} == "Linux armv7l... | true |
f3415d716ac66ae7d336264ef31c66a57762bdcf | Shell | puremourning/vim | /docker/linux-test/run | UTF-8 | 419 | 3.453125 | 3 | [
"Vim"
] | permissive | #!/usr/bin/env bash
if [ -z "$1" ]; then
CONTAINER="puremourning:vim-test-linux"
else
CONTAINER=$1
shift
fi
echo "Using container $CONTAINER"
CMD="bash"
if [ "$@" ];then
CMD="$@"
fi
docker run --cap-add=SYS_PTRACE \
--security-opt seccomp=unconfined \
--mount src="$(pwd)/../..",target... | true |
7cf9b1dc0796b09a8366de0a67955cf8b1f8d888 | Shell | pkubanek/ts_Dockerfiles | /develop-env/salobj_4/setup.sh | UTF-8 | 536 | 2.8125 | 3 | [] | no_license | #!/usr/bin/env bash
# Source this file when starting the container to set it up
echo "#"
echo "# Loading LSST Stack"
. /opt/lsst/software/stack/loadLSST.bash
setup lsst_distrib
echo "#"
echo "# Loading sal environment"
. /home/saluser/repos/ts_sal/setup.env
# Work around for setting LSST_DDS_IP working on most system... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.