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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
5e0d5f409e04d286878c43feb01928df385ff923 | Shell | sjoon-oh/dlrm-debloat | /train_kaggle.sh | UTF-8 | 1,110 | 2.84375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# DLRM Facebookresearch Debloating
# author: sjoon-oh @ Github
# source: dlrm/our_train.py
dlrm_pt_bin="python3 dlrm_run.py"
dataset_base_dir="dataset"
dataset_dir="${dataset_base_dir}/Kaggle"
dataset_proc_base_dir="dataset-processed"
dataset_proc_dir="${dataset_proc_base_dir}/Kaggle"
if [ ! -d ${datas... | true |
1ac43d1e6130a2a8546dbc385d49f37d6bae9b1b | Shell | theneva/pqrs.org | /themes/update.sh | UTF-8 | 423 | 3.1875 | 3 | [
"Unlicense"
] | permissive | #!/bin/bash
set -u
basedir=$(dirname $0)
cd $basedir
pwd=$(pwd)
rm -fr docsy
git clone --recursive --shallow-submodules --depth 1 https://github.com/google/docsy.git
rm -f docsy-revisions
for d in $(find docsy -name '.git'); do
echo -n "$d: " >> docsy-revisions
(cd $(dirname $d) && git rev-parse HEAD) >> do... | true |
dc5ff76476671e330172dbad8c7638091ad9342f | Shell | gleandroj/docker-laravel | /scripts/android.sh | UTF-8 | 3,303 | 2.890625 | 3 | [] | no_license | export SDK_HOME=/opt
apt-get --quiet update --yes
apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1 git --no-install-recommends
# Gradle
export GRADLE_VERSION=4.1
export GRADLE_SDK_URL=https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip
curl -sSL "${GRADLE_SDK_URL}" -o gradle-${G... | true |
e786b9b79d42864f8d309fe7fe3fadb56937a954 | Shell | koert/spring-petclinic | /configure-petclinic.sh | UTF-8 | 811 | 3.328125 | 3 | [] | no_license | #!/bin/bash
SCRIPT=$(readlink -f "$0")
bin_dir=$(dirname "$SCRIPT")
root_dir=${bin_dir}/..
# Print error message and exit 1
# message - error message
fail() {
echo $1
exit 1
}
# Call asadmin command
# args - arguments
cmdAsAdmin() {
echo "* asadmin $@"
asadmin --user admin --passwordfile ${root_dir}/config/a... | true |
dd3afa2d6dd0c868557dbeab8213c09213e66a83 | Shell | bohunicka14/Linux-scripts | /heslo.sh | UTF-8 | 564 | 3.265625 | 3 | [] | no_license | #!/bin/bash
heslo=$1
echo $heslo
if [ ${#heslo} -le 5 ]
then
echo Kratke heslo
fi
if [[ $heslo =~ [0-9] && $heslo =~ [a-z] && $heslo =~ [A-Z] ]]
then
echo Heslo je OK
else
echo Heslo nie je OK
fi
#==================================================================
heslo=$(pwgen 12 1)
heslo=$(date +%s | md5sum)
he... | true |
d69c18a850b00f7b4ef06cd748242fd46d8ad1ea | Shell | jinyx728/CS229 | /data_generation/script/process-subdiv.sh | UTF-8 | 661 | 2.90625 | 3 | [] | no_license | ######################################################################
# Copyright 2019. Yongxu Jin.
# This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt.
######################################################################
#!/bin/sh
# ... | true |
922c69c0943d067bccc3ae0f8f1eec3b7b47a025 | Shell | maxxtepper/bin | /root/rsbak_v2 | UTF-8 | 12,480 | 4.1875 | 4 | [] | no_license | #!/bin/bash
# Script to back up the home directory using rsync
# COMPLETE: This is to do a complete backup. The procedure will simply create a new directory
# dated with the current time and do a full backup of the /home/maxx/
#===========================================================================... | true |
870b0e2ccebcaaf39ce6041cff2fa1fa11165f04 | Shell | AndrewCopeland/conjur-api-go | /package.sh | UTF-8 | 417 | 3.34375 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash -e
echo "==> Packaging..."
rm -rf output/dist && mkdir -p output/dist
tar --exclude='./.git' --exclude='./output' -cvzf ./output/dist/conjur-api-go.tar.gz .
# # Make the checksums
echo "==> Checksumming..."
cd output/dist
if which sha256sum; then
sha256sum * > SHA256SUMS.txt
elif which shasum; then... | true |
eb9c99ec6c9650d95345f3e667e039092544d9eb | Shell | green-delver/sh-files | /menü.sh | UTF-8 | 256 | 3.140625 | 3 | [] | no_license | #!/bin/bash
echo "1: x"
echo "2: y"
read ANTWORT
if [ "$ANTWORT" == "1" ]
then
clear
#Befehl
#
exit
fi
if [ "$ANTWORT" == "2" ]
then
clear
#Befehl
#
exit
fi
echo "Tastatureingabe nicht im erlaubten Bereich!"
| true |
9cfc1f3e03a4ed69af34a29e77f9c1b80bbfe6f1 | Shell | rkferreira/aws | /cloudformation/cloudformation.sh | UTF-8 | 4,925 | 3.40625 | 3 | [] | no_license | #!/bin/bash
#####################################
## Deploy cloudformation templates
#
REGION="eu-usa-1"
PROFILE="default"
AWSCLI="/usr/local/bin/aws"
TEMPLATES_PATH="./"
deploy_all () {
if [[ ! -z ${DEPLOY_ALL} ]]; then
if [[ -z ${YES_TO_ALL} ]]; then
read -p "I will deploy ALL stacks, are you sure? (y/... | true |
7608abe53ed5f1bcda63d77ec246387af05d9be4 | Shell | kobeld/editorpro | /scripts/run_on_dev_for_editorpro.sh | UTF-8 | 730 | 2.984375 | 3 | [] | no_license | export GOPATH=/home/ubuntu/gopkg
export GOROOT=/usr/local/go
APPROOT="$GOPATH/src/github.com/kobeld/editorpro/"
echo "======= updating pandoc code ========"
cd $GOPATH/src/github.com/kobeld/gopandoc
git checkout master && git pull origin master
if [[ $? != 0 ]] ; then exit 1; fi
echo "======= updating editorpro code ... | true |
54c25fc9e4f8282e30a142eeed15452c08cfae2c | Shell | narayana-glassbeam/quarks | /scripts/connectors/iotf/runiotfsensors.sh | UTF-8 | 536 | 2.84375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
quarks=../../..
# Runs IBM Watson IoT Plaform sample.
#
# runiotfsensors.sh path/device.cfg
#
# e.g. runiotfsensors.sh $HOME/device.cfg
#
# This connectors to your IBM Watson IoT Platform service
# as the device defined in the device.cfg.
# The format of device.cfg is the standard one for
# IBM Watson IoT... | true |
b4af1faaffd18ec7d92f91d8601e0db562dfb804 | Shell | azrosen92/fbi-crime-data | /dl-all-2018 | UTF-8 | 957 | 3.71875 | 4 | [] | no_license | #!/bin/bash
[ ! -d data/2018 ] && mkdir data/2018
# No download available for NC, NY, Alaska, California, Florida, Nevada,
# and Wyoming
STATES=(AL AR AK CO CT DE DC GA HA ID IL IN IA KS KY LA ME MD MA MI MN MS MO MT
NE NH NM ND OH OK OR PA RI SC SD TN TX UT VT VA WA WV WI)
for state in "${STATES[@]}"; do
echo "... | true |
888fca6006e3d54eab303a48274df845c3f5764f | Shell | elm-conf/cfp | /script/create-db.sh | UTF-8 | 316 | 2.78125 | 3 | [] | no_license | #!/usr/bin/env bash
initdb data
# start DB but clean it up when we're done
foreman start db &
DB=$!
finish() {
kill $DB
}
trap finish EXIT
# now create the database
sleep 1
createdb -e cfp
psql -d cfp -c "CREATE ROLE postgraphile LOGIN PASSWORD 'dev';"
psql -d cfp -c "ALTER USER postgraphile WITH SUPERUSER;"
| true |
41d704e731684d58856b523d25b60645d40f80e5 | Shell | mosconi/inf2980 | /trab1/run3_all.sh | UTF-8 | 300 | 3.046875 | 3 | [] | no_license | #!/bin/sh
cd datasets
for i in n*.bz2; do
echo -n "$i"
for j in 0 1 2 3 4 5 6 7 8 9; do
echo -n " $j"
[ -f ../results/${i}.output_3_${j} ] && continue
python2.7 ../run3.py ${i} > ${i}.output_3_${j}
mv ${i}.output_3_${j} ../results/
done
echo " done"
done
| true |
65bd07d7eaf397b75787cd34c8776fa9614743c9 | Shell | imansaleh16/GroupingStackOverflowTags | /split_data.sh | UTF-8 | 1,594 | 3.40625 | 3 | [
"MIT"
] | permissive | # Splits data into train, dev, and test (60%, 20%, 20%). This split is not used per se because we ended up needing two splits, so we used train and dev and test combined.
# Example: input: data/Posts_Subset.xml_combined_mallet, output in data folder: MetaData_mallet_*, Posts_mallet_*, Tags_mallet_*, Titles_mallet_*
fi... | true |
fc02bdad97335b7d0a20b2b88766eed713eeff77 | Shell | tarmiste/lfspkg | /archcore/svnsnap/community/colorgcc/repos/community-any/PKGBUILD | UTF-8 | 880 | 2.609375 | 3 | [] | no_license | # $Id: PKGBUILD 164529 2016-03-03 17:18:57Z jlichtblau $
# Maintainer: Eric Belanger <eric@archlinux.org>
# Maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org>
pkgname=colorgcc
pkgver=1.4.4
pkgrel=2
pkgdesc="A Perl wrapper to colorize the output of compilers with warning/error messages matching the gcc output f... | true |
72bc289614ece0a5327dd4dcd762e14c2b8b9677 | Shell | sasipalakizhi/keytool-certificate-chain-example | /src/07_importcert_intermediate.sh | UTF-8 | 399 | 2.9375 | 3 | [] | no_license | #! /usr/bin/env bash
set -o nounset
set -o errexit
# Importing the Root CA's certificate into the Intermediate CA's key store.
"$JAVA_HOME/bin/keytool" -importcert \
-alias "$ROOT_ALIAS" \
-file "$ROOT_CERTIFICATE" \
-keypass "$INTERMEDIATE_KEYPASS" \
-keystore "$INTERMEDIATE_KEYSTORE" \
-noprompt \
-rfc \
-sto... | true |
44394e6f7c662130f2b632adc4b3d70570d841a8 | Shell | paw3142/overc-installer | /installers/simple-install-md0.sh | UTF-8 | 486 | 3.4375 | 3 | [] | no_license | #!/bin/bash
BASEDIR=$(dirname $BASH_SOURCE)
if [ ! -f fdisk-a.txt ]; then
echo "ERROR. no fdisk setup files available"
exit 1
fi
# fdisk. create partition layouts
fdisk /dev/sda < ./fdisk-a.txt
fdisk /dev/sdb < ./fdisk-b.txt
# md
mdadm --create /dev/md0 -n2 -l0 /dev/sda3 /dev/sdb2
mkfs.ext4 -v -E stride=128... | true |
31a21435b70d3fedc5588b886afc6cb0920b4a4b | Shell | copasi/COPASI | /admin/yacc.sh | UTF-8 | 2,062 | 3.15625 | 3 | [
"LicenseRef-scancode-proprietary-license",
"Artistic-2.0",
"LicenseRef-scancode-other-copyleft"
] | permissive | #!/usr/bin/env bash
# Copyright (C) 2019 - 2021 by Pedro Mendes, Rector and Visitors of the
# University of Virginia, University of Heidelberg, and University
# of Connecticut School of Medicine.
# All rights reserved.
# Copyright (C) 2017 - 2018 by Pedro Mendes, Virginia Tech Intellectual
# Properties, Inc., Uni... | true |
c94e6e7bdbb81c53ecf69599650cad665829d994 | Shell | zack6849/dotfiles | /Code/Scripts/take-screenshot | UTF-8 | 174 | 2.640625 | 3 | [] | no_license | #!/bin/bash
RANDFILENAME=$(pwgen -s 13 1)
FILENAME="$HOME/Uploader/Screenshots/$RANDFILENAME.png"
scrot -s $FILENAME -e "screenshot-complete.sh $RANDFILENAME.png $FILENAME"
| true |
123435a8b4bf16a9afa801f91f765049ea23ef04 | Shell | robbiekenny/EAA | /week4B | UTF-8 | 226 | 3.140625 | 3 | [] | no_license | #!/bin/bash
if [ $1 == true ]; then
if ! [ -d $HOME/EAA/backups ]; then
mkdir $HOME/EAA/backups
fi
tar czf week4backup.tar.gz $HOME/EAA/week4
mv week4backup.tar.gz $HOME/EAA/backups
else
tar -xzvf week4backup.tar.gz
fi
| true |
05d73da8f622a43e14d655252e5d2c1052724431 | Shell | lihongjie224/dst-admin | /src/main/resources/shell/other.sh | UTF-8 | 4,178 | 3.6875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
project="dst-admin" # 项目名称
sys=$(uname -s) # 操作系统
machine=$(uname -m) # 架构版本
darwin_steamcmd_link="https://steamcdn-a.akamaihd.net/client/installer/steamcmd_osx.tar.gz"
linux_steamcmd_link="https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz"
# 创建Linux服务器环境
create() {
... | true |
bc43e88e357dc64194bcf9b044ba9d80c69ce38b | Shell | iToto/dotfiles | /install.sh | UTF-8 | 4,485 | 4.21875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Settings
cwd=$(pwd)
# functions for text formatting
info () {
printf " [ \033[00;34m..\033[0m ] $1"
}
user () {
printf "\r [ \033[0;33m?\033[0m ] $1 "
}
success () {
printf "\r\033[2K [ \033[00;32mOK\033[0m ] $1\n"
}
fail () {
printf "\r\033[2K [\033[0;31mFAIL\033[0m] $1\n"
echo ''
exit
... | true |
a63ca8988401b35c68ed3bf453e89161d8e1968f | Shell | cha63506/zyre-git | /PKGBUILD | UTF-8 | 1,127 | 3.0625 | 3 | [] | no_license | # Contributor: Patrick Hanckmann <hanckmann at gmail.com>
# Maintainer: Patrick Hanckmann <hanckmann at gmail.com>
pkgname=zyre-git
pkgver=1.0.0
pkgrel=2
pkgdesc="Zyre - an open-source framework for proximity-based peer-to-peer applications (ZeroMQ)"
arch=(i686 x86_64)
url="https://github.com/zeromq/zyre"
license=('LGP... | true |
fb6efe6f96eaa353c648f6ea1b1ad0108f2292a1 | Shell | hsvarma2092/COMP2101 | /bash/passwordguesser.sh | UTF-8 | 788 | 3.71875 | 4 | [] | no_license | #!/bin/bash
# This script demonstrates testing to see if 2 strings are the same
# TASK 1: Improve it by asking the user for a password guess instead of using inline literal data
# TASK 2: Improve it by rewriting it to use the if command
# TASK 3: Improve it by giving them 3 tries to get it right before failing (test 3... | true |
9de523f04bb2c7412fc5f60c5bca18cb4d066d65 | Shell | wandrewjam/thesis | /reg_stokeslets/src/scripts/runner07.slurm | UTF-8 | 915 | 2.71875 | 3 | [] | no_license | #!/bin/bash
#SBATCH --time=16:00:00
#SBATCH --nodes=1
#SBATCH --ntasks=20
#SBATCH --account=fogelson
#SBATCH --partition=kingspeak
#SBATCH -C "c20"
#SBATCH -o runner07.out
#SBATCH -e runner07.err
# find number of threads for OpenMP (adapted from CHPC code)
# find number of MPI tasks per node
export TPN=$(echo $SLURM_T... | true |
ba7ab0be2c447acffa9076c120db3bac3e47c901 | Shell | probonopd/ungoogled-chromium | /packaging/linux_simple/package.sh.ungoogin | UTF-8 | 433 | 3.1875 | 3 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
set -eux
TARPREFIX=ungoogled-chromium_$ungoog{chromium_version}-$ungoog{release_revision}_linux
CURRENTDIR=$(dirname $(readlink -f $0))
# Assume source tree is outside this script's directory
ARCHIVE_OUTPUT="$CURRENTDIR/$TARPREFIX.tar.xz"
pushd "$CURRENTDIR"
python3 -m buildkit filescfg archive -c ../chr... | true |
119adce4eac096643356f3a7d7dc5899a43adca3 | Shell | ukhas/habcloud-salt-states | /ukhasnet/influxdb_backup.sh | UTF-8 | 391 | 2.75 | 3 | [] | no_license | #!/bin/bash
set -eu
{% set admin_password = pillar['ukhasnet']['influxdb']['admin_password'] %}
{% set databases = pillar['ukhasnet']['influxdb']['databases'] %}
mkdir -p /tmp/influx-backups
chmod 700 /tmp/influx-backups
{% for database in databases %}
influxd backup -database {{ database }} /tmp/influx-backups
{% e... | true |
e428534ce75b7b602db148f29d1888aa0ac724a4 | Shell | hllowarc-ecu/scripts | /portfolio/week2/menu.sh | UTF-8 | 616 | 3.921875 | 4 | [] | no_license | #!/bin/bash
# run script passwordCheck.sh
./passwordCheck.sh
#check exit code of passwordCheck script if access is granted then
if [ $? = 0 ]; then
echo "1) Create a folder"
echo "2) Copy a folder"
echo "3) Set a password"
echo "4) Exit"
read n
case $n in
1)./foldermaker.sh;; #if 1 is selected the... | true |
d8cc18325b5c2cfb80823a614efb329afef34561 | Shell | erikayahata/ESZB026-17-4-2018C | /leitura.sh | UTF-8 | 442 | 2.90625 | 3 | [] | no_license | #!/bin/sh
ARQUIVODADOS=/home/pi/sist_embarcados_git/Amora/dados.txt
ARQUIVOSAIDA=/home/pi/sist_embarcados_git/Amora/dados.png
gnuplot << EOF
set title "Dados: "
set ylabel "Angulo (º)"
set xlabel "Tempo (s/4)"
set terminal png
set output "$ARQUIVOSAIDA"
plot "$ARQUIVODADOS" \
linecolor rgb '#0060ad' \
linety... | true |
167048a4dc05382d78ea36e8e8f03eb342e6e1c0 | Shell | minggrim/.env | /util_scripts/dockerhere | UTF-8 | 575 | 3.078125 | 3 | [] | no_license | #!/bin/bash
if [[ ! -z $1 ]]; then
if [[ ! -z $2 ]]; then
if [[ ! -z $3 ]]; then
docker run --name $2 --privileged=true -v $(pwd):/sources -w /sources --shm-size=1g -it $1 /bin/bash
else
docker run --name $2 --privileged=true -v $(pwd):/sources -w /sources --shm-size=1g -it -... | true |
d201be09db9205b33c6d8c2144ce3a45b9274cb2 | Shell | lisuke/repo | /archlinuxcn/julia-git-arrow-git/PKGBUILD | UTF-8 | 927 | 2.734375 | 3 | [] | no_license | pkgname=julia-git-arrow-git
pkgver=2.6.2.0.0.9.g95efe95
epoch=1
pkgrel=2
pkgdesc="Arrow.jl"
url="https://github.com/JuliaData/Arrow.jl"
arch=('any')
license=('MIT')
makedepends=(git julia-pkg-scripts)
depends=(julia-git)
provides=(julia-git-arrow "julia-git-arrowtypes-git=${pkgver}-${pkgrel}" julia-git-arrowtypes)
sour... | true |
d21c69b04965f16f889e01828c06446b2ef0361e | Shell | sfahadshahzad/RPi-GPS-PPS-StratumOne | /install-gps-pps.sh | UTF-8 | 14,090 | 3.140625 | 3 | [] | no_license | #!/bin/bash
######################################################################
# 2018-11-13-raspbian-stretch-lite
##################################################################
# if a GPS module is already installed and is giving GPS feed on the GPIO-serial port,
# it can generate error messages to the conso... | true |
dff9f187a7242f504679fd40dcf1bc244a637452 | Shell | kaienkira/twilight-line-go | /build_windows.sh | UTF-8 | 369 | 2.75 | 3 | [
"MIT"
] | permissive | #!/bin/bash
os=windows
arch=amd64
cd client && \
GOOS="$os" GOARCH="$arch" go build \
-o ../bin/twilight-line-go-client-"$os"-"$arch".exe && \
cd - >/dev/null
if [ $? -ne 0 ]; then exit 1; fi
cd server && \
GOOS="$os" GOARCH="$arch" go build \
-o ../bin/twilight-line-go-server-"$os"-"$arch".exe && \
cd - >/d... | true |
8859f66daf3741225e6d223479e47396199a1afe | Shell | kwpeters/juggernautBash | /killjobs.bash | UTF-8 | 264 | 2.75 | 3 | [] | no_license | #!/usr/bin/env bash
# This script kills all background jobs.
# Reference: https://unix.stackexchange.com/questions/43527/kill-all-background-jobs
# Debian version
# kill $(jobs -p)
# OS X version
jobs -p | xargs kill
# Gnu version
# jobs -p | xargs -rn10 kill
| true |
99cbc9a2479358af1f7ce3edcfb7baa5b32ca3f8 | Shell | grassit/scripts-1 | /revengapi | UTF-8 | 186 | 2.640625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# Run the reverse engineering api
JAR=${1?Usage: $0 jar}
REVENG_HOME=/home/ian/workspace/revengapi/build
cd /tmp
java -cp ${REVENG_HOME}:${JAR} reveng.RevEngAPI -b ${JAR}
| true |
87afab83d612d89bd71f20e85d794100cf7464aa | Shell | kombiHQ/kombi | /runtest | UTF-8 | 671 | 3.734375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# current dir
currentDir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# library dir
libraryDir="$currentDir/src/lib"
case "$(uname -s)" in
CYGWIN*|MINGW**)
export PYTHONPATH="$(CYGPATH -w $libraryDir);$PYTHONPATH"
;;
*)
export PYTHONPATH="$libraryDir:$PYTHONPATH"
;;
esac
# figurin... | true |
b75d504dfce00c749bb501ee5af28fc47f4aedb3 | Shell | yiguotang/x-cloud | /xcloud/xcloud-driver-vmware/src/main/resources/shell/configIP.sh.txt | UTF-8 | 354 | 3.109375 | 3 | [] | no_license | #!/bin/bash
cat /proc/net/dev|awk {'print $1'}| awk -F: {'print $1'} > /tmp/cloudview_adaptor_2
while read line2
do
flag=1
while read line1
do
if [ $line1 == $line2 ]; then
flag=0
fi
done < /tmp/cloudview_adaptor_1
if [ $flag == 1 ]; then
ifconfig $line2 $1 netmask $2 up
route add default gw $3
fi... | true |
8f5c69b5dfc1ed684dc8a3477e567007530679cf | Shell | Darrenmei96/cps510 | /script.sh | UTF-8 | 1,727 | 3.609375 | 4 | [] | no_license | #!/bin/bash
usr="d2mei"
pw="01305179"
sqlinfo="$usr/$pw@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(Host=oracle.scs.ryerson.ca)(Port=1521))(CONNECT_DATA=(SID=orcl)))"
echo "*************************************************"
echo "* CPS510 - Section 3 *"
echo "* Ryerson University ... | true |
034aa6a3d81baaf4b2825166928d3272a689c609 | Shell | fuzzware-fuzzer/fuzzware-experiments | /03-fuzzing-new-targets/zephyr-os/building/docker_build_sample.sh | UTF-8 | 1,301 | 3.65625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# This script is to be run within the zephyr CI docker container
# It reproduces a vulnerable sample of zephyr-OS for the given CVE
set -x
set -e
# Create zephyr workspace for the given version if needed
workspace_dir=/workdir/workspace-$ZEPHYR_VERSION
if [ ! -e "$workspace_dir" ]; then
west init --mr... | true |
a00bfd7a75c3e72166f5a457885a624aff11fa9d | Shell | katalon-studio/docker-images | /test/project/run_chrome_root.sh | UTF-8 | 298 | 2.703125 | 3 | [] | no_license | #!/bin/bash
set -xe
ksversion=$1
apiKey=$2
docker run -t --rm -e KATALON_USER_ID=`id -u $USER` -v "$(pwd)":/katalon/katalon/source katalonstudio/katalon:$ksversion katalon-execute.sh -browserType="Chrome" -retry=0 -statusDelay=15 -testSuitePath="Test Suites/TS_RegressionTest" -apiKey=${apiKey}
| true |
cdf883ceed33dbbd548b92f869131057f9c6d62e | Shell | focusaurus/tealeaves | /bin/docker-build.sh | UTF-8 | 1,726 | 3.53125 | 4 | [] | no_license | #!/usr/bin/env bash
# Please Use Google Shell Style: https://google.github.io/styleguide/shell.xml
# ---- Start unofficial bash strict mode boilerplate
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
set -o errexit # always exit on error
set -o errtrace # trap errors in functions as well
set -o pipefail... | true |
17baf3531694e9de78bc625a4775adb68097fb57 | Shell | Tubbz-alt/rce-gen3-sw-lib | /test/hello_workshop/build.sh | UTF-8 | 2,193 | 3.015625 | 3 | [] | no_license | #!/bin/bash
#
# Build the hello world example for RTEMS
#
# To run this, you need to be in the directory where you found this script.
#set -x
#Compile the objects
rtems-gcc hello_so_1.c -I${RTEMS_SDK}/include/core \
-I${RTEMS_SDK}/include/rtems \
... | true |
f56831c9de375df69d25c9176dea2f1bb473ceba | Shell | projectlegionos/aosp-buildernew | /upload_ccache | UTF-8 | 500 | 2.953125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
cd /tmp
# Compress function with pigz for faster compression
com ()
{
tar --use-compress-program="pigz -k -$2 " -cf $1.tar.gz $1
}
time com ccache 1 # Compression level 1, its enough
if [ $with_gapps == "true" ];then # This is me testing out whether ccache's of vanilla and gapps build vary in bui... | true |
4d5305169443ae8ff1d8954df8ac2383b63475cf | Shell | Simas1/exercism-exercises | /bash/luhn/luhn.sh | UTF-8 | 959 | 3.78125 | 4 | [] | no_license | #!/usr/bin/env bash
input=$*
input=${input//[[:blank:]]/}
if ! [[ "$input" =~ ^[0-9]{2,}$ ]]; then
echo 'false'
exit 0
fi
num=${input// /}
declare -a arr=()
for ((i=0; i<${#num}; i++)); do
if [ $(((i+1)%2)) -ne 0 ]; then
# echo ${num:$i:1}
dup=$((${num:$i:1}*2))
[ $dup -gt 9 ] && dup=$((dup-9))
a... | true |
8e95da502705a0a89e43a38000203a6d78dfdd99 | Shell | limkokholefork/bash-cheat | /bin/find-scripts.BUG | UTF-8 | 875 | 4.1875 | 4 | [] | no_license | #!/usr/bin/env bash
#------------------------------------------------------------
#
# Ciro D. Santilli
#
# finds scripts based on extension and shebangs
# and returns their paths null separated
#
# shebangs can be either of type #!/bin/XXX or #!/bin/env/
#
# currently supported script types types:
#
# bash : 'sh', ... | true |
c9a11197488cd421e62521cf5516992361c37bc5 | Shell | joshnykamp/opscenter6 | /scripts/teardown_docker_cluster.sh | UTF-8 | 531 | 3.78125 | 4 | [] | no_license | #!/bin/sh
NUM_NODES=$1
if [ -z "$NUM_NODES" ]; then
echo "usage teardown_docker_cluster.sh NumNodes"
echo " NumNodes the number of nodes started when using start_docker_cluster.sh"
exit 1
fi
echo "Stop opscenter (if available)"
docker stop opscenter > /dev/null 2>&1
echo "Remove opscenter (if available)"
doc... | true |
8c4d750141bfd07b6f1ffb422cefe8bf8f01967a | Shell | michalstruna/exoplanets-ai | /scripts/dev.sh | UTF-8 | 317 | 2.6875 | 3 | [] | no_license | #!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")"
. ./argparser.sh
if [ $server -eq 1 ]; then
x-terminal-emulator -e mongod
x-terminal-emulator -e ./server-dev.sh
fi
if [ $web -eq 1 ]; then
x-terminal-emulator -e ./web-dev.sh
fi
if [ $client -eq 1 ]; then
x-terminal-emulator -e ./client-dev.sh
fi
| true |
96fd0ab5d7201f6df34508ac2b62972049eb950b | Shell | Juniper/tf-os-k8s-vagrant | /scripts/aio-ansible-os-k8s.sh | UTF-8 | 1,399 | 2.609375 | 3 | [] | no_license | #!/bin/bash -v
sudo yum install -y git ansible-2.4.2.0 pciutils wget tcpdump net-tools
# Download Contrail-Ansible-Deployer code For GA R5.0 use 1st command
sudo git clone -b R5.0 https://github.com/Juniper/contrail-ansible-deployer /opt/contrail-ansible-deployer
# sudo git clone https://github.com/Juniper/contrail-... | true |
0eebd6da2e4393cbd3d9723002d124b0c3769bc1 | Shell | ConYel/spar_pipeline | /scripts/create_bedgraph_track.sh | UTF-8 | 431 | 3.140625 | 3 | [
"MIT"
] | permissive | set -e
#source `dirname $0`/../config.sh
if [ $# -lt 3 ]
then
echo "USAGE: `basename $0` <input.bedgraph> <chrom.sizes> <out.bigWig"
exit 1
fi
#chromInfo=`dirname $0`/../annot/chromInfo.txt
INBG=$1 # input bedgraph
chromInfo=$2
OUTBIGWIG=$3 #"${INBG%.*}.bigWig" # output bedgraph
#if [ -f "${INBG}" ] && [ -s "${I... | true |
86d5e28d79386c3a3a1d28d6878619517a2818e1 | Shell | cligraphy/cligraphy | /staging/setup/setup | UTF-8 | 787 | 3.734375 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
#
if test "$1" = "-h" -o "$1" = "--help" -o "$1" = "help"; then
echo "setup [fragment...]: sets up environment for the oc tool suite"
exit 0
elif test -z "$1"; then
PARTS=(
base
python
homebrew
apt
yum
pkg
)
else
declare -a PARTS=(... | true |
80f670ca3914ec0bcf888c18ceede15b598ce671 | Shell | kfaustino/dotfiles | /zsh/prompt.zsh | UTF-8 | 1,194 | 3.546875 | 4 | [
"MIT"
] | permissive | autoload colors && colors
if (( $+commands[git] ))
then
git="$commands[git]"
else
git="/usr/bin/git"
fi
git_branch() {
echo $($git symbolic-ref HEAD 2>/dev/null | awk -F/ {'print $NF'})
}
git_dirty() {
st=$($git status --porcelain 2>/dev/null | tail -n 1)
if [[ "$st" == "" ]]
then
st=$($git status 2... | true |
413ed5d546467a7b2a63337d449486f8ea230676 | Shell | kitada4010/sbc | /shell/sed-filename.sh | UTF-8 | 215 | 3.171875 | 3 | [] | no_license | #!/bin/bash
for i in $(seq $(find . -type d | wc -l))
do
find . -maxdepth $i -name "$1" | \
while read line
do newline=$(echo $line | sed "s/'$1'/'$2'/g")
echo $newline
mv "$line" $newline
done
done
| true |
09f5a050a794498829c62396cadd73af4f816b75 | Shell | smxlong/minespray | /install-docker.sh | UTF-8 | 268 | 2.6875 | 3 | [] | no_license | #!/bin/bash
for NODE_IP in $(linode-cli linodes list --tags k8s --json | jq -r '.[].ipv4[0]'); do
scp -o StrictHostKeychecking=no -i hufr install-docker-script.sh $NODE_IP:/root
ssh -o StrictHostKeychecking=no -i hufr $NODE_IP /root/install-docker-script.sh
done
| true |
b82da4394e922fa7da62e35889ad70ee3a162233 | Shell | umanathlanka/edgeapps | /network-functions/sdewan_cnf/e2e-scenarios/three-single-node-clusters/edge1/start_cnf.sh | UTF-8 | 1,075 | 2.921875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2020 Intel Corporation
# start sdewan cnf with 2 provider networks.
PNET_IFC=net2
PNET_IP=$EDGE1_CNF_NET1_IFIP
PNET_NAME=pnetwork1
ONET_IFC=net3
ONET_IP=$EDGE1_CNF_NET3_IFIP
ONET_NAME=pnetwork2
SDEWAN_VALUES_FILE=./edgeapps/network-functions/sdewan_c... | true |
e27004f4a96657a39d3a042e305249740eece51e | Shell | basilmusa/java2bash | /src/main/java/java2bash/java2bash/core/BashScript.bash | UTF-8 | 403 | 2.90625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -euo pipefail
########## COMMON INCLUDES #################################################
{{uniqueCode}}
########## CODE ############################################################
{{code}}
{% if cleanupCode is not empty %}
########## CLEANUP CODE ###################################################... | true |
74e0a2705fdd8d10dd296400d58f08a9084d64e0 | Shell | andavb/Bash-calculator | /generirajMatriko.sh | UTF-8 | 2,805 | 3.15625 | 3 | [] | no_license | #!/bin/bash
#pravilen vnos mora biti tako da vpisemo stevila v matriko [ 1 2 3 4 , 5 6 7 8 ] vedno locimo s presledki
#./generirajMatriko.sh [ 1.23 2.45 3.4 5.3 , 1.3 1.4 2.72 4.56 ] [ 1 2 3 4 , 5 6 7 8 ]
#./generirajMatriko.sh [ 1.23 2.45 3.4 5.3 , 1.3 1.4 2.72 4.56 ] [ 12 32 43.2 -12.3 , 2 33.2 1.56 -12.452 ]
#./gen... | true |
0c575cb8cf062e6de0ad1ccff7914c835882ef2f | Shell | simonjohngreen/dc-open-contrail-buildandtest | /scripts/build2.sh | UTF-8 | 2,245 | 3.0625 | 3 | [] | no_license | echo Executing build2.sh
echo cloning the opencontrail git repo and building the products
# we need the keypairs file for the git user and login so test for it
if [ ! -f /home/vagrant/keypairs ]; then
echo "Keypairs file is missing but required by build2.sh!"
exit 1
fi
# extract variables from the keypair... | true |
b941091214c2deb6c53438a58e41b7eac7029629 | Shell | maxproft/thesis | /cgle/bulkcgle | UTF-8 | 420 | 3.46875 | 3 | [] | no_license | #!/bin/bash
echo -e "\nMaking Subfolder and Data for CPUs"
subfolder='folder'
python bulk_setup.py $subfolder
echo -e "\n "
#Total number of cpus
cpucores=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || sysctl -n hw.ncpu)
#1 fewer than the number of cpus
CPUsMinus="$(($cpucores-1))"
for cpuid in $(seq 0 $CPUsMinu... | true |
223ac33025436672fdecffccc4fc600efc9dc458 | Shell | krebs/painload | /retiolum/scripts/adv_graphgen/scripts/all-the-graphs | UTF-8 | 603 | 3 | 3 | [
"WTFPL"
] | permissive | #!/bin/bash
EXTERNAL_FOLDER=${EXTERNAL_FOLDER:-/var/www/euer.krebsco.de/graphs/retiolum}
INTERNAL_FOLDER=${INTERNAL_FOLDER:-/var/www/euer/graphs/retiolum}
export GEODB="${GEODB:-}"
export TINC_HOSTPATH=${TINC_HOSTPATH:-~/painload/retiolum/hosts}
mapfile="$INTERNAL_FOLDER/map.html"
if test -n "$GEODB";then
if test... | true |
59e3d0248e4f46872da460275ed7febaec95d723 | Shell | tro3373/dotfiles | /bin/vb | UTF-8 | 118 | 2.640625 | 3 | [] | no_license | #!/usr/bin/env bash
readonly DOT_BIN=${DOTPATH:-$HOME/.dot}/bin
main() {
cd $DOT_BIN
$DOT_BIN/v "$@"
}
main "$@"
| true |
857c189c49c486e8725546aad6ec9a1ff71d1965 | Shell | toniz4/bookmarksman | /bookmarksman | UTF-8 | 2,266 | 3.890625 | 4 | [
"0BSD"
] | permissive | #!/bin/sh
# See LICENSE for license details.
VERSION="0.1"
bookdir="${XDG_DATA_HOME:-$HOME/.local/share}/bookmarks"
bookmarks="$bookdir/bookmarks.json"
tmpbookmarks="$(mktemp)"
die () {
exit 1
}
openbookmark () {
selectsection="$(jq -r 'keys[]' "$bookmarks"\
| dmenu -w "$winid" -p "Open witch section?")" || die
... | true |
6d1c4d59fce699bee523b100188ecff5b1e80fd6 | Shell | PrairieOps/mtf-image-edit | /boot/onboot.sh | UTF-8 | 2,913 | 3.59375 | 4 | [] | no_license | #!/usr/bin/env bash
read -r -d '' \
MTFAUTOSSHSVC <<- EOF
[Unit]
Description=SSH tunnel to mtf_ssh host
After=network.target
[Service]
User=pi
ExecStart=/bin/bash /opt/mtf/bin/autossh.sh
RestartSec=5
Restart=always
[Install]
WantedBy=multi-user.target
EOF
if [ -d /boot/mtf ]
then
# Get MAC address
mac=$(ip -... | true |
06abbfaaf30d4a32c6f2280dce597f9989be8593 | Shell | ffirg/openshift | /bin/create-ose3-app-ab-deployment.sh | UTF-8 | 3,177 | 3.4375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
export APPNAME="ab-demo-app"
APPv1="version=1"
APPv2="version=2"
DEMO_USER="developer"
PROJECT="abdeployment"
SRC="https://github.com/ffirg/ab-deploy.git"
NAME="abdeploy.192.168.99.100.xip.io"
LABELS="versioning=true"
build_status="NULL"
pods=4
# include all our functions...
. ../libs/functions
#... | true |
872ba2e8ea8d540cc968e9c517b93177412049dc | Shell | waggle-sensor/wagman | /boards/v4/firmware/regular_mode/firmware/flash-wagman | UTF-8 | 421 | 2.890625 | 3 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | #!/bin/bash
# This file is part of the Waggle Platform. Please see the file
# LICENSE.waggle.txt for the legal details of the copyright and software
# license. For more details on the Waggle project, visit:
# http://www.wa8.gl
firmware=$1
port=$2
if [ -z "$firmware" ] || [ -z "$port" ]; then
echo "usage: ... | true |
4b361db18019f0ad9bdb50394cdf49cb2b3b1361 | Shell | hanulhan/LinuxScript | /StopPhilipsLogging.sh | UTF-8 | 817 | 3.4375 | 3 | [] | no_license | #!/bin/bash
CONFIG_FILE="/home/uli/Logging/Philips_putty_pid"
#Read LogFileName
#read -p "Filename: " LogFileName
#Read the config file
echo "Reading config..." >&2
if [ ! -f $CONFIG_FILE ]; then
echo "File $CONFIG_FILE not found!"
fi
source $CONFIG_FILE &>/dev/null
#echo $?
echo "Config for pidPutty: $pidPutty" ... | true |
4f6f42ff6c2047a6e79e46e4d563f7c00b8fe1d4 | Shell | YungSang/vagrant-docker-review | /contrib/review | UTF-8 | 1,342 | 3.890625 | 4 | [] | no_license | #!/bin/sh
print_usage() {
echo "Usage: $(basename $0) <command> [<arguments...>]"
echo
echo "command:"
echo " catalog-converter | review-catalog-converter"
echo " check | review-check"
echo " checkdep | review-checkdep"
echo " compile | review-compile"
echo " epubmak... | true |
a2f6f6934a3cb4c189a09f3816be54a216a276d9 | Shell | mikeyhu/GoRSS | /server/ops/test-stop.sh | UTF-8 | 152 | 2.9375 | 3 | [] | no_license | #!/bin/bash
echo "Stopping test mongo"
pidfile="test/resources/database.pid"
if [ -f $pidfile ]
then
PID=`cat ${pidfile}`
rm $pidfile
kill $PID
fi
| true |
9b1fc360128fd26a79d36f3c3854b41f84963e8a | Shell | mariosbikos/ceid-projects | /opsys12b/run_tests.sh | UTF-8 | 963 | 4 | 4 | [
"MIT"
] | permissive | #!/bin/bash
usage(){
cat << EOF
Usage: $0 [OPTIONS] {amount of clients}
OPTIONS
-a grep output for how many cokes were given
-b grep output for how many clients got colas
-v grep output for verbose representation of colas distribution on clients
NOTE
For easy monitoring of the server process
watch -n 0.1 "ps -eLf|... | true |
27125cd79187c3808e04aef3be3cf6a9bc8e1706 | Shell | ualsg/global-building-morphology-indicators | /query_templates/c1-gbmi/end_to_end_database.sh | UTF-8 | 1,327 | 3.21875 | 3 | [
"CC-BY-4.0"
] | permissive | #!/bin/bash
database="{{ database }}"
declare -a raster_names=('worldpop2020_1km' 'worldpop2020_100m')
declare -a commands=(\
"bash ./db_setup_${database}.sh" \
"bash ./osm_gadm_tables_${database}.sh")
for cmd in "${commands[@]}"; do
echo "\n ${cmd}"
eval "$cmd"
done
for raster_name in "${raster_names[@]}"... | true |
d5e908274f5b8b39c99d0a9165fc247ebc779bf4 | Shell | anonymous-sys19/Hacktoolpc | /hacktoolpc.sh | UTF-8 | 9,525 | 2.75 | 3 | [] | no_license | #!/bin/bash
#Politica y Privicidad »»»» HACKER-PC
echo -e "----> ESTE SCRIPT ESTA EN DESARROLLO PRONTO AGREGARE UN MENU <----"
sleep 3
clear
function limpiar_pantalla {
clear
}
limpiar_pantalla
while :
do
opcion=0
echo
echo
echo -e " \e[0;34m ::: ::: ::: :::::::: ::: ::::::::::::::::::... | true |
6d6e9ff7f3f0b77725e8320c42a5ae91db05ac0c | Shell | UVoggenberger/CEUAS | /CEUAS/public/harvest/code/download/odbgz.ksh | UTF-8 | 1,065 | 3.53125 | 4 | [
"CC-BY-4.0",
"NetCDF"
] | permissive | #!/bin/ksh
# -----------------------------------------------------------------------------
# This code has been developed in the service contract for C3S
#
# script for converting odb station files into gzipped ASCII format
#
# Limits for n should be adjusted depending on the server capacity
#
# (c) University of Vienn... | true |
6053742a402fdc1d00f19ed565e48931f3e07201 | Shell | WALL-E/darts | /install.sh | UTF-8 | 183 | 2.65625 | 3 | [] | no_license | #!/bin/bash
role=`id -u`
if test $role -ne 0
then
echo "运行脚本需要root权限"
exit 1
fi
yum install -y nodejs
npm install -g jasmine
npm install --save-dev frisby
| true |
d03deaac2766a9a798a3b3845fa185512b354a2c | Shell | MCalazans/crypto-infrastructure-demo | /mcalazans/dwarfs-forge/scripts/install-monitoring.sh | UTF-8 | 1,061 | 3.34375 | 3 | [] | no_license | #!/bin/bash
set -eu
PATH="/usr/sbin:/sbin:/usr/bin:/bin:/usr/local/bin"
CLOUDWATCH_MONITORING_SCRIPTS="CloudWatchMonitoringScripts-1.2.2.zip"
echo "**** Installing Monitoring Helpers"
# AWS specific configuration
echo "** Installing CloudWatch helper scripts"
echo "WARNING: This script will NOT add to crontab. You m... | true |
a78dba4043357ebc74a009f99ad7d9e7116ca2ee | Shell | EL-R/EL-Repo | /guessinggame.sh | UTF-8 | 550 | 3.5625 | 4 | [] | no_license | echo "Welcome"
echo "Try to gess how many files contains this repository"
echo "Keep in mind it's not many))"
function A {
echo "Please type any number"
read res1
}
A
while [[ $res1 -ne 3 ]]
do
echo "You chose $res1"
if [[ $res1 -gt 10 ]]
then
echo "It's too mach value. I give a hint value not more than ... | true |
269f9e6a409f3d915c2a277d2b4d6f12d0d970f9 | Shell | mananchhatriwala/hello-world | /Deployment/InitW1/TestInstallation/scripts/startservers.sh | UTF-8 | 5,079 | 3.015625 | 3 | [] | no_license | #!/bin/sh
# Is user specifies INSTALL_DB then create a new DB
# If user specifies DB_USER, then a user will be created
# DB_NAME
# DB_USER
# DB_PASS
# if the flag INSTALL_DB is specified and true
# install db
export DB_SCRIPT=/etc/postgresql/9.4/main/eam43a.sql
export PGPASSFILE=/etc/postgresql/9.4/main/.pgpass && ... | true |
7daba34e9ea83ce8b3eb5fe46d6ec31500505764 | Shell | aero31aero/bash-scripts | /runc | UTF-8 | 351 | 3.34375 | 3 | [] | no_license | #! /usr/bin/env bash
clear
SOURCE=$1.c
INPUT=$2
OUTPUT=$3
gcc $SOURCE
if [ $? -ne 0 ]; then
echo "Compilation Error! Please Debug!"
exit 1
fi
clear
echo "Compilation Successful!"
echo
echo "Program Input:"
echo "===================="
cat in
echo
echo "Program Output:"
echo "===================="
./a.out < $INP... | true |
313842b4d8c2f236fe91bd73cd5964ec239f6dff | Shell | jesse108/script_tools | /linux/db_backup.sh | UTF-8 | 371 | 2.84375 | 3 | [] | no_license | #!/bin/bash
# Mysql DB backup
# jesse_108@163.com
dateStr=`date "+%Y-%m-%d"`
year=`date "+%Y"`
month=`date "+%m"`
host="onlinein02.mysql.rds.aliyuncs.com"
db="db_name"
passwd="pwd"
username="username"
folder="/alidata/backup/backup/${year}/${month}"
mkdir -p $folder
fileName="${folder}/backup_${dateStr}.sql"
mys... | true |
25e1eff1035f55b1e885baf41fc4b62bd341acdb | Shell | limaia25/slicerDTIwithT1 | /RegistrationFreeSurferDTIWithoutT2.sh | UTF-8 | 6,089 | 2.703125 | 3 | [] | no_license | #!/bin/bash
##script para gerar as tratografias das labels para aseg, e gera ficheiro fa, trace, prependicular e parralel difusitivity; ainda gera um labelmap com o corpo caloso (partes)
##versão sem imagem T2
##Version Slicer4.3
SlicerHome="/home/lapsi/Documentos/Slicer-4.3.0-linux-amd64"
FreeSurferHome="/usr/local/f... | true |
95bb69e2c9ee2ec118dbc780c341259372b05fd5 | Shell | taiat/scripts | /public/aes-encrypt.sh | UTF-8 | 201 | 2.953125 | 3 | [] | no_license | #!/bin/bash
#Usage ./aes-decrypt.sh filename
echo "You are encrypting file: " $1 "."
echo "Write file output name: "
read name
echo "Type strong password!"
openssl enc -aes-256-cbc -in $1 -out $name
| true |
694c99b03c699fd4083bb02079235093cb4774a5 | Shell | w3bservice/linux | /sh/bitcoin.sh | UTF-8 | 1,200 | 3.421875 | 3 | [] | no_license | #!/bin/sh
BITCOIN_ROOT=/mnt/bitd
# Pick some path to install BDB to, here we create a directory within the bitcoin directory
BDB_PREFIX="${BITCOIN_ROOT}/db4"
mkdir -p $BDB_PREFIX
# Fetch the source and verify that it is not tampered with
wget 'http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz'
echo '12edc0df... | true |
54d6cfa326da30b324f838a9d9b08ed0ba6fdcc8 | Shell | pwr-kstasinski/Z03-24g | /Lab 2/Solutions/zadanie6.sh | UTF-8 | 415 | 3.203125 | 3 | [] | no_license | #!/bin/bash
echo -n "Sciezka: "
read path
counter(){
for file in "$1"/*
do
if [ -d "$file" ]
then
echo "$file"
counterhelp "$file" "$2"
fi
done
}
counterhelp(){
for file in "$1"/*
do
if [ -d "$file" ]
then
echo -n "$2"
echo "$f... | true |
4bf70fdbd3f91c6ddc7b3359eedd90fccfdbfbe1 | Shell | mqwHub/kafka-client | /bin/start.sh | UTF-8 | 1,013 | 3.03125 | 3 | [] | no_license | !/bin/bash
cd `dirname $0`
BIN_DIR=`pwd`
cd ..
DEPLOY_DIR=`pwd`
CONF_DIR=$DEPLOY_DIR/conf
LIB_DIR=$DEPLOY_DIR/lib
LOGS_DIR=$DEPLOY_DIR/logs
LIB_JARS=`ls $LIB_DIR|grep .jar|awk '{print "'$LIB_DIR'/"$0}'|tr "\n" ":"`
CLASSPATH="$LIB_JARS:$CONF_DIR"
STDOUT_FILE=$LOGS_DIR/stdout.log
JAVA_MEM_OPTS=""
BITS=`java -version 2>&... | true |
ef7b2c5b21216694c128b8ddc8b3a9f812e437b7 | Shell | andrewmichael/igluctl | /.travis/deploy.sh | UTF-8 | 275 | 2.578125 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/bin/bash
set -e
tag=$1
cd "${TRAVIS_BUILD_DIR}"
export TRAVIS_BUILD_RELEASE_TAG="${tag}"
release-manager \
--config "./.travis/release.yml" \
--check-version \
--make-version \
--make-artifact \
--upload-artifact
echo "DEPLOY: igluctl deployed..."
| true |
65623b5fd2cd29c840a94d85ed99da5768bcb3a8 | Shell | JING-XINXING/lmbio_test | /RUNP1 | UTF-8 | 4,803 | 3.078125 | 3 | [] | no_license | #!/bin/bash
########################################################################################################
# Pipeline1: 蛋白分析流程头部,包括质谱原始数据读取、筛选、分析和绘图,简称P1
# Version: v2.6
# Date: 2019/12/30
# New:
# Usage: RUNP1
##################################################################################################... | true |
7ba4bc37732e879ae23865a75700e83740b23110 | Shell | zoripong/word-way-backend | /install.sh | UTF-8 | 279 | 2.8125 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
if [[ "$VIRTUAL_ENV" = "" ]]; then
echo 'You seem not in any virtual environment.' \
'Please try after activate virtualenv.'
exit 1
fi
git config core.hooksPath "$PWD/git/hooks/"
pip install --upgrade pip
pip install -r dev-requirements.txt
| true |
b399484731c3acc532814c126bf407c64eca69ac | Shell | giuseppemorelli/docker-devbox | /local/bin/phpcs.sh | UTF-8 | 232 | 2.53125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DOCKER_COMPOSE_DIR=${SCRIPTDIR}/../
cd "$DOCKER_COMPOSE_DIR" || exit
docker-compose exec -T -u $UID web /var/www/html/project/vendor/bin/phpcs "$@"
| true |
61b472b08a1ca0afe465456bcff7267294fb2b9a | Shell | vijayrajah/scripts | /sysinfo/get_system_status.sh | UTF-8 | 787 | 3.09375 | 3 | [] | no_license | #!/bin/bash
##Autor: vijay Rajah
##me@rvijay.in
env() {
#declare -a CMDS
CMDS='uptime
uname -a
date
w
ps aux
df -h
ifconfig -a
iptables -L --line-numbers -v -n
iptables -L --line-numbers -v -n -t nat
pstree -pau
ntpdate -q -u pool.ntp.org
cat /proc/user_beancounters
lsof'
DT=`date +%Y-%m-%d_%Hh%Mm%Ss`
PATH=... | true |
89439bce5dc4101a2906adac3977f649048fa794 | Shell | voutilad/dotfiles-1 | /.xsession | UTF-8 | 1,523 | 3.046875 | 3 | [] | no_license | #!/bin/sh -x
cleanup() {
echo "cleaning up"
pkill -9 dzen2 i3status dbus-daemon redshift
rm -f ~/.Xauthority
}
trap cleanup INT TERM QUIT
export LANG=en_US.UTF-8
export MOZ_USE_XINPUT2=1
SCREEN_WIDTH=`xrandr 2>&1 | grep "Screen 0: minimum" | sed -e 's/.*, current //' -e 's/ x.*//'`
if [ "${SCREEN_WIDTH}" -gt 2000... | true |
5f2dd1ce3f254c62ca33447cc6b5b9b7d826ccf6 | Shell | AnwarAsif/vimrc | /install_basic.sh | UTF-8 | 221 | 2.609375 | 3 | [] | no_license | #!/bin/sh
set -e # exit in case of any error
cd ~/.rcasif
cp ~/.vimrc ~/.vimrc_bk
cat ~/.rcasif/basicrc > ~/.vimrc
echo "My basic RC file is loaded in to ~./.vimrc file"
echo "Previous vimrc is save to ~/.vimrc_bk file"
| true |
17d1e02df9874f7d2cd7afa565ef7dd7853133da | Shell | jschauma/photoscripts | /combine-videos | UTF-8 | 285 | 3.171875 | 3 | [] | no_license | #! /bin/sh
n=0
filter=""
iflags=""
for i in $@; do
iflags="${iflags} -i ${i}"
filter="${filter}${filter:+ }[${n}:0] [${n}:1]"
n=$(( ${n} + 1 ))
done
eval ffmpeg ${iflags} \
-filter_complex \'${filter} concat=n=${n}:v=1:a=1 [v] [a]\' \
-map '[v]' -map '[a]' combined.mov
| true |
ee3fcac23a82f951aa10976d0e1cefde052a9fea | Shell | fuzzm/fuzzm-project | /benchmarks/LAVA-M/md5sum/binbackup/zforce | UTF-8 | 2,104 | 3.890625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# zforce: force a gz extension on all gzip files so that gzip will not
# compress them twice.
#
# This can be useful for files with names truncated after a file transfer.
# 12345678901234 is renamed to 12345678901.gz
# Copyright (C) 2002, 2007, 2010 Free Software Foundation
# Copyright (C) 1993 Jean-loup ... | true |
e03a39b6a9c3cd0d896f9ce7fa1243f0db88816a | Shell | trevora/dotfiles | /packages | UTF-8 | 486 | 3.1875 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
CONFIG="packages.conf.yaml"
DOTBOT_DIR="dotbot"
APTGET_DIR="dotbot_plugin_aptget"
DOTBOT_BIN="bin/dotbot"
APTGET_PLUGIN="aptget.py"
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "${BASEDIR}"
git submodule update --init --recursive "${DOTBOT_DIR}"
git submodule update --init -... | true |
243088c32bf9ec385c22f044b71146ba2184b777 | Shell | guillon/docker-qemu-tutorial | /entrypoint.sh | UTF-8 | 470 | 3.375 | 3 | [] | no_license | #!/usr/bin/env bash
set -euo pipefail
if [ $# -gt 0 ] && [ "$1" != "--" ]; then
exec "$@"
fi
cd /home/hacker
[ -d qemu-tutorial ] || cp -a /qemu-tutorial qemu-tutorial
echo ""
echo " Welcome to the JCF11 QEMU Tutorial"
echo ""
echo " You're running bash into a Ubuntu 14.04 container as user 'hacker'."
ech... | true |
5d65c796e7bd0d26a361be7379a29d85243996be | Shell | vejmelkam/fmda_scraper | /retrieve_observations.sh | UTF-8 | 328 | 3.75 | 4 | [] | no_license | #!/usr/bin/env bash
if [ $# -ne 2 ]; then
echo "usage: retrieve_observations.sh <station-list> <timestamp>"
echo " <timestamp> must be formatted as YYYY-MM-DD_HH:mmm"
exit 2
fi
STATIONS=`grep -v "^#" $1`
for S in $STATIONS ;
do
echo "Processing $S ..."
python scrape_station.py -c $S -i 24 -t $2 ... | true |
a8cca5935f237703d7f987bd91fd3ee64842f9a2 | Shell | onebytegone/arduino-blink | /bin/flash.sh | UTF-8 | 560 | 3.796875 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | #!/usr/bin/env bash
# Usage: ./bin/flash.sh ${PORT}
set -e
TARGET_PORT=$1
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
if [ -z "${TARGET_PORT}" ]; then
echo "ERROR: A port must be provided e.g. ./bin/flash.sh /dev/tty.usbmodem123"
echo
echo "Known ports:"
ls -1 /dev/tty... | true |
419fb275396a9a2b33072ff7de702b98bce66633 | Shell | rit-git/tagging | /appendix/albert/albert.sh | UTF-8 | 808 | 2.625 | 3 | [
"Apache-2.0"
] | permissive | CUDA=3
mkdir log
for dataset in "SUGG"
do
DATA_DIR="/home/ubuntu/users/jinfeng/tagging/data/${dataset}"
MODEL_DIR="./model/${dataset}/seed_${rand_seed}"
LOG_FILE_PATH="./log/albert.log"
echo "" >> ${LOG_FILE_PATH}
SEED=1000
CUDA_VISIBLE_DEVICES=${CUDA} python ../../model/transformer.py \
... | true |
2eb28008b69e4fd0115bd2018c9a50c61987fb98 | Shell | skulumani/system_setup | /build_scripts/setup_jabref.sh | UTF-8 | 1,111 | 3.703125 | 4 | [] | no_license | # Download and setup JabRef into ~/
JABREF_VERSION="5.1"
JABREF_FNAME="JabRef-${JABREF_VERSION}-portable_linux.tar.gz"
JABREF_LINK="https://builds.jabref.org/master/${JABREF_FNAME}"
JABREF_DIR="$HOME/JabRef"
WORK_DIR=$(mktemp -d)
# make sure tmp dir was actually created
if [[ ! -d "$WORK_DIR" ]]; then
echo "Coul... | true |
e144758c69f9b13db577037b769a9ec37f4e68fb | Shell | SimpleValue/sv.gcloud.docker.clj-app | /run.sh | UTF-8 | 222 | 3.046875 | 3 | [] | no_license | #!/bin/bash
if [ ! -n "$CONFIG" ]
then
echo "Env variable CONFIG with edn config for app is missing"
exit 1
fi
if [ -n "$UBERJAR" ]
then
gsutil cp -n "$UBERJAR" uberjar.jar
fi
java -jar uberjar.jar "$CONFIG"
| true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.