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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
bb03dbee29a5e7e5e74b8ff57e02cc589c655fab | Shell | stuckinaboot/iGenomics | /outside_core_app/general_output_validation/bowtie2-2.2.3/scripts/make_h_sapiens_ncbi36.sh | UTF-8 | 2,458 | 3.875 | 4 | [
"MIT",
"GPL-3.0-only"
] | permissive | #!/bin/sh
#
# Downloads sequence for H. sapiens (human) from NCBI. This script was
# used to build the Bowtie index for H. sapiens.
#
# From README_CURRENT_BUILD:
# Organism: Homo sapiens (human)
# NCBI Build Number: 36
# Version: 3
# Release date: 24 March 2008
#
GENOMES_MIRROR=ftp://ftp.ncbi.nih.gov/genomes
FI... | true |
8637311e92c57ea10fcd65db679cb5579e048413 | Shell | RajkumarVerma4124/EMPLOYWAGECOMPUTATION-PROGRAM | /EmpWageComputation.sh | UTF-8 | 6,488 | 3.8125 | 4 | [] | no_license |
echo "Welcome to Employee Wage Computation Program on Master Branch "
#---------------------------------------------------------------------------------------------------------------------------------------------------
workhour (){
read -p "Enter the hours you work : " Empworkhour
echo $Empworkhour
}
#------------... | true |
87dd6aca6ee4b28dca0e14c71fd1a42cad3a44c5 | Shell | ginomcevoy/vespa | /mgmt/create-vm.sh | UTF-8 | 422 | 3.4375 | 3 | [] | no_license | #!/bin/bash
# Creates a VM from an XML
# Author: Giacomo Mc Evoy - giacomo@lncc.br
# LNCC Brazil 2013
# Validate input
if [ $# -lt 2 ]; then
echo "Create a VM from an XML"
echo "Usage: $0 <hostname> <xml>"
exit 1
fi
# Params
HOST=$1
XML=$2
# Call libvirt
echo -e "virsh -c qemu+ssh://$HOST/system create $XML"
virs... | true |
3379a34a33ab9bb1ec75f9d3f2767d397cfb03a3 | Shell | igordot/sns | /segments/qc-coverage-gatk.sh | UTF-8 | 4,200 | 3.515625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# GATK coverage stats
# script filename
script_path="${BASH_SOURCE[0]}"
script_name=$(basename "$script_path")
segment_name=${script_name/%.sh/}
echo -e "\n ========== SEGMENT: $segment_name ========== \n" >&2
# check for correct number of arguments
if [ ! $# == 3 ] ; then
echo -e "\n $script_name ERR... | true |
2f24baeac03066f3943656cfc1933c906be84468 | Shell | sspeng/EasyMesh | /test | UTF-8 | 623 | 3.296875 | 3 | [] | no_license | #!/bin/bash
dir_cur=$PWD
dir_src=$PWD/Src
dir_test=$PWD/Examples
#------------------------------------#
# go to source directory and compile #
#------------------------------------#
cd $dir_src
make
cd $dir_test
ln -f -s $dir_src/Easy .
#------------------------------#
# browse through all the tests #
#------------... | true |
519836b9732a556477b2679743f2c4ec27adace6 | Shell | 824728350/batfish | /tools/role_reachability.sh | UTF-8 | 10,525 | 3.53125 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
batfish_confirm_analyze_role_reachability() {
BATFISH_CONFIRM=batfish_confirm batfish_analyze_role_reachability $@
}
export -f batfish_confirm_analyze_role_reachability
batfish_analyze_role_reachability() {
local TEST_RIG_RELATIVE=$1
shift
local PREFIX=$1
shift
local MACHINES=... | true |
c0b2d87692b23f094b861afc109648b2089c266e | Shell | wangmuy/docker-ubuntu-runas | /start.sh | UTF-8 | 353 | 3.34375 | 3 | [] | no_license | #!/bin/sh
echo 'start.sh'
mydir="$( cd `dirname $0` && pwd )"
[ -n "$WORKDIR_ROOT" ] && cd $WORKDIR_ROOT
[ -f $mydir/start_private.sh ] && . $mydir/start_private.sh
[ -f $mydir/start-user.sh ] && startScript=$mydir/start-user.sh
if [ -n "${USER_ID}" -a "${USER_ID}" != "0" ]; then
exec sudo -E -u $USER_NAME $startScr... | true |
6ebdbb723b9f0fdceefee4986ae84a5ea8c89707 | Shell | Gancc123/flame | /scripts/mysql.sh | UTF-8 | 594 | 3.03125 | 3 | [] | no_license | #!/bin/bash
DBNAME="flame_mgr_db"
PASSWORD="123456"
USER_NAME="flame"
if_not_exist_create_database="create database if not exists ${DBNAME}"
if_not_exist_create_user="create user if not exists '${USER_NAME}'@'localhost' identified by '123456'"
grant_privileges="grant all privileges on ${DBNAME}.* to '${USER_NAME}'@'lo... | true |
d3f2fb85c3081dd7e50f0b1b63fad53ed3c5f313 | Shell | MinbinGong/OpenStack-Ocata | /glance_store-0.20.0/glance_store/tests/functional/hooks/gate_hook.sh | UTF-8 | 1,004 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# 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 law or agreed to in writing, software
# distr... | true |
a26673eeda4228c524d2f04732160a43cd6c16c4 | Shell | terriera/c-swimming-pool | /j11/test/test.sh | UTF-8 | 7,057 | 3.828125 | 4 | [] | no_license | #! /bin/sh
# message colors
ERROR_COLOR='1;31' # Errors
HILITE_COLOR='1;33;4' # Matches
INFO_COLOR='1;32' # Information (e.g. current text, globality)
MATCHES_COLOR='37' # Match count
PROMPT_COLOR='1;36' # Prompt
TITLE_COLOR='1;33' # Emphasized messages
# Determine whethe... | true |
f9cdceb5eeef6748efcc4e03f9de7ff093ae9e0c | Shell | dfong/api-platform-samples | /sample-proxies/apigee-healthcheck/resources/cleanup.sh | UTF-8 | 2,617 | 3.890625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
usage() { echo "Usage: $0 [-o][org1,org2...] [-u] [-p] [-e]" ; exit 1; }
if [ "$#" -ne "8" ]; then
usage
exit 1
fi
echo "****************** Cleanup script started at `TZ=":US/Pacific" date` by user at `echo $SSH_CLIENT | cut -d ' ' -f 1` ****************** "
MGMT_URL="https://api.e2e.apigee.net"
DEVELOP... | true |
f3aaeff2714df80d51220c99f91d2c221d768b02 | Shell | kalyangoud145/Employee_Wage | /empwageproblem.sh | UTF-8 | 960 | 3.5625 | 4 | [] | no_license | #!/bin/bash
echo "welcome to employee wage calculation problem"
isPresent=1;
randomCheck=$((RANDOM%2));
if [ $isPresent -eq $randomCheck ]
then
echo "Employee is present"
else
echo "Employee is absent"
fi
IS_PART_TIME=1;
IS_FULL_TIME=2;
MAX_HRS_IN_MONTH=100;
EMP_RATE_PER_HR=20;
NUM_WORKING_DAYS=20;
totalEmpHrs=... | true |
17b4a3e5c1a2bfda20bee6776794c2821510955b | Shell | rajeevpd/python3.7-alpine | /entrypoint.sh | UTF-8 | 301 | 3.53125 | 4 | [] | no_license | #!/bin/bash
# Add local user
# Either use the LOCAL_USER_ID if passed in at runtime or
# fallback
#
if [ "$LOCAL_USER_ID" != "" ]; then
USER_ID=${LOCAL_USER_ID:-9001}
echo "Starting with UID : $USER_ID"
adduser -D -h /home/user -s /bin/sh -u $USER_ID user
export HOME=/home/user
fi
exec "$@"
| true |
188e938a540e51dd13324a941c200f707b3a4fa6 | Shell | j23414/adv-unix-workshop | /section-4/supplementary/summation-solution.sh | UTF-8 | 125 | 2.609375 | 3 | [] | no_license | #!/bin/bash
awk '
{a[$2] += $7}
END{
for(k in a){
print k, a[k]
}
}
' $1 | column -t
| true |
eec7408d8ec7a6e789440b6ba8e12f435d252ee7 | Shell | mxbi/shell_scripts | /compile_tf.sh | UTF-8 | 1,266 | 3.109375 | 3 | [
"MIT"
] | permissive | echo "[STATUS] Cloning TF repo"
git clone https://github.com/tensorflow/tensorflow.git &&
echo "[STATUS] Installing Java"
sudo apt install -y openjdk-8-jdk
yes | sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update && sudo apt-get -y install oracle-java8-installer
echo "[STATUS] Installing other depende... | true |
4e430c9a75fbc9f884be4a29a92224685e926fe1 | Shell | kundajelab/Personal_genome_mapping | /new_ase_code/bin/recalSample.sh | UTF-8 | 1,515 | 3.09375 | 3 | [] | no_license | #!/bin/bash
INDELS1=${GATK}/bundle/1.5/hg19/1000G_phase1.indels.hg19.vcf
INDELS2=${GATK}/bundle/1.5/hg19/Mills_and_1000G_gold_standard.indels.hg19.sites.vcf
SNPS=${GATK}/bundle/1.5/hg19/dbsnp_135.hg19.vcf
COV="--standard_covs"
pref=`basename $INFILE`
pref=${pref/.bam}
outpref=${OUTDIR}/${pref}
tmpdir="${TMP}/tmp_${pr... | true |
bf85fe440cda4479d67b89dde2738439a0ed0e3c | Shell | jakubpawlowicz/nixos-setup | /home/jakub/.local/bin/rename-workspace | UTF-8 | 264 | 2.84375 | 3 | [] | no_license | #!/usr/bin/env bash
set -o errexit -o nounset
TARGET_WORKSPACE=$1
SOURCE_WORKSPACE=$(nix-shell -p jq --run "swaymsg -t get_workspaces | jq '.[] | select(.focused==true).name' | cut -d '\"' -f2")
swaymsg "rename workspace $SOURCE_WORKSPACE to $TARGET_WORKSPACE"
| true |
554e1f740d86999b3b9c07ed8a384fb69a443067 | Shell | 1814729186/ppopp17-artifact | /clean.sh | UTF-8 | 540 | 2.953125 | 3 | [] | no_license | #!/bin/sh
# Sets up environment for artifact evaluation
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
AEROOT=$SCRIPTPATH
echo "==== Groute Artifact Evaluation Cleanup ===="
rm -rf $AEROOT/setup.complete
rm -rf $AEROOT/code/groute/metis
rm -rf $AEROOT/code/mgbench/build
rm -rf $AEROOT/code/nccl/build
r... | true |
9bf4d56e4d63baee6fd769d68d175c9473acf51c | Shell | snowflakedb/libsnowflakeclient | /deps/util-linux-2.39.0/tests/ts/lsfd/lsfd-functions.bash | UTF-8 | 2,504 | 3.734375 | 4 | [
"BSD-4-Clause-UC",
"GPL-2.0-only",
"LicenseRef-scancode-public-domain",
"GPL-3.0-or-later",
"BSD-2-Clause",
"GPL-2.0-or-later",
"LGPL-2.1-or-later",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Copyright (C) 2021 Masatake YAMATO <yamato@redhat.com>
#
# This file is part of util-linux.
#
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (... | true |
7a3d46f606fa36617427f0cb63327ff41c801869 | Shell | Gardeezy/rtorrent-QPKG | /etc/init.d/rtorrent | UTF-8 | 7,887 | 3.75 | 4 | [] | no_license | #!/bin/sh
### BEGIN INIT INFO
# Provides: rtorrent_autostart
# Required-Start: $local_fs $remote_fs $network $syslog $netdaemons
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: rtorrent script using screen(1)
# Description: rtorren... | true |
0b4e75fc21bf627062de79c80aaf0200d74ae93f | Shell | mrromadon/theportal | /ram-iptables.cgi | UTF-8 | 3,090 | 2.6875 | 3 | [] | no_license | #!/bin/bash
# LOGIC #
eval "`/u2/files/proccgi $*`"
if [ "$FORM_SUBMIT" = "SuBM1t" ]
then
case $SERVICE_PORT in
FTP) echo "-A INPUT -p tcp -s $ENTRY_VALUE -m state --state NEW -m tcp --dport 21 -j ACCEPT" >> /u/02.1.SCRIPT-RAW/IPTABLES-GEN/01.FTP;;
SSH) echo "-A INPUT -p tcp -s $ENTRY_VALUE -m stat... | true |
6d2c41b6e95e859f9c803681009b0cde7dd59ba1 | Shell | GoogleCloudPlatform/kafka-pubsub-emulator | /go/src/kafka-pubsub-emulator-gateway/build.sh | UTF-8 | 2,909 | 3.15625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Copyright 2018 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | true |
0823d5ae3821756c41418bae1b4100d78194f102 | Shell | Tedezed/bitnami-docker-mariadb | /10.2/rhel-7/rootfs/setup.sh | UTF-8 | 464 | 2.875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
# set -o xtrace
. /libfs.sh
. /libmariadb.sh
. /libos.sh
# ensure MariaDB env var settings are valid
mysql_valid_settings
# ensure MariaDB is stopped when this script ends.
trap "mysql_stop" EXIT
if am_i_root; then
ensure_user_exists "$DB_DAEMON_USER" "... | true |
5063370037a2de90f68d3e4b25eef2a03c0dd757 | Shell | niko-progress/progress-devops | /Lectures/Bash-Intro/Homework/task-1.sh | UTF-8 | 208 | 3.265625 | 3 | [] | no_license | #!/bin/bash
packages=(python3-pip python3)
for package in ${packages[@]}
do
dpkg-query --show $package &> /dev/null && \
echo "${package} is installed" || \
echo "${package} is nowhere to be found"
done
| true |
d3158b2f528441f887e022afc51d5989cbb9b20b | Shell | mohansantosh/f5-icontrol-gateway | /config/etc/service/f5-icontrol-trusted-devices-express/finish | UTF-8 | 77 | 2.703125 | 3 | [] | no_license | #!/bin/sh
NAME=node
PID=`pgrep $NAME`
echo $PID > log
date >> log
wait $PID
| true |
9ea037b473e026ad8f2772a7cf0f3457fab053ef | Shell | jordiabante/myutils | /src/simulate_fastq_pair/simulate_fastq_pair.sh | UTF-8 | 1,239 | 4.0625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
shopt -s extglob
abspath_script="$(readlink -f -e "$0")"
script_absdir="$(dirname "$abspath_script")"
script_name="$(basename "$0" .sh)"
if [ $# -eq 0 ]
then
cat "$script_absdir/${script_name}_help.txt"
exit 1
fi
TEMP=$(getopt -o hd: -l help,outdir: -n "$script_name.sh" -- "$@... | true |
399fe483f210839cc4f34ba0977db3447ee8cb3e | Shell | higuchi-toshio-intec/example-picam | /picam_viewer/picam_viewer.sh | UTF-8 | 191 | 2.578125 | 3 | [] | no_license | #!/bin/bash
if [ "${PICAM_DATA}" = "" ] ; then
export PICAM_DATA=/opt/picam_data
fi
if [ "${PICAM_PORT}" = "" ] ; then
export PICAM_PORT=8080
fi
#
cd app
python picam_viewer.py
#
| true |
5b0378e6ab48a81ba1f182b017af9876a781a43a | Shell | PeterJCLaw/srcomp-dev | /init.sh | UTF-8 | 2,537 | 3.671875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
function clone_repo {
if [ -d "$1" ]; then
echo 'Skipped: already exists.'
else
git clone --recursive https://github.com/${2:-PeterJCLaw}/$1
fi
}
for POSSIBLE_PYTHON in python3.9 python3.8 python3.7 python3 python;
do
PYTHON=$(which $POSSIBLE_PYTHON)
$PYTHON --version 2>... | true |
333d32b9bfd8d34b91d11d2542ee2e10ce2101e6 | Shell | Migacz85/dotfiles | /setup-env.sh | UTF-8 | 6,979 | 2.78125 | 3 | [] | no_license | #!/bin/bash # Script for installation and setting fresh environment
# on manjaro
# Run symlinking.sh script first
#First clone this
#git clone https://github.com/Migacz85/dotfiles.git --recurse-submodules
#Configure mirrors
sudo pacman-mirrors --fasttrack
#Upgrade system
yes | sudo pacman -Syyu
#Git config
git con... | true |
1c0b2fa005272312124d8608f8c653fc69c7b2b1 | Shell | dinAlt/yatt | /shell/yatt-untag | UTF-8 | 634 | 4 | 4 | [] | no_license | #!/bin/sh
id_cmd=${0%yatt-tag}"yatt-id -m"
usage () {
echo "\
Untags yatt's selected task.
By default, 'fzf' is used, but you can change it by setting \
YATT_FZF environment variable value.
USAGE:
$0 [TAGS]
ARGUMENTS:
TAGS Comma separated tags list (will be prompted if omitted)
FLAGS:
-h, --help Sh... | true |
e26d6198097981e0fab07d2edb6e256b6707d84b | Shell | Charlisim/laptop | /.laptop.local | UTF-8 | 3,679 | 2.5625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# Install command-line tools using Homebrew
# Usage: `brew bundle Brewfile`
# Make sure we’re using the latest Homebrew
brew update
fancy_echo() {
printf "\n%b\n" "$1"
}
brew tap caskroom/cask
# Upgrade any already-installed formulae
brew upgrade
brew install brew-cask
brew cask install dropbox
brew ... | true |
34e924e34f8cd2d51ce470bc9c87faf9a81cb1d1 | Shell | normoes/lnd_client_container | /entrypoint.sh | UTF-8 | 825 | 2.609375 | 3 | [] | no_license | #!/bin/bash
set -euo pipefail
mkdir /data/lnd
echo "$TLS_CERT" > /data/lnd/tls.cert
echo "Reference:"
echo "https://api.lightning.community/#lnd-rest-api-reference"
echo ""
echo "Example - Check channels:"
echo 'curl -w "\n" -sSL -X GET --cacert /data/lnd/tls.cert -H "Grpc-Metadata-macaroon: $READ_MAC" https://$LND_... | true |
36711b981ddd2ace6eda5d95f0ec052a9efb7199 | Shell | jayelm/rnn-syn | /recipes.sh | UTF-8 | 863 | 3.28125 | 3 | [] | no_license | #!/bin/bash
# Recipes for experiments.
# Note: these recipes don't report generalization statistics (i.e. accuracy
# on test data). TODO: Implement that, while still enabling saving test/train
# (maybe save 2 versions of messages: 1 -train, 1 -test)
# Maximum number of messages to save
SAVE_MAX=1000
set -e
# 500_20... | true |
3ce0532b6fb153bc52ffd4978a7d2ded970f9b85 | Shell | BxNxM/rpitools | /autodeployment/lib/motion_remote_video_stream_over_apache/motion_remote_video_stream_over_apache.bash | UTF-8 | 2,257 | 3.765625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
MYDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# RPIENV SETUP (BASH)
if [ -e "${MYDIR}/.rpienv" ]
then
source "${MYDIR}/.rpienv" "-s" > /dev/null
# check one var from rpienv - check the path
if [ ! -f "$CONFIGHANDLER" ]
then
echo -e "[ ENV ERROR ] \$CONFIGHANDLER path no... | true |
efaaac1f6f8649aef039a790d97bccac04d8ad97 | Shell | MostafaEllabaan/GEN2019 | /GenomeContiminationChecks/checkGenome16SrRNAForContamination.sh | UTF-8 | 2,385 | 3.328125 | 3 | [] | no_license | genomeFolder=$1; ## the folder where the genome is stored
min16SrRNALength=$2; ## the minimum length to confirm that a 16SrRNA gene is found
minIdentity=$3 ## the minimum identity of the 16SrRNA
## precompiled 16SrRNA
rRNAFolder=$DataSpace/Databases/16SrRNADB/;
rRNAblastdb=$rRNAFolder/ALL16SrRNA/all16SrR... | true |
eadc5d0fcdba2b482a7db06ee7ad93ab6d743bbf | Shell | heilerich/Dash-User-Contributions | /mne/build.sh | UTF-8 | 1,088 | 3.015625 | 3 | [] | no_license | #!/bin/bash
cd "$(dirname "$0")"
MNE_VERSION=$(sed 's/^mne==\(.*\)$/\1/' ../versions.txt)
if [ -d "mne-tools.github.io" ]; then
pushd mne-tools.github.io && git pull && popd
else
git clone --depth 1 https://github.com/mne-tools/mne-tools.github.io
fi
cd mne-tools.github.io/
doc2dash -n MNE -d ../template/ -i ../tem... | true |
241315d85de8d0e7331c3f6191392d363e08d37f | Shell | rdodson41/dot-files | /.config/yadm/bootstrap | UTF-8 | 1,102 | 2.921875 | 3 | [] | no_license | #!/usr/bin/env bash
# Install macOS package manager Homebrew.
if [[ "$(uname)" == "Darwin" ]] && ! which brew > /dev/null; then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Install all dependencies in the global Brewfile.
if which brew > /dev/null; then
b... | true |
93185941d77fb80ed2865e9ec6c39f653c77cc11 | Shell | Diegovsky/dotfiles | /wayland-common/.local/bin/wayonce.sh | UTF-8 | 521 | 2.53125 | 3 | [] | no_license | #!/usr/bin/env sh
COMPOSITOR=${1:-sway}
echo $COMPOSITOR > /tmp/wayinit.log
echo $DESKTOP_SESSION >> /tmp/wayinit.log
dbus-update-activation-environment --systemd WAYLAND_DISPLAY SWAYSOCK SSH_AUTH_SOCK DBUS_SESSION_BUS_ADDRESS XAUTHORITY XDG_CURRENT_DESKTOP=$COMPOSITOR &
xsettingsd &
dex -a -e $COMPOSITOR &
# solaar... | true |
936c0f2ff923224a7bdfb98490e462c0202a5062 | Shell | TomaNikolov/linux-encryption-benchmark | /run-nativescript.sh | UTF-8 | 170 | 2.75 | 3 | [] | no_license | #!/bin/bash
set -ex
echo "folder is " $PRIVATE_DIR
cd $PRIVATE_DIR
echo "create {N} project..."
tns create test
cd test
echo "build {N} project..."
tns build android
| true |
d5e8777770492b1dff0f5bb4e0babcd48588a56d | Shell | rogba1/example-testiam | /setup-new-iam-user.sh | UTF-8 | 1,347 | 4.1875 | 4 | [] | no_license | #!/bin/bash
# Description: A script to call the AWS CLI to create a new iam user.
# This script requires the latest version of the AWS CLI and should be run on a unix environment.
# You'll also need to make the script executable using the following command
# `chmod +x ./setup-new-iam-user.sh`
#
# Usage:
# Run from comm... | true |
dfa72c5f6614b8b2674ad6b2af03bd0c264e1909 | Shell | rutendos/mumerge_explore | /scripts/rest/03_merging_full_len_regions.sbatch | UTF-8 | 2,503 | 2.75 | 3 | [] | no_license | #!/bin/sh
#SBATCH --job-name=merging_significant_regions
#SBATCH -p short
#SBATCH --nodes=1
#SBATCH --ntasks=1 ... | true |
a458331ddcd60d918eff1d6b8a507c91002db196 | Shell | xiaoping378/elk-kubernetes | /deploy.sh | UTF-8 | 2,459 | 3.609375 | 4 | [] | no_license | #!/bin/bash
CDIR=$(cd `dirname "$0"` && pwd)
cd "$CDIR"
print_red() {
printf '%b' "\033[91m$1\033[0m\n"
}
print_green() {
printf '%b' "\033[92m$1\033[0m\n"
}
render_template() {
eval "echo \"$(< "$1")\""
}
CONTEXT=""
#CONTEXT="--context=foo"
NAMESPACE="monitoring"
ES_DATA_REPLICAS=$(kubectl get nodes --no-h... | true |
c632b70450813d83f991fec99bc6f7776d5f7045 | Shell | marcverney/marcv-node | /run-as-user.sh | UTF-8 | 892 | 4.03125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Runs a command as the LOCAL_USERID if passed in, otherwise stick with root
# Check the UID
if [ "$USERID" ] \
&& [ "$USERID" != "root" ] \
&& [ "$USERID" -gt 1 ]
then
# Create the user
useradd --create-home --shell /bin/bash --uid "$USERID" dockeruser
# Check the GID
if [ "$GROU... | true |
60fdda6c22ea2529a8358a6eb86733857fff300f | Shell | fxha/dotfiles | /install.sh | UTF-8 | 4,423 | 3.9375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
DOTFILES_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export DOTFILES_ROOT
export DOTFILES_LOG_FILE="/tmp/dotfiles.log"
DOTFILES_ONLY_DOTFILES=false
DOTFILES_NO_INTERACTION=false
DOTFILES_ACCEPT_MSCOREFONTS_EULA=false
DOTFILES_ARG_ROOT=false
DOTFILES_ARG_HELP=false
export overwrite_all... | true |
bc6309210bbe8b2ab02718dc065f2e1952ad9c02 | Shell | arkidev/OpenIDE | /deploy.sh | UTF-8 | 5,265 | 2.9375 | 3 | [] | no_license | #!/bin/bash
ROOT=$(cd $(dirname "$0"); pwd)
BINARYDIR=$(cd $(dirname "$0"); pwd)/build_output
DEPLOYDIR=$(cd $(dirname "$0"); pwd)/ReleaseBinaries
LIB=$(cd $(dirname "$0"); pwd)/lib
CSHARP_BIN=$(cd $(dirname "$0"); pwd)/Languages/CSharp/lib
if [ ! -d $BINARYDIR ]; then
{
mkdir $BINARYDIR
}
fi
if [ ! -d $DEPLOYDIR ];... | true |
089c6f7f1fc2e1c7a11c59cdfe1e9e5818f9e0b0 | Shell | pedroromanvr/iot | /bin/tunnelMqtt.sh | UTF-8 | 1,120 | 3.0625 | 3 | [] | no_license | #!/bin/bash
# This service allows a remote tunneling over http using ssh
# Primary use is to tunnel mqtt traffic over http
# corkscrew is used to make the http clientside tunneling http://www.agroman.net/corkscrew/
# command to execute is:
# ssh -i PInstance.pem ec2-user@ec2-54-89-176-127.compute-1.amazonaws.com -L 18... | true |
86ce71731c6d55e2c16b39002fa9f928c8544046 | Shell | vladimir4862/git-secret | /tests/test_main.bats | UTF-8 | 417 | 3.0625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bats
load _test_base
function setup {
set_state_git
}
function teardown {
unset_current_state
}
@test "run 'git secret' without command" {
run git secret
[ "$status" -eq 126 ]
}
@test "run 'git secret' with bad command" {
run git secret notacommand
[ "$status" -eq 126 ]
}
@test "ru... | true |
c7ae3bfa101cca58315a974de296400a04a7e116 | Shell | ciyam/ciyam | /src/src_hash | UTF-8 | 328 | 2.8125 | 3 | [
"MIT",
"Zlib",
"BSD-3-Clause",
"OML"
] | permissive | #!/bin/sh
# Copyright (c) 2019-2023 CIYAM Developers
#
# Distributed under the MIT/X11 software license, please refer to the file license.txt
# in the root project directory or http://www.opensource.org/licenses/mit-license.php.
git ls-files | xargs -l sha256sum > ~src_hash
cat ~src_hash | sha256sum | tr -d " -"
rm ~s... | true |
b7a57cb9d1d7137812d0cc9f773d5a6fcfc7470d | Shell | legit-sqa/legit | /legitimize | UTF-8 | 1,217 | 3.546875 | 4 | [] | no_license | #!/bin/sh
. legit-setup.sh
orig_head=`git symbolic-ref -q --short HEAD`
stashed=0
# Check that the current branch exists - so we can check if it has
# unstashed changed
if git show-ref --quiet refs/heads/$orig_head; then
# Check if we need to stash some changes
if git diff-index --quiet HEAD --; then
... | true |
d6ee2e1faf7219e656643f4244078d23b6b0c1ae | Shell | Xilinx/Vitis-AI | /src/vai_runtime/vart/dpu-runner/test/pack_for_trd.sh | UTF-8 | 2,614 | 2.859375 | 3 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-3-Clause-Open-MPI",
"LicenseRef-scancode-free-unknown",
"Libtool-exception",
"GCC-exception-3.1",
"LicenseRef-scancode-mit-old-style",
"OFL-1.1",
"JSON",
"LGPL-2.1-only",
"LGPL-2.0-or-later",
"ICU",
"LicenseRef-scancode-... | permissive | #
# Copyright 2022-2023 Advanced Micro Devices Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | true |
3260242662bc84abc1a7e794ab7d9ac9e0b8f95d | Shell | NewMai/DLL_TEST | /cpp_with_class/compile.sh | UTF-8 | 1,064 | 2.515625 | 3 | [] | no_license |
# 需要打开 VS 的开发环境控制台:比如:【x86 Native Tools Command Prompt for VS 2019】
#################################################################################
# 编译 DLL
# For vs2019
# 关闭输出版权信息 /nologo
# 方法一:
# 在 LINK 的时候加上 /DEBUG 信息,就可以包含 调试信息了
# Compile
cl /c /Od /Zi /EHsc /GS- /MDd /nologo /Fd:get_rand.pdb get_rand.cpp
# ... | true |
f95bd516d1f12ddbdfa67b11b53f629772b2f745 | Shell | aan680/repo_senseshifteval | /scripts/test.sh | UTF-8 | 2,570 | 3.078125 | 3 | [] | no_license | #input files with columns [target, POS, t]. Save as targets.csv in the corresponding dataset folder (data/WSE or data/HW). t expresses time of change.
folder_hw="data/HW+"
folder_hw28="data/HW"
folder_wsct="data/WSCT"
folder_logs="data" #for extra output, for reference
hw_input="$folder_hw/sourcedata.csv"
wsct_input="... | true |
f8626065b94e0c7d86b8b5bda975d49966aee3f3 | Shell | GeorgeTaveras1231/git-gpg | /src/git-gpg-utils/diff.bash | UTF-8 | 411 | 3.34375 | 3 | [] | no_license | diff() {
local anchor_version=$1
for file in $(_hidden-files); do
local file_relative_path=$(echo $file | sed -e "s#$project_root/##")
git show $anchor_version:$file_relative_path | \
gpg --decrypt | \
git diff --no-index -- - $(_raw-file-for $file)
done
}
_register-command diff
_diff-signatur... | true |
e1c71cefe13a75b472f0e7861db98cb8ad959058 | Shell | BenLorantfy-Archive/FishBot | /deploy-vm.sh | UTF-8 | 4,887 | 3.875 | 4 | [] | no_license | #!/bin/bash
# =====================================================================================
# Script: deploy-vm.sh - benlorantfy.com/fishbot
# Author: Ben Lorantfy (ben@lorantfy.com)
# Last Updated: July 6th 2017
# =====================================================================================
# This scr... | true |
f2a069fc36335c9ce653f8a5f7356d91c40a5d91 | Shell | apluslms/grade-java | /bin/move-to-package-dirs | UTF-8 | 2,065 | 4.46875 | 4 | [
"MIT"
] | permissive | #!/bin/sh -e
# Moves or copies scala/java files to package directories.
delim=' '
filter='*.java *.scala'
verbose=
while [ "$1" ]; do
case "$1" in
-d) delim=$2 ; shift ;;
-f) filter=$2 ; shift ;;
-v) verbose="-v" ;;
--) shift ; break ;;
-*) echo "ERROR: Invalid option '$1' f... | true |
95402011c4cf167c939284a3c59c181dfe94d96d | Shell | clintval/aur-packages | /python-shellingham/PKGBUILD | UTF-8 | 1,395 | 2.96875 | 3 | [
"MIT"
] | permissive | # Maintainer: Clint Valentine <valentine.clint@gmail.com>
_name=shellingham
pkgbase='python-shellingham'
pkgname=('python-shellingham' 'python2-shellingham')
pkgver=1.2.4
pkgrel=1
pkgdesc="Detect what shell the current Python executable is running in."
arch=('any')
url=https://github.com/sarugaku/"${_name}"
license=('... | true |
c84173fdad11d073729011d16ead2950dec8ae2c | Shell | joenery/demux | /wait4rtacomplete | UTF-8 | 882 | 3.328125 | 3 | [] | no_license | #!/bin/bash
#
#Must be run from an Illumina run directory
#
#$1 argument is for basemask
#basemasks for 10x
# 1) basemask="Y28N*,I8N*,Y98N*" ;;
# 2) basemask="Y26N*,I8N*,N*,Y98N*" ;;
# 3) basemask="Y28N*,I8N*,N*,Y98N*" ;;
# 4) basemask="Y28N*,I10N*,I10N*,Y98N*" ;;
source "/gale/netapp/home/seq/b... | true |
85afb92c9d1696aec3d39a16eed6f902af6b5a15 | Shell | Zane-/dotfiles | /tmux.sh | UTF-8 | 976 | 3.46875 | 3 | [] | no_license | #!/bin/bash
mkdir -p ~/dotfiles/backups
if [ -x "$(command -v apt-get)" ]; then
sudo apt-get update
else
if [ -x "$(command -v brew)" ]; then
brew update
fi
fi
if [ ! -x "$(command -v tmux)" ]; then
if [ -x "$(command -v apt-get)" ]; then
sudo apt-get install tmux
else
if [ -x "$(command -v brew)" ]; then... | true |
cc5327fc7a5ab49359c86d6bb4e899a74722db96 | Shell | petronny/aur3-mirror | /python2-pyclewn/PKGBUILD | UTF-8 | 923 | 2.515625 | 3 | [] | no_license | # Maintainer : Lenin Lee <lenin.lee (at) gmail (dot) com >
# Contributor: LUO, Jian <jian (dot) luo (dot) cn (at) gmail (dot) com >
# Ivan Sichmann Freitas <ivansichfreitas (at) gmail (dot) com>
pkgname=python2-pyclewn
pkgver=1.11
pkgrel=1
pkgdesc="A python2 version of gdb support for vim"
license=('GPL2'... | true |
46cf27a0e9519d53689956fba047c58387270851 | Shell | LUGM/bourne_again_2018 | /day2_bash/3.sh | UTF-8 | 160 | 3.046875 | 3 | [] | no_license | #!/usr/bin/env bash
#passing arguments
echo "Number of arguments passed: $#"
echo "Script name: $0"
echo "$1 has been copied to $2"
cp -R $1 $2
echo "$@"
ls
| true |
be9ce196487774701b3b2ff6f3a03e6f4aa81add | Shell | Varying-Vagrant-Vagrants/VVV | /config/homebin/switch_php_debugmod | UTF-8 | 2,659 | 4.0625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -eo pipefail
source /srv/provision/provision-helpers.sh
# Grab the currently active PHP mods, and lowercase it for comparison
enabled_mods=$(php -m)
enabled_mods=${enabled_mods,,}
# These PHPMods all interfere with each other in some way
phpmods=(
"xdebug"
"xhgui"
"tideways_xhprof"
"pcov"... | true |
51ccde0d7b27eaad6f24be71b16d4bd7848ca789 | Shell | scopely/skyline | /bin/webapp.d | UTF-8 | 1,290 | 4.15625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#
# This is used to start/stop webapp
BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/.."
RETVAL=0
start () {
rm -f $BASEDIR/src/webapp/*.pyc
/usr/bin/env python $BASEDIR/src/webapp/webapp.py start
RETVAL=$?
if [[ $RETVAL -eq 0 ]]; then
echo "started webapp"
... | true |
976b36134d4d2d76c2fbfd275335a66af05029f4 | Shell | eric-s-s/tdd_python | /tcr.sh | UTF-8 | 170 | 2.578125 | 3 | [] | no_license | #!/usr/bin/env bash
if pytest ; then
black .
git add .
git commit -m "$(echo $@)" # read the arguments as the commit message
fi
git reset --hard
git status
| true |
7c359f2f9fab97160bb8c4b13af79d7bb9256639 | Shell | rikkedag/BlogPostAnalysis | /sanitizeNew.sh | UTF-8 | 1,825 | 3.96875 | 4 | [] | no_license |
# This script expects to be executed in a folder with a subfolder called blogs,
# containing the .xml files that should be sanitized. Results are written to a
# folder called sanblogs.
# Create output folder
mkdir -p sanblogs1
# Loop over input files (with path prefix)
for pathname in ./blogs/*.xml
do
#Progress re... | true |
c82c6b43b52faa8b7e6e575b6467160d8af06627 | Shell | karunmatharu/Android-4.4-Pay-by-Data | /external/dnsmasq/contrib/slackware-dnsmasq/dnsmasq.SlackBuild | UTF-8 | 1,633 | 3.234375 | 3 | [
"GPL-3.0-only",
"GPL-2.0-only",
"MIT"
] | permissive | #!/bin/sh
CWD=`pwd`
PKG=/tmp/package-dnsmasq
VERSION=2.24
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
if [ "$ARCH" = "i386" ]; then
SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
elif [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
elif [ "$ARCH" = "x86_64" ]; ... | true |
74d524259f727a9f64856e83396a68c50d6829ba | Shell | JinnLynn/MacOSX-Kits | /opt/shell/commands/network.sh | UTF-8 | 946 | 3.21875 | 3 | [
"MIT"
] | permissive | kits_ip() {
local ip="$1"
if [[ -z "$ip" ]]; then
ip=$(curl -s http://ip.3322.net)
echo "$ip"
fi
local res=$(curl -s "http://ip.taobao.com/service/getIpInfo.php?ip=$ip")
local ret=$?
[[ "$ret" -ne 0 ]] && echo "fetch ip info fail. curl retcode: $ret" && return 1
# echo $res
... | true |
c70bc2e8a39e76f8c067e79b4edfa002383cf0c2 | Shell | frzleaf/begin | /bash/awk1.sh | UTF-8 | 266 | 2.515625 | 3 | [] | no_license | 1.
$ history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | sort -nr | head -n10 | column -c3 -s " " -t
2.
$ awk '!a[$0]++' ./logs
3.
$ awk '{gsub(/ /, "", $0); print } ' ./file_with_heading_space
| true |
f64598ea3f5f4a739d60565ba5916da373fae641 | Shell | jonohart/voltha | /docker/config/app-install.sh | UTF-8 | 760 | 3.375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
HERE=$(pwd)
OARS=$(find $DOWNLOAD_ROOT -name "*.oar")
for oar in $OARS; do
cd $HERE
echo "Installing application '$oar'"
rm -rf $APP_INSTALL_ROOT
mkdir -p $APP_INSTALL_ROOT
cd $APP_INSTALL_ROOT
cp $oar $APP_INSTALL_ROOT
unzip -oq -d . $APP_INSTALL_ROOT/$(basename $oar)
name... | true |
d8918fef790980883d4ac97656bfbc0d62c1bf48 | Shell | Environmental-Informatics/04-introduction-to-linux-os-MingdaLu270 | /Lab04/my_backup.sh | UTF-8 | 634 | 4.125 | 4 | [] | no_license | ## !/bin/bash
## Back up a single project directory
## Mingda Lu
# user input directory
if [ $# !=1 ]
then
echo 'input directory'
exit
fi
# check if the directory exists
if [ ! -d ~/folder/$1 ]
then
echo 'the given directory does not seem to exist (possible typo?)'
exit
fi
date=`date +%F`
# do we already h... | true |
87c7b7b0f1a7fa26fdebc549ab2607a8920a35c0 | Shell | mikezter/KP.tmbundle | /mategem.sh | UTF-8 | 550 | 3.765625 | 4 | [] | no_license | #!/bin/sh
gemname=$1
gempath=''
bundleshow() {
gempath=`bundle show $gemname`
rc=$?
if [[ $rc -ne 0 ]] ; then
echo $gempath
return 1
fi
return 0
}
gemwhich() {
gemlib=`gem which $gemname`
rc=$?
if [[ $rc -ne 0 ]] ; then
echo $gemlib
return 1
fi
gempath=`echo $gemlib | sed 's/... | true |
45fc3ffc799ca2e2fbbfcf408e9ce23bff107c0a | Shell | jivkok/dotfiles | /sh/finds.sh | UTF-8 | 4,071 | 3.671875 | 4 | [
"MIT"
] | permissive | # Returns whether the given command is executable/aliased
_has() {
return $(command -v "$1" >/dev/null 2>&1)
}
# fzf + rg/ag
if _has fzf; then
if _has fd; then
export FZF_DEFAULT_COMMAND="fd --type f --type l --follow --hidden --exclude .git"
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
_fzf_compge... | true |
acf5d30eae55d8e351a958b8451fddb86f27b9de | Shell | tobor88/Bash | /generate_all_uppercase_lowercase_combos_for_a_word.sh | UTF-8 | 752 | 3.796875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# This is a bash script I use to convert a word into every possible uppercase and lowercase combination
#
# EXAMPLE USAGE:
# ./generate_all_uppercase_lowercase_combos_for_a_word.sh osbornepro
# osbornepro
# osborneprO
# osbornepRo
# osbornePro
# osbornEpro
# osborNepro
# osboRnepro
# osbOrnepro
# osBornep... | true |
2b762ebbc1edf73cac4dbd7abb98f63e490b8103 | Shell | cha63506/SERVICE | /TASK/count.sh | UTF-8 | 283 | 3.34375 | 3 | [] | no_license | set_env(){
file_points=/tmp/count
}
run(){
if [ -f $file_points ];then
num=`cat $file_points`
let num+=1 || { let num=0; }
else
let num=0
fi
echo $num > $file_points
xcowsay "$num Rounds !" &
}
#reset1 &
steps(){
set_env
run
}
steps
| true |
ce0269a6ae3f8f84cc849f5e7c22ab755def511d | Shell | BU-NU-CLOUD-F19/Curating_Log_Files | /src/Elastic+Kibana/elasticsearch_automation.sh | UTF-8 | 1,185 | 2.90625 | 3 | [] | no_license | #!/bin/bash
yum install -y java-1.8.0-openjdk
rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
cat >>/etc/yum.repos.d/elk.repo<<EOF
[ELK-6.x]
name=ELK repository for 6.x packages
baseurl=https://artifacts.elastic.co/packages/6.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
e... | true |
18e5916593141c0aadd688ce1ccba843ce88a018 | Shell | sayali199918/Shell_Programming_Construct | /Repetitions_18/While_loop/PowerOfTwo.sh | UTF-8 | 198 | 3.265625 | 3 | [] | no_license | #!/bin/bash -x
read -p "enter the power:" n
ans=1
i=1
while [ $n -ne 0 ] && [ $ans -lt 256 ]
do
ans=$((2 * $ans))
echo "2^$i=$ans"
i=$(($i + 1))
n=$(($n - 1))
done
| true |
b44858c4623f9c21304727995cf5f22990ecb62d | Shell | jordanrinke/linux_configs | /latest/bin/wpg-install.sh | UTF-8 | 7,685 | 3.890625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
__ScriptVersion="0.1.5";
if [ -n "${XDG_CONFIG_HOME}" ]; then
CONFIG="${XDG_CONFIG_HOME}"
else
CONFIG="${HOME}/.config"
fi
if [ -n "${XDG_DATA_HOME}" ]; then
LOCAL="${XDG_DATA_HOME}"
else
LOCAL="${HOME}/.local/share"
fi
THEMES_DIR="${HOME}/.themes";
TEMPLATE_DIR="${PWD}/wpgtk-templates... | true |
d3aea69860d393482e9b3e1b400e49118b3994dd | Shell | GeorgeT94/DevOpsJava | /script2.sh | UTF-8 | 1,254 | 2.828125 | 3 | [] | no_license | #!/bin/bash
echo "script running..."
sudo apt-get update
sudo apt-get upgrade
sudo cp /tmp/shared/java.tar.gz /opt
sudo cp /tmp/shared/maven.tar.gz /opt
cd /opt
sudo tar zxvf java.tar.gz
sudo tar zxvf maven.tar.gz
echo "files moved"
update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_45/bin/java 100
update-... | true |
f06036944faf30f798d32c0cb72cd219f2219d19 | Shell | h2o/h2o | /src/h2olog/misc/autopep8 | UTF-8 | 357 | 3.046875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
SCRIPT_DIR="$PWD/$(dirname $0)"
export PYTHONPATH="$SCRIPT_DIR/.pip3/lib/python3.5/site-packages"
export PATH="$SCRIPT_DIR/.pip3/bin:$PATH"
if ! autopep8 --version > /dev/null 2>/dev/null
then
echo "autopep8 is not found. Please install it by the following command:"
echo "sudo pip3 install pep8 autop... | true |
f7bce5894ce0c0ae039ba6e97785394a8b17fc44 | Shell | rhcad/vgios-demo | /build.sh | UTF-8 | 1,522 | 3.015625 | 3 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | #!/bin/sh
# Type './build.sh' to make iOS libraries.
# Type './build.sh -arch arm64' to make iOS libraries for iOS 64-bit.
# Type './build.sh clean' to remove object files.
if [ ! -f ../vgcore/ios/build.sh ] ; then
git clone https://github.com/rhcad/vgcore ../vgcore
fi
if [ ! -f ../vgios/build.sh ] ; then
git ... | true |
e97beb6fb3ebf0ac14a32ee07219a27c76c56360 | Shell | angeljr196/scripting | /script2.sh | UTF-8 | 232 | 2.75 | 3 | [] | no_license | #/bin/bash
sumando1=4
sumando2=6
let resto #tambien puedo crear varible con let
echo $sumando1 + $sumando2
echo sumando1 + sumando2
((resto=sumando1+sumando2)) #operaciones aritmeticas con (())
echo $resto
exit 0 #termino con exito
| true |
3d2d807357101eed575db6943d9cbc46834fb353 | Shell | psachin/system-config | /bin/aof | UTF-8 | 1,821 | 3.75 | 4 | [] | no_license | #!/bin/bash
if echo $SHELLOPTS | grep xtrace; then
export SHELLOPTS
fi
if test -d "$1" -a $# = 1; then
set -- "$(get-newest-file "$1")"
fi
if test $# = 0; then
set -- "$(get-newest-file ~/today/)"
fi
archive_mimes=(
application/x-compressed-tar
application/x-bzip-compressed-tar
application/x... | true |
16c40f8880ffc5742612d7a9df9a0eb3efdb444c | Shell | utopia-repository/utopia-packages | /build | UTF-8 | 603 | 3.9375 | 4 | [] | no_license | #!/bin/bash
trap 'exit 1' INT TERM
cd "$(dirname "${BASH_SOURCE[0]}")"
if [[ -z "$1" || "$1" == "all" ]]; then
PACKAGES=$(find . -maxdepth 1 -mindepth 1 -type d ! -name '.git')
else
PACKAGES="$@"
fi
echo "Packages to build: $PACKAGES"
SUCCESSES=()
FAILURES=()
for pkg in $PACKAGES; do
pushd "$pkg"
pkg="$(basename... | true |
3149789c45aa56e534ae803a6b9ac5cb955bdbd8 | Shell | bymealpal/docker-parse-server | /scripts/import-mongo-data | UTF-8 | 696 | 3.1875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
BACKUP_PATH=${1:-$HOME/Dropbox/MealPass/ENGINEERING/parse/55fe3a5f-eb48-4b6d-968a-054fe60a85f4_1472093260_export}
echo "Importing from: $BACKUP_PATH"
SCHEMAS=$BAKCUP_PATH/SCHEMA.json
DATA=$BACKUP_PATH/.json
function do_import {
for f in $SCHEMAS $DATA; do
if [ ! -s $f ]; then
contin... | true |
23679eee55495483628797a44b68ee6c981c628f | Shell | CodeProBono/polilist | /tests/integration/local-yass.sh | UTF-8 | 430 | 3.1875 | 3 | [] | no_license | #!/bin/sh
PARSER="local yass"
COLUMN_LIST="suburb mobile postcode address phone1 firstname surname email fax phone level state electorate"
MIN_RECORDS=9
export PARSER COLUMN_LIST MIN_RECORDS
if [ "$(which ./generic-csv-validator.sh 2>/dev/null)" = "" ]; then
echo "$0: generic-csv-validator.sh not found. Are you ... | true |
9013e3ab63d56f567e71a30d779428ee81380689 | Shell | kitech/triline | /myscripts/radioget_xml_to_smplayer_radio_list.sh | UTF-8 | 2,582 | 3.15625 | 3 | [] | no_license | #!/bin/sh
# format
# #EXTM3U
# #EXTINF:0,vvv,
# mms://fff
# #EXTINF:0,fff,
# mms://ttt
############ html mode
######1 #########2
# http://radioget.googlecode.com/svn/trunk/radiolist.xml
radio_get_xml=$HOME/.config/smplayer/radiolist.xml
smplayer_audio_file=$HOME/.config/smplayer/radio.m3u8
temp_audio_file=/... | true |
fc52bd87012be3864696ce34acbcef4108c0cf2b | Shell | laggardkernel/spacezsh-prompt | /scripts/version.sh | UTF-8 | 339 | 3.140625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env zsh
main() {
new_version=$(command grep -E '"version": "v?([0-9]+\.){1,}' package.json | cut -d\" -f4 2> /dev/null)
filename="$PWD/spacezsh.zsh"
sed -e "s/SPACESHIP_VERSION='.*'/SPACESHIP_VERSION='$new_version'/g" "$filename" >"$filename.bak"
mv -- "$filename.bak" "$filename"
git add spacezs... | true |
b8ce6abfde37bee5fbe69cf163a758a09fce8957 | Shell | twosigma/Cook | /travis/show_executor_logs.sh | UTF-8 | 345 | 2.984375 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | #!/bin/bash
set -v
echo "Printing out all executor logs..."
while read path; do
echo "Contents of ${path}";
cat "${path}";
echo "------------------------------------"
done <<< "$(find ${GITHUB_WORKSPACE}/travis/.minimesos -name 'stdout' -o -name 'stderr' -o -name 'executor.log')"
${GITHUB_WORKSPACE}/travi... | true |
8396bd6d1e5ce3a641bb1a6957376a16b86e5a49 | Shell | ekapujiw2002/Ubidots-Lua-OpenWRT-router-Ubidots-Real-time-data-monitoring | /example.bash | UTF-8 | 693 | 3.109375 | 3 | [] | no_license | #!/bin/bash
api_key="your api key here"
deviceID="your deviceID here"
value=10 #post this value
#obtain a token
my_token=$(bash -c "/usr/lib/lua/ubidots.lua -token "$api_key)
echo "Token: "$my_token
#post data to Ubidots
bash -c "/usr/lib/lua/ubidots.lua -post "$api_key" "$deviceID" "$value
#retrieve last value from... | true |
c0ebdda3e2b24529811e10c94999b84f7771be25 | Shell | dspjm/earlymodules | /scull/1/1.1/1.1.0/scull_unload | UTF-8 | 184 | 2.90625 | 3 | [] | no_license | #!/bin/bash
device_count=4
device="scull"
major=`grep -m 1 scull /proc/devices | cut -d ' ' -f 1`
for (( i=0 ; i<device_count ; i++ )) ; do
rm /dev/scull${i} ; done
rmmod scull.ko
| true |
62ee21808c54e0a417d121f6d9e93a1081d0a4bb | Shell | almosting/omx_il_g | /vc8000d/software/linux/vcmd_pcidriver/register/create_swreg_struct.sh | UTF-8 | 18,624 | 3.703125 | 4 | [] | no_license | #!/bin/bash
#Copyright 2019 Verisilicon(Beijing) Co.,Ltd. All Rights Reserved.
#Author: carl.li@verisilicon.com (Carl Li)
#
#Description: Creates code for various purposes from
# given swhw register definition
if [ -z "$1" ] || [ ! -e "$1" ]
then
echo " This script produces swregisters.h, swregiste... | true |
518c47dbd88811856c2c0e361a9f2492668080be | Shell | spartacus-technologies/Auxilo-box | /Devices/Voice/voice.sh | UTF-8 | 967 | 3.03125 | 3 | [] | no_license | #!/bin/bash
# arecord -q -t wav -d 5 audio.wav
arecord -q -D hw:1,0 -f s16_le -c 1 -d 15 > audio.wav
sox -q audio.wav -r 16000 -b 16 -c 1 audio.flac
language=$1
output="NO_OUTPUT"
if [[ "$language" == "US" ]]; then
output=$(wget -q -U "rate=16000" -O - "http://www.google.com/speech-api/v1/recognize?lang=en-US&cli... | true |
cb310bd53ef12590427d421d0b7b79bbc4be3677 | Shell | BIT-Studio-1/project-21s1-project-andromeda | /room/roomgenerator.sh | UTF-8 | 82 | 2.609375 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
for number in {00..99}
do
cp room.skeleton $number.room
done
exit 0
| true |
bca1f9cd61a1e74e9b7664c33cb55b110008c494 | Shell | fracz/photo-signatures | /fix-file-dates.sh | UTF-8 | 994 | 3.59375 | 4 | [] | no_license | #!/bin/bash
if (( $# != 1 )); then
echo -e "Usage: $0 directory"
exit 1
fi
cd "$1" || exit 1
for name in *
do
date="$(echo "$name" | sed -r 's/(.+)_([0-9]{8})_([0-9]{4})([0-9]{2}).+/\2\3.\4/')"
if [[ $date == ????????????.?? ]]
then
touch -amt "$date" "$name"
echo "Updated "$name
else
echo "S... | true |
4f83398f100f673af7b4bfffcab8220d3bb257e4 | Shell | angeloko23/wpt.fyi | /util/docker-dev/web_server.sh | UTF-8 | 1,341 | 3.828125 | 4 | [
"LicenseRef-scancode-w3c-03-bsd-license",
"BSD-3-Clause"
] | permissive | #!/bin/bash
# Start the Google Cloud web development server in `wptd-dev-instance`
# (started using ./run.sh).
DOCKER_DIR=$(dirname $0)
source "${DOCKER_DIR}/../commands.sh"
source "${DOCKER_DIR}/../logging.sh"
source "${DOCKER_DIR}/../path.sh"
WPTD_PATH=${WPTD_PATH:-$(absdir ${DOCKER_DIR}/../..)}
WPTD_CONTAINER_HOS... | true |
e0db9be2b1df272acdd096ca5f8f757af5d0b887 | Shell | stevenvandenbrandenstift/libc | /ports/rust.sh | UTF-8 | 1,108 | 2.890625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
source environ.sh
UNSTABLE
DEPENDS llvm
GIT=https://github.com/ids1024/rust.git
GIT_BRANCH=compile-redox
DIR=rust
unset AR AS CC CXX LD NM OBJCOPY OBJDUMP RANLIB READELF STRIP
function rustbuild_template {
case $1 in
build)
cp ${BUILD}/../ports/rust/* "${BUILD}/${DIR}"
... | true |
2acd5e264524c306e36277cbe7f2103561a4e202 | Shell | timmyw/pocket2rm | /confs/installconfig.sh | UTF-8 | 224 | 3.234375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
ABSPATH=$(readlink -f $0)
ABSDIR=$(dirname $ABSPATH)
CONFIG=pocket2rm.yaml
if [ $# -eq 1 ]; then
CONFIG=$1
fi
rm -f $HOME/.config/pocket2rm.yaml
ln -s $ABSDIR/../confs/$CONFIG $HOME/.config/pocket2rm.yaml
| true |
890349b7d2acfde2cef111fed80ef457e524d94a | Shell | apekshachauhan21/Shell-Scripting | /apeksha_submission_opt_project.bash | UTF-8 | 2,682 | 4.3125 | 4 | [] | no_license | #!/bin/bash
#checking if for the command usage
if [[ $# -ne 3 ]]; then
echo "USAGE: $0 username/UID groupname/GID abs=/directory_path or rel(wrt to pwd)=path"
exit 1
fi
#checking if an executable file already exits or not
file="executable_files.txt"
if [[ -f "$file" ]];then
rm "$file"
fi
#checking for the relat... | true |
cc157baab2d5c40f1262920b4bfc21469ff08450 | Shell | rflynn/biosensor | /util/convert.sh | UTF-8 | 429 | 3.4375 | 3 | [] | no_license | #!/bin/bash
#set -x
dir=${1:-vid-tag}
du -hcs "$dir"
IFS=$'\n'
for f in $(find "$dir" -type f -name '*.jpg'); do
#echo "$f"
quality=$(identify -verbose "$f" | grep Quality | cut -c 12-)
if [[ $quality -gt 85 ]]; then
echo "$f"
#echo "$quality -gt 85"
tmp="${f/%.jpg/-q85.jpg}"
... | true |
ffa9ab7c16e98b1ce8df282a66da5f2eab6e9253 | Shell | ericdwang/dotfiles | /dotfiles/.config/i3blocks/temperature | UTF-8 | 460 | 3.53125 | 4 | [] | no_license | #!/bin/sh
temperature=0
total=0
# Calculate the average temperature across all thermal zones
for temp in /sys/class/thermal/thermal_zone*/temp; do
temperature=$((temperature + $(cat "$temp")))
total=$((total + 1))
done
temperature=$((temperature / (total * 1000)))
echo "$temperature°C"
echo "$temperature°C"
... | true |
15e880ad6ad1453772cdd8d31612be2300c6d9ef | Shell | PanosFirmpas/jupyter_on_hpc | /notebook_job | UTF-8 | 1,554 | 2.609375 | 3 | [] | no_license | #!/bin/bash
#
#SBATCH --job-name=notebook
#SBATCH --output=/PATH/TO/NOTEBOOK/logs/slurm-notebook-%j.o.out
#SBATCH --error=/PATH/TO/NOTEBOOK/logs/slurm-notebook-%j.e.out
#
#SBATCH --ntasks=1
#
#SBATCH --nodes=1
#SBATCH --cpus-per-task=4
#### SBATCH --exclude=nodo[01-12]
##### #$ -S /bin/bash
##### #$ -N notebook
####... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.