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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
2060ff56eba2e0ee3f63e2e986737cb3e1602062 | Shell | msys2/MINGW-packages | /mingw-w64-metis/PKGBUILD | UTF-8 | 3,242 | 2.734375 | 3 | [
"BSD-3-Clause"
] | permissive | # Maintainer: Ray Donnelly <mingw.android@gmail.com>
_realname=metis
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=5.1.0
pkgrel=4
pkgdesc="Serial Graph Partitioning and Fill-reducing Matrix Ordering (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'c... | true |
8d3148528f89d62a8df964a0b1f87116df2beab8 | Shell | digo-smithh/Simple-Shell-Calculator | /calculator.sh | UTF-8 | 718 | 3.5625 | 4 | [
"MIT"
] | permissive | # !/bin/bash
# Take user Input
echo "Enter two numbers: "
read a
read b
# Input type of operation
echo "Enter the type of operation:"
echo "1. Addition"
echo "2. Subtraction"
echo "3. Multiplication"
echo "4. Division"
read ch
# Verificating
if [ $ch -eq 4 ] && [ $b -eq 0 ]
then
echo "Division by zero is... | true |
d3c25bf1179454e6abe5369408290bd73b5450e2 | Shell | hmit/udd | /scripts/fetch_ddtp_translations.sh | UTF-8 | 982 | 3.6875 | 4 | [] | no_license | #!/bin/sh
# Translation files will be taken from the mirror available on the local machine
# However, we are doing some housekeeping to register what translations did really
# changed and need to be importet and which one are not touched by translators
# and thus can be ignored.
set -e
TARGETPATH=$1
MIRROR=$2
for in... | true |
f764316229edfeb7b722999c8c048fec4cc315f6 | Shell | Mattlk13/bsd | /script/freebsd/minimize.sh | UTF-8 | 639 | 3.515625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh -ue
echo "==> Zero out the free space to save space in the final image";
COMPRESSION=$(zfs get -H compression zroot | cut -f3);
zfs set compression=off zroot/ROOT/default;
dd if=/dev/zero of=/EMPTY bs=1m &
PID=$!;
avail=$(zfs get -pH avail zroot/ROOT/default | cut -f3);
while [ "$avail" -ne 0 ]; do
sleep... | true |
bcd3801114150044e08863fbb77d4292f96d16e2 | Shell | dinojr/configuration | /bin/rubber_png | UTF-8 | 172 | 2.671875 | 3 | [] | no_license | #!/bin/bash
NAME=${1%.tex}
NAMETEX="$NAME.tex"
NAMEPS="$NAME.ps"
NAMEPNG="$NAME.png"
rubber --ps $NAMETEX
convert -trim $NAMEPS $NAMEPNG
rubber --ps --pdf --clean $NAMETEX
| true |
217eeeee9d039b97b16825ebf2aef4759f826f50 | Shell | kevincolyar/ruby_oracle_libs | /linux_x86_32/instantclient_11_1/sdk/ott | UTF-8 | 529 | 2.921875 | 3 | [] | no_license | #! /bin/sh
# Script for running ott in instant client.
# Before running this script:
# set jdk1.5/bin in your PATH
# set LD_LIBRARY_PATH to include the directory containing the instant client
# libraries
# set ottclasses.zip, ojdbc5.jar, orai18n.jar as part of your CLASSPATH
while [ $# -gt 0 ]
do
ca... | true |
33add58eae1a0c3f09597e0ec23d1cdd453f631e | Shell | adamtaylorFR/advent2020 | /day3/treesTwo.sh | UTF-8 | 682 | 3.078125 | 3 | [] | no_license | #!/bin/bash
input="day3/input"
width=31
sideStep=1
side=1
downStep=1
downs=0
opens=0
trees=0
skip=0
# ......##.###..##.#.###......#.#
while IFS= read -r line
do
echo "$line"
echo "$square and $downs, $side "
if [ $skip -eq 0 ]; then
skip=1
side=$(( (1 + $sideStep * $downs) % $width))
square="${line:$(... | true |
bf13ee0e34a439efb7e52b1446a418f9f09fae38 | Shell | satai-work/cassandra | /!run.sh | UTF-8 | 420 | 2.8125 | 3 | [] | no_license | #!/bin/bash
if ! [ -d cassandra1.config ] ;
then
mkdir cassandra1.config
fi
if ! [ -e cassandra1.config/cassandra.yaml ] ;
then
cp ./cassandra.yaml.template ./cassandra1.config/cassandra.yaml
fi
if ! [ -d cassandra2.config ] ;
then
mkdir cassandra2.config
fi
if ! [ -e cassandra2.config/cassandra.yaml ] ... | true |
bd9d4f01b6fe12c2fa9e0cce0c816a21c4a11b94 | Shell | hubtype/botonic | /scripts/ci/old/prepare-packages.sh | UTF-8 | 611 | 3.34375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
BIN_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$BIN_DIR/../.." || exit 1
cd packages || exit 1
# clean package, clean install, build
for package in botonic-*; do
cd "$package" || exit
echo "Preparing $package..."
echo "===================================="
echo "Cleaning..."
nic... | true |
b37d720368c25dc53128fe50c45537b839301f53 | Shell | Mabahe/typo3-testing-docker-containers | /php56/enable_repos.sh | UTF-8 | 418 | 2.5625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
source /pd_build/buildconfig
set -x
apt-get update
# ondrej with php 5.6
echo deb http://ppa.launchpad.net/ondrej/php/ubuntu bionic main > /etc/apt/sources.list.d/php.list
# ondrej key - the recv-keys part takes a bit of time, so it's faster to receive multiple keys at once.
apt-key adv --keyserve... | true |
0b38282dbe60bb7556278866ca34c54e7a18f312 | Shell | AlxBouras/Compute-Canada-Guidelines | /generic_array_launcher.sh | UTF-8 | 1,432 | 3.15625 | 3 | [] | no_license | #!/bin/bash
#SBATCH --array=1-10 # Launch an array of 10 jobs
#SBATCH --account=def-someuser # Account with resources
#SBATCH --cpus-per-task=6 # Number of CPUs
#SBATCH --gres=gpu:1 ... | true |
7d016910899d192e3e8ac3fbc6eac8a04e253fde | Shell | tochofr/dotfiles | /bashrc | UTF-8 | 1,813 | 3.265625 | 3 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | # If not running interactively, don't do anything
[ -z "$PS1" ] && return
# ====== Set-up variables ======
curPlatform=$(uname)
lang="en_US.UTF-8"
curEditor=$(which vim)
# ==== End Set-up variables ====
if [[ $curPlatform == "Darwin" ]]; then
export CLICOLOR=1
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
fi
export... | true |
507726da65c967dd9c58faf062e30b02dfff150a | Shell | jenkinsci/tm4j-automation-plugin | /setup.sh | UTF-8 | 2,379 | 3.359375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -e
server=http://localhost:8080/jenkins
echo "[==== SETUP ====] Starting Zephyr Scale Jenkins plugin setup..."
is_running() {
if [ 200 == $(curl -o /dev/null -s -w "%{http_code}\n" $server/jnlpJars/jenkins-cli.jar) ]
then
true
else
false
fi
}
wait_start() {
echo "[==== SETUP ====] St... | true |
c69746e47b10fd5cb9894de03b1bb2fc60c63ea2 | Shell | nasa/astrobee | /scripts/git/configure_isort_paths.sh | UTF-8 | 507 | 3.6875 | 4 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LicenseRef-scancode-philippe-de-muyter",
"MIT",
"MPL-2.0",
"MPL-1.0",
"LGPL-2.1-or-later",
"Apache-2.0",
"LGPL-2.1-only",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-generic-cla",
"GPL-3.0-only",
"LGPL-3.0-only",
"LicenseRef-scancode-pro... | permissive | #!/bin/bash
# Updates the src_paths setting in the .isort.cfg file at the top
# level. See that file for more details.
thisdir=$(dirname "$0")
srcdir=$(cd $thisdir/../.. && pwd)
cd $srcdir
# Generate a comma-separated list of folders containing *.py files
pydirs=$(find . -name "*.py" -print0 | xargs -0 dirname | cu... | true |
0e219614a967d0025d02ddcfb318918fbd1e9f20 | Shell | dmytro/dotfiles | /zsh/prompt.zsh | UTF-8 | 837 | 2.921875 | 3 | [] | no_license |
# Set up the prompt
#autoload -Uz promptinit
#promptinit
#prompt redhat
PS1="[%n@%m %1~]$ "
GIT_PROMPT_SHOW_CHANGES=1
autoload -Uz vcs_info
zstyle ':vcs_info:*' enable git
precmd() {
vcs_info
}
setopt prompt_subst
if [ $(uname -s) = Linux -o ${GIT_PROMPT_SHOW_CHANGES} = 1 ]; then
zstyle ':vcs_info:git:*' c... | true |
f4ee471cf174da748dd77ab957c7bf28f1a84571 | Shell | anantoni/doop-tools | /jvmti-tracer/trace2gxl | UTF-8 | 212 | 2.96875 | 3 | [] | no_license | #!/bin/bash
if [ $# -ne 0 ]; then
echo "Usage: cat /path/to/trace | $0" >&2; exit 1
fi
pushd `dirname $0` > /dev/null
PROBEDIR=../probe
java -cp ${PROBEDIR}/probe.jar:${PROBEDIR}/gxl.jar:./build Trace2GXL
| true |
9961d944b4539b56d3f0094e46c51c8be4259f5a | Shell | raychorn/analytics_library | /sample_data/bashtest.sh | UTF-8 | 1,289 | 2.984375 | 3 | [] | no_license | #!/bin/bash
TIME=`date +%Y-%m-%d-%H:%M`
declare -a JOBS
let count=0
exec 3< ${ANALYTICS_LIB}/python_streaming/tmp_dates_and_events.txt
while read <&3
do
JOBS[$count]="$REPLY""\n"
echo "start:${REPLY// /t}:end"
IFS="}"; declare -a Array=($REPLY)
echo "start:${Array[0]}:end"
echo "start:${Array[1]}:end"
((count++... | true |
12218b652c84bb207e6c8ff488c2f7f07b8ab0bb | Shell | agilderdale/pks-env | /ref_scripts/download-pivotal.sh | UTF-8 | 1,260 | 3.1875 | 3 | [] | no_license | #!/bin/bash
PIVOTAL_TOKEN=
PKS_PKG_API="https://network.pivotal.io/api/v2/products/pivotal-container-service/releases/191865/product_files/222375/download"
PKS_PKG_NAME="pivotal-container-service-1.2.0-build.47.pivotal"
HARBOR_PKG_API="https://network.pivotal.io/api/v2/products/harbor-container-registry/releases/190... | true |
9b079baa57df0f3572a5d5a01542dad591410d65 | Shell | rylberg/lbann | /experiments/run_lbann_dnn_multi_imagenet.sh | UTF-8 | 8,901 | 2.984375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
DIRNAME=`dirname $0`
#Set Script Name variable
SCRIPT=`basename ${0}`
# Figure out which cluster we are on
CLUSTER=`hostname | sed 's/\([a-zA-Z][a-zA-Z]*\)[0-9]*/\1/g'`
# Look for the binary in the cluster specific build directory
BINDIR="${DIRNAME}/../build/${CLUSTER}.llnl.gov/model_zoo"
#Initialize varia... | true |
d70913c34ecc598d75b3064f0b3f0940c0d9a50e | Shell | Sir-Boops/scripts | /port-forward.sh | UTF-8 | 875 | 3.703125 | 4 | [] | no_license | #!/bin/bash
# Get addr to forward to
echo "What IP are you forwarding to?"
echo ""
read -p "IP address: " IP_ADDRESS
clear
# Get public IP
echo "What is your public IP?"
echo ""
read -p "Public IP: " PUBLIC_IP
# Get TCP ports to forward
echo "What TCP ports do you wish to forward"
echo "Example 80 53 500"
read -p "T... | true |
93e137eeacb5a1968597940359626fd67e7361d2 | Shell | sb1975/iot-gcp | /setup.sh | UTF-8 | 1,569 | 3.21875 | 3 | [] | no_license | #!/bin/bash
echo "Data Streaming Pipeline setup will begin..."
echo ""
#Enable Cloud PubSub & Cloud IoT Core APIs
gcloud services enable compute.googleapis.com pubsub.googleapis.com cloudiot.googleapis.com
echo "Cloud PubSub & Cloud IoT Core APIs are enabled..."
echo ""
#Create a PubSub topic
gcloud pubsub topics c... | true |
0162b20962ee505cec02a96498841cd7471899cf | Shell | cbcrg/phecomp | /lib/bash/callHmmOneOutVal.sh | UTF-8 | 3,263 | 3.015625 | 3 | [] | no_license | #! /bin/bash
#################################################################################
### Jose Espinosa-Carrasco. CB/CSN-CRG. January 2013 ###
#################################################################################
### Code : 28.01 ... | true |
646f38be6cb428c4b2670586fffdbdc7d9e81910 | Shell | j123b567/xc32 | /common-source/build-scripts/bamboo/full-v2/xc32-cyclone-rc-buildall.sh | UTF-8 | 517 | 3.03125 | 3 | [] | no_license |
if [ -z $bamboo_XC32_SOURCE_BRATAG ]; then
bamboo_XC32_SOURCE_BRATAG=trunk
fi
if [ -e builddir ]; then
echo "Deleting existing builddir and log"
rm -rf builddir
rm xc32-build-all.log
fi
./build-scripts/xc32-build-all.sh --jobs=4 --branch=$bamboo_XC32_SOURCE_BRATAG
cd $bamboo_build_working_directory
cd buil... | true |
583b7464b2f857bfda36ce48397175081395e9a7 | Shell | Ishenko-Ilia/qsin | /script | UTF-8 | 213 | 2.796875 | 3 | [] | no_license | #!/bin/bash
tar -cvf /root/sda1.tar /home
mount /dev/sda1 /mnt
if [-e /mnt/check_mount]
then
echo "File Already"
else
echo "Mounting device /dev/sda1 - /mnt"
mount /dev/sda1/mnt
fi
rm -R /mnt/sda1.tar
umount /mnt
| true |
21a52b4e30b2e3c6cb7072e33c61ab474dce4bf8 | Shell | Alumniminium/PinePhone | /home/.local/bin/audioctl.sh | UTF-8 | 761 | 2.734375 | 3 | [] | no_license | #!/bin/bash
input=$1
volume=$2
earpiecevol=$(($volume * 2))
amixer sset "AIF1 DA0" 115
amixer sset "AIF1 DA0 Stereo" "Stereo"
amixer sset "Line Out Source" 'Mono Differential'
amixer sset "DAC" 100%
amixer sset "DAC" unmute
amixer sset "DAC Reversed" unmute
amixer sset "AIF1 Slot 0 Digital DAC" unmute
amixer sset "Ea... | true |
87a8b002cdc2ebd3864aa3cbe492566d2bb7dcb6 | Shell | sunshine69/ansible-role-openvpn-client | /templates/vpn-watcher.sh | UTF-8 | 246 | 2.703125 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
if ! `ps -ef|grep openvpn | grep -v grep | grep 'openvpn {{ vpn_client_profile_name }}.ovpn' >/dev/null 2>&1`; then
echo "VPN has stopped. Trying to re-connect ..."
exec {{ vpn_remote_dir }}/{{ vpn_client_profile_name }}.py
fi
| true |
e5bd3102cefc8f0248b5ddc7b21b2f9d85f62cce | Shell | jinga-lala/Secure-Personal-Cloud | /Secure_Personal_Cloud/scheduler.sh | UTF-8 | 321 | 2.59375 | 3 | [] | no_license | #!/bin/sh
eval "export $(egrep -z DBUS_SESSION_BUS_ADDRESS /proc/$(pgrep -u $LOGNAME gnome-session)/environ)";
path="$1""/Secure_Personal_Cloud/linux/main.py"
#Code:
var=$(python3 $path auto_sync 2>&1 1>/dev/null)
# DISPLAY=:0 notify-send 2
# echo "ehr""$var""there"
DISPLAY=:0 notify-send "Secure-Personal-Cloud" "$var"... | true |
1380f9a2a3b61d224c6580ec118529674aaf32a3 | Shell | ushulau/open-trader | /redeploy.sh | UTF-8 | 581 | 3.03125 | 3 | [] | no_license | #!/usr/bin/env bash
################################################
# Example of build and deployment script for #
# open-trader into AWS VM #
################################################
HOST_IP="IP address of your host"
cd ~/work/open-trader/
mvn clean install
echo "build is complete"
scp ... | true |
9bfac5b44271e790e2e3534ccce17c9abae9d723 | Shell | autoantwort/Lichtsteuerung | /src/lib/aubio/build_aubio.sh | UTF-8 | 747 | 3.28125 | 3 | [] | no_license | #!/bin/bash
source ../scripts/set_env.sh
# anleitung von hier : https://aubio.org/manual/latest/installing.html#git-repository
GIT_DIR="aubio.git"
# add or update git
../scripts/clone_or_pull.sh $GIT_DIR https://github.com/aubio/aubio.git && exit 0
cd $GIT_DIR
# we are in the "$GIT_DIR" now
# get waf to build
./scri... | true |
a8e498d52ea209f8b8edaeebbe046ec0006fa3a6 | Shell | ISUgenomics/common_scripts | /runGmap.sh | UTF-8 | 764 | 2.90625 | 3 | [] | no_license | #!/bin/bash
#Makes a database and searches your sequences.
#sh runGmap.sh <database name> <folder of database file ending with a "/"> <Fasta file> <query file>
#examples
#sh run_gmap.sh red_abalone_02Jun2017_5fUJu /work/GIF/remkv6/Serb/03_DavideGMAP/ red_abalone_02Jun2017_5fUJu.fasta DavideQuerydna.fasta
#sh run_gmap... | true |
c5d4d72e3d9294099199e840d5170b972af5c25d | Shell | HenriquesLab/NanoPyx | /runNoxTools.py | UTF-8 | 4,931 | 3.15625 | 3 | [
"GPL-2.0-only",
"GPL-1.0-or-later"
] | permissive | #!/bin/bash -c python3
import os
import subprocess
import sys
from inspect import isfunction
def run_cmd(command: str):
"""
Run a command in the shell
:param command: command to run
"""
print(f"Running command: {command}")
subprocess.run(command, shell=True, check=True)
def get_version():
... | true |
0e036b5011bd05e6800911ab24b0af73f306cffa | Shell | ozgurgul/hcp-demo-env-aws-terraform | /run_ide.sh | UTF-8 | 204 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
IMG=hpecp/hpecp-ide:latest
if [[ "$(docker images -q $IMG 2> /dev/null)" == "" ]]; then
./build_ide.sh
fi
docker run -it --init -p 3000:3000 -v "$(pwd):/home/project:cached" $IMG
| true |
53ded913aa4d98666e22a0f15d9a96ae316a77f2 | Shell | xkortex/panamax | /scripts/sccache.d/inject-sccache-docker.sh | UTF-8 | 2,284 | 4 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
## This will inject sccache into the system and create hooks
## Currently this is root-only, for containers
OSNAME=$(uname | tr '[:upper:]' '[:lower:]')
ARCH=$(uname -p)
errcho() {
(>&2 echo -e "\e[31m$1\e[0m")
}
check_dep() {
command -v ${1} >/dev/null 2>&1 || { errcho "Script requires ... | true |
f0a562ef7a3770abcfa5f9ece42c1a42fe2fb938 | Shell | jotak/scripts | /gitclean.sh | UTF-8 | 1,044 | 4.1875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
if [[ "$1" = "-h" || "$1" = "help" || "$1" = "--help" ]]; then
echo "Syntax: gitclean [-a]"
echo ""
echo "Fetch all branches one by one, show log and decide wether to keep or delete"
echo ""
echo "OPTIONS:"
echo " -a include remote branches"
echo ""
exit
fi
BR_OPTS=""
for arg in "$@"
do
if [[ ... | true |
9163242e66ec1dc38756f7a98efd766036ce016d | Shell | Wildog/dotfiles | /.tmuxinator/safekill.sh | UTF-8 | 1,502 | 3.484375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
function safe_end_procs {
old_ifs="$IFS"
IFS=$'\n'
panes=$(tmux list-panes -s -F "#{pane_id} #{pane_current_command}")
for pane_set in $panes; do
pane_id=$(echo "$pane_set" | awk -F " " '{print $1}')
pane_proc=$(echo "$pane_set" | awk -F " " '{print tolower($2... | true |
cd039b835e1d7e86eb686a1efa0e98d1ebfe56c5 | Shell | MestreLion/conquerclub | /web/cgi-bin/league_scoreboard.cgi | UTF-8 | 861 | 3.046875 | 3 | [] | no_license | #!/bin/bash
if [[ -f common ]]; then
source common
fi
if [[ "${GET[mode]}" == "matches" ]]; then
urlcc="https://www.conquerclub.com"
url="$urlcc/public.php?mode=showclans3"
league="${GET[league]:-44}" # Clan League 7 - Second Division
clanid="${GET[clanid]}"
post="search_clanleague=${league}&search_clan1=${cla... | true |
f4593f2bdd1e4f45db56d87fac6087055bccdc2d | Shell | Vikash84/Metagenomics | /vk_reference_based_assembly.sh | UTF-8 | 748 | 2.703125 | 3 | [] | no_license | #!/bin/bash
# reference_base_assembly_pipeline
sample_prefix=SP0001
read1='$sample_prefix'_R1_val_1.fq.gz'
read2='$sample_prefix'_R2_val_2.fq.gz'
fasta_file=1045684451.fasta
#bwa mapping
bwa mem $fasta_file $read1 $read2 > $sample_prefix'.sam'
#samtools sort
samtools sort -O bam -T temp1 $sample_prefix'.sam' >| $sample... | true |
ee4f32f9f3c0b2f125f0446d7384e043100c070d | Shell | lucmir/bdata_scripts | /gnuplot_scripts/runGenerateCCDFNormalDist.sh | UTF-8 | 918 | 2.796875 | 3 | [] | no_license | #!/bin/bash
BASE_DIR='../../outputs/distributions'
for i in sections_by_users.data \
sections_by_videos.data \
sections_by_section_time.data \
sections_by_retention.data \
sections_by_days_after_publishing.data \
sections_by_hours_after_publishing.data \
sections_by_day_hour.data; do
./generateCCDFNormalDist.sh $BAS... | true |
743963d381dd9a3e6722472bb3caee58e334ee60 | Shell | weswalker125/ww-vpn | /container/setup.sh | UTF-8 | 1,850 | 3.390625 | 3 | [] | no_license | #!/bin/bash
function init() {
easyrsa init-pki
echo "ww-vpn-ca" | easyrsa build-ca nopass
easyrsa build-server-full server nopass
for i in {1..5}; do easyrsa build-client-full ww-vpn-${i} nopass; done
easyrsa gen-dh
openvpn --genkey --secret /pki/private/pfs.key
rm /pki/private/ca.key
... | true |
4f58b39ac738494fc51d2f4bd5f0a6a4ef889004 | Shell | mbonto/fewshot_neuroimaging_classification | /MAML_plus_plus/script_generation_tools/local_run_template_script.sh | UTF-8 | 278 | 2.71875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# export GPU_ID=$1
# echo $GPU_ID
cd ..
export DATASET_DIR="datasets/"
# export CUDA_VISIBLE_DEVICES=$GPU_ID
# Activate the relevant virtual environment:
python $execution_script$ --name_of_args_json_file experiment_config/$experiment_config$ # --gpu_to_use $GPU_ID | true |
22ade337bad8ffc7fc583523db25f30e9eefcac7 | Shell | HKCaesar/wradlib | /scripts/run_tests.sh | UTF-8 | 1,209 | 3.546875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Copyright (c) 2017, wradlib developers.
# Distributed under the MIT License. See LICENSE.txt for more info.
exit_status=0
# export location of .coveragerc
if [[ "$COVERAGE" == "true" ]]; then
export COVERAGE_PROCESS_START=$WRADLIB_BUILD_DIR/.coveragerc
# run tests, retrieve exit status
./tes... | true |
3c9569c987bde586b6423380df429027556fc6d2 | Shell | shubhamdalal95/BashScript | /ICGPhotographSize.sh | UTF-8 | 733 | 2.984375 | 3 | [] | no_license | #!/bin/bash
for f in /home/cdac/Documents/{101..102}/Slot" "[A-M]/
do
cd "$f" #changing directory to /home/cdac/Documents/{101..102}/Slot" "[A-M]/
var1=`ls -l | awk -F" " '{print $9}' | grep -E '[0-9]{3}_Bio*'`
cd "$f""$var1" #changing directory to /home/cdac/Documents/{101..102}/Slot" "[A-M]/[0-9]{3}_Bio... | true |
9a7f6039495c45e263d7f68a2cdcd9d70558ccd7 | Shell | Ascend/ModelZoo-PyTorch | /PyTorch/built-in/cv/detection/DB_ID0706_for_PyTorch/test/train_no_TQE_performance_RT2_8p.sh | UTF-8 | 7,075 | 3.265625 | 3 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
###############指定训练脚本执行路径###############
# cd到与test文件夹同层级目录下执行脚本,提高兼容性;test_path_dir为包含test文件夹的路径
cur_path=`pwd`
cur_path_last_dirname=${cur_path##*/}
if [ x"${cur_path_last_dirname}" == x"test" ];then
test_path_dir=${cur_path}
cd ..
cur_path=`pwd`
else
test_path_dir=${cur_path}/te... | true |
844d6cb770b99e06db366948221fde849f253e93 | Shell | ravem/BatchScripts | /Telegram_certbot_notifier.sh | UTF-8 | 853 | 3.171875 | 3 | [] | no_license | #!/bin/sh
KEY="INSERT_YOUR_KEY_HERE"
URL="https://api.telegram.org/bot$KEY/sendMessage"
CERTBOT_LOG_FILE="/var/log/certbot_telegram.log"
TARGET="INSERT_CHAT_ID_HERE" # Telegram ID of the conversation with the bot, get it from /getUpdates API
#this is the actual renew script, assuming you are using, as me, nginx :-... | true |
ad7a0b0be8f3e929064ecf7e404ca223731135c2 | Shell | Cairnarvon/kopipe | /kopipe.sh | UTF-8 | 4,868 | 4.15625 | 4 | [] | no_license | #!/bin/bash
if [ -z "$KOPIPEDIR" ]; then
KOPIPEDIR=~/.kopipe
fi
# If it doesn't exist already, make a new kopipe directory
if [ ! -d "$KOPIPEDIR" ]; then
mkdir "$KOPIPEDIR" && \
echo -e "New kopipe directory created at \033[1m$KOPIPEDIR\033[0m" >&2 || \
echo -e "\033[1;31mERROR\033[0m Couldn't creat... | true |
42b50c84157e815c5401a6574f122f2ac6086fcb | Shell | andreadesalve/DART | /script | UTF-8 | 1,403 | 2.765625 | 3 | [] | no_license | #!/bin/bash
echo "Running test.."
for n_eligibles in 3 6 10 16 20
do
echo "N_eligibles $n_eligibles"
for n_universities in $(seq 1 $n_eligibles)
do
echo "N_universities $n_universities"
echo "N_eligibles $n_eligibles" >> testEligibles${n_eligibles}universities${n_universities}.txt
echo "N_universities $n_uni... | true |
da899d3a458bcfd46ca6888eaec82a2e187435b3 | Shell | gladkih/dotfiles | /zsh/zshrc | UTF-8 | 3,166 | 2.90625 | 3 | [] | no_license | # Path to your oh-my-zsh installation.
export ZSH=/Users/max/.oh-my-zsh
set guifont=Menlo\ for\ Powerline
export SASS_LIBSASS_PATH=/Users/max/work/libsass
#Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is l... | true |
a40a24b0179f98ba483a743cb9d24aab44ff518a | Shell | Calliari/shell-script | /linux-ubuntu-shell/nginx-config/nginx_test_curl_opensssl.sh | UTF-8 | 1,599 | 2.734375 | 3 | [] | no_license | # Testing request
# send a request to the nginx sevrer with HOSTNAME from using the localhost
curl --verbose --header 'Host: HOSTNAME WHERE THE NGINX IS CONFIGURED' -k 'https://127.0.0.1:8201'
# Testing with the client certs to the endpoinht (http or https)
curl --cacert ./ca.crt \. # The CA certificate belonging to... | true |
cb7ccc8e32523dd24df1f73170500d086aee72d8 | Shell | icapps/ios-crash-reporter | /Pod/Frameworks/SplunkMint.framework/Resource/splunkmint_postbuild_dsym_upload_script.sh | UTF-8 | 2,893 | 3.546875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Copyright 2015 Splunk, 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 agreed to i... | true |
6b83553e1707a1520c9075663d9ab723d545ca2b | Shell | sncodeGit/MyScripts | /clippings_backup_autoremove.sh | UTF-8 | 659 | 3.328125 | 3 | [] | no_license | #!/bin/bash
source ${HOME}/MyScripts/tmp/vars.env
cd "$GOOGLE_DISK_BACKUP_DIR"
DIRS=$(find . -type d | grep /)
for DIR in ${DIRS}
do
FILES=$(find ${DIR} -type f)
for FILE in ${FILES}
do
INIT_FILE=$(cat ${FILE} | grep '__auto__sncodegit__init__:' | cut -d ':' -f 2)
if [[ "$INIT_FILE" == "/ClippingsBack... | true |
dc34eed4cee55d40c780efd672c8573dc21540b4 | Shell | LudvigHz/dotfiles | /prompt.zsh | UTF-8 | 2,924 | 3.359375 | 3 | [] | no_license | # zsh prompt
autoload -Uz add-zsh-hook
VCS_SYMBOL_BRANCH=""
VCS_SYMBOL_AHEAD=""
VCS_SYMBOL_BEHIND=""
VCS_SYMBOL_STAGED="●"
VCS_SYMBOL_CONFLICTS=""
VCS_SYMBOL_UNSTAGED=""
VCS_SYMBOL_UNTRACKED=""
VCS_SYMBOL_STASHED=""
VCS_SYMBOL_CLEAN='✔'
# git info
vcs_prompt_info() {
# check if in git directory
if git rev... | true |
a5f460b469fa170bd1266136ca21af837d7243ad | Shell | jibijose/gatling_vm_cluster | /runAllLocalRun.sh | UTF-8 | 1,055 | 3.5 | 4 | [] | no_license | #!/bin/bash
if [ "$#" -ne 2 ]
then
echo "Usage: $0 local SimulationClass"
exit 1
fi
CLOUD=$1
SIMULATION_NAME=$2
GATLING_HOME_DIR_NAME=gatling-charts-highcharts-bundle-3.3.1
echo "******************************************************************************************************************"
echo "********... | true |
8d7d72f0497b5f11e2571a67292ee474bfa5fce6 | Shell | klabit87/multidisabler-samsung | /META-INF/com/google/android/update-binary | UTF-8 | 6,665 | 3.34375 | 3 | [] | no_license | #!/sbin/sh
#
# Flashable services disabler for G97[035][FN0], G977[BN] and N97[05][FN0],
# N976[BN0], N971N, A[1245]05[FN], A105M, A[25]05([YG]N|G), A405FM, T51[05],
# T72[05], T86[05], F900[FN] and F907[BN].
#
# by Ian Macdonald.
#
# Use this to prime your device after installing TWRP.
ZIPFILE=$3
ZIPNAME=${ZIPFILE##*... | true |
05d5c1d46e4f19ed982e8f78caef6961840919d9 | Shell | rp1703/myprojectdir | /script/logicaltest.sh | UTF-8 | 533 | 3.4375 | 3 | [] | no_license | #!/bin/bash
###################
#Purpose : To learn shell scripting
#Owner : Rasmita Pradhan
#Version : 1.0
#Input : None
#Output : None
###################
#Number Test
MARKS=$1
if [ ! "$MARKS" ]; then
echo "Please enter the mark"
exit
fi
if [ "$MARKS" -gt "100" -o "$MARKS" -le "0" ]; then
echo "Please enter... | true |
dc7b0964e0f81206e12b22205152cdddf936b3bb | Shell | zoeyingdi/website-l10n | /groups/Almost_There/directory/99_bottles.sh | UTF-8 | 424 | 3.015625 | 3 | [] | no_license | #!/bin/sh
for ((i=99; i>=1; i--)); do
if ((i==1)); then
echo "1 bottle of beer on the wall
1 bottle of beer!
You take one down and pass it around,
No more bottles of beer on the wall :-("
else
echo "$i bottles of beer on the wall
$i bottles of beer!
... | true |
a74b548dd0add43243d91936c4c118f2a50bfc16 | Shell | uprush/druid-satori-demo | /05hive_external_table.sh | UTF-8 | 407 | 2.765625 | 3 | [] | no_license | #!/bin/sh
cat<<EOF>/tmp/create_table.sql
SET hive.druid.broker.address.default=druid.example.com:8082;
CREATE EXTERNAL TABLE if not exists cryptocurrency_market_data
STORED BY 'org.apache.hadoop.hive.druid.DruidStorageHandler'
TBLPROPERTIES ("druid.datasource" = "cryptocurrency-market-data");
EOF
HS2=${1:-localhost:1... | true |
c278ba3eb0eda4ef4033bc8619192e1ccab20934 | Shell | celogeek/git-redmine-suite | /share/Git-Redmine-Suite/helpers/scripts/help.sh | UTF-8 | 1,901 | 3.375 | 3 | [] | no_license | #export params vars
while getopts frcav:t:hnm:peHT: opt; do
case $opt in
f) export REDMINE_FORCE=1 ;;
r) export REDMINE_REBASE=1 ;;
c) export REDMINE_CHAIN_FINISH=1 ;;
a) export REDMINE_AUTO_REASSIGN=1 ;;
v) export VERSION=$OPTARG ;;
t) export REDMINE_TIME="$OPTARG" ;... | true |
78d68a148e7da02b61429cfb5c4b7ba9f2d0a6f0 | Shell | whit98c/Experiments | /fswebcam-run.sh | UTF-8 | 363 | 2.71875 | 3 | [] | no_license | #!/bin/bash
USBNAME=webcam
LSUSB=$(lsusb | grep --ignore-case $USBNAME)
FOLD="/dev/bus/usb/"$(echo $LSUSB | cut --delimiter=' ' --fields='2')"/"$(echo $LSUSB | cut --delimiter=' ' --fields='4' | tr --delete ":")
echo $LSUSB
echo $FOLD
sudo ./usbreset $FOLD
sleep 5
sudo ./usbreset $FOLD
sleep 5
fswebcam -r 1920x10... | true |
605e6ffd792d08394b13a93de1186276b9f63a84 | Shell | Helioviewer-Project/hvJP2K | /hvJP2K/jpx/test/test | UTF-8 | 704 | 3.46875 | 3 | [] | no_license | #! /bin/sh
function file_size {
echo $(wc -c "$1" | awk '{ print $1 }')
}
function do_test {
mkdir -p $1-test
cd $1-test
PRE=~/hvJP2K/bin
IN=$(echo ../"$1"-ref/*.jp2 | tr ' ' ,)
$PRE/hv_jpx_split -i ../$1.jpx
$PRE/hv_jpx_merge -i *.jp2 -o $1-hv.jpx
$PRE/hv_jpx_merge -i $IN -o $1-hv-l... | true |
b867b63f719bff68afc09aaa00f457810bed182c | Shell | shizonic/majestic | /bin/automount.sh | UTF-8 | 302 | 3.359375 | 3 | [] | no_license | #!/bin/sh
volume="/media/dados"
device="/dev/disk/by-label/dados"
if mount | grep $volume 1> /dev/null; then
#echo "montado"
exit 0
else
#echo "não montado"
if [ -b $device ]; then
udisksctl mount -b /dev/disk/by-label/dados
else
#echo "$device não é um dispositivo"
exit 0
fi
fi
| true |
0e720bc2fe07a2fa07db5f5d8826fbc84fe9bcca | Shell | trojanh/testing-git-rebase | /cordova/deploy/testfairy-android-upload.sh | UTF-8 | 2,684 | 3.90625 | 4 | [] | no_license | #!/bin/sh
# https://github.com/testfairy/command-line-uploader/blob/master/testfairy-upload.sh
UPLOADER_VERSION=1.09
# Put your TestFairy API_KEY here. Find it in your TestFairy account settings.
# TESTFAIRY_API_KEY= # added as environment variable on circleci
# Tester Groups that will be notified when the app is re... | true |
aad6c34707379d3a0241228c0293e665394cb53f | Shell | wkwiatkowski/kurs-scripts | /la/disp-env.sh | UTF-8 | 257 | 3.203125 | 3 | [] | no_license | #!/bin/bash
# Display environment and variables
clear
echo "Display a few variables of current user"
echo ""
echo "username is: $USER"
echo ""
echo "a home directory is: $HOME"
echo ""
echo "Hist control: $HISTCONTROL"
echo ""
echo "a terminal is: $TERM"
| true |
bd742c6f4fe09dbda000323b3cec2e56d58997cf | Shell | grahammitchell/music-ripping-tools | /prep.sh | UTF-8 | 365 | 3.765625 | 4 | [] | no_license | #!/bin/sh
if [ ! -z "$1" ]
then
rm -f *.mp3 full_album.m3u
if [ -s tracks ]
then
rm -f album.m3u
mv tracks /home/music/$1
else
echo Warning: no \"tracks\", you\'ll need to modify album.m3u.
fi
dirname `pwd` | cut -b 8- > name-foo
basename `pwd` >> name-foo
mv name-foo /home/music/$1
else
echo You m... | true |
deb7dfbe8b530cd14fe1662fcd9fc30c2407e26a | Shell | Doctor-wu/WhatIWanna | /webHooks/deploy.sh | UTF-8 | 354 | 2.90625 | 3 | [] | no_license | #!/bin/bash
WEB_PATH='/www/wwwroot/root/'$1
WEB_USER='root'
WEB_USERGROUP='root'
echo "Start deployment"
cd $WEB_PATH
echo "pulling source code..."
git pull
git checkout master
echo "changing permissions..."
cnpm i
echo "installing dependency..."
forever restartall
echo "restarting serves.."
chown -R $WEB_USER:$WEB_USE... | true |
591da226c0f710797797ac60f39014ae46cb55a8 | Shell | ar18-linux/ar18_lib_bash | /ar18_lib_bash/script/import.sh | UTF-8 | 2,244 | 3.640625 | 4 | [] | no_license | #!/usr/bin/env bash
# ar18
function ar18.script._import(){
function ar18.script.import() {
# Prepare script environment
{
# Function template version 2021-07-14_00:22:16
# Get old shell option values to restore later
local shell_options
shopt -s inherit_errexit
IFS=$'\n' shel... | true |
8cc8d3f6032eaa3643d2eda14d1f68b7eecaaeeb | Shell | davidbeermann/dotdotdot | /bin/nlight | UTF-8 | 402 | 3.234375 | 3 | [] | no_license | #!/bin/bash
NLIGHT_STATUS=$(gsettings get org.gnome.settings-daemon.plugins.color night-light-enabled)
echo $NLIGHT_STATUS
if [ "$NLIGHT_STATUS" = "false" ]; then
echo "Turn night light on"
gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled true
else
echo "Turn night light off"
g... | true |
28c34ab73bace55050db6c0fbe499523bd44496f | Shell | gokulchandrap/contrail-test | /solution_scripts/tools/check_test_discovery.sh | UTF-8 | 406 | 2.515625 | 3 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
echo "Validating if test discovery passes in scripts/ and serial_scripts"
echo ""
GIVEN_TEST_PATH=$OS_TEST_PATH
export PYTHONPATH=$PATH:$PWD/scripts:$PWD/fixtures
export OS_TEST_PATH=${GIVEN_TEST_PATH:-./scripts}; testr list-tests || exit 1
export PYTHONPATH=$PATH:$PWD/serial_scripts:$PWD/fixtures... | true |
351c355874922fbaf88b5ae412f1daa4eb51a36c | Shell | QuasarApp/sdkmanager-android | /scripts/start.sh | UTF-8 | 1,698 | 3.65625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
EXTERNAL_HOME=/home/$USER
if [ "$USER" = "root" ]
then
EXTERNAL_HOME=/root
fi
OLD_SDK_ROOT=$HOME/AndroidSDK
SDK_ROOT=$EXTERNAL_HOME/AndroidSDK
export JAVA_HOME="$SNAP/usr/lib/jvm/java-11-openjdk-amd64"
export ANDROID_SDK_HOME="$HOME/.Android"
export _JAVA_OPTIONS=-Duser.home=$HOME
for var in "$@"
d... | true |
6425c929f989a00e88101c72c9f1b8fae0eae6d6 | Shell | oleg-alexandrov/olegmisc | /bin/show_matchfile.sh | UTF-8 | 961 | 3.265625 | 3 | [] | no_license | #!/bin/bash
if [ "$#" -lt 1 ]; then echo Usage: $0 match-file.match; exit; fi
f=$1
log=$(ls -alh -rtd $(dirname $f)/*log* |grep -E "bundle_adjust|stereo_pprc" | tail -n 1 | ~/bin/print_col.pl 0)
l=$(echo $f | perl -p -e "s#^.*?\/##g" | perl -p -e "s#^.*?-(.*?)__.*?\$#\$1#g" | perl -p -e "s#disp-##g")
r=$(echo $f | ... | true |
203d14b200f77ca62e00e9be9a9a09733a5a61bc | Shell | MiT-HEP/MonoX | /monophoton/fakemet/injection_test.sh | UTF-8 | 1,076 | 3.171875 | 3 | [] | no_license | #!/bin/bash
# edit parameters_fakemet.py to point sourcename = injection.root and outname = 'workspace.root' cardname = 'datacard.dat'
SOURCE="$1"
SIGS="$2"
FAKEN="$3"
IJOB=$3
HIST=/data/t3home000/$USER/monophoton
FAKEMET=$MONOPHOTON/fakemet
rm -f $THISDIR/norms.dat
echo $HIST
echo $FAKEMET
echo $PWD
i=0
while [ ... | true |
1aa1d3ee36bd5abc483b2d822cba6376453f74a4 | Shell | ahheckel/RaspiCloud | /install/runscrpt.sh | UTF-8 | 1,023 | 3.5625 | 4 | [] | no_license | #!/bin/bash
scrpt="$1"
scrptname=$(basename "$scrpt")
if ! pgrep -f "^bash ${scrpt}" > /dev/null ; then
echo "[${scrptname} : no instance is running (0)]"
rm -f $HOME/.${scrptname}.lock
"${scrpt}"
elif [ ! -f $HOME/.${scrptname}.lock ] ; then
echo "[${scrptname} : no instance is running (1)]"
for i in $(pgrep -f ... | true |
dab52d422397f9570062f464840e838cc183461b | Shell | tttapa/EAGLE-ZYBO-Linux | /scripts/install-python-module.sh | UTF-8 | 1,224 | 4.15625 | 4 | [] | no_license | #!/usr/bin/env bash
set -ex
# This scripts builds the Python module in setup.py, and then installs or
# upgrades to the latest version using Pip (at user level).
#
# The first command line argument should be the Python executable.
#
# Example usage:
# Install-Python.sh /usr/bin/python3
# Install-Python.sh pyth... | true |
dc74c3e90058fe7f342927822a79c82d8717bc89 | Shell | it-gro/dckr-hdp-sn | /hdp-hadoop/build/users.sh | UTF-8 | 430 | 2.59375 | 3 | [] | no_license | #!/usr/bin/env bash
## ##################################################
#
test -d ${HDP_USER_HOMES} || mkdir -p ${HDP_USER_HOMES}
groupadd -g $HADOOP_USER_ID $HADOOP_USER
useradd -u $HADOOP_USER_ID -g $HADOOP_USER_ID -s '/bin/bash' -m -d ${HDP_USER_HOMES}/$HADOOP_USER $HADOOP_USER
groupadd -g $HDFS_USER_ID $HDFS... | true |
f6bd6a8ab667bfb272d8c2a8029e9850e7eba8fc | Shell | maitesin/dot-files | /scripts/install_polybar.sh | UTF-8 | 775 | 2.765625 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
sudo apt install build-essential git cmake cmake-data pkg-config python3-sphinx libcairo2-dev libxcb1-dev libxcb-util0-dev libxcb-randr0-dev libxcb-composite0-dev python3-xcbgen xcb-proto libxcb-image0-dev libxcb-ewmh-dev libxcb-icccm4-dev
sudo apt install libxcb-xkb-dev libxcb-xrm-dev lib... | true |
f71d3f0e87064a910af0743e2824406c7d01547b | Shell | pratyush-1997/linux | /cpu.sh | UTF-8 | 414 | 3.40625 | 3 | [] | no_license | #!/bin/bash
printf "\n\n Memory\t\t Disk\t\t CPU \n"
MEMORY = $(free -m | awk 'NR==2{printf "%.2f%%\t\t",$3*100/$2 }')
DISK = $(df -h | awk '$NF == "/"{printf "%s\t\t",$5}')
CPU = $(top -bn1 | grep load | awk '{printf "%.2f%%\t\t\n", $(NF-2)}')
echo "$MEMORY $DISK $CPU"
printf "\n\nNetwork Usage\n"
echo "$(ip -s... | true |
f40fed2014de33549918331d55586f28b08cdf80 | Shell | hoanghaivnn/thuctap012017 | /XuanSon/OpenStack/Install OpenStack/Ocata/Install_OPS_with_Linuxbridge/scripts/ctl-1-environment.sh | UTF-8 | 1,776 | 3.171875 | 3 | [] | no_license | #!/bin/bash
#Author Son Do Xuan
source function.sh
source config.sh
# Install crudini
echocolor "Install crudini"
sleep 3
apt-get install -y crudini
# Update and upgrade for controller
echocolor "Update and Update controller"
sleep 3
apt-get update -y&& apt-get upgrade -y
# Install and config NTP
echocolor "Instal... | true |
35abb0974aab9329e2039638a86472e8e48896de | Shell | mycaule/bash-scripts | /update_statuspage.sh | UTF-8 | 990 | 3.4375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
api_key="..."
page_id="..."
api_base="api.statuspage.io"
function send_fake_metric {
metric_id=$1
for i in $(seq 1 288)
do
ts=$(($(date +%s)-i*300))
value=$(((RANDOM%99)+0))
http -h POST "https://$api_base/v1/pages/$page_id/metrics/$metric_id/data.json" data:="{\"timestamp\": $ts, \"valu... | true |
dfcaef5c7d5e30d48b28123d60be86327e186d04 | Shell | ponylang/rfcs | /.ci-scripts/pr-label.bash | UTF-8 | 2,218 | 4.09375 | 4 | [] | no_license | #!/bin/bash
# Announces a change in RFC status to based on label to LWIP
#
# Tools required in the environment that runs this:
#
# - bash
# - curl
# - jq
set -o errexit
# Verify ENV is set up correctly
# We validate all that need to be set in case, in an absolute emergency,
# we need to run this by hand. Otherwise t... | true |
2860b3210959fa99e650b8c99d6fc07d07667993 | Shell | kw90/dotfiles | /polybar/install.debian.sh | UTF-8 | 837 | 3.078125 | 3 | [] | no_license | #!/bin/bash
. ../helpers.sh
echo_info "SymLinking polybar config and spells"
mkdir -p ~/.config/polybar
ln -sfT ~/source/dotfiles/polybar/polybar.conf ~/.config/polybar/polybar.conf
ln -sfT ~/source/dotfiles/polybar/launch-polybar.debian.sh ~/.config/polybar/launch-polybar.sh
ln -sfT ~/source/dotfiles/polybar/spoti... | true |
69ee053fcd480ea6da597f680bbac073840fcc48 | Shell | daiwa233/blog | /deploy.sh | UTF-8 | 728 | 2.703125 | 3 | [] | no_license | ###
# @Author: your name
# @Date: 2020-02-13 08:46:03
# @LastEditTime : 2020-02-14 15:02:43
# @LastEditors : Please set LastEditors
# @Description: In User Settings Edit
# @FilePath: \vuepress-theme-dva-devloping\deploy.sh
###
#!/usr/bin/env sh
# 确保脚本抛出遇到的错误
set -e
# 生成静态文件
npm run docs:build
# 进入生成的文件夹
cd ... | true |
6e9c85be697b4111dc28ec0b98c4dee7c384ee84 | Shell | mephi42/deluged-via-proxy | /debug | UTF-8 | 421 | 2.8125 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/sh
set -e -u -x
cd "$(dirname "$0")"
base="$(./docker-build images/base)"
deluge="$(./docker-build images/deluged --build-arg=base="$base")"
exec docker run \
--interactive \
--tty \
--privileged \
--volume="$(realpath ~/var-lib-deluged):/var/lib/deluged" \
--dns=8.8.8.8 \
--network=delu... | true |
784b489c56240b7422ca04d8f9f5d1a067250f9a | Shell | lianfeng30/work-scripts | /script/check_houyi_tdc.sh | UTF-8 | 3,702 | 3.578125 | 4 | [] | no_license | #!/bin/sh
###################################################
#
# Type : State Monitor Plugin
# Function : check houyi tdc status
# Usage : ./check_houyi_tdc.sh
# Creator : shikun.tiansk Date : 2011-10-30
# Modifier : Date :
#
#######################... | true |
30e4f8c220f6e43ca38b3229d76cec9608b402c9 | Shell | flomotlik/StudentLife-grails | /install-grails.sh | UTF-8 | 332 | 2.578125 | 3 | [] | no_license | export DOWNLOAD="target/download"
mkdir -p $DOWNLOAD
cd $DOWNLOAD
wget -nc http://dist.codehaus.org/grails/grails-1.2.1.zip
unzip -u grails-1.2.1.zip
mv grails-1.2.1 /opt
rm -i /opt/grails
ln -s /opt/grails-1.2.1 /opt/grails
echo "GRAILS_HOME=/opt/grails" >> /etc/environment
echo "PATH=$PATH:/opt/grails/bin" >> /etc/en... | true |
4422aca4864d1e221805ecc2fe8f94be1f9a60a6 | Shell | jeromebaudot/SiTrInEo | /Mimosa-private-setup.sh | UTF-8 | 1,160 | 2.84375 | 3 | [] | no_license | #!/bin/bash
### Basic environment setup ####
export CXX=`which g++`
export CC=`which gcc`
export GEANT4DIR="/usr/local/Geant4"
#### Geant4 environment setup ####
source $GEANT4DIR/share/Geant4-10.4.2/geant4make/geant4make.sh
##source $GEANT4DIR/../setup_g4datasets.sh
#### Library path setup ####
export LD_LIBRARY_PA... | true |
7c2e89402e60f93109687063b266c0647500c08f | Shell | podioss/Weka_jobs | /parser/make_report.sh | UTF-8 | 3,290 | 3.125 | 3 | [] | no_license | #This script is made to sum up a report for a kmeans job submitted to Weka
#It depends on metricsparser.py and memparser.py scripts
METRICSPARSER="./metricsparser.py"
MEMPARSER="./memparser.py"
for ds in 75 #dataset sizes
do
for d in 10 50 100 250 500 750 1000 #dimensions
do
for c in 10 100 200 300 4... | true |
7106c42f2d0db5cdf78b477d5f231281e9c846a5 | Shell | silviodonato/PisaHmm | /workspace/fitAll.sh | UTF-8 | 342 | 2.859375 | 3 | [] | no_license | #!/bin/sh
YEAR=$1
MASS=`seq 1251 1 1254`
MASS1=`seq 1256 1 1259`
MASS2=`seq 1200 5 1300`
ALLMASS=$MASS" "$MASS1" "$MASS2
#ALLMASS=`seq 1250 1 1260`
ALLMASS=12538
#ALLMASS="1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260"
echo $ALLMASS
for m in $ALLMASS ; do
cd MassScan$m
../fitMass.sh $YEAR $m >& fitmas... | true |
078f13fb9b347c8985af81ea66c6f586c2e71c0d | Shell | babithar47/my_first_project | /add.sh | UTF-8 | 66 | 2.78125 | 3 | [] | no_license | #!/bin/bash
#addition of two numbers
sum=`expr $1 + $2`
echo $sum
| true |
128e3e8a355276c01d88761fc508e11b598629eb | Shell | EgorLu/dev-scripts | /run_ci.sh | UTF-8 | 7,003 | 3.28125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -ex
# grabs files and puts them into $LOGDIR to be saved as jenkins artifacts
function getlogs(){
LOGDIR=/home/notstack/dev-scripts/logs
# Grab the host journal
sudo journalctl > $LOGDIR/bootstrap-host-system.journal
for c in httpd-${PROVISIONING_NETWORK_NAME} machine-os-downloader ip... | true |
47c8e3ec1d97464c36df89787bf464178e59e3e7 | Shell | q0015300153/service-hive | /init.sh | UTF-8 | 1,530 | 3.59375 | 4 | [] | no_license | #!/usr/bin/env bash
# tw: 載入 dotenv
# en: Load dotenv
. $(dirname "$0")/dotenv
# tw: 下載 Hadoop 與 Hive 檔案
# en: Download Hadoop and Hive files
if ! [ -f "./hadoop/hadoop.tar.gz" ]; then
version=3.2.0
wget -O ./hadoop/hadoop.tar.gz \
https://www.apache.org/dist/hadoop/common/hadoop-${version}/hadoop-${version}.tar.... | true |
357c64fa5f9dce00b81b1ba48c139cd926e24a2e | Shell | lijitha4/EVB-KSZ9477 | /KSZ/ptp/bin/power.sh | UTF-8 | 904 | 3.515625 | 4 | [] | no_license | #!/bin/sh
# This script setups the VLAN for use with power profile.
ETH=0
VLAN=0
PRIO=4
if [ ! -z "$1" ]; then
VLAN=$1
if [ ! -z "$2" ]; then
ETH=$2
if [ ! -z "$3" ]; then
PRIO=$3
fi
fi
fi
if [ -e "/sys/class/net/eth$ETH.$VLAN" ]; then
exit 0
fi
vconfig add eth$E... | true |
222374191226a808c7af8cf0f86fa26c8a42e1e7 | Shell | ryan-williams/file-helpers | /rtf2md | UTF-8 | 309 | 3.59375 | 4 | [] | no_license | #!/usr/bin/env bash
set -e
if [ $# -eq 1 ]; then
in="$1"; shift
out="${in%.*}.md"
elif [ $# -eq 2 ]; then
in="$1"; shift
out="$1"; shift
else
echo "Usage: $0 <in> [out]" >&2
exit 1
fi
cat "$in" | \
textutil -stdin -convert html -stdout | \
pandoc --from=html --to=markdown > "$out"
| true |
64afa08d4bc793f4caa296b86504dba5153fa76b | Shell | nelbren/npres | /bin/enable/hola.bash | UTF-8 | 574 | 2.984375 | 3 | [] | no_license | #!/bin/bash
hola_user() {
/usr/games/fortune /usr/share/games/fortunes/es /usr/share/games/fortunes/es/off | /usr/games/cowsay -d | /usr/games/lolcat
cmatrix -sb -C green
}
hola_root() {
neofetch
cmatrix -sb -C red
}
man_colors() {
export LESS_TERMCAP_mb=$'\e[1;32m'
export LESS_TERMCAP_md=$'\e[1;32m'
e... | true |
d0623cc87620c11b41eb2980db770473b2f41237 | Shell | qianchu/ALaCarte | /install.sh | UTF-8 | 1,098 | 3.078125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
disp() { echo -e "\e[44m\e[97m$@\e[49m\e[39m" ; }
disp "Installing GCC-C++ and OpenMPI"
sudo yum install gcc-c++ openmpi -y
echo 'export PATH="/usr/lib64/openmpi/bin:$PATH"' >> $HOME/.bashrc
disp "Downloading and Installing Miniconda"
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.... | true |
b8b53c965b4e5fa5994104f3163839cdb26e21b1 | Shell | mattkingston/dotfiles | /bash/ubuntu/autocomplete.sh | UTF-8 | 180 | 2.734375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
if [[ -f /etc/bash_completion ]] && ! shopt -oq posix; then
. /etc/bash_completion
fi
if type -t 'aws' > /dev/null; then
complete -C aws_completer aws
fi
| true |
e5597461a14fa5667db680ce681aa1dd6ade69e2 | Shell | pyslackers/sirbot-pyslackers | /scripts/test.sh | UTF-8 | 310 | 2.71875 | 3 | [] | no_license | #!/bin/sh
EXIT=0
echo "TEST: black"
black --check --diff . || EXIT=$?
echo "TEST: isort"
isort --recursive --check-only . || EXIT=$?
export PYTHONWARNINGS="ignore"
echo "TEST: flake8"
flake8 . || EXIT=$?
export PYTHONWARNINGS="default"
echo "TEST: pytest"
python -m pytest ./tests/ || EXIT=$?
exit $EXIT
| true |
7da14ead6f1244272da22de8601fda143f8997de | Shell | NICTA/clouddb-replication | /scripts/analysis-kits/mysqldatabase-analysis/mysqldatabase-datasize.sh | UTF-8 | 2,516 | 3.703125 | 4 | [] | no_license | #!/bin/bash
#
# Copyright 2011 National ICT Australia Limited
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you unde... | true |
90dab0efc7176cf1aab3c5f5b091aafa834e8979 | Shell | msilmser/tower-test | /roles/weblogic-ans/files/cgscripts/ap/status.sh | UTF-8 | 2,064 | 4.1875 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/ksh +x
#
# Check status of servers based on the standard Covalent directory structure
#
# Usage: status.sh [server1 server2....|ALL]
#
#
# History
# =======
#
# 12-22-2005 vsl created
# 05-26-2011 btt Modified for the new MWE Apache standard
#
######################################################... | true |
5a0d7a088d7cfdbcb79e30f32c5b5524912c6f15 | Shell | ajb129/KeyakiTreebank | /scripts/collect_MAI_data | UTF-8 | 938 | 3.953125 | 4 | [
"CC-BY-4.0"
] | permissive | #!/bin/sh
usage () {
echo "Usage: $0 [-d cdrom_dir]"
exit 1
}
make_dir () {
if [ ! -d "$1" ]; then
mkdir -p $1
fi
}
CDROM_DIR=/mnt/cdrom
PERL=perl
BASE_DIR=`dirname $0`
SRC_DIR=$BASE_DIR/KyotoCorpus4.01-src
DEST_DIR=$BASE_DIR/../mainichi
while getopts d:h OPT
do
case $OPT in
d) CDROM_DIR=$OPT... | true |
8c241f7406baf1f8fbdff4298daa07907b0e9613 | Shell | biwcream123/ArachneExecutionEngine | /src/main/dist/run_build.sh | UTF-8 | 2,488 | 4.0625 | 4 | [] | no_license | #!/usr/bin/env bash
DIST=trusty
ARCH=amd64
BUILD_PATH=./dist
WS=`dirname $0`
BQ_PATH=../extras/bigquery/
IMPALA_PATH=../extras/impala/
NETEZZA_PATH=../extras/netezza/
function print_help {
echo "Usage: run_build.sh [OPTIONS]"
echo "Available options are:"
echo -e " -a i386|amd64 \tDistribution architecture, defa... | true |
587ef3efdbbdd267ff0b90a3313f08b621745d03 | Shell | mrskycriper/itmo.operating-systems | /Lab01/menu.sh | UTF-8 | 192 | 2.953125 | 3 | [] | no_license | #!/bin/bash
echo "Menu:"
echo "1) Start nano"
echo "2) Start vim"
echo "3) Start links"
echo "4) Exit menu"
read action
case $action in
1 )
nano
;;
2 )
vi
;;
3 )
links
;;
4 )
exit 0
;;
esac
| true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.