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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
f4a1aee2f33b95e2c54e31b2b405b322195a27cb | Shell | padfed/padfed-network-setup | /src/dev/lib-cctest.sh | UTF-8 | 4,507 | 3.828125 | 4 | [] | no_license |
BOLD=$(tput bold)
GREEN=$(tput setaf 2)
RED=$(tput setaf 1)
NORMAL=$(tput sgr0)
docker() {
[[ -v DOCKERDEBUG ]] && echo docker "$@"
command docker "$@"
}
run() {
[[ -v RUNDEBUG ]] && echo "$@"
command "$@"
}
die() {
echo "$@"
exit 1
}
fail() {
echo "$RED$BOLD!!!! $*$NORMAL" >/dev/stderr
... | true |
a61e230b499a02e1006b5278340b4dc4c8b4454e | Shell | lospejos/scriptella-etl | /tools/src/bin/scriptella.sh | UTF-8 | 1,508 | 3.515625 | 4 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/sh
# Copyright 2006-2012 The Scriptella Project Team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | true |
c03c3adca7a6a0252d44da53545eddc7b4367487 | Shell | uclibs/tricerabagger | /scholarTricerabagger.sh | UTF-8 | 1,561 | 3.875 | 4 | [] | no_license | #!/bin/bash
#set -e
# Updated 2016-12-09 by Nathan Tallman
# Variables
LOCAL=/mnt/libbag/tools
CON=/mnt/libbag/scholar
BAGPY=$LOCAL/tricerabagger/tools/bagit-python/bagit.py
LOG=$LOCAL/tricerabagger/logs/tricerabagger.txt
DATE=`date +%Y-%m-%d`
DESC="Scholar@UC content as of $DATE"
BAGID=cin.scholar.$DATE
echo -e "\n... | true |
6ba9f03ed021fff698ff3b2c65cf5f8fd94cee94 | Shell | raisercostin/kscript | /misc/kshell_launcher/kshell_kts.sh | UTF-8 | 1,030 | 3.046875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
if [ $# -ne 1 ]; then
echo "Usage: kshell_kts.sh <kscript.kts>"
exit 0
fi
tmpfile=$(mktemp).kts
#echo '@file:Include("https://git.io/fAJ5h")' >> $tmpfile
echo '
@file:DependsOn("org.apache.hadoop:hadoop-common:2.7.0")
// should be now on maven central
@file:DependsOn("com.github.khud:ks... | true |
22879072e82debf65a1ac93a8f7addf3906f1506 | Shell | cherylling/OS-kerneltest | /测试套/debug_ftrace_t/debug_ftrace_t_src/testcase/scripts/nop.sh | UTF-8 | 1,796 | 3.4375 | 3 | [] | no_license | #!/bin/bash
#!/bin/bash
TRACING_PATH=/sys/kernel/debug/tracing
init()
{
[ -d /sys/kernel/debug -a $(ls /sys/kernel/debug |wc -l) -gt 0 ] && umount /sys/kernel/debug
mount -t debugfs nodev /sys/kernel/debug
if [ $? -ne 0 ];then
echo "mount -t debugfs nodev /sys/kernel/debug fail"
exit 1
fi
... | true |
65570de7d6c6455cb00f65ccb6eb9b4e62f4db4f | Shell | Illusionist5/StudFiles | /6 семестр/урвс/учебка/лабы/Lab_7_and_8_oldboyans/lab_7_and_8_oldboyans/Упресы 7,8/3вар/lab7/tests.sh | UTF-8 | 144 | 2.734375 | 3 | [] | no_license | #!bin/sh
echo "Тест №1: "
./labka7 > test1.txt
if [ $? -ne 0 ];
then echo "Провален"
else
echo "Успешен"
fi
rm test1.txt
| true |
0dc57dae5c02108a3571cbedc79033e56736d33b | Shell | HMMWiedmann/Linux | /Bash/Get_Available_Ram.sh | UTF-8 | 368 | 3.296875 | 3 | [] | no_license | #!/bin/bash
minavailableRamPercent=$1
memavailable=`free -m | grep Mem | awk '{print $7}'`;
memtotal=`free -m | grep Mem | awk '{print $2}'`;
memavailablepercent="$(($memavailable * 100 / $memtotal))"
echo "$memavailable mb ist verfuegbar von $memtotal mb"
echo "/ $memavailablepercent % /"
if [[ $memavailableper... | true |
19c744b3bf296a2e6be150ece2dd703c5403b247 | Shell | petronny/aur3-mirror | /sysklogd/PKGBUILD | UTF-8 | 2,298 | 2.53125 | 3 | [
"BSD-4.3TAHOE"
] | permissive | # $Id: PKGBUILD 158661 2012-05-05 22:14:03Z eric $
# Maintainer: Eric Bélanger <eric@archlinux.org>
pkgname=sysklogd
pkgver=1.5
pkgrel=4
pkgdesc="System and kernel log daemons"
arch=('i686' 'x86_64')
url="http://www.infodrom.org/projects/sysklogd/"
license=('GPL' 'BSD')
depends=('glibc' 'bash')
provides=('logger')
bac... | true |
0bb97da51a60b9b16bf63e23adbfbf927fcabd25 | Shell | aliarham11/pipeline-api | /run.sh | UTF-8 | 593 | 3.484375 | 3 | [] | no_license | #!/usr/bin/env bash
function start () {
if [ -z $1 ]; then host=0.0.0.0; else host=$1; fi
if [ -z $2 ]; then port=5000; else port=$2; fi
gunicorn -b $host:$port start:app
}
function stop () {
ps aux | grep gunicorn | awk '{print $2}' | xargs kill -9
}
function unittest () {
# python -m unittest ... | true |
efeb6de1348d79725447469a80b32f03cb62466f | Shell | Wunderment/pwa_builder | /add-pwa-app.sh | UTF-8 | 5,128 | 3.8125 | 4 | [] | no_license | #!/bin/bash
# Set the Android SDK root path for gradle.
export ANDROID_SDK_ROOT=~/android/sdk
# We need 1 command line parameters to work.
if [ ! $# -eq 1 ]; then
echo "Incorrect usage: add-pwa-app.sh <app.json>"
exit 1
fi
if [ ! -f $1 ]; then
echo "ERROR: Application JSON file does not exists!"
exit 1
fi
... | true |
41c3e7409e1edebedebb98bbde18d0a262589560 | Shell | cnlubo/kubernetes-toolkit | /addons/metrics-server/manual/old/metrics-install.sh | UTF-8 | 2,485 | 2.984375 | 3 | [] | no_license | #!/bin/bash
# shellcheck disable=SC2034
# Color Palette
RESET='\033[0m'
BOLD='\033[1m'
## Foreground
BLACK='\033[38;5;0m'
RED='\033[38;5;1m'
GREEN='\033[38;5;2m'
YELLOW='\033[38;5;3m'
BLUE='\033[38;5;4m'
MAGENTA='\033[38;5;5m'
CYAN='\033[38;5;6m'
WHITE='\033[38;5;7m'
## Background
ON_BLACK='\033[48;5;0m'
ON_RED='\033[4... | true |
0660a4343380462d65ef56dc82671b3faf1f7e11 | Shell | gregth/NTUA-advcomparch | /ex3/scripts/get_instructions_count.sh | UTF-8 | 623 | 3.375 | 3 | [] | no_license | #!/bin/bash
OUTPUT_DIR_BASE="/home/gregth/workspace/advcomparch/ex3/outputs"
SNIPER_DIR="/home/gregth/workspace/advcomparch/ex3/sniper-7.3"
echo "Outputs to be processed located in: $OUTPUT_DIR_BASE"
output="*Benchmark*|*Instructions Run*|*Percentage %*\n"
for benchdir in $OUTPUT_DIR_BASE/*; do
bench=$(basename $be... | true |
6d09bb938ab8cd7c0382b698fb0c6fd6b39791b7 | Shell | Lugoues/go-crypto-wallet | /scripts/operation/generate-eth-key.sh | UTF-8 | 2,030 | 3.578125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
set -eu
COIN="${1:?eth}"
# 1: ganache, 2:go-ethereum, 3: something else
CLIENT=2
###############################################################################
# keygen wallet
###############################################################################
if [ $CLIENT -eq 1 ]; then
echo import ganache ... | true |
93da6ccaf1cf41b6cc65630b84bfeaac71557942 | Shell | markddrake/YADAMU---Yet-Another-DAta-Migration-Utility | /qa/cmdLine/settings/default.sh | UTF-8 | 1,448 | 2.734375 | 3 | [
"MIT"
] | permissive | echo "Using default unsetings"
# If a value is not unset here a default will be assigned.
# MariaDB Connection Information
unset MARIADB_USER
unset MARIADB_PWD
unset MARIADB_HOST
unset MARIADB_PORT
unset MARIADB_DBNAME
# Generic SQL Server Connection Information
unset MSSQL_USER
unset MSSQL_PWD
unset MSSQL_HOST
unset M... | true |
55973906c608246c6e3f42b2dec9b77c865ec236 | Shell | DimuthuKasunWP/dokku | /plugins/apps/subcommands/locked | UTF-8 | 565 | 3.484375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_AVAILABLE_PATH/apps/internal-functions"
apps_locked_cmd() {
declare desc="checks if an app is locked for deployment"
declare cmd="apps:locked"
[[ "$1" == "$cmd" ]] && shift 1
... | true |
5e78e060e5e234b0d51db2e54b0ae4e2a096d5b8 | Shell | Ghostbaby/harbor-ha-helm | /prepare.sh | UTF-8 | 4,228 | 3.296875 | 3 | [] | no_license | #!/bin/bash
set -e
set -x
basedir=$(cd `dirname $0`; pwd)
source ${basedir}/harbor.cfg
if [ "${HARBOR_DEPLOY_TYPE}" == "nodeport" -a "${CLUSTER_MASTER_IP}" == "" ];then
echo "CLUSTER_MASTER_IP: is valid, which cannot be null ..."
echo "please update ${basedir}/harbor.cfg"
exit 1
fi
if [ "${HARBOR_DEPLOY_TY... | true |
ea492fec30a8ea1627d1894b8d4e3a00772bace1 | Shell | bethesque/has-changed-path | /entrypoint.sh | UTF-8 | 1,048 | 4.21875 | 4 | [
"MIT"
] | permissive | #!/bin/sh -l
set -euo pipefail
SOURCE=${SOURCE:-.}
cd ${GITHUB_WORKSPACE:-.}/${SOURCE}
# This script returns `true` if the paths passed as
# arguments were changed in the last commit.
# For reference:
# https://fant.io/p/circleci-early-exit/
# 1. Get all the arguments of the script
# https://unix.stackexchange.com... | true |
ad489029f19a5c3c2ba0bcd0000465d77be2f07e | Shell | ulyaoth/repository | /ulyaoth-fcgiwrap/build-ulyaoth-fcgiwrap.sh | UTF-8 | 1,643 | 3.078125 | 3 | [] | no_license | ulyaothos=`cat /etc/ulyaoth`
buildarch="$(uname -m)"
fcgiwrapversion=1.1.0
useradd ulyaoth
cd /home/ulyaoth/
su ulyaoth -c "rpmdev-setuptree"
su ulyaoth -c "wget https://github.com/gnosek/fcgiwrap/archive/'"$fcgiwrapversion"'.tar.gz"
su ulyaoth -c "tar xvzf '"$fcgiwrapversion"'.tar.gz"
su ulyaoth -c "mv /home/ulyaoth/... | true |
30a98df04b0ace0a845aba6ab0812948aab24435 | Shell | PerilousApricot/SUSHyFT-Scripts | /topLevelScripts/makeAllStitch.sh | UTF-8 | 1,388 | 3.3125 | 3 | [] | no_license | #!/bin/bash
if [[ ! -d ${SHYFT_STITCHED_PATH}/${SHYFT_MODE} ]]; then
mkdir -p ${SHYFT_STITCHED_PATH}/${SHYFT_MODE}
fi
toProcess=( )
payloads=( )
for CFG in $SHYFT_BASE/config/$SHYFT_MODE/stitchSystematicConfigs/*.cfg; do
COMMAND_TO_RUN="stitch.py ${SHYFT_REBIN_PATH}/${SHYFT_MODE} ${SHYFT_STITCHED_PATH}/${SHYFT_... | true |
89ee730a01857c8bd819dbe77fcfe098877e41ed | Shell | patdie421/mea-edomus-lite | /docker/build.sh | UTF-8 | 1,140 | 3.40625 | 3 | [] | no_license | gen_dockerfile()
{
DEST=$1
echo "FROM debian"
echo "RUN apt-get update"
echo "RUN apt-get upgrade"
echo "RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections"
echo "RUN apt-get -y install apt-utils"
echo "RUN apt-get -y install netbase"
echo "RUN apt-get -y install net-tools"
echo "RUN apt... | true |
2215fca4bdd6d361affccef6494648b40e9d32ae | Shell | gcc4ti/gcc4ti-toolchain | /scripts/012-keys.sh | UTF-8 | 301 | 3.234375 | 3 | [] | no_license | #!/bin/bash
## Download the keys from Brandon Wilson's website.
SOURCE=http://brandonw.net/calcstuff/keys.zip
wget --continue $SOURCE || { exit 1; }
## Unpack the keys to the rabbitsign directory.
echo Decompressing the magic keys. Please wait.
unzip -o -d "$TIGCC/share/rabbitsign" keys.zip || { exit 1; }
| true |
d3a765e94b8e4c9a992c6a796e5af6fae4458ca1 | Shell | EduardoGimeno/Administracion-de-Sistemas | /practica_6/practica6_parte1.sh | UTF-8 | 1,500 | 3.46875 | 3 | [] | no_license | #!/bin/bash
# Eduardo Gimeno
# La etiqueta de la opción -t de logger cambia según la máquina
# Obtener nº de usuarios y carga media de trabajo
# Depende de cuantos usuarios halla los campos pueden variar
if [ "user," = "$(uptime | awk '{print $5}')" ] || [ "users," = "$(uptime | awk '{print $5}')" ]
then
uptime | a... | true |
44fd17007687d632884f43e4e454c3cf7405f33a | Shell | tkaaad97/gl-wrapper-gen | /scripts/supplement-spec.sh | UTF-8 | 981 | 3.109375 | 3 | [] | no_license | #!/bin/bash
injects1=$(xmlstarlet sel -B -t -c '.' objects.xml)
injects2=$(xmlstarlet sel -B -t -c '.' newtypes.xml)
spec=$(cat gl.xml)
while read -r inject
do
command='xmlstarlet ed -P '
while read -r action
do
method=$(xmlstarlet sel -t -v '/action/@method' <<<"$action")
xpath=$(xmlstarle... | true |
9d444cfc7de476d41ceb93f24a1758e21978bbe6 | Shell | ruiAzevedo19/UMinho | /4ano/ABD/TP/scripts/benchmarkconfiguration.sh | UTF-8 | 2,031 | 3.765625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# -----------------------------------------------------
# BENCHMARK SERVER CONFIGURATION - SCRIPT
# ABD UMINHO
# -----------------------------------------------------
helpFunction(){
echo ""
echo "Usage: $0 -s dbServerName -u dbUser -w nrWarehouses"
echo -e "\t-s Define th... | true |
2f34c5cf68af7ed4834fd3e4394bd0b7e724a66c | Shell | kevinswiber/postman-echo-api | /scripts/sync-postman-collection.sh | UTF-8 | 658 | 3.234375 | 3 | [] | no_license | #!/bin/sh
set -e
version="1.0.0"
name="Postman Echo v$version - openapi"
openapi_yaml="./openapi/postman-echo-oas-v$version.yaml"
collection_json="./openapi/postman-echo-postman-v$version.json"
openapi2postmanv2 -s $openapi_yaml -o $collection_json -p
collection_id=$(postmanctl get co -o json | jq -r '.[] | select(... | true |
df2219d08106e6b3e16e91898beb0b4669e017bd | Shell | dforsber/sqlite-parquet-vtable | /tests/test-unsupported | UTF-8 | 994 | 4.0625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -euo pipefail
# Verify that all the unsupported.*parquet files result in an error when creating the virtual table,
# but don't segfault.
load_unsupported() {
file=${1:?must provide file to load}
basename=$(basename "$file")
cat <<EOF
.echo on
.load build/linux/libparquet
.testcase $basename
.bai... | true |
4bdabd0067c41401d52ffc9dced7d229dc491606 | Shell | peeweep/nemo-packaging | /qt5-ngfd-git/PKGBUILD | UTF-8 | 1,021 | 2.796875 | 3 | [] | no_license | ## $Id$
# Contributor: TheKit <nekit1000 at gmail.com>
# Contributor: Alexey Andreyev <aa13q@ya.ru>
# Maintainer: James Kittsmiller (AJSlye) <james@nulogicsystems.com>
pkgname=qt5-ngfd-git
_pkgname=libngf-qt-git
pkgver=0.7.0.r0.gac87734
pkgrel=1
pkgdesc="Qt-based client library for Non-Graphic Feedback daemon"
arch=('... | true |
9dfba9f7a6ab3c7535596d642907dbdcad629d62 | Shell | hcape/SATsudoku | /test-lines.sh | UTF-8 | 531 | 3.8125 | 4 | [] | no_license | #!/bin/bash
if [ -z "$1" ]
then
echo "Usage: $0 <multiline puzzle file>"
exit 1
fi
printf "Testing $(basename $1)\n"
mkdir -p tmp/$(basename $1).puzzles
split -d -e -l 1 $1 tmp/$(basename $1).puzzles/
mkdir -p out/$(basename $1).solns/
for file in tmp/$(basename $1).puzzles/*; do
printf "\rTesting Puzzl... | true |
f15adbd982f6fbe5aff5dbe3c303cce75dce9d38 | Shell | start-jsk/rtmros_gazebo | /hrpsys_gazebo_atlas/scripts/update-software.sh | UTF-8 | 1,097 | 3.140625 | 3 | [] | no_license | #!/bin/bash -ex
#
# This script updates following programs:
# drcsim
# gazebo
# hrpsys
# hrpsys_ros_bridge
# hrpsys_gazebo_atlas
# - also add sensors to dae file
#
source ~/ros/${ROS_DISTRO}/setup.sh
export ROS_PACKAGE_PATH_ORG=$ROS_PACKAGE_PATH
source /usr/share/drcsim/setup.sh
export ROS_PACKAGE_PATH=$ROS_P... | true |
4583156c04cf59e27ffa9c4a70663fcfdb96e1b7 | Shell | neobht/magos-scripts | /90-magos-patches/usr/lib/magos/rootfs-patches/MagOS-thunderbird.sh | UTF-8 | 967 | 2.984375 | 3 | [] | no_license | #!/bin/bash
[ -e usr/bin/thunderbird -o -h usr/bin/thunderbird ] || exit 0
PFP=$(ls -d1 usr/lib/thunderbird-* 2>/dev/null| tail -1)
[ "$PFP" = "" ] && PFP=$(ls -d1 usr/lib64/thunderbird-* | tail -1)
[ -d "$PFP"/defaults ] || exit 0
mkdir -p "$PFP"/defaults/profile
ln -sf /usr/share/magos/mozilla/thunderbird-prefs.js "$... | true |
25ffc13eacb28b22d4d88ab09acbd72a15ce5319 | Shell | kapamaroo/fluidanimate_cuda_version | /tools/compile.sh | UTF-8 | 1,022 | 3.5 | 4 | [] | no_license | #!/bin/bash
CC="g++"
if [ `which my_nvcc` ]; then
NVCC="my_nvcc"
NVCCFLAGS=""
echo "my_nvcc found, use that"
else
NVCC="nvcc"
case $HOSTNAME in
blacksunhat)
#my machine
SDK_PATH="/opt"
;;
*)
SDK_PATH="~"
esac
SDK_HOME="$SDK_... | true |
0302a3d5f08f389c894cbc7c0bebfd8a05304687 | Shell | armoin2018/hiveid-ap | /dnsmasq_find_leases.sh | UTF-8 | 391 | 2.578125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
##########################################################
#### Author: Blaine McDonnell (blaine@armoin.com) ####
#### Usage: sudo ./dnsmasq_find_leases.sh ####
#### Description: Find the active dnsmasq lease file ####
#### Version: 0.1 ####
#############... | true |
195000ef085482e1772a373d1fa55ee06e2ef4c1 | Shell | webfrogs/ToolKit | /bootstrap/manjaro.sh | UTF-8 | 2,871 | 3.203125 | 3 | [] | no_license | #!/bin/sh
set -e
cd $(dirname $0)
cd ..
RootPath=$(pwd)
if test "$(uname -s)" != "Linux"; then
echo "[ERROR] Current OS is not Linux"
exit 2
fi
if test ! -x "$(command -v pacman)"; then
echo "[ERROR] pacman command is not found."
exit 2
fi
# check proxys
# echo "==> checking proxy"
# read -p "Should use pro... | true |
5bf831e7b0be53904f00209a48835148a850ae94 | Shell | IanYbarra2000/Bash-Guessing-Game | /Guessing Game.sh | UTF-8 | 581 | 3.84375 | 4 | [] | no_license | #!/bin/bash
answer=$(($RANDOM%129))
declare -i guess
guess=129
declare -i score
score=0
until (($answer==$guess))
do
read -p "Guess the number!(0-128) " guess
score=score+1
if (($guess>$answer))
then
echo "High guess"
elif (($guess<$answer))
then
echo "Low guess"
fi
done
echo "Congratulations, you... | true |
d55f0d6e15fd5bb8111e9cae8322f186876a1825 | Shell | anubhavvs/GradSchool | /SEMESTER_5/S5D10_1.sh | UTF-8 | 147 | 3.203125 | 3 | [] | no_license | # find factorial of a number
echo "Enter a number"
read num
fact=1
for((i=1;i<=num;i++))
do
fact=$((fact*i))
done
echo "Factorial of $num is $fact" | true |
963b096ae15f19f82fb4fbe098afda83d8f53571 | Shell | sunakan/sunady2020-rocket-chat | /rocketchat/start.sh | UTF-8 | 150 | 2.890625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
for i in `seq 1 10`; do
node main.js && s=$? && break || s=$?;
echo 試行 $i 回目: 5秒待機中...;
sleep 5;
done;
exit $$s
| true |
0d3ee48518751eb22371ce07ec7bf9dd56852e3f | Shell | loknjinu13/Week6 | /usb_virtualbox.md | UTF-8 | 485 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#How to install USB in Virtualbox
cat << _EOF_
<html>
<head>
<title>
## **How to Install USB in VirtualBox**
</title>
</head>
<body>
1. Download and Install virtualbox extension Pack on windows.
2. After installing, reboot the *host OS* for changes to take effect.
3. Under settings in virtualNox *go to... | true |
75404d0c077babf592cac9c2eb644730916080ef | Shell | wkmor1/eco-dev | /userconf.sh | UTF-8 | 455 | 3.078125 | 3 | [] | no_license | #!/bin/bash
USER=${USER:=rstudio}
PASSWORD=${PASSWORD:=rstudio}
USERID=${USERID:=1000}
ROOT=${ROOT:=FALSE}
export HOME=/home/$USER
useradd -u $USERID $USER
addgroup $USER staff
echo "$USER:$PASSWORD" | chpasswd
chmod go-rx /usr/bin/passwd
mkdir -p $HOME
if [ "$ROOT" == "TRUE" ]
then
adduser $USER sudo && echo ... | true |
8781879a5b2c1be8ef2e3461cae16505b123ebc0 | Shell | juanvictor/ShellScript | /datos_linux/datos_linux.sh | UTF-8 | 3,187 | 3.453125 | 3 | [] | no_license | #!/bin/bash
#MEMORIA RAM
ram_total=$(free -m | grep Mem | tr -s ' ' | cut -d ' ' -f2)
ram_usado=$(free -m | grep Mem | tr -s ' ' | cut -d ' ' -f3)
ram_usado_porcentaje=$(expr $ram_usado \* 100 / $ram_total)
ram_libre_porcentaje=$(expr 100 - $ram_usado_porcentaje)
#CONECTIVIDAD
conectividad="NO"
myping=$(ping -c... | true |
f584f7c6b0d050a616a9a98ec2a34a9a982a2371 | Shell | vincentjoseph/docker-psysh | /build.sh | UTF-8 | 711 | 4.125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
function contains {
for a in $1; do
if [[ "$2" = $a ]];then
return 0
fi
done
return 1
}
availables="5.4 5.5 5.6 7.0 latest"
if [ "$1" = "all" ]; then
set -- "$availables"
fi
for version in $@; do
if ! contains "$availables" "$version"; then... | true |
7ef4c1c080fd01057d1ab7e07eb13b4eb94eb1cd | Shell | antoni/dotfiles | /install/install_rust.sh | UTF-8 | 308 | 2.828125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -ue
# Install Rust toolchain, noninteractively
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
# Source for current session
source "$HOME/.cargo/env"
# Run it, so that we have all components downloaded right away (it does so upon first launch)
cargo --help
| true |
e9392e0a4a1e468c930e40ec94b137689677794b | Shell | kyleburton/sandbox | /selenium/run-selenium-rc.sh | UTF-8 | 4,197 | 3.453125 | 3 | [] | no_license | PROF="3o74fgym.Selenium1"
PROF_DIR="/Users/kburton/Library/Application Support/Firefox/Profiles/$PROF"
if [ -e "$PROF_DIR" ]; then
echo "copying fresh profile ($PROF) from $PROF_DIR"
test -d "$PROF" && rm -rf "$PROF"
cp -r "$PROF_DIR" ./
fi
# Usage: java -jar selenium-server.jar [-interactive] [options]
#
# ... | true |
58fafed348cafb067b2c3dbc9deddfac65a36fda | Shell | TonyVlcek/config-files | /.bashrc | UTF-8 | 2,669 | 2.984375 | 3 | [] | no_license | # _______ _ ____ _
#|__ __| ( ) | _ \ | |
# | | ___ _ __ _ _|/ ___ | |_) | __ _ ___| |__
# | |/ _ \| '_ \| | | | / __| | _ < / _` / __| '_ \
# | | (_) | | | | |_| | \__ \ | |_) | (_| \__ \ | | |
# |_|\___/|_| |_|\__, | |___/ |__... | true |
e1f0aae3c6651b583fa358d0d8b87fe7b7c10b79 | Shell | gingerzoealex/dotfiles | /.bash_profile | UTF-8 | 1,361 | 3.0625 | 3 | [] | no_license | on_reith () {
[ "BBC On Network" = "$(/usr/sbin/scselect 2>&1 | grep '^ \*' | sed 's/.*(\(.*\))/\1/')" ]
}
if on_reith;
then
echo "On Reith"
export http_proxy="http://www-cache.reith.bbc.co.uk:80"
export https_proxy="$http_proxy"
export HTTP_PROXY="$http_proxy"
export HTTPS_PROXY="$http_proxy"
export ALL_... | true |
fda3c71cfad78be2c64ebda8efeed2b4b95acc5e | Shell | BackupTheBerlios/sorcerer-svn | /trunk/grimoire/wpa_supplicant.d/init.d/wpa_supplicant | UTF-8 | 6,693 | 3.703125 | 4 | [] | no_license | #!/bin/bash
### BEGIN INIT INFO
# Default-Mode: 500
# Required-Start: proc wpa_priv var_run
# Should-Start: udev
# Required-Stop: kill
# Default-Start: S 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Starts wpa_supplicant for all wireless interfaces
### END INIT INFO
. /lib/lsb/init-functions
pnw(){
[ -f ... | true |
406ae70f7481fe5cf40b9ac232abbb507be1b6af | Shell | Kentarou-linux/dotfiles | /.zshrc | UTF-8 | 6,570 | 3.03125 | 3 | [] | no_license | # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; ... | true |
0636e393bbf800e3e77f06afd6425185ceec9fd0 | Shell | actiago/restic-systemd-automatic-backup | /bin/restic_check.sh | UTF-8 | 1,974 | 4.15625 | 4 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env bash
# Check the backups made with restic to Backblaze B2 for errors.
# See restic_backup.sh on how this script is run (as it's analogous for this script).
set -o errexit
set -o pipefail
[[ "${TRACE-0}" =~ ^1|t|y|true|yes$ ]] && set -o xtrace
# Clean up lock if we are killed.
# If killed by systemd, li... | true |
99c6d4251f217437d4db0499b25dddb09feedbae | Shell | jspawar/dotfiles | /modules/dotfiles/bash/.bashrc | UTF-8 | 72 | 2.875 | 3 | [] | no_license | for file in "${HOME}"/.config/bash/*.bash; do
source "${file}"
done
| true |
d2784d404d76441188482831750237f1cc275f6d | Shell | tano-systems/meta-tanowrt | /meta-tanowrt/recipes-core/base-files/base-files/files/sysfixtime.init | UTF-8 | 2,695 | 3.828125 | 4 | [
"MIT",
"LicenseRef-scancode-unknown"
] | permissive | #!/bin/sh /etc/rc.common
# Copyright (C) 2013-2014 OpenWrt.org
# Copyright (C) 2018-2022 Tano Systems LLC
START=00
STOP=90
HWCLOCK=/sbin/hwclock
extra_command "systohc" "Save system time to hardware RTC"
extra_command "hctosys" "Load system time from hardware RTC"
extra_command "systz" "Apply timezone"
LOG="logge... | true |
7abbb9f1e091ac126aa3cc353111b0f245f3de5d | Shell | SixSq/dataClay | /dataclay-proxy/release.sh | UTF-8 | 1,886 | 3.15625 | 3 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Copyright (c) 2018, SixSq Sarl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | true |
4976216a9407676105a4625a7b9eb96424d4a827 | Shell | rccguexam/osexam | /MCA3_25_mohini-parmar.sh | UTF-8 | 608 | 3.5625 | 4 | [
"MIT"
] | permissive | #------------------------Rno25_Q1.sh------------------------
#product of 10 numbers
n=10
i=1
product=1
while [ $i -le $n ]
do
product=$((product * i))
i=$((i + 1))
done
echo "The product is : $product"
#------------------------Rno25_Q2.sh------------------------
#write a shell script to display m... | true |
fd3f8f3e81e04d6a027cfc5f5df0d964a0d920e5 | Shell | delkyd/alfheim_linux-PKGBUILDS | /gnomato/PKGBUILD | UTF-8 | 642 | 2.59375 | 3 | [] | no_license | # Maintainer: Ainola
# Contributor: Vinícius dos Santos Oliveira
pkgname=gnomato
pkgver=1.1.0
pkgrel=1
pkgdesc="A timer for Pomodoro Technique"
arch=(i686 x86_64)
url="https://github.com/diegorubin/gnomato"
license=('GPL3')
depends=('gtkmm3' 'libnotify' 'boost-libs' 'python2')
makedepends=('intltool' 'gettext' 'boost'... | true |
ac05f8a2e870ee67b0c2e148a2474d210f7cf347 | Shell | djsperka/habit2-src | /tools/copy_gstreamer_framework | UTF-8 | 1,554 | 3.671875 | 4 | [] | no_license | #!/bin/sh
if [ $# -ne 1 ]; then
echo "usage: copy_gstreamer_framework dest"
exit -1
fi
# check that dest exists, if not, create it and the subdir "GStreamer.framework"
DEST="$1/GStreamer.framework"
PKG_DEST="$DEST/Versions/1.0"
if [ ! -d $PKG_DEST ]; then
mkdir -p $PKG_DEST
fi
GSTQT_PLUGIN="/Users/dan/eclipse-wo... | true |
6f9fe3be9ad2aed7169f1566be1a1dcb0147b821 | Shell | compas/grasp | /test/integration/mpitmp/run.sh | UTF-8 | 4,996 | 4.53125 | 5 | [
"MIT",
"CC-BY-4.0"
] | permissive | #!/bin/bash
#
# ./run.sh [--preserve-tmp] casename
#
# Create a temporary directory in the current working directory and run the integration
# tests. Currently supported cases are:
#
# - serial: runs the serial versions of rangular and rmcdhf
# - mpi: runs the MPI versions of rangular/rmcdhf, but with a short MPI_TMP (... | true |
784c35aa18e0c6ca35de8550fd891b7cd7991f63 | Shell | rjzupkoii/PSU-CIDD-Malaria-Simulation | /config.sh | UTF-8 | 2,754 | 3.921875 | 4 | [] | no_license | #!/usr/bin/env bash
function check_version() { test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1"; }
# Define some paths
BUILD_ENV="$HOME/work/build_env"
# Load cmake
module load cmake
# Create the directory to work in
source=$(pwd)
mkdir -p $BUILD_ENV
# If PostgreSQL isn't present, download and install it... | true |
a25925e3ca923a0a56fe36a89878131ca38a59a3 | Shell | jaredjennings/cmits-unclass | /modules/stig_misc/files/login_history/gdm-post-login.sh | UTF-8 | 209 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# Fulfill AFMAN 33-223, section 5.5.2, and UNIX SRG rules GEN000452 and
# GEN000454.
text="`/usr/sbin/loginhistory $LOGNAME`"
[[ "$text" =~ \! ]] && sw=--error || sw=--info
zenity $sw --text="$text"
| true |
2bd9b4095a115569378c09822197e3bd334e594e | Shell | hashicorp-demoapp/instruqt | /packer/bootstrap.sh | UTF-8 | 2,614 | 3.140625 | 3 | [] | no_license | #!/bin/bash
set -e
export HOME=/root
# Hack to make sure we don't start installing packages until the filesystem is available.
echo "waiting 180 seconds for cloud-init to update /etc/apt/sources.list"
timeout 180 /bin/bash -c \
'until stat /var/lib/cloud/instance/boot-finished 2>/dev/null; do echo waiting ...; slee... | true |
47e3677fc165d09c343e51397c66a5cfa1bcb603 | Shell | danielxiaowxx/generator-ionic | /generators/update-project/templates/release-android-app.sh | UTF-8 | 1,101 | 2.875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
gulp clean
gulp release
mv www www_back
mv release/www www
ionic plugin rm cordova-plugin-console
#多渠道-开始
mkdir ./tmp
mv ./platforms/android/AndroidManifest.xml ./tmp/
echo '' > release.log
for version in 'YingYongBao' 'Test'
do
cp -f ./tmp/AndroidManifest.xml ./platforms/android/
sed -i -- "... | true |
272fd256618f33f416fe9782c951835077a26ae4 | Shell | ThomasAdam/tmux-ARCHIVED | /tags/TMUX_1_4/tools/fix-ids.sh | UTF-8 | 228 | 2.890625 | 3 | [] | no_license | # $Id: fix-ids.sh,v 1.3 2009-07-01 19:03:34 nicm Exp $
for i in *.[ch] tmux.1; do
(head -1 $i|grep '$OpenBSD' >/dev/null) || continue
mv $i $i~ || exit
sed 's/\$OpenBSD.* \$/$\Id$/' $i~ >$i || exit
echo $i
done
| true |
c384685ee2f1516192b52a6dbbd49721f4c9798d | Shell | lastweek/rdma_bench_dirty | /rc-swarm/sweep.sh | UTF-8 | 856 | 3.328125 | 3 | [
"Apache-2.0"
] | permissive | # A function to echo in blue color
function blue() {
es=`tput setaf 4`
ee=`tput sgr0`
echo "${es}$1${ee}"
}
# Sweep over params
# This is separate from run-all.sh, which does not sweep
# Empty existing sweep output
rm -f sweep/temp_out
# 6 machines on NetApp, so increment NUM_WORKERS by 6
for VM_PER_MACHINE in 1 ... | true |
9c6b41dd3b492bce38174e7ad041ba40585935a5 | Shell | kinglionsoft/farmer | /Micro/docker/gdi/build-docker-base-image.sh | UTF-8 | 1,259 | 3.5625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Create GDI+\TTF images for .NetCore
images=(runtime:2.1 runtime:2.2 runtime:3.0 aspnet:2.1 aspnet:2.2 aspnet:3.0 aspnet:3.1)
official=mcr.microsoft.com/dotnet/core/
yx=registry.local.com/dotnetcore/
proxy=http://192.168.1.123:11080/
rm -r gdi
mkdir gdi
cp sources.list ./gdi
for img in ${images[*]}
do
... | true |
3413a3b2fd40dad073251fc056a2872f707ce2cc | Shell | alexalmansa/rbacF2 | /rbac-0.3/rbacb/rbac_dir/setup | UTF-8 | 4,763 | 2.640625 | 3 | [] | no_license | #!/bin/bash
#FUNCIONS
function creaDaemonEntorn()
{
systemctl stop dimoniRoot
systemctl disable dimoniRoot
rm /lib/systemd/system/dimoniRoot.service
systemctl daemon-reloadg
systemctl reset-failed
cat <<EOT >> /lib/systemd/system/dimoniRoot.service
[Unit]
Description=daemon root serv... | true |
d2cc9fa3e390d1e510429add93084974b2e0538b | Shell | uyirex/AzuraCast | /update.sh | UTF-8 | 564 | 3.203125 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/usr/bin/env bash
function phpuser {
sudo -u azuracast php $@
}
export www_base="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export app_base=`realpath $www_base/..`
export util_base=$www_base/util
export tmp_base=$app_base/www_tmp
# Stop system tasks
service nginx stop
service cron stop
# Pull down updat... | true |
cfa36423f55d347e9b111d015af286d37b230b12 | Shell | ConorMcFeelyQUB/cloud-scripts | /big-test/deploy-all.sh | UTF-8 | 4,928 | 3.296875 | 3 | [] | no_license | set -ex
ADVERT_DB_INSTANCE_NAME="advert-db-instance"
PAGE_DB_INSTANCE_NAME="page-db-instance"
DB_PASSWORD="QUBccProject"
DB_TEIR="db-n1-standard-2"
REGION="europe-west2"
ZONE="europe-west2-a"
#creating sql instance for advert db
gcloud sql instances create $ADVERT_DB_INSTANCE_NAME \
--tier="db-n1-standard-2" \
... | true |
b132c37c36d05f9ab46a0f2c36eaff9abb98f1db | Shell | pklepikov/SRLinux_basics | /00.prepare_host.sh | UTF-8 | 419 | 2.96875 | 3 | [] | no_license | #! /bin/bash
# Copy the SRL inmage X.Y.Z-N.tar.xz file into Project directory on Centos 8 Host Machine.
# TBD
# Copy the license.key into Project directory.
# TBD
# Load the docker image.
# - To load the image, the user must have root privilege, or be part of the docker group.
docker image load -i 2... | true |
fe2d8d8990f15bf4c484774b933718796d21a85a | Shell | prariehill/sushi-card-gitbook-theme | /src/build.sh | UTF-8 | 979 | 2.765625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Install fonts
bower install;
# Build global Sushi Card CSS
lessc "src/css/web.less" "_assets/website/sushi.css";
lessc "src/css/print.less" "_assets/ebook/sushi.css";
# Put fonts where GitBook can find them
# Lato
mkdir -p _assets/website/fonts/lato;
cp -R bower_components/lato/font/ _assets/websit... | true |
434be69408f27267e7b3fe5732d2e1d46e0e0be8 | Shell | m-lab/epoxy-images | /configs/stage3_ubuntu/opt/mlab/bin/generate_network_config.sh | UTF-8 | 2,657 | 3.90625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# generate_network_config.sh finds the epoxy.ip= kernel parameter, parses it and
# writes a networkd configuration file for the static IP to the named file.
# generate_network_config also sets the machine hostname.
OUTPUT=${1:?Please provide the name for writing config file}
# TODO: Modify ePoxy to reco... | true |
9299295a94c2a201fe6b49cca01bcc0d2f446bb8 | Shell | zhangerjun/TBSSVBA | /rDTIDA_scripts/Segmentation/Shell_Scripts/applyTransformToSegmentation.sh | UTF-8 | 550 | 3.140625 | 3 | [] | no_license | #!/bin/bash
SEGMENTATION=$1
TRANSFORM_MATs_TEMP=(`ls $2/*.mat`)
TRANSFORM_MAT_ATLAS=$3
INV_TRANSFORMs_TEMP=(`ls $4/*InverseWarp.nii.gz`)
INV_TRANSFORM_ATLAS=$5
REF=$6
for (( i=0; i<${#TRANSFORM_MATs_TEMP[@]}; i++ )); do
FILENAME=`basename ${TRANSFORM_MATs_TEMP[i]} | cut -d '.' -f 1`
OUTPUTNAME=./segmentation/... | true |
9a31091d649f5347b66c61bb31f7985a8ba7cb00 | Shell | argustelecom/opsWorkshop | /.linuxbuild/linux_build.sh | UTF-8 | 8,490 | 3.546875 | 4 | [] | no_license | #!/bin/bash
# Script to build Argus Application Server Ops in Linux environment
# !!!Выполняется из каталога .linuxbuild
# TASK-87917, v.semchenko (31.10.2017): скрипт используем только для подготовки СП и обновления к БД.
# ВАЖНО!!! Если адаптируешь еще для чего-то скрипт, укажи когда и где он используется!!!
export ... | true |
58749a71f0a80ef838c6a893aa7604bee978d73c | Shell | minjun-jang/ocpinstall | /00.prepare/05_chrony_setting.sh | UTF-8 | 1,188 | 2.953125 | 3 | [] | no_license | #!/bin/sh
ABSOLUTE_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "${ABSOLUTE_PATH}/config/openshift.env"
echo -e "\033[32m[S]=============================================================================\033[0m"
echo -e "\033[46m@@@[S]_[YUM INSTALL CHRONY] ==> ${CHRONY_SERVER}\033[0m"
Asystemctl stop... | true |
90dfbea16a8fc624736a5c61c6522ff59515b442 | Shell | ajsalminen/dotfiles | /shell/functions/ag_truncate_lines.sh | UTF-8 | 577 | 3.40625 | 3 | [
"MIT",
"BSD-2-Clause"
] | permissive | # page only when needed, set term to truncate lines for minified code etc.
# default to insensitive matches and include a global agignore for minified exts.
# Some info http://unix.stackexchange.com/questions/109211/preserving-color-output-with-cut
ag_truncate_lines() {
tput rmam # turn off automatic margin mode.
... | true |
316593ccee6d1cb7cce06ad2302e1024726d5d17 | Shell | Sunil2914/network | /mirror/create_mirror_misc.sh | UTF-8 | 1,701 | 3.25 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -ev
export DISTRO=$(cat /etc/*-release|grep ^ID\=|awk -F\= {'print $2'}|sed s/\"//g)
if [[ "${DISTRO}" == "ubuntu" ]]; then
apt-get install -y apt-transport-https curl
fi
[[ -z ${MIRROR_BUILD_DIR} ]] && export MIRROR_BUILD_DIR=${PWD}
[[ -z ${MIRROR_OUTPUT_DIR} ]] && export MIRROR_OUTPUT_DIR=${PWD}/mir... | true |
60687989a9899faf88ddbe93c4d98b960a657be1 | Shell | josh43/RestBuilder | /RunAndUpdateScript.sh | UTF-8 | 417 | 2.625 | 3 | [] | no_license | #!/bin/bash
#make sure to install and include express and multer in your package.json
make
./main
theSource=${PWD}/Rest/
objcTarget="/Users/josh/Documents/CS Projects/RestExample/RestExample/"
jsTarget="/Users/josh/Documents/CS Projects/RestGeneratorTester/routes/"
echo "Copying files at $theSource to $objcTarget"
c... | true |
265334cd9cfebe6c90c6dfb6d4103701008b1bfa | Shell | neh/myconf | /bin/polybar.sh | UTF-8 | 873 | 3.296875 | 3 | [] | no_license | #!/usr/bin/env sh
laptop_display='eDP-1'
# Terminate already running bar instances
killall -q polybar
# Wait until the processes have been shut down
while pgrep -x polybar >/dev/null; do sleep 1; done
# Get network interface names
export INTERFACE_WIRED=$(ip link show | cut -d' ' -f2 | tr -d ':' | grep '^en')
expor... | true |
ceb4786295f1fb9dd1e0aa4567fbfdcef1b6f0c0 | Shell | mrstepanovic/bradmci | /tools/bak/old.fc_analysis | UTF-8 | 7,941 | 3.546875 | 4 | [] | no_license | #!/bin/bash
# source matlab
source /autofs/cluster/animal/scripts/matlab/matlab_74
#
# For each subject, extracts time courses for each run
# and computes correlation coefficients using ROIs.
# Also generates a corresponding matrix graphic.
#
function usage {
echo " ______ _____ _ _ _ __ ... | true |
50fa2c1730aefd8637cd32addbffe4cfbb8a7008 | Shell | mkg20001/nix | /cron/clean-node-modules.sh | UTF-8 | 296 | 3.53125 | 4 | [] | no_license | #!/bin/bash
set -eo pipefail
if [ -z "$1" ]; then
CMD=$(readlink -f "$0")
find /home -iname node_modules -mtime +14 -prune -exec bash $CMD {} \;
else
if [ -z "$(echo "$1" | tr "/" "
" | grep "^\\.")" ]; then
echo " -- RM $1 -- " >&2
rm -rf "$1"
else
echo "keep $1"
fi
fi
| true |
0d6084cbf565237015bb7667fad77edede99bdae | Shell | JuanDAC/test_others_simple_shell | /cd_multiargs | UTF-8 | 371 | 3.046875 | 3 | [] | no_license | #!/bin/bash
command1="cd /bin /tmp slkfjl"
# Stop any running shells
stop_shell
# Run command
echo $command$'\n'pwd | "$SHELL" > "$YOUR_OUTPUT" 2> "$YOUR_ERROR" &
echo $command$'\n'pwd | sh > "$EXPECTED_OUTPUT" 2> "$EXPECTED_ERROR"
# Wait for one second
"$SLEEP" "$SLEEPSECONDS"
# Check the output
check_output
# C... | true |
b49e467d4f01b32bfaaa1f2809e1082f4ffd7d24 | Shell | NDari/dotfiles | /scripts/setup_laptop.sh | UTF-8 | 1,787 | 3.734375 | 4 | [] | no_license | #!/bin/sh
# Modified version of thoughtbots script
# https://github.com/thoughtbot/laptop/blob/master/mac
fancy_echo() {
local fmt="$1"; shift
printf "\n$fmt\n" "$@"
}
trap 'ret=$?; test $ret -ne 0 && printf "failed\n\n" >&2; exit $ret' EXIT
set -e
if [ ! -d "$HOME/bin/" ]; then
mkdir "$HOME/bin"
fi
if [ !... | true |
f03f45e5735d395f886c29f3b6c26cbc489749ea | Shell | it4ng/sendemail | /sendmail | UTF-8 | 491 | 2.671875 | 3 | [] | no_license | #!/bin/sh
[ -z "$MAIL_RECIPIENT" ] && echo "MAIL_RECIPIENT is not set, exiting" && exit 1
[ -z "$MAIL_SENDER" ] && echo "MAIL_SENDER is not set, exiting" && exit 1
[ -z "$MAIL_SUBJECT" ] && echo "MAIL_SUBJECT is not set, exiting" && exit 1
[ -z "$MAIL_MESSAGE" ] && echo "MAIL_MESSAGE is not set, exiting" && exit 1
[ -... | true |
6db955d58df07c34a69cc97d30286ce64453e580 | Shell | prasanthkumar3103/My-AWS-Handy-Scripts | /get_awsInstanceId.sh | UTF-8 | 285 | 2.984375 | 3 | [] | no_license | #!/bin/bash
# Author: Ajaya Kumar Loya
# This script will give you the instanceID when executed.
# Note this need be running on a Instance of which you need Instance ID.
export INSTANCE_ID=`curl --silent http://169.254.169.254/latest/meta-data/instance-id`
echo "Instance ID => "${INSTANCE_ID}
| true |
fe898ea27e375d9f41533b3115089f81617a4d0d | Shell | xianlimei/zhuxianB30 | /scripts/build_functions/.svn/text-base/device_cpu.svn-base | UTF-8 | 1,949 | 3.1875 | 3 | [] | no_license | #!/bin/bash
case $1 in
uag|ips|fw|utm|rt|dpx|dlb|bsrg|dpx19k|nsw)
CURRENT_BUILD_CPU='mips-xlr'
CURRENT_BUILD_ARCH='mips'
;;
mips)
CURRENT_BUILD_CPU='mips-xlr'
CURRENT_BUILD_ARCH='mips'
;;
uag64|ips64|fw64|utm64|dpx64|dlb64)
CURRENT_BUILD_CPU='mips64-xlr'
CURRENT_BUILD_ARCH='mips64'
;;
mips64)
CUR... | true |
6ace5160ab7980b8533888730e4753c05478c4fd | Shell | mnsanghvi/cl-travis | /install.sh | UTF-8 | 8,609 | 3.71875 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# cl-travis install script. Don't remove this line.
set -e
# get <url> <destination>
get() {
url=$1
destination=$2
echo "Downloading ${url}..."
curl --no-progress-bar --retry 10 -o "$destination" -L "$url"
}
# unpack <uncompression option> <file> <destination>
unpack() {
opt=$1
file... | true |
9b21b05e530d2948de0547e160ce5908f14ee9f3 | Shell | StamLab/stampipes | /scripts/rna-star/aggregate/checkcomplete.sh | UTF-8 | 1,597 | 3.125 | 3 | [] | no_license | # Checks that important files exist and are not size 0
EXIT=0
# list of files
files=( \
"merged.transcriptome.cram" \
"feature_counts.txt" \
"genes.fpkm_tracking" \
"isoforms.fpkm_tracking" \
"kallisto.log" \
"kallisto_adv.log" \
"picard.MarkDuplicates.txt" \
"picard.RnaSeqMetrics.txt"... | true |
e9b2616cc694bdbc32f9cf188b63ad2d5b175728 | Shell | birdsofsummer/kpw2_rom | /tt/usr/sbin/wfm_mount | UTF-8 | 496 | 3.546875 | 4 | [] | no_license | #!/bin/sh
WFM_MOUNT=/mnt/wfm
if mount | grep -q $WFM_MOUNT ; then
echo "waveform filesystem already mounted"
exit 0
fi
echo "mounting waveform filesystem"
# Set up loop as offset 0x1C41000 from flash root
losetup -o $(( 4096 * 7233 )) /dev/loop/1 /dev/mmcblk0
mount /dev/loop/1 $WFM_MOUNT
if [ $? -ne 0 ]; th... | true |
027fdafbb38a0dac45ea7c30509485df68229b55 | Shell | jbrakensiek/CORBITS | /data/grab.sh | UTF-8 | 670 | 2.859375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
today=$(date -I)
name="koi-data" #"koi-$today"
#download data from the Exoplanet Archive
#query api: http://exoplanetarchive.ipac.caltech.edu/docs/program_interfaces.html
wget "http://exoplanetarchive.ipac.caltech.edu/cgi-bin/nstedAPI/nph-nstedAPI?table=q1_q17_dr24_koi&select=kepid,kepoi_name,koi_period,... | true |
767357af19c12de17b52d1ddf1be5152c79ea0d2 | Shell | packy/maccfg | /bashrc.d/enabled/ssh_hosts.sh | UTF-8 | 518 | 3.390625 | 3 | [] | no_license | #!bash # for emacs formatting
authorize () {
HOSTNAME=$(hostname -s)
USER=$(whoami)
DIR="~/.ssh"
REMOTE_PUB="~/.ssh/id_rsa_${HOSTNAME}_${USER}.pub"
AUTH_KEYS="~/.ssh/authorized_keys"
cat ~/.ssh/id_rsa.pub | ssh $1@$2 "umask 077; test -d $DIR || mkdir $DIR; cat > $REMOTE_PUB; cat $REMOTE_PUB >> $AUTH_KEYS; ... | true |
2dfd90e77a5ab39a35811bdb96ad73ad08889ba3 | Shell | tdf/salt-states-base | /users/Z99-user.sh | UTF-8 | 449 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# !!! THIS FILE IS MANAGED BY SALT !!!
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
alias grepconf='grep -vE "^#|^$|^[\w]+#"'
alias grep='grep --color'
alias sudox='sudo cp ~/.Xauthority /root && sudo '
export LS_OPTIONS='--color=auto -h'
eval "`dircolors`"
alias ls='ls $LS... | true |
0139d94e6fb7e5e0fdbf1b96176e983223dd357b | Shell | yusong-shen/STAT640_Statistical_Machine_Learning | /Competition/svdfeature-1.2.2/demo/basicMF/run-ml100K.sh | UTF-8 | 890 | 2.953125 | 3 | [] | no_license | #!/bin/bash
# this is a demo script for training the movielen
# get data if it doesn't exist
if [[ -f ua.base && -f ua.test ]]
then
echo "start demo using movielen data"
else
echo "The demo require input file ua.base, ua.test from ml-100K in current folder, please get them from www.grouplens.org"
exit
fi... | true |
05286ba696b8111cd510912e4a3fee0ed98441d9 | Shell | Vman45/ubuntu_server_installer | /crypt/decrypt.sh | UTF-8 | 476 | 3.65625 | 4 | [] | no_license | #!/bin/bash
#@author Filip Oščádal <oscadal@gscloud.cz>
dir="$(dirname "$0")"
. $dir/_includes.sh
FILES="id_rsa id_rsa.pub"
if [ -z "${PASS}" ]; then
info "Manage keys (interactive) ..."
read -s -p "Enter password:" PASS
echo -ne "\n"
export PASS
else
info "Manage keys (automatic) ..."
fi
for i in $FILES... | true |
1363b8efbc68998274036024dbcc5b806783c33e | Shell | emersion/debug-frame-check | /bin/dwarf-orc-csmith.sh | UTF-8 | 172 | 2.84375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
set -e -o pipefail
bin_dir=$(dirname "$0")
if [ "$CSMITH" = "" ] ; then
CSMITH="csmith"
fi
$CSMITH $@ > csmith.c
"$bin_dir/dwarf-orc-crosscheck.sh" csmith.c
| true |
8a9996749f4ab95937e4bb4dc5b794cf14cef168 | Shell | fzhao06/auto_scripts | /bashrc | UTF-8 | 722 | 2.75 | 3 | [] | no_license | # .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functions
if test -f $HOME/.gpg-agent-info && \
kill -0 `cut -d: -f 2 $HOME/.gpg-agent-info` 2>/dev... | true |
fc7dfbb67f5be9329020f43bb9767e638b309704 | Shell | WU-ARL/ndnmap | /DataCollection/runHOUS.sh | UTF-8 | 154 | 2.625 | 3 | [] | no_license | #!/bin/bash
while true
do
./getHOUS.py >& getHOUS.log
DATE=`date +%Y.%b.%d.%H.%M`
mv getHOUS.log getHOUS.log.$DATE
gzip getHOUS.log.$DATE
done
| true |
f1c6e274d58214d7f0a699fc71906993665df002 | Shell | akifoezkan/Halide-HLS | /tutorial/figures/generate_figures_18.sh | UTF-8 | 3,442 | 2.5625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# This script generates the figures for lesson 18
make -C ../.. bin/HalideTraceViz
rm -rf tmp
mkdir -p tmp
# Grab a trace
HL_JIT_TARGET=host-trace_loads-trace_stores-trace_realizations \
HL_TRACE_FILE=$(pwd)/tmp/trace.bin \
make -C ../.. tutorial_lesson_18_parallel_associative_reductions
ls tmp/trace.bin... | true |
cec0987ff9b6e6343226972d66ab9499b82f37f1 | Shell | freebsd/freebsd-ports | /dns/rbldnsd/files/rbldnsd.in | UTF-8 | 679 | 3.109375 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
# PROVIDE: rbldnsd
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable rbldnsd:
#
# rbldnsd_enable="YES"
#
# See rbldnsd(8) for flags.
#
. /etc/rc.subr
name=rbldnsd
rcvar=rbldnsd_enable
load_rc_config $name
rbldnsd_enable=${rbldnsd_enable:-"NO"}
rb... | true |
338bf0d4c2889623385d7671749ea648ce78f4a8 | Shell | socialtables/docker-machine-dns-daemon | /update-docker-machine-dns.sh | UTF-8 | 2,110 | 4.4375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# Social Tables docker DNS configurator for OSX - updates dnsmask's configuration
# to point the specified hostname at the specified docker machine's IP address
# help blob
show_help() {
echo "Usage: update-docker-machine-dns [ -h hostname ] [ -m machine name ] [ -d (daemon mode) ]"
}
# optparse dump to g... | true |
33b03ebe79fc9cdeeee6c29fa8a655eaa9025068 | Shell | dijksterhuis/discogs-yt-playlister | /2-discogs-datastorage/6-redis-ETL/1-searches/redis-loads-set-adds-unique-metadata.sh | UTF-8 | 922 | 3 | 3 | [] | no_license | #!/bin/bash
for tag in genre style year; \
do \
echo 'Running for tag '$tag ; \
image='dijksterhuis/redis-database-inserts:modularised-0.1' ;\
container_name='redis-loads-unique-'$tag ;\
container_command='./redis-load-set-adder.py ' ;\
# run_type, primary_key, mongo instance, redis instance, key, value
container_args... | true |
01dad9fe709e491f80afeee665dda759affc9fec | Shell | webis-de/ICWSM-17 | /wikipedia-reverts-detection/src-shell/download-wiki-stub-meta.sh | UTF-8 | 913 | 3.984375 | 4 | [] | no_license | #!/bin/bash
if [ -z "$1" ];then
echo "Usage:"
echo " $0 <country>"
echo "With"
echo " country"
echo " The two-letter country code as used by Wikipedia (en, de, fr, ...)"
exit 1
fi
country=$1
shell_source_dir=`dirname $0`
source $shell_source_dir/config.sh
wiki=$country"wiki"
output_dir=$shell_sourc... | true |
87e79140f676ed9a26e58f8cc0da6eb5ba790b5c | Shell | research-iobserve/jss-privacy-experiment | /execute-jpetstore-with-workload-continuous-reconfiguration.sh | UTF-8 | 2,792 | 3.671875 | 4 | [] | no_license | #!/bin/bash
# Execute a distributed JPetStore with docker locally
# including a migration scheme, where one accounting component
# is redeployed 10000 times.
# This variant does not support a workload driver.
REDEPLOYS = 10000
BASE_DIR=$(cd "$(dirname "$0")"; pwd)
if [ -f $BASE_DIR/config ] ; then
. $BASE_DIR/conf... | true |
643a79064177e1c34ba4a172a6235bd9529e624a | Shell | andrewlook/ipynblog | /tests/test_cookiecutter.sh | UTF-8 | 898 | 3.1875 | 3 | [
"MIT"
] | permissive | #!/bin/bash -x
SAMPLE_COLAB_URL="https://colab.research.google.com/drive/1fjv0zVC0l-81QI7AtJjZPMfYRiynOJCB#scrollTo=Kp3QKj1KIaaO"
SAMPLE_COOKIECUTTER_REPO="git@github.com:andrewlook/ipynblog-cookiecutter-svelte-template.git"
NOTEBOOKS_DIR=$(pwd)/notebooks
ipynblog-download ${SAMPLE_COLAB_URL} -d ${NOTEBOOKS_DIR}
NO... | true |
b01ba54563ee529912847e62278e54bd6faaaaa0 | Shell | avi202020/sailpoint-docker | /bin/status.sh | UTF-8 | 155 | 2.828125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if [[ -e build/.composefile ]]; then
FILE=`cat build/.composefile`
else
FILE=docker-compose.yml
fi
set -x
docker-compose ps
| true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.