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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
9710899af7f424e7d8377f730207de971a217222 | Shell | compae/sparta | /docker/docker-entrypoint.sh | UTF-8 | 1,298 | 3.765625 | 4 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash -e
function _log_sparta_entrypoint() {
local message=$1
echo "[SPARTA-ENTRYPOINT] $message"
}
_log_sparta_entrypoint "Executing Sparta docker-entrypoint"
NAME=sparta
VARIABLES="/etc/default/$NAME-variables"
SYSTEM_VARIABLES="/etc/profile"
SPARTA_CONF_FILE=/etc/sds/sparta/reference.conf
_lo... | true |
65495127ad429b10a973c1fb9dc071bd2f420627 | Shell | git-for-windows/MINGW-packages | /mingw-w64-ilmbase/PKGBUILD | UTF-8 | 2,027 | 2.8125 | 3 | [
"BSD-3-Clause"
] | permissive | # Maintainer: Alexey Pavlov <alexpux@gmail.com>
_realname=ilmbase
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=2.2.1
pkgrel=1
pkgdesc="Base libraries from ILM for OpenEXR (mingw-w64)"
arch=('any')
url="http://www.openexr.com/"
license=("custom")
makedepends=("${MINGW_PACKAGE_PRE... | true |
68df9776bf2314f85ae63269b085231b2b7475ff | Shell | D0cT0r-inf0s3c/Praus | /audit/nginx.sh | UTF-8 | 4,130 | 3.25 | 3 | [] | no_license | #!/bin/bash
home=$HOME
mkdir /$home/temp
touch /$home/temp/nginx.txt
echo "\e[1;95m-------------------------[nginx audit in progress]-------------------------"
installed=$(dpkg-query -W -f='${Status}' nginx 2>/dev/null | grep -c "ok installed")
if [ $installed -eq 0 ];
then
status="\e[91m[ BAD ]"
#exit
else
st... | true |
9e6f3dc5042fc2e2f0a2aa4a4ee18fb8d9e5a7a4 | Shell | chrisguest75/kind_examples | /08_skaffold/version.sh | UTF-8 | 212 | 2.765625 | 3 | [] | no_license | #!/usr/bin/env bash
CID=$(basename "$(cat /proc/1/cpuset)")
#CID=$(cat /proc/self/cgroup | grep "cpu:/" | sed 's/\([0-9]\):cpu:\/docker\///g')
env
while true; do
echo "$(date) '${CID}'"
sleep 10
done
| true |
d38f9708e2a965f396159e97ed72ce038cc0cd91 | Shell | apnex/pxe | /test.sh | UTF-8 | 593 | 3.109375 | 3 | [] | no_license | #!/bin/bash
INT="wlp0s20f3"
ADDRESS=$(ifconfig "${INT}" | grep inet[^6] | awk '{print $2}')
NETMASK=$(ifconfig "${INT}" | grep inet[^6] | awk '{print $4}')
GATEWAY=$(route -n | grep UG | awk '{print $2}')
DNS=$(nmcli -g ip4.dns device show "${INT}" | awk '{print $1}')
echo "ADDRESS : [$ADDRESS]"
echo "NETMASK : [$NET... | true |
db782f3c2cc3b317cc2b7f1ae9bb1e02a0b38590 | Shell | breyerml/prezto | /runcoms/zshrc | UTF-8 | 2,029 | 2.9375 | 3 | [
"MIT"
] | permissive | #
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
# Customize to your needs...
# To customize prompt, run `p10k configure` ... | true |
29b6d7278ace55d708ca1fbb79a10f9b2f3d191a | Shell | temptemp3/sonarqube-docker-compose | /scripts/install.sh | UTF-8 | 940 | 3.25 | 3 | [] | no_license | #!/bin/bash
## needs revisions
(
cd ~
wget https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-3.0.3.778-linux.zip
sudo apt-get install unzip
unzip sonar-scanner-cli-3.0.3.778-linux.zip
rm -rvf sonar-scanner-cli-3.0.3.778-linux.zip
cat >> .bashrc << EOF
alias sonar-scanner='~/s... | true |
04edaa6257a4b7890497a19f428c47fea3240f0c | Shell | Haegin/zsh-magic-history | /magic-history.plugin.zsh | UTF-8 | 1,236 | 2.859375 | 3 | [] | no_license | # zshrc/80_history
#
# Set up command line history functions
#
# Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
# Released under the terms of the Artistic Licence 2.0
#
# Source repository: git://git.madduck.net/etc/zsh.git
#
# typeset -g on this one to make warn_create_global happy
typeset -g HISTFILE=$... | true |
317d11a7b9675a7b105289ce9a671da6e5a22f2b | Shell | chef/chef-workstation-app | /assets/scripts/chef_workstation_app_launcher | UTF-8 | 3,617 | 3.859375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
#
# Copyright:: Copyright 2020 Chef Software, Inc.
# Author:: Salim Afiune <afiune@chef.io>
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#... | true |
2ff953b95c2e765b0e57803a957b297ac91f1408 | Shell | yuchangyang/ywsh | /gfs01/put_scp.sh | UTF-8 | 604 | 2.953125 | 3 | [] | no_license | #!/bin/bash
src_path=/home/welend/benson/data/config
work_path=/home/welend/xiaoayang/xyfile
#work_path=/tmp/applied/xyfile
data_path=$work_path/data_files
tar_path=$work_path/tar_files
dataname=$1
scp $work_path/$dataname fs-node3:$work_path/
if [ $? -ne 0 ];then
echo "$logtime ->send data file to gfs3 failed!"
... | true |
ec562e5c87edee93bda120a6bf463b3b1b14698d | Shell | LIParadise/DSnP_hw5 | /tests.sh | UTF-8 | 1,702 | 2.828125 | 3 | [] | no_license | if [ $# -ne 1 ]; then
echo "usage: ./tests.sh <a/b/d>"
exit
fi
if [ ${1} = a ]
then
echo "case array"
ref/adtTest.array -f tests/do1 >& log/ref1
ref/adtTest.array -f tests/do2 >& log/ref2
ref/adtTest.array -f tests/do3 >& log/ref3
ref/adtTest.array -f tests/do4 >& log/ref4
# ref/adtTest.array -f tests/do... | true |
3907680d3fa7a9f5829283abaff065a4b8984b2c | Shell | pcifarelli/emailfetch | /docker/docker-build.sh | UTF-8 | 139 | 2.796875 | 3 | [] | no_license | #!/bin/bash
x=`type docker 2> /dev/null`
if [ "x$x" = "x" ]; then
echo "docker not installed"
else
docker build -t emailfetch .
fi
| true |
c1d9c5dacd880b712c1b7babdd8463d97c049b15 | Shell | levii/feedbackbox-py | /bin/scenario.sh | UTF-8 | 1,577 | 3.21875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
prompt()
{
local message=$1
echo "========================================"
echo "$message"
echo -n "Please enter: "
read -r
}
run()
{
echo "$ python main.py $*"
python main.py "$@"
echo
}
rm -f datafile.pickle
prompt "ユーザを作成する"
run user create --name "Customer 1" --role "custome... | true |
d9a209626a0efb642077f6a58136d831547c8446 | Shell | fnproject/fn | /images/dind/preentry.sh | UTF-8 | 520 | 3.203125 | 3 | [
"Apache-2.0",
"BSD-3-Clause",
"Unlicense",
"MPL-1.0",
"MPL-2.0",
"ISC",
"LicenseRef-scancode-public-domain"
] | permissive | #!/bin/sh
set -euo pipefail
fsdriver=$(grep -Eh -w -m1 "overlay|aufs" /proc/filesystems | cut -f2)
if [ $fsdriver == "overlay" ]; then
fsdriver="overlay2"
fi
mtu=$(ip link show dev $(ip route |
awk '$1 == "default" { print $NF }') |
awk '{for (i = 1; i <= NF; i++) if ($i == "mtu") pri... | true |
5f6224e9d02b857cb03473af4e182e5916d19dfa | Shell | magos-linux/magos-linux | /make_rpms/modmnger/2_build.sh | UTF-8 | 405 | 2.890625 | 3 | [] | no_license | #!/bin/bash
rm -fr rpmbuild
mkdir -p rpmbuild/SOURCES rpmbuild/SPECS rpms srpms
[ -d ~/rpmbuild ] || ln -s "$PWD/rpmbuild" ~/rpmbuild
cp -p SOURCES/*.* rpmbuild/SOURCES
cp -p SPECS/* rpmbuild/SPECS
cd rpmbuild/SPECS
cd ../../
rpmbuild -bs rpmbuild/SPECS/*.spec || exit 1
rpmbuild -bb rpmbuild/SPECS/*.spec || exit 1
find... | true |
599fc5bba5cd696ef70647ae3d2f19c71779ee32 | Shell | liuheng2cqupt/FATE | /contrib/fate_script/run_fateScript.sh | UTF-8 | 2,217 | 3.140625 | 3 | [
"Apache-2.0"
] | permissive | DIRNAME=$0
if [ "${DIRNAME:0:1}" = "/" ];then
CURDIR=`dirname $DIRNAME`
else
CURDIR="`pwd`"/"`dirname $DIRNAME`"
fi
echo $CURDIR
generator_path=$(cd "$(dirname "$0")";pwd)'/../../federatedml/util/transfer_variable_generator.py'
transfer_json_path=$(cd "$(dirname "$0")";pwd)'/conf/FateScriptTransferVar.json'
t... | true |
4caef4f2c9fd1a9f59ddf63ee49f1de640ff2702 | Shell | OpenWise/wiseup-rpi | /service/wiseup-comm | UTF-8 | 768 | 3.453125 | 3 | [
"MIT"
] | permissive | #! /bin/sh
# Starts and stops wiseup-comm
# /etc/init.d/wiseup-comm
### BEGIN INIT INFO
# Provides: wiseup-comm
# Required-Start: $syslog
# Required-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: wiseup-comm
### END INIT INFO
case "$1" in
start)
echo "# [ST... | true |
4a9b3c43b011ae4df9ccd2abcedf678b95fcdf11 | Shell | nuxeo/nuxeo.io-docker-etcdump | /etcdump.sh | UTF-8 | 1,102 | 3.1875 | 3 | [] | no_license | #!/bin/sh -
/bin/write-awscli-conf.sh
NOW=`date +"%Y_%m_%d-%H_%M"`
DUMPER=/usr/lib/node_modules/etcdump/bin/etcdump
# dump etcd
echo "Dumping arken etcd"
nodejs $DUMPER --config /root/config-arken.json --file etcd_dump_arken_$NOW.json dump
if [ ! $? -eq 0 ]; then
echo "Error while dumping arken etcd."
else
echo ... | true |
d4fc9e3a9becb2be55be4eef6b49c7c9efe6ee94 | Shell | PaulTegel/testnetzrepository | /testnetz-dns/base-image/bin/ubuntu.sh | UTF-8 | 507 | 3.171875 | 3 | [] | no_license | #!/bin/sh
# Note: The handling of this script does effect in Ubuntu (container)
# environment only; it solves a specific problem for successfully
# running 'tcpdump' command!
# (problem: /usr/sbin/tcpdump: error while loading shared libraries:
# libcrypto.so.1.0.0: cannot open shared... | true |
c9b2eb13c95e42ff303cad1cfe14105567057363 | Shell | hly9624/shell | /day2/elif.sh | UTF-8 | 227 | 3.765625 | 4 | [] | no_license | #!/bin/bash
if [ $# -ne 1 ]
then
exit 1
fi
if ! [ -e $1 ]
then
echo "the $1 not exist"
fi
if [ -f $1 ]
then
echo "$1 是普通文件"
elif [ -d $1 ]
then
echo "$1 是一个目录"
else
echo "$1 是其他类型"
fi
| true |
d2b75d36d85cf5a3fb97e00393d7f646b13f99f8 | Shell | leoribg/wisun-backhaul-docker | /init-container.sh | UTF-8 | 11,886 | 3.859375 | 4 | [] | no_license | #!/bin/sh
# vim: set sw=4 expandtab:
#
# Copyright 2021, Silicon Labs
# SPDX-License-Identifier: zlib
# Main authors:
# - Jérôme Pouiller <jerome.pouiller@silabs.com>
#
set +m
TUNSLIP6_PID=-1
UART=/dev/ttyACM0
die()
{
echo "$@" >&2
exit 1
}
print_usage()
{
cat << EOF >&2
Usage: $1 [OPTIONS] [MODE]
S... | true |
2dcaa70302bdc08410e5b81314104b17028da927 | Shell | ISISComputingGroup/EPICS-ActiveMQ | /procserv_stop.sh | UTF-8 | 764 | 3.578125 | 4 | [] | no_license | #!/bin/bash
SCRIPT=$(readlink -f ${BASH_SOURCE[0]})
SCRIPTPATH=`dirname "$SCRIPT"`
MYDIR=$SCRIPTPATH
# Ensure environment is set up
if [ -z "$EPICS_ROOT" ]; then
. $MYDIR/../../../config_env_base.sh
fi
# kill procservs that manage active MQ
PIDFILE="$EPICS_ROOT/EPICS_JMS.pid"
if [ -r "$PIDFILE" ]; then
CSPI... | true |
53de2a845dab2b69929819757c44017a834497c6 | Shell | ravisantoshgudimetla/console-operator | /dev_run_local.sh | UTF-8 | 2,484 | 3.234375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# we need to be system admin to install these
oc login -u system:admin
# this just deploys everything under /manifests,
# but tries to space them out a bit to avoid errors.
# in the end, it creates a custom resource to kick
# the operator into action
# necessary if doing dev locally on a < 4.0.0 ... | true |
03dffd6a15d87276572e095beebc713351c8eaeb | Shell | amerinero/Scripts | /s3sync-lexon.sh | UTF-8 | 377 | 3.25 | 3 | [] | no_license | #!/bin/bash
REPOSITORY=/data/webs/lexon/public_html/repository/documents
S3BUCKET=s3://lexon-pre-repository
LOGFILE=lexon-sync-aws.log
cd ${REPOSITORY}
DATADIRS=`find . -maxdepth 1 -type d -printf "%f \n" | grep -v "^\..$"`
for FOLDER in ${DATADIRS}
do
echo "${FOLDER} ---> ${S3BUCKET}/${FOLDER}"
aws s3 sync ${FOLDE... | true |
c7221f2b2e906a6de0df650849e38d84132e6924 | Shell | LeilyR/snakemake_workflows | /workflows/scRNAseq/scRNAseq_QC_metrics.sh | UTF-8 | 2,702 | 3.421875 | 3 | [] | no_license | #!/bin/bash
dir_in=$1
dir_out=$2
dir_in=$(readlink -m $dir_in)
mkdir -p $dir_out/data
#for i in $dir_in/*cout{b,c}.csv; do
# out=$(echo $i | sed 's/.*\///');
# out2=$(echo $out | sed 's/\.csv$//');
# echo $out 1>&2;
# cat $i | awk -v file=$out '{if (NR==1) {next;}; for (i=2;i<=NF;i++) COUNTS[i-1]+=$i;} \
# END{... | true |
fc6d0632038dda1ffe58bff33553cea6efa4cef1 | Shell | La-Lojban/lojban-spell-check | /createOpera.sh | UTF-8 | 580 | 3.46875 | 3 | [
"WTFPL"
] | permissive | #!/bin/bash
#
# Creates a LibreOffice/OpenOffice extension (spell-check only) Lojban.
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # Script dir
source "$DIR/config.sh" || exit 4
# --------------------------------------------------------------------------------
dir="opera"
# Copy affix file, and generate... | true |
d82b742ae7ed55eb445a69e72c17549f326cc248 | Shell | jay-ucla/jvmmethodinvocations | /latency-sample-projects/run.sh | UTF-8 | 545 | 3.171875 | 3 | [] | no_license | run_headless(){
echo Starting $1 $2
cd $1
if [ $2 == "_" ]; then
export AGENTPATH=""
else
export AGENTPATH=-agentpath:/home/jay/openjdktest/test/jvmti-builds/$2
fi
echo $AGENTPATH
mvn -fn test > test_output_$2.log
TIME=$(cat test_output_$2.log | awk '/Total time/' | awk -F': ' '{print $2}')
echo Finished ... | true |
2e3f9eccae11dd6addfc0259157e30b63dbd48d6 | Shell | thohal/openqrm | /trunk/src/plugins/equallogic-storage/include/openqrm-plugin-equallogic-storage-functions | UTF-8 | 2,120 | 3.21875 | 3 | [] | no_license | #!/bin/bash
# this is the functions file for the equallogic-storage-plugin
#
# This file is part of openQRM.
#
# openQRM is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# as published by the Free Software Foundation.
#
# openQRM is distributed in ... | true |
a236d07b4fcb161795b027bfe7c4217d8adaf519 | Shell | ayj/mixer | /bin/linters.sh | UTF-8 | 1,718 | 3.015625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Runs all requisite linters over the whole mixer code base.
set -e
prep_linters() {
echo Preparing linters
go get -u github.com/alecthomas/gometalinter
go get -u github.com/bazelbuild/buildifier/buildifier
go get -u github.com/3rf/codecoroner
gometalinter --install >/dev/null
bin/... | true |
eb78b5e5a5124b8aa7c134dcd6c7032779218d77 | Shell | tomkulish/docker-elasticsearch | /run.sh | UTF-8 | 1,695 | 3.875 | 4 | [] | no_license | #!/bin/sh
BASE=/elasticsearch
run_as_other_user_if_needed() {
if [[ "$(id -u)" == "0" ]]; then
# If running as root, drop to specified UID and run command
exec chroot --userspec=1000 / "${@}"
else
# Either we are running in Openshift with random uid and are a member of the root group
... | true |
822e69d2c5ee0e79fce0eab01ad986537f6fc297 | Shell | darrinwillis/devenv | /bash_aliases | UTF-8 | 755 | 2.96875 | 3 | [
"MIT"
] | permissive | loop ()
{
if [ "$*" = "" ]; then
echo "Usage:\n\tloop <args>\n" 1>&2;
return 1;
fi;
count=1;
while true; do
echo "`date`: Running iteration $count: $*" 1>&2;
"$@";
if [ "$?" != "0" ]; then
echo "`date`: $* failed at iteration $count" 1>&2;
... | true |
c0bef43a72c404a04f74fd20991681e19bbcdab7 | Shell | DnZmfr/spinnaker-canary-demo | /scripts/prepare.sh | UTF-8 | 2,679 | 3.328125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
bold() {
echo ". $(tput bold)" "$*" "$(tput sgr0)";
}
if [ $USER != "root" ]; then
bold "This script should be executed as root."
exit 1
fi
if [ ! -f /usr/local/bin/kubectl ]; then
bold "Install kubectl cli..."
curl -o /usr/local/bin/kubectl -sLO https://amazon-eks.s3.us-west-2.... | true |
8af26f62e384134585dcf5ae17ec68e2a53b2011 | Shell | teju85/programming | /euler/status.sh | UTF-8 | 223 | 3.03125 | 3 | [] | no_license | #!/bin/bash
# COMMENTS:
# Utility script to check the current status
#
# USAGE:
# ./status.sh
#
solved=`ls solved/*.cpp | wc -l`
unsolved=`ls *.cpp | wc -l`
echo "NUM SOLVED: $solved"
echo "NUM UNSOLVED: $unsolved"
| true |
23f44c43784a12c735a3883e3ae77111d71d83a0 | Shell | impact48/PurpleFriday | /remote_deploy.sh | UTF-8 | 2,915 | 4.21875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#################################################
# deploy.sh
# ---------
#
# Deployment script on host for PurpleFriday software.
#
#################################################
function error_handler()
{
local l_save_command=${l_save_command:-$BASH_COMMAND}
local l_save_line=${l_save_line:-$1... | true |
e89ce841c5407998d5119cd48e41383fad4672b5 | Shell | Vinotha16/WIN_ROLLBACK | /templates/linux_actualfacts/ubuntu18.04/fat_1118_actual.fact | UTF-8 | 365 | 3.09375 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
cmd=$(cat /etc/modprobe.d/vfat.conf | grep "install vfat /bin/true" | paste -sd "," -)
if [ $(sudo modprobe --showconfig 2>/dev/null | grep vfat | grep "install vfat /bin/true" | wc -l) -eq 0 ] || [ $(sudo lsmod | grep vfat | wc -l) -ne 0 ]; then
echo "{ \"fat_1118_actual\" : \"\" }"
else
echo "{ \"fa... | true |
c98de10324c2609afa3d80780e20dc2e65b3ef82 | Shell | tmtxt/truongtx-ansible | /minecraft.sh | UTF-8 | 302 | 2.921875 | 3 | [] | no_license | #!/usr/bin/env sh
# $1: list of tags separated by comma
function run_playbook {
if [[ -n "$1" ]]; then
ansible-playbook -i hosts --ask-vault-pass --tags $1 minecraft.yml
else
ansible-playbook -i hosts --ask-vault-pass minecraft.yml
fi
}
# trigger tag run
run_playbook run
| true |
f69a2c9c6000f7dfb6f0512041084f58c8f3bf24 | Shell | ludar/make-nginx | /bin/sources.sh | UTF-8 | 1,127 | 4.09375 | 4 | [] | no_license | #!/bin/bash
# Fetch nginx+modules sources based on etc/versions
APP_PATH=$(dirname "$0" | xargs -I{} readlink -m {}/..)
. $APP_PATH/share/lib.sh
function usage() {
bye Usage: $(basename "$0") sources_dir
}
[[ -n "$1" ]] || usage
# Important here to ensure all read/write in the set of tools is done by the same use... | true |
7feb3975692a694c7d28ccc534ff9cdc5b5623a8 | Shell | marcellinamichie291/misc | /util/adjust.sh | UTF-8 | 196 | 3.203125 | 3 | [] | no_license | #/bin/bash
FOLDER=$1;
srt=(`ls $FOLDER*.srt`);
avi=(`ls $FOLDER*.avi`);
i=0;
for video in ${avi[@]}; do
mv ${srt[$i]} `echo ${avi[$i]}|sed -e 's/avi/pt-br.srt/g'` -v ;
let "i++";
done
| true |
8786f27cfa9e553fe6319737a98338042d3a644a | Shell | hiromzn/pgtools | /runarchivebackup.sh | UTF-8 | 906 | 3.421875 | 3 | [] | no_license |
MYNAME="$0"
MYDIR=`dirname $0`
. $MYDIR/postgre.env
DATE_STR="`date +%Y-%m%d-%H%M-%S`"
BACKUP_MARKFILE_BASE="BACKUP_MARK_FILE";
BACKUP_MARKFILE=$ARCHIVE_DIR/${BACKUP_MARKFILE_BASE}-$DATE_STR
echo "execute archive backup : mark_file is $BACKUP_MARKFILE"
touch $BACKUP_MARKFILE
if [ "$?" -ne 0 ]; then
echo "ERROR: ... | true |
c3cc58ff5e3067a49d89053052753fd16e3a0d7d | Shell | Ajedi32/bash_settings | /nx.sh | UTF-8 | 125 | 2.984375 | 3 | [] | no_license | # Execute a Node.js bin within the current project
function nx() {
local bin=$1;
shift;
./node_modules/.bin/$bin $@;
}
| true |
0187dd9c941a453490b1a001050d11d85e19d72e | Shell | alvinkrebs/scripts | /TryReadWrite.q | UTF-8 | 1,912 | 3.390625 | 3 | [] | no_license | #!/bin/sh
##
## set -x
## 96.90.247.82: {"owner_token":"913d503d-6b0e-48ea-49f6-13d7f8a0359f","writer_token":"f3477060-8fd2-4aba-5a3a-8ed7d9833b30"}
## 96.90.247.83: {"owner_token":"f8315a85-a541-4acc-6898-ae44c821e553","writer_token":"9e1cfe57-e749-4e7a-54b8-f424eada56d8"}
## 192.168.1.73: {"owner_token":"dfa7bac3-891... | true |
676b06a9be5e67ded924a04f4ccb6e2bc7c72cba | Shell | haojinIntel/OAP | /oap-mllib/mllib-dal/build.sh | UTF-8 | 555 | 3.375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Check envs for building
if [[ -z $JAVA_HOME ]]; then
echo $JAVA_HOME not defined!
exit 1
fi
if [[ -z $DAALROOT ]]; then
echo DAALROOT not defined!
exit 1
fi
if [[ -z $TBBROOT ]]; then
echo TBBROOT not defined!
exit 1
fi
if [[ -z $CCL_ROOT ]]; then
echo CCL_ROOT not defined!
exit 1
fi
... | true |
dd41c0826362e75dfaee98b5f5bc284fa524102a | Shell | andrewchilds/overcast | /scripts/install/imagemagick | UTF-8 | 274 | 3.046875 | 3 | [
"MIT",
"Apache-2.0"
] | permissive | #!/bin/bash
# Install ImageMagick.
# Tested on:
# Ubuntu 14.04
# Usage:
# overcast run myInstanceOrCluster install/imagemagick
# set -x
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root." 1>&2
exit 1
fi
aptitude -y install imagemagick
exit 0
| true |
af66d3ecef0f5f2184f1e283e0e579c789702aee | Shell | simple-framework/simple_grid_puppet_module | /templates/retry_command_wrapper.sh.epp | UTF-8 | 2,271 | 4.3125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
for i in "$@"
do
case $i in
--command=*)
COMMAND="${i#*=}"
shift
;;
--retries=*)
NO_OF_RETRIES="${i#*=}"
shift
;;
--recovery-command=*)
RECOVERY_COMMAND="${i#*=}"
shift
;;
--reattempt-interval=*)
... | true |
79c4698fdc08783b274ed5f930bb036c395d91c6 | Shell | valhakis/master | /home/.bashrc | UTF-8 | 1,549 | 2.78125 | 3 | [] | no_license | # If not running interactively, don't do anything
[[ $- != *i* ]] && return
export TERM="xterm-256color"
force_color_prompt=yes
alias ls="ls --color "
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
alias svim="sudo -E vim "
alias so="source ~/.bashrc"
alias tree="tree -C"
alias so="source ~/.bashrc"
function make_... | true |
e668120172dd82062328f7e0094ccac410f383f8 | Shell | gauthier-voron/xmde | /scripts/xmde-start | UTF-8 | 2,100 | 4.09375 | 4 | [] | no_license | #!/bin/sh
#
# Launch the XMonad window manager.
# Before to launch it, ensures that "xmonad --recompile" has been called
# since the last update of binary, libraries or configuration files
#
# First step: locate the xmonad user configuration file.
# If it does not exist, impossible to launch xmde. Print an erro... | true |
75c5b16346e55f12567ef3a9c78ef5963bead3d5 | Shell | aimanwahdi/Bittorent | /bittorensimag/src/test/script/clientOptions.sh | UTF-8 | 3,027 | 3.34375 | 3 | [] | no_license | #! /bin/sh
cd "$(dirname "$0")"/../../.. || exit 1
PATH=./src/main/bin:"$PATH"
echo "Working directory :" $(pwd)
# Without options
out=$(bittorensimag)
if [ -z "$out" ]; then
echo "bad response without options should return usage"
exit 1
else
echo "good response without option displays usage"
fi
# Banne... | true |
001ea7abf6df4e6554c18c1520256ae1ec30caf6 | Shell | socialmetrix/docker-playframework | /build-all.sh | UTF-8 | 1,062 | 3.484375 | 3 | [] | no_license | #!/usr/bin/env bash
read -r -d '' PLAY_VERSIONS <<-LIST
1.2.7.2
1.2.6.2
1.2.5.6
1.3.4
1.4.2
LIST
MY_VERSION=1.0
read -r -d '' WARN_HEADER <<-EOM
#
# AUTO-GENERATED - DO NOT EDIT THIS FILE
# EDIT Dockerfile.template AND RUN update.sh
#
# GENERATED: $(date -u)
#
EOM
for PLAY_VERSION in $(echo ${PLAY_VERSIONS}); do
... | true |
c5cada114e999c6f60f7d5c51fcd57cde48ba32d | Shell | klixxezitz/yubikey_lock | /yubikey-screen-lock | UTF-8 | 2,490 | 3.875 | 4 | [] | no_license | #!/bin/bash
#
# Script for locking/unlocking screen via yubikey
# Enhanced for GNome Desktops
#
# Requires: - ykinfo (Package ykpers)
#
#
YUBIMAPFILE="/etc/sysconfig/yubikeys"
USER=$(ps -ef | grep -v grep | grep -v root | grep session | head -n 1 | awk -F ' ' '{ print $1 }')
LOCKFILE="/usr/local/bin/yubikey-screen-lock... | true |
86d3d7df8f7b23d51a3edc6038213ee3462bd15b | Shell | MW-autocat-script/MW-autocat-script | /catscripts/Government/Countries/United_States/US_states/North_Carolina/NorthCarolina.sh | UTF-8 | 350 | 2.921875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
KEYWORDS_NORTHCAROLINA="North(| )Carolina|, N(|\.)C(|\.)\b"
KEYWORDS_NORTHCAROLINA_ALL="$KEYWORDS_NORTHCAROLINA"
if [ "$1" == "" ]; #Normal operation
then
debug_start "North Carolina"
NORTHCAROLINA=$(egrep -i "$KEYWORDS_NORTHCAROLINA" "$NEWPAGES")
categorize "NORTHCAROLINA" "North Carolina"
... | true |
222bfb219d5ead3a5f097dd871273fcefc126089 | Shell | fgarel/myDebianInstall01 | /usr/sbin/bfaptitudeinstallvim01b.sh | UTF-8 | 2,330 | 3.25 | 3 | [] | no_license | #!/bin/sh
# Installation et configuration de vim
###########################################
echo "bfaptitudeinstallvim01b.sh : Installation et configuration de vim (Partie 01b)"
mkdir /var/log/bf 2> /dev/null
# on fabrique en premier nos fichiers .local
# puis, on utilisera le script spf13-vim3
# Quand ... | true |
90a04e7dde66cbc1eb26f4daef4a48ad4532c760 | Shell | LauriU2/skriptimine | /praktikum9/yl1 | UTF-8 | 231 | 2.515625 | 3 | [] | no_license | #!/bin/bash
#
for (( i = 1; i <= 5; i++ )) # Väline for tsükkel, mitu rida tuleb
do
echo -n "$i. "
for (( j = 1; j <= 5; j++ )) # Sisemine for tsükkel, mitu tärni tuleb
do
echo -n "* "
done
echo "" # Prindib uue rea
done
| true |
d4a657df678ca13b3c63c07dc3d03684985dd4c8 | Shell | piyush82/vagrant-foreman1.2 | /src/script.sh | UTF-8 | 3,461 | 3.0625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# ensure latest version of puppet (3.X)
wget http://apt.puppetlabs.com/puppetlabs-release-raring.deb
dpkg -i puppetlabs-release-raring.deb
# add foreman installer repo
echo "deb http://deb.theforeman.org/ precise 1.2" > /etc/apt/sources.list.d/foreman.list
wget -q http://deb.theforeman.org/foreman.asc -O-... | true |
fe0f552ccf76ca4e82753e8ecd9cd2e6193bef80 | Shell | Jeanflo100/ros-isen | /installation | UTF-8 | 2,619 | 2.921875 | 3 | [] | no_license | #!/bin/bash
# Indique au système que l'argument qui suit est le programme utilisé pour exécuter ce fichier
# En règle générale, les "#" servent à mettre en commentaire le texte qui suit comme ici
cd ~
# Mise à jour de l'ordi
sudo apt-get update
sudo apt-get upgrade
sudo apt-get autoremove
sudo apt-get purge
# créati... | true |
4c401cb763559d78304646552c9076dadb3cb76b | Shell | mkhetale/NodeJsTemplate | /src/scripts/route.sh | UTF-8 | 1,218 | 3.03125 | 3 | [] | no_license | #!/bin/bash
export namelo="appointments";
export nameup="$(tr '[:lower:]' '[:upper:]' <<< ${namelo:0:1})${namelo:1}";
export fromnamelo="user";
export fromnameup="$(tr '[:lower:]' '[:upper:]' <<< ${fromnamelo:0:1})${fromnamelo:1}";
cp libs/${fromnamelo}.js libs/${namelo}.js
sed -i -e "s/${fromnamelo}/${namelo}/g" li... | true |
16d5c4075ccb1f0cf0533487aaaf0d33ce6f3cdd | Shell | akash99-code/Shell_Programming | /Scripts/p12factorial.sh | UTF-8 | 180 | 3.171875 | 3 | [] | no_license | #
# Write a shell script to find out the factorial of an input.
#
echo "Enter A Number"
read N
res=1
while test $N -ge 1
do
res=$((res * N))
N=$((N-1))
done
echo Factorial = $res | true |
fc0fe8ac57293465b9da45dd5fd4ae249cbcff50 | Shell | Waynelau410/bell5_jaco_kinect2 | /mpi_attach/best_compile_and_run.sh | UTF-8 | 302 | 2.890625 | 3 | [] | no_license | reset
if [ -z $1 ];
then
echo "must give number of cores to use"
exit
fi
PROG="attachment"
CORES=$1
COMP="mpicc -o $PROG attachment.c"
RUN="mpirun --host localhost -np $CORES ./$PROG best datasets/diverse_movement_skeleton.csv datasets/diverse_movement_pcl.csv output.csv"
clear; $COMP && $RUN
| true |
9c5358507ae94b23e8c4c51f8139a7aae145f170 | Shell | woodun/insight_files | /hima_scripts/bfloat_exp/exp1_setup_int_data_dbi.sh | UTF-8 | 1,161 | 2.59375 | 3 | [] | no_license | #!/bin/sh
#####################################################
mother_dir=/sciclone/pscr/hwang07/bfloat_analysis
for number in 1 4 7 10 13 16 19 22 25 28 31
do
cat pbs_exp1_base_int_data_dbi.pbs | sed -e "s/TBD/uniform_int_one_side_exp$number/g" | sed -e "s/DBT/uniform_int_one_side_result$number/g" | sed -e "s|MOTH... | true |
555cc97c2528c5f0a396209d924345931c96b284 | Shell | phrocker/nifi-minifi-cpp | /docker/DockerVerify.sh | UTF-8 | 1,972 | 3.1875 | 3 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Zlib",
"MIT-0",
"LicenseRef-scancode-openssl",
"ISC",
"LicenseRef-scancode-ssleay-windows",
"OpenSSL",
"JSON",
"BSL-1.0",
"curl",
"LicenseRef-scancode-public-domain",
"MIT",
"BSD-2-Clause",
"BSD-1-Clause",
"LicenseRef-... | permissive | #!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the \"License\"); y... | true |
eaeaec051efc365413acadc4487934de112642fc | Shell | tyagi619/Labs | /Utility_commands/adv_shell/script7.sh | UTF-8 | 337 | 2.984375 | 3 | [] | no_license | #! /bin/bash
#install pdftk from ubuntu software
#no need to install anything to use convert
mkdir multiple_pdf
for ((i=1;i<=192;i++));
do
convert Linux.Shell.Scripting.Cookbook.pdf[$((2*i-1))-$((2*i))] ./multiple_pdf/${i}.pdf
# pdftk Linux.Shell.Scripting.Cookbook.pdf cat $((2*i-1))-$((2*i)) output ./multiple_pdf... | true |
8d00e80045af0314dad4f94118b198397fe58531 | Shell | nackstein/dex-lock | /dex-show | UTF-8 | 1,007 | 3.5625 | 4 | [
"MIT"
] | permissive | #!/bin/dash
# Copyright (c) 2014 - 2016 Luigi Tarenga <luigi.tarenga@gmail.com>
# Distributed under the terms of a MIT license.
# parameters: [ lock_name ]
export LANG=C
cd ${0%/*}
lname=${1:-default}
read lock_servers < conf/lock_servers
read rpath < conf/remote_path
read sshopt < conf/sshopt
if [ ... | true |
14f892b0d259a4e3e68f5062303864ba5c14debd | Shell | AndreiBarsan/caffe-setup | /torch/install-torch.sh | UTF-8 | 5,590 | 3.734375 | 4 | [] | no_license | #!/bin/bash
#
# Job to install torch7 distro in local folder
# assumes local packages are in ~/user/...
#
#SBATCH --job-name="torch-install"
#SBATCH --output=torch-install.out
#SBATCH --error=torch-install.out
#
# run on all cores minus one of the node, require 2GB per core = 14GB
#SBATCH --nodes=1
#SBATCH --ntask... | true |
e445f33026287343e60a1ddc97bbf53cf91223c3 | Shell | ministryofjustice/hmpps-network-terraform-mis | /scripts/aws-get-temp-creds.sh | UTF-8 | 485 | 2.65625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
OUTPUT_FILE="env_configs/inspec-creds.properties"
temp_role=$(aws sts assume-role --role-arn ${TERRAGRUNT_IAM_ROLE} --role-session-name testing --duration-seconds 900)
echo "unset AWS_PROFILE
export AWS_ACCESS_KEY_ID=$(echo ${temp_role} | jq .Credentials.AccessKeyId | xargs)
export AWS_SECRET_ACCESS_KEY=... | true |
b12eec8927e7c2e879b77b638711cc7d4ce7d6e7 | Shell | vcaen/openshift-jenkins-with-jobs | /configuration/scripts/src/main/scripts/fr/geoportail/entrepot/scripts/utils/save-update-static-ref.sh | UTF-8 | 371 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | date
echo "COMMIT des modifications locales"
hg commit -A -u entrepot -m "Commit automatique du referentiel statique"
echo "PULL du repository central"
hg pull
echo "MERGE avec les modifications exterieures"
hg merge
echo "COMMIT du merge"
hg commit -A -u entrepot -m "Merge automatique du referentiel statique"
ech... | true |
947e325cb7f12db62f272264c9f24f0c090f59ed | Shell | MartinWan/LSGAN | /stability_comparison/mixture_gaussian/batch_cmp.sh | UTF-8 | 177 | 2.515625 | 3 | [] | no_license | #!/bin/bash
export QT_QPA_PLATFORM=offscreen
for x in `seq 0 9`; do
python -u ls.py
mkdir ls_$x
mv *.png ls_$x
python -u sig.py
mkdir sig_$x
mv *.png sig_$x
done
| true |
7d6424177ab89c9c5154e1ab36a592cab9352c78 | Shell | completeworks/b-log | /examples/example.sh | UTF-8 | 1,716 | 3.609375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#########################################################################
# Script Name: example
# Script Version: 0.0.1
# Script Date: 30 June 2016
#########################################################################
# example of b-log.sh
#######################################################... | true |
5a7d8db897206ac8d4cffbeab87d3fd101ea5c17 | Shell | benlawson/ezws | /bash_completion.d/ezws.sh | UTF-8 | 508 | 3.0625 | 3 | [
"MIT"
] | permissive | _ezws()
{
local cur prev opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
opts="connect startup sftp stop bind add sshfs list reindex"
case "${prev}" in
connect|startup|sftp|stop|bind|sshfs)
local hostname=""
COMPREPLY=( $(comp... | true |
235da4ac12f2f7f8aa23d94edec7d54b2904055f | Shell | TheMasterGuy/openshift-bukkit | /.openshift/action_hooks/build | UTF-8 | 267 | 2.75 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
SERVER_PROPERTIES=server.properties
CRAFTBUKKIT_SERVER_JAR=craftbukkit-latest.jar
set -x
cd $OPENSHIFT_DATA_DIR
if [ ! -e "$CRAFTBUKKIT_SERVER_JAR" ]; then
wget "http://tcpr.ca/files/craftbukkit/craftbukkit-latest.jar" -O $CRAFTBUKKIT_SERVER_JAR
fi
| true |
a3db13d8031219f3a572fefd4a39c04e9f97270f | Shell | io-monad/dotfiles | /dotfiles/zshrc | UTF-8 | 761 | 2.75 | 3 | [
"LicenseRef-scancode-public-domain"
] | permissive | # Prezto
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
# Preferred zsh options
unsetopt correct_all
# Alias
alias lla='ls -lA'
alias mate=atom
alias ag=pt
alias diff='command diff' # for Prezto
# ls on cd
chpwd() { ls }
# golang
export GOPATH=$HOME
# hom... | true |
7192db049370937b9356072710245257d64fa104 | Shell | rochacbruno/pulp-qe-tools | /pulp3/install_pulp3/install.sh | UTF-8 | 2,967 | 3.90625 | 4 | [] | no_license | #! /bin/bash
# export PULP3_HOST=myhostname.com
# export PULP3_PLAYBOOK=source-install-plugins.yml
# curl https://raw.githubusercontent.com/PulpQE/pulp-qe-tools/master/pulp3/install_pulp3/install.sh | bash
# Optionally if you clone the qe-tools and want to use local playboks
# export PULP3_INSTALL_MODE=local
# export... | true |
93127ea373c484919b30706104cecbe9b304b981 | Shell | IvanWoo22/prepare18.04 | /1-apt.sh | UTF-8 | 2,402 | 3.15625 | 3 | [] | no_license | #!/usr/bin/env bash
echo "====> Install softwares via apt <===="
echo "==> Disabling the release upgrader"
sudo sed -i.bak 's/^Prompt=.*$/Prompt=never/' /etc/update-manager/release-upgrades
echo "==> Switch to the NJU mirror"
# http://nju-mirror-help.njuer.org/ubuntu.html
cat <<EOF > list.tmp
# NJU MIRRORS
deb http... | true |
9908c42ade52887c9f812583637223c1eeb63ace | Shell | kiranpe/Ansible_Playbooks | /DockerImage/scripts/check_svc_deploy.sh | UTF-8 | 580 | 2.890625 | 3 | [] | no_license | #!/bin/bash
#written by kiran to delete existing svc and deploy
#svc logic has cahnged
port=$(sed -n '/k8sworker]/,/k8smaster]/p' /sites/scripts/hosts | sed '1d; $d;' | awk '{print $1}')
for i in $port
do
j=$(echo "$i" | cut -d '.' -f1)
kubectl get svc -n com-att-oce-test | grep my-service-${j}
if [ $? = 0 ];then
k... | true |
fd286da0d181e48782391c47844e8332fde24ace | Shell | michalschott/bzwbk_transfer_creator | /scripts/build.sh | UTF-8 | 1,076 | 3.6875 | 4 | [] | no_license | #!/usr/bin/env bash
#
# This script builds the application from source.
# Get the parent directory of where this script is.
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
# Change into that directory
cd "$DIR"
# Get the ... | true |
4b6898f4fc616de3918c27f532e3e03b0b25b597 | Shell | jvlad/zZshFramework | /src/iOS/iOS_main.sh | UTF-8 | 564 | 2.578125 | 3 | [] | no_license | #!/usr/bin/env zsh
_main_IOS() {
iOSSymbolicate() {
_import_shFile "$(_iosExtrasDir)/symbolicate_crash" $@
}
iOSRemove_appID() {
mobiledevice uninstall_app $@
py "$(_iosExtrasDir)/remove_app_from_all_devices.py" $@
# xcrun simctl uninstall booted "$1"
}
iOSSim... | true |
85a2da0cae6dce5195c066b4d3590dae6ac9403f | Shell | wangmeijiao/code_examples | /perl/getChain_twochr/getChain/getChain_twoSpeciesPipe.sh | UTF-8 | 1,056 | 3.09375 | 3 | [] | no_license | target=$1
query=$2
#pipeline for make chain file of two genomes
#input file: target.genome.smsk.fa query.genome.smsk.fa
#need file: HoxD55, which is a blastz score matrix
#note: change blastz pars in multiBlastzAll2All.sh
#0. init work dirs
echo "start pipe.."
date
echo "check dirs"
if [ ! -d faSplit_T ]; then
mkdir... | true |
e00a29d1b07c6effad2b8570fefebf234179aa1d | Shell | OfficialBAMM/dotfiles | /dotfiles/config/zsh/settings/functions.zsh | UTF-8 | 2,483 | 3.734375 | 4 | [] | no_license | #!/usr/bin/zsh
# shell helper functions
# most written by Nathaniel Maia
# some pilfered from around the web
# better ls and cd
unalias ls >/dev/null 2>&1
ls()
{
command ls --color=auto -F "$@"
}
mir()
{
if hash reflector >/dev/null 2>&1; then
su -c 'reflector --score 100 --fastest 10 --sort rate... | true |
70c855b1bd5fb93799d9af87bd4a609b4c5fa1ee | Shell | naps62/unix | /files/shell/zsh/aliases | UTF-8 | 678 | 2.78125 | 3 | [] | no_license | #!/usr/bin/env sh
alias reboot='sudo reboot'
alias halt='sudo poweroff'
alias apt='sudo aptitude'
alias open='xdg-open'
alias ack=ack-grep
# one-char aliases
alias g=git
alias t=tig
alias o=open
alias v=vim
alias m=make
alias r=rails
alias rk=rake
alias a=ack
# cd
alias cd='cdls'
alias ..='cd ..'
alias ..2='cd ../... | true |
5f54fef43536d58c5ab24312a245e5fd3f377616 | Shell | shijie-wu/crosslingual-nlp | /example/contrastive-alignment/evaluate-mapping.sh | UTF-8 | 2,245 | 3.015625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
seed=${1:-42}
# or xlm-roberta-base/large
model=${2:-"bert-base-multilingual-cased"}
task=${3:-"xnli"}
mode=${4:-"finetune"}
mapping=${5:-linear-orth0.01}
model_name=$(echo "$model" | tr '/' '\n' | tail -n1)
root_dir="${ROOT_DIR:-/bigdata}"
save_path="$root_dir"/checkpoints/crosslingual-nlp
case "$task"... | true |
575f3138596b280b92f6a0a1cd6e4e74aa105d58 | Shell | Fenixinfo/cookbook-linux | /zabbix-agent.sh | UTF-8 | 745 | 3.015625 | 3 | [] | no_license | #!/bin/sh
T="sleep 2"
T2="sleep 1"
echo "inicializando atualização sistema......."
$T
apt update && apt -y upgrade && apt clean
echo "baixando agente......."
$T
wget https://repo.zabbix.com/zabbix/4.2/debian/pool/main/z/zabbix-release/zabbix-release_4.2-1+buster_all.deb
echo "Instalando sistema........"
$T
apt install ... | true |
cf2fac0b1653a1399e1f989fb9bfa614cafdf3f4 | Shell | plesager/ece3-raw-backup | /check_bckp.sh | UTF-8 | 3,287 | 3.921875 | 4 | [] | no_license | #!/usr/bin/env bash
usage() {
cat << EOT >&2
Usage:
${0##*/} [-r] [-f NB] [-o MODEL1 -o MODEL2 ...] EXP
Check the backup of EVERY legs of one run, by listing
output and restart directories that are not empty.
Options are:
-l : list the [L]ocal source dir
-r : list the ... | true |
809bc11b7bc3c3781f346f2b7c651f15fee8cc41 | Shell | initialed85/eds-cctv-system | /docker/entrypoint.sh | UTF-8 | 1,862 | 3.546875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# if [[ ! -f "/etc/motion.conf" ]]; then
# echo "error: /etc/motion.conf does not exist, you'll need to mount it in; see /etc/motion/examples/motion.conf"
#
# exit 1
# fi
set -e -x
# ---- variables
EVENT_ROOT=/srv/target_dir/events
EVENT_STORE=${EVENT_ROOT}/persistence.jsonl
EVENT_STORE_BACKU... | true |
72f82a0af090f5cae5cb8a64b44672e9943f4c06 | Shell | luotao717/arsdk | /rootfs/pb9x-carrier/etc/ath/confusb | UTF-8 | 714 | 3.390625 | 3 | [] | no_license | #!/bin/sh
if [ $# -lt 1 ]; then
echo "confusb <host/device>"
exit
fi
config_usb_host() {
rmmod ar9130_udc
rmmod g_audio
insmod /lib/modules/2.6.15/usb/usbcore.ko
insmod /lib/modules/2.6.15/usb/ehci-hcd.ko
insmod /lib/modules/2.6.15/usb/usb-storage.ko
}
config_usb_dev() {
rmmod u... | true |
b66ff3b62b939b4a0f3187f241de60a121856f8d | Shell | sbrk-org/slackbuilds | /update.sh | UTF-8 | 1,294 | 3.59375 | 4 | [] | no_license | #!/bin/bash
#
# borrowed from slapt-src's README
set -e
for sb in $(find . -name '*.SlackBuild' | sort)
do
name=$(basename $sb | sed -re 's/\.SlackBuild$//')
location=$(dirname $sb)
if [ -f $location/$name.info ]
then
echo "SLACKBUILD NAME: $name"
echo "SLACKBUILD LOCATION: $location"
files=$(cd $l... | true |
21154e5ef1119db904bb5310e02fae33c606bc72 | Shell | screepers/screeps-launcher | /build.sh | UTF-8 | 273 | 2.640625 | 3 | [
"MIT"
] | permissive | pushd dist
for D in ../cmd/*
do
export GOARCH=amd64
export GOOS=windows
go build -o $(basename $D)-${GOOS}-${GOARCH}.exe $D
export GOOS=linux
go build -o $(basename $D)-${GOOS}-${GOARCH} $D
export GOOS=darwin
go build -o $(basename $D)-${GOOS}-${GOARCH} $D
done
popd | true |
55092d60d22471be024f6e8e44d8f221eb882c6c | Shell | tobiaslocker/post-install | /post-install.sh | UTF-8 | 1,876 | 2.65625 | 3 | [] | no_license | #!/bin/bash
sudo apt update
sudo apt install -y \
vim \
git \
curl \
build-essential \
cmake \
python3-dev \
python3-pip \
vifm
# git global settings
git config --global user.email "tobias@tobiaslocker.de"
git config --global user.name "Tobias Locker"
git config --global core.editor "v... | true |
be03d10ebd2127bd8ae2fd2523d2be8e261cde25 | Shell | lishafaev/GLDevOpsProCam | /metrics.sh | UTF-8 | 557 | 3.4375 | 3 | [] | no_license | #!/bin/bash
if [ "$1" = cpu ]; then
top -n 1| grep 'Cpu' | awk '{print "user "$2"\n" "system " $4"\n" "nice " $6"\n" "idle " $8"\n" "wait " $10"\n" "interrupt " $12"\n" "softirq " $14"\n" "steal " $16}'
elif [ "$1" = mem ]; then
free | grep 'Mem' | awk '{print "total " $2"\n" "used " $3"\n" "free " $4"\n" "sha... | true |
79209ec90c9bb2316bd311cfdacdd230388b0c4d | Shell | MarkHalls/CTV-Utility | /collector_scripts/logHealthMonitor.sh | UTF-8 | 4,485 | 3.765625 | 4 | [] | no_license | #!/bin/bash
### logHealthMonitor.sh - Monitors the log output directory for excessive unzipped logs and the unmatched lines directory as measure that the icservices.sh script is still running.
#
#
## Written by Chase Hatch (chatch@securityondemand.com) under consultation of Mark Halls (mhalls@securityondemand.com)
## ... | true |
d6083e758f13c90b8e17b471ce7a89bb61bda616 | Shell | KaiSforza/dotfiles | /mkshrc | UTF-8 | 10,199 | 3.140625 | 3 | [] | no_license | # $Id$
# $MirOS: src/bin/mksh/dot.mkshrc,v 1.79 2013/04/05 15:39:52 tg Exp $
#-
# Copyright (c) 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2010,
# 2011, 2012, 2013
# Thorsten Glaser <tg@mirbsd.org>
#
# Provided that these terms and disclaimer and all copyright notices
# are retained or reproduced in an accompanying doc... | true |
36b6a818e086927075e1710b73132b5bf233943c | Shell | ck0/dotfiles | /setup.zsh | UTF-8 | 746 | 3.359375 | 3 | [] | no_license | #! /usr/bin/env zsh
# because OSX's `readlink` is all retarded
function readlinkf () {(cd -P $1 && echo $(pwd))}
dotdir=$(readlinkf $(pwd))
backupdir=dotfiles.$(date +%s).backup
function dotrelink () {
if [[ -a $2 ]]; then
mv -v $2 $backupdir;
fi
ln -svf $dotdir/$1 $2
}
(
cd $HOME
mkdir $backupdir
... | true |
8bf3cd6a3a31d6a021f2710a87bb67e556291f92 | Shell | lnsongxf/EURACE | /models/EURACE_Model/branches/Experiment_setup_linux/plots/latex_script_tex_figs.sh | UTF-8 | 2,417 | 3.578125 | 4 | [] | no_license | #!/bin/bash
######### CREATION OF THE SPECIFIC SETTINGS #########################################################
# Script to create the file specific.xml that contains the specific parameter settings for the cases
# - Enter folder ./duration_x/intensity_y/frequency_z
# - Write xml tags and parameter settings to the f... | true |
1df7c331051d5f40b898e2560f4b2fc583267ceb | Shell | yarem4uk/dotfiles | /files/zshrc | UTF-8 | 4,214 | 2.890625 | 3 | [] | no_license | autoload -Uz compinit && compinit -i
umask 022
# default mask
# -rwxr-xr-x
# 777 - 022 = 755
setopt autocd
###Настройка истории
HISTFILE=~/.zsh_history
HISTSIZE=5000
SAVEHIST=5000
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_REDUCE_BLANKS
setopt HIST_IGNORE_SPACE
setopt INC_APPEND_HISTORY
setopt share_history
setopt a... | true |
4b1bab3033e73f1772b1f9988ce703171b92f637 | Shell | microsoft/FreeBSD-Test-Automation | /HyperV/WS2008R2/lisa/remote-scripts/freebsd/MultiDisk.sh | UTF-8 | 4,340 | 4.21875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# MultiDisk.sh
#
# Description:
# This script was created to automate the testing of a FreeBSD
# Integration services. This script test the detection of disks
# inside the Linux VM by performing the following
# Steps:
# 1. Make sure the device file was created
# 2. fdisk the dev... | true |
3b12794a2e8033a095453ac9f807b16a670d4c4a | Shell | sunsingerus/clickhouse-demo-dataset-deb | /chdemo-common_0.1-1/DEBIAN/postinst | UTF-8 | 526 | 3.6875 | 4 | [] | no_license | #!/bin/bash
# fail on any error
set -e
# treat unset variables as errors
set -u
# let shell functions inherit ERR trap
set -E
# Trap non-normal exit signals:
# 1/HUP, 2/INT, 3/QUIT, 15/TERM, ERR
trap err_handler 1 2 3 15 ERR
function err_handler {
local exit_status=${1:-$?}
logger -s -p "syslog.err" -t "chdemo... | true |
fe2e9f08d2302d27bc8615d3147c57c9e1c3e1c8 | Shell | sreev/examples-2 | /ocp4-aws-labs/setup.sh | UTF-8 | 1,578 | 2.890625 | 3 | [] | no_license | # you must be root to run this script
# sudo -i
echo ${GUID}
# Download the latest AWS Command Line Interface
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
unzip awscli-bundle.zip
# Install the AWS CLI into /bin/aws
./awscli-bundle/install -i /usr/local/aws -b /bin/aws
# Validate t... | true |
ad0f71a781e15b3a028f83af78ae1e9b2e9fb681 | Shell | AndriiNikitin/mariadb-environs | /_plugin/sakila/m-all/load_sakila.sh | UTF-8 | 377 | 2.890625 | 3 | [] | no_license | #!/bin/bash
FILE=http://downloads.mysql.com/docs/sakila-db.tar.gz
mkdir -p __workdir/../_depot/sakila
(
cd __workdir/../_depot/sakila
[[ -f $(basename $FILE) ]] || { wget -nc $FILE && tar -zxf $(basename $FILE) --strip 1; }
)
__workdir/sql.sh 'source __workdir/../_depot/sakila/sakila-schema.sql' && \
__workdir/sq... | true |
131e2e1aa437457d97e417a4f2996ce05c74c8de | Shell | broznich/server-tools | /ec2_backup | UTF-8 | 3,705 | 3.859375 | 4 | [] | no_license | #!/bin/bash
# It backups into two amazon data centers:
# /vol - user assets, binary mysql files, mysql dump
# / - all system drive
#
# It requires configs in place:
# /root/
# .my.cnf - MYSQL config
# .awssecret - Keys for amazon server
# .awsvolumes - Config for backup volumes and snapshots
... | true |
7053f7cc4a395bae256b5fbae1ec6992e5bed3b4 | Shell | kunal-kushwaha/thanos | /scripts/website/contentpreprocess.sh | UTF-8 | 3,047 | 3.6875 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
OUTPUT_CONTENT_DIR=$1
TOP_WEIGHT=$2
COMMIT_SHA=$(git rev-parse HEAD)
echo ">> preprocessing content of dir ${OUTPUT_CONTENT_DIR}"
# Add headers to special CODE_OF_CONDUCT.md, CONTRIBUTING.md and CHANGELOG.md files.
echo "$(
cat <<EOF
---
title: Code of Conduct
type: docs
menu: contributing
---
... | true |
8303b1ce49d79d3d9724869ff2e9423494c8d449 | Shell | hkoba/hktools | /ttvars | UTF-8 | 1,953 | 3.5625 | 4 | [] | no_license | #!/bin/zsh
# See: https://github.com/hkoba/mytools/wiki/ttvars
emulate -L zsh
setopt extended_glob
scriptfn=$0
bindir=$(cd $scriptfn:h; print $PWD)
function die { echo 1>&2 $*; exit 1 }
function usage {
if ((ARGC)); then print -- $* 1>&2; fi
cat 1>&2 <<EOF; exit 1
Usage: ${scriptfn:t} Vars Vars...
Exampl... | true |
400440e38800d70d4324aeaa943dcdcc6952429c | Shell | RobOJHU/Shell_Scripts | /freak_check.sh | UTF-8 | 1,360 | 3.390625 | 3 | [] | no_license | #!/bin/bash
# THIS LITTLE BASH SCRIPT CHECKS WHETHER YOUR SERVER IS VUNLNERABLE TO CVE-2015-0204
# A.K.A. FREAK ATTACK, WHICH ENABLES A MITM TO TRICK CERTAIN CLIENTS INTO CONNECTING
# USING INSECURE CIPHER SUITES KNOWN AS 'EXPORT SUITES'. EXPORT CIPHERS ARE DELIBERATELY
# INSECURE AND WERE THE ONLY CIPHER SUITES THAT ... | true |
b2db11f2cd0dd13d7d1b28ced7c71f97c7f6bc0c | Shell | Pating/lkp-tests | /tests/ftq | UTF-8 | 443 | 3.140625 | 3 | [] | no_license | #!/bin/sh
# - nr_task
# - samples
# - freq
## The FTQ benchmarks measure hardware and softwareinterference
## or 'noise' on a node from the applications perspective.
cd $BENCHMARK_ROOT/ftq || exit
[ 0"$nr_task" -gt 1 ] && opt_task="-t $nr_task"
[ -n "$samples" ] || samples=10000
[ -n "$freq" ] && opt_freq="-f $fr... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.