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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
c04b243fffa8c6452d0aca7b3deb193faea21bce | Shell | snaury/MINGW-packages | /mingw-w64-lixslt/PKGBUILD | UTF-8 | 2,502 | 2.625 | 3 | [
"BSD-3-Clause"
] | permissive | # Maintainer: Alexey Pavlov <alexpux@gmail.com>
_realname=libxslt
_mingw_suff=mingw-w64-${CARCH}
pkgname="${_mingw_suff}-${_realname}"
pkgver=1.1.28
pkgrel=1
pkgdesc="XML stylesheet transformation library (mingw-w64)"
arch=('any')
url="http://xmlsoft.org/XSLT/"
license=('custom')
depends=("${_mingw_suff}-crt" "${_ming... | true |
f2ef2065409ed57e4aa65efbb2695dbcb5b2b9fc | Shell | ZwAnto/ca22-selenium | /entrypoint | UTF-8 | 387 | 2.671875 | 3 | [] | no_license | #!/bin/bash
printenv > /etc/environment
echo '0 6,18 * * * cd /opt && /usr/local/bin/python3 -m scraper.main > /var/log/cron.log 2>&1' >> /etc/cron.d/hello-cron
chmod a+x /etc/cron.d/hello-cron
crontab /etc/cron.d/hello-cron
#fix link-count, as cron is being a pain, and docker is making hardlink count >0 (very high)... | true |
419e8abdc1eb8bc7fb96b8d0bb31936211090ce6 | Shell | MeteorAdminz/redis | /3.2/test.sh | UTF-8 | 330 | 3.40625 | 3 | [] | no_license | #!/bin/bash
set -e
if [[ ! -z "${DEBUG}" ]]; then
set -x
fi
IMAGE=$1
NAME=$2
cid="$(docker run -d --name "${NAME}" "${IMAGE}")"
trap "docker rm -vf $cid > /dev/null" EXIT
redis() {
docker run --rm -i \
--link "${NAME}" \
"${IMAGE}" \
"${@}"
}
redis make check-ready host="${NAME}"
redis make flushall host... | true |
f0d252fcca8471f1fa43e77a34e6414c642fdb45 | Shell | EOEPCA/template-svce | /travis/release.sh | UTF-8 | 1,233 | 3.828125 | 4 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/usr/bin/env bash
# fail fast settings from https://dougrichardson.org/2018/08/03/fail-fast-bash-scripting.html
set -eov pipefail
# Check presence of environment variables
TRAVIS_BUILD_NUMBER="${TRAVIS_BUILD_NUMBER:-0}"
# obtain current repository name
REPO_LOCAL_PATH=`git rev-parse --show-toplevel`
REPO_NAME=`bas... | true |
a1b2e5d4b254f5e9eabf8393ba4d94b81f615db9 | Shell | joewww/ci-cd | /manage.sh | UTF-8 | 682 | 3.484375 | 3 | [] | no_license | #!/bin/sh
remote_config() {
terraform remote config \
-backend=s3 \
-backend-config="bucket=joewww-terraform" \
-backend-config="key=network/terraform.tfstate" \
-backend-config="region=us-east-1"
}
cd terraform/
case "$1" in
plan)
remote_config
terraform remote pull && terraform plan &&... | true |
2a084572b1d5792ee0723ebad9edebfe847caff3 | Shell | twintproject/twint-splunk | /twint-geo | UTF-8 | 1,187 | 4.21875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#
# This script downloads a user's tweets by year.
#
# Errors are fatal
set -e
#
# Change to where this script is
#
pushd $(dirname $0) > /dev/null
#
# Sanity check for our username.
#
if test ! "$4"
then
echo "! "
echo "! Syntax: $0 lat lon distance output_file [ options ]"
echo "! "
exit 1
fi
LAT... | true |
6c939722a52e54710f0c3901e226db4201a1d397 | Shell | JuJuKK/ttyDockerTraining | /runAllContainers.sh | UTF-8 | 1,033 | 2.796875 | 3 | [] | no_license | #! /bin/bash
echo "Starting containers for Palpo Docker assignment..."
# Stop and remove all containers
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
# Create new network
docker network create --subnet=172.20.0.0/16 palponet
# Haproxy; 172.20.0.2
docker run -d --name haproxy --net palponet --ip 172.2... | true |
fa1fd22484cfca48dce8a8f621974d1e65ec6dcd | Shell | TheInventorMan/ConnectNow | /lib/dpkg/info/apt-xapian-index.postrm | UTF-8 | 266 | 2.84375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
set -e
if [ "$1" = "remove" -o "$1" = "purge" ]; then
echo "Removing index /var/lib/apt-xapian-index..."
rm -rf /var/lib/apt-xapian-index
fi
if [ "$1" = "remove" -o "$1" = "purge" ]; then
rm -ff /usr/share/apt-xapian-index/plugins/*.pyc
fi
exit 0
| true |
1ed3d44ca24cf1aaed1ef255afff28d69492977c | Shell | sanjay-jaiswal/Shell-Script | /WhileLoop/TableOfPowerOf2.sh | UTF-8 | 242 | 3.25 | 3 | [] | no_license | #!/bin/bash -x
read -p "Please enter power of 2 : " power
sum=$((2**$power))
num=2
count=1
while [ $num -lt $sum ]
do
num=$((2**$count))
count=$(($count+1))
echo $num
if [ $num -eq 256 ]
then
break
fi
done
| true |
badea238d385d0207f61bdc20c4def4e013f6fc9 | Shell | sp1022/pigsty | /app/cmdb/install | UTF-8 | 1,639 | 3.46875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#==============================================================#
# File : install
# Ctime : 2021-06-29
# Mtime : 2021-06-29
# Desc : install pgsql monitoring system
# Path : app/pgsql/install
# Copyright (C) 2018-2021 Ruohang Feng
#==========================================... | true |
7efcaff35d9acadfb8b29ba369376f2cbc8fa322 | Shell | weera00/Airlink1.0.1aN1jp | /mysql_pass.sh | UTF-8 | 830 | 2.8125 | 3 | [] | no_license | clear
echo "MySQL Database config"
echo "---------------------------------------"
echo ""
. /usr/local/bin/hotspot/mysar/etc/config.ini
if [ -z $SQL_PASS ]; then
read -p "Change MySql root password: " SQL_PASS
fi
if [ -z $SQL_PASS ]; then
echo "Abort."
echo "Password is not change..."
echo ""
else
sed -i "s/$dbPa... | true |
3f542c13024b257e6365529144521e0115445cea | Shell | tnw-open-source/credential-provision | /revoke-vpn-key | UTF-8 | 2,224 | 3.90625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if [ $# -lt 1 ]
then
echo Usage: 1>&2
echo " revoke-web-key EMAIL [COMMON_NAME]" 1>&2
exit 1
fi
email="$1"
common_name="${2:-"*"}"
desc="Revoke Web certificate for $1 - $2"
ca=${VPN_CA:-.}
ca_cert=${VPN_CA_CERT:-.}
bucket=${CRL_BUCKET:-""}
# Temp Files
TMP_CRL=${ca}/crl.tmp$$
TMP_WORK=/tmp/... | true |
91665beea8ffc34509b3e63904e34da6934644c8 | Shell | flow-r/ultraseq | /ultraseq/inst/scripts/split_fq | UTF-8 | 3,290 | 4.21875 | 4 | [] | no_license | #!/bin/bash -e
## usage: split_fq number_of_chunks fastq
# Usage info
show_help() {
cat << EOF
FASTQ Splitter
sseth @ MD Anderson
Usage: ${0##*/} [-c number of chunks] [-n number of reads per file] -f [fastq file]
Split a fastq files into specific number of (predetermined) chunks.
-f FASTQ Input fastq file.... | true |
3b219dcf608dc761f5d7fdfcef021fce77bbf0e8 | Shell | agliga/agliga-setup | /home/.profile | UTF-8 | 752 | 2.671875 | 3 | [] | no_license |
# MacPorts Installer addition on 2012-10-05_at_07:47:19: adding an appropriate PATH variable for use with MacPorts.
export PATH="/opt/local/bin:/opt/local/sbin:$(du "$HOME/Scripts" | cut -f2 | paste -sd ':'):$HOME/.rvm/bin:$PATH"
# Finished adapting your PATH environment variable for use with MacPorts.
export DEV=~/... | true |
6970a44363ed2709f36cfff0f2fa903e21abfcd3 | Shell | ypapax/fuzzy_postgres_speed | /commands.sh | UTF-8 | 13,423 | 2.65625 | 3 | [] | no_license | #!/usr/bin/env bash
set -ex
set -o pipefail
run() {
docker-compose build
docker-compose up
}
rerun() {
set +e
docker kill fuzzy_postgres_speed_postgres_1
docker rm fuzzy_postgres_speed_postgres_1
set -e
run
}
sql() {
psql -h localhost -p 5439 -U postgres -d people -c "$@"
}
sqla() {
sql "EXPLAIN (... | true |
006fc50be4022e4546a91e7b80ba8989c7beb5b8 | Shell | watchexec/cargo-watch | /bin/sign | UTF-8 | 1,147 | 3.875 | 4 | [
"LicenseRef-scancode-public-domain",
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/usr/bin/env bash
set -euo pipefail
if ! which rsign >/dev/null; then
echo "Requires rsign2 tool: $ cargo install rsign2"
exit 2
fi
missing=""
for f in {B3,SHA512}SUMS{,.auto.minisig}; do
[[ ! -f "$f" ]] && missing="$missing $f"
done
if [[ ! -z "$missing" ]]; then
echo "Usage: bin/sign [rsign opti... | true |
8ceb9b8cd21d7ed832660e5a8d92fdce79fc8271 | Shell | mharasim/snoop | /scripts/run.sh | UTF-8 | 1,561 | 2.828125 | 3 | [
"MIT"
] | permissive | # MIT License
#
# Copyright (c) 2019 Marcin Harasimczuk
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, ... | true |
655602af5dee61260d0fae981fe4ab2b2e021618 | Shell | phys3800/Project-1 | /run_integrate2.sh | UTF-8 | 383 | 3.359375 | 3 | [] | no_license | #!/bin/sh
# run_integrate2.sh
# shell script useful for running the program integrate for several cases,
# i.e., different orders of Laguerre polynomials used
# assumes the existence of file called wieghts.dat_#, where # is the order
# of the Laguerre polynomial
for n in 2 4 8 16 20 24 28 32
do
f=weights.dat_$n
... | true |
269d8e1b7f7d4057999ea8739d37218fab9882b9 | Shell | mkienzle/MachineLearning | /Scripts/Tensorflow/classify.sh | UTF-8 | 2,298 | 3.5 | 4 | [] | no_license | #!/usr/bin/env bash
# Download scripts
curl -LO https://github.com/tensorflow/hub/raw/master/examples/image_retraining/retrain.py
curl -LO https://github.com/tensorflow/tensorflow/raw/master/tensorflow/examples/label_image/label_image.py
rm -rf train
dir="train"
for line in $(cat ../../Data/Synthetic/Dots/${dir}/${d... | true |
e7346118311d18a55bb01f6f5ac6536c5123f2ff | Shell | adgoudz/dotfiles | /zsh/.zpreztorc | UTF-8 | 2,009 | 2.59375 | 3 | [] | no_license |
# Color output (auto set to 'no' on dumb terminals).
zstyle ':prezto:*:*' color yes
#
# Set Prezto modules to load
#
# 'directory' \
# 'spectrum' \
# 'utility' \
zstyle ':prezto:load' pmodule \
'editor' \
'history' \
'git' \
'syntax-highlighting' \
'prompt'
#
# Prompt
#
# Set the prompt theme to load.
z... | true |
fd098bae31cdfd9e0790e311156ab3411912d24b | Shell | ministryofjustice/wmt-worker | /test/integration/resources/setup-aws.sh | UTF-8 | 1,699 | 2.53125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
export TERM=ansi
export AWS_ACCESS_KEY_ID=foobar
export AWS_SECRET_ACCESS_KEY=foobar
export AWS_DEFAULT_REGION=eu-west-2
export PAGER=
aws --endpoint-url=http://localhost:4566 s3api create-bucket --bucket wmt-worker --region ${AWS_DEFAULT_REGION} --create-bucket-configuration LocationConstr... | true |
11a5e1aa8c80b754aa5237aaa7aa3be4c78523bc | Shell | launchdarkly/ld-find-code-refs | /.ldrelease/publish-dry-run.sh | UTF-8 | 1,042 | 2.9375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# The "products-for-release" makefile target does a goreleaser build but doesn't push to DockerHub
$(dirname $0)/run-publish-target.sh products-for-release
# Copy the Docker image that goreleaser just built into the artifacts - we only do
# this in a dry run, because in a real release the image will be av... | true |
8d215fcd7cda2aa6edb08c4a69f8b82ec8a5a293 | Shell | jcockbain/advent-of-code | /run.sh | UTF-8 | 219 | 3.546875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
day=${1:-$DAY}
d=day${d}
if [ -z $day ]
then
echo "You must set \$DAY or pass day directory as an arg"
exit 1
fi
if [ ! -d $day ]
then
echo "$day is not a directory!"
exit 1
fi
cd $day
go run . | true |
c89577e8208ede9e9f07e2ecca5998e4aeaa2af9 | Shell | lekoOwO/SuperChatSum | /run.bash | UTF-8 | 619 | 3.234375 | 3 | [] | no_license | #!/bin/bash
PYTHONIOENCODING=utf-8
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
. "$DIR/config.ini"
output_dir="$DIR/output"
mkdir -p $output_dir
uuid=$(cat /proc/sys/kernel/random/uuid)
rawDataFilepath="$output_dir/$uuid.json"
calculatedFilepath="$output_dir/$uuid.calc.json"
URL=$1
e... | true |
f0089657b104b40022a0d8b26f349fe8cb9c7c8f | Shell | tannonk/playground | /huggingface/setup_env.sh | UTF-8 | 531 | 2.65625 | 3 | [] | no_license | #!/usr/bin/env bash
# -*- coding: utf-8 -*-
home=/home/user/kew
transformers=$home/INSTALLS/transformers
conda create -y --name transformers python=3.8 pip
#set +euo pipefail
set +eu
# make conda available to current subshell
source $home/anaconda3/etc/profile.d/conda.sh
conda activate transformers
set -eu
pip3 ins... | true |
723200d2668698f347e65f74537b868da3962fe3 | Shell | cdbdev/arch-install | /script/my_arch_install.sh | UTF-8 | 8,105 | 3.8125 | 4 | [] | no_license | #!/bin/bash
# ----------------------------------------------------------------------- #
# Arch Linux install script #
# ----------------------------------------------------------------------- #
# Author : Chris #
# Project : https://github.com/cdbdev/arch-install #
# Reference : https://wiki.ar... | true |
ffe9d06b827947f25c3193b0e6cf45a72f8e9ba6 | Shell | maxvgi/zabbix-templates | /check_backups/check_backups.sh | UTF-8 | 649 | 3.78125 | 4 | [] | no_license | #!/bin/bash
backup_config=/backups/buckets.zabbix
DIR=.
if [[ "$1" != "" ]] ; then
DIR=$1
if [[ "$DIR" == "discovery" ]] ; then
for bucket in `cat ` ; do
if [[ "$buckets" != "$backup_config" ]] ; then
buckets=$buckets','
fi
buckets=$buckets'{"{#BUCKET}":"'$bucket'"}'
done
echo '{"data":['$bucket... | true |
c8f55e76f61712b063733f282e401ec4a5325174 | Shell | DouglasOY/scripts | /life/calc.sh | UTF-8 | 363 | 3.640625 | 4 | [] | no_license | #!/bin/bash
if [ $# -eq 1 ]
then
bound=$1
nbound=$((0 - bound))
portion=` awk '{ if (($1 >= '${nbound}') && ($1 <= '${bound}')) t+=$2; } END {print t; }' sort.dat `
total=` awk '{ sum+=$2; } END {print sum }' sort.dat `
echo " ${portion} / ${total} = "
echo " ${portion} / ${total} " | bc -l
el... | true |
e66098d92ed29a4682f769c4b6e3a7b38b87da9a | Shell | SaurabhT311/CodeInClub-Day6 | /primerange.sh | UTF-8 | 308 | 3.515625 | 4 | [] | no_license | #!/bin/bash -x
read -p "enter start number: " start
read -p "enter end number: " end
for (( i=$start ; i<=$end; i++ ))
do
count=1
for(( j=2; j<=$i; j++ ))
do
if [ $(( i % j )) == 0 ]
then
count=$(( count + 1 ))
fi
done
if [[ $count -le 2 ]] && [[ $i -ne 1 ]]
then
echo -n $i " "
fi
done
| true |
db56afd4d8154587b66b6c30ab22f9c2998c3158 | Shell | bruno-kenji/aws-scripts | /scripts/invoke-lambda.sh | UTF-8 | 548 | 3.265625 | 3 | [
"MIT"
] | permissive | # you must setup aws-shell and aws-configure first (check the readme)
#!/bin/bash
# .main.sh provides API_ID
. ./support/aws-scripts/.main.sh
API_NAME="$(aws apigateway get-rest-api --rest-api-id $API_ID | jq -r '.name')"
# can receive lambda name
if [ $1 ]
then
LAMBDA_NAME=$1
else
read -p "Lambda name (not the... | true |
0b5a1ed259e70ee2f95ed2f9411630af2dd26b27 | Shell | azrobbo/dotfiles | /bin/stun | UTF-8 | 929 | 3.96875 | 4 | [] | no_license | #!/bin/sh
# make it easier to two hop ssh
# Usage:
# stun user@farhost [nearhost]
# nearhost - first ssh host that localhost can contact directly
# farhost - second ssh host that only nearhost can reach
# caveats:
# - a public key is necessary on the nearhost because no opportunity
# is given to log in with... | true |
91d78c429b919393dc481939ee6dd10b8acddbd3 | Shell | pauljxtan/miscellany | /utils/flac_to_mp3.bash | UTF-8 | 953 | 3.296875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Converts FLAC files to mp3, with tags.
for INFILE in "$@"
do
OUTFILE="${INFILE[@]/%flac/mp3}"
# TODO: Add more tags if needed
ALBUM=$(metaflac --show-tag=ALBUM "$INFILE" | sed s/ALBUM=//g)
ARTIST=$(metaflac --show-tag=ARTIST "$INFILE" | sed s/ARTIST=//g)
TITLE=$(metaflac --show-tag=... | true |
c788848ef4a79976cefa25334601e45596e955ef | Shell | open-atmos/camp | /test/unit_rxn_data/test_first_order_loss.sh | UTF-8 | 604 | 3.640625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# exit on error
set -e
# turn on command echoing
set -v
# make sure that the current directory is the one where this script is
cd ${0%/*}
# make the output directory if it doesn't exist
mkdir -p out
((counter = 1))
while [ true ]
do
echo Attempt $counter
if [[ $1 = "MPI" ]]; then
exec_str="mpirun -v ... | true |
6467769b3b6fe7d2de783c9494ad97dcfb5f0c1d | Shell | greeneyesproject/testbed-demo | /vsn/script/greeneyes | UTF-8 | 1,840 | 3.53125 | 4 | [
"MIT"
] | permissive | #! /bin/sh
### BEGIN INIT INFO
# Provides: greeneyes-vsn
# Required-Start: $local_fs $network
# Required-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: GreenEyes VSN
# Description: Startup initialization script for GreenEyes VSN
### END INIT INFO
# C... | true |
cc63ec568665b236d0e19c980ff0857a5632f9cf | Shell | lemeurherve/mirror-scripts | /sync-recent-releases.sh | UTF-8 | 1,410 | 3.5625 | 4 | [] | no_license | #!/usr/bin/env bash
set -o nounset
set -o errexit
set -o pipefail
BASE_DIR=/srv/releases/jenkins
UPDATES_DIR=/var/www/updates.jenkins.io
REMOTE_BASE_DIR=data/
HOST=jenkins@ftp-osl.osuosl.org
SCRIPT_DIR=$PWD
[[ $# -eq 1 ]] || { echo "Usage: $0 <recent-releases.json>" >&2 ; exit 1 ; }
[[ -f "$1" ]] || { echo "$1 is not... | true |
b71b27ffcb87231e2ed1187e7b08cd8415c498bc | Shell | elambert/honeycomb | /whitebox/sp/src/scripts/cleanDisks.sh | WINDOWS-1252 | 2,840 | 3.34375 | 3 | [] | no_license | #!/bin/bash
#
# $Id: cleanDisks.sh 10857 2007-05-19 03:01:32Z bberndt $
#
# Copyright 2008, Sun Microsystems, Inc.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# # Redistributions of source code must retain th... | true |
11cce1f584ac936d7e43fb6ad234d5eae47e34f5 | Shell | tolson-vkn/dex-k8s-ldap | /misc/gencert.sh | UTF-8 | 862 | 2.796875 | 3 | [] | no_license | #!/bin/bash
SSL_DIR=../ssl
mkdir -p $SSL_DIR
cat << EOF > $SSL_DIR/req.cnf
[req]
req_extensions = v3_req
distinguished_name = req_distinguished_name
[req_distinguished_name]
[ v3_req ]
basicConstraints = CA:FALSE
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
subjectAltName = @alt_names
[alt_names]
D... | true |
bdb2d178588449574b3d10a35301613893108371 | Shell | AlexanderGrooff/dotfiles | /scripts/setup_nvim.sh | UTF-8 | 450 | 3.03125 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
set -x
# Check if AstroNvim is already present
pushd ~/.config/nvim || /bin/true
if ! git remote -v | grep -q Astro; then
# Remove local state
rm -rf ~/.config/nvim ~/.local/share/nvim ~/.local/state/nvim ~/.cache/nvim || /bin/true
cd
# Install AstroNvim
git clone --dept... | true |
c74bc68fdee6fe26f3cbbcc7c32a35120a8b10f2 | Shell | housir2001/configs-mirror | /programs/nix-scripts/use_nix.sh | UTF-8 | 4,027 | 4.21875 | 4 | [] | no_license | #!/usr/bin/env bash
use_nix() {
echo "Hello" 3>&1 1>&2 2>&3
if ! validate_version; then
echo "This .envrc requires direnv version 2.18.2 or above."
exit 1
fi
# define all local variables
local shell
local files_to_watch=()
local opt OPTARG OPTIND # define vars used by getopts locally
while ge... | true |
3651a8172f8db29cdb0fe5c9227d4e8988b07117 | Shell | ayoshimatsu/shellPractice | /shellFile/if_cd.sh | UTF-8 | 69 | 2.546875 | 3 | [] | no_license | #!/bin/bash
if cd "$1"; then
echo success
else
echo fail
fi
| true |
a0e86d764b601858a39123ccf4baac8218dc1a29 | Shell | joshem/EC601 | /Project1/FinalSprint.sh | UTF-8 | 704 | 2.84375 | 3 | [] | no_license | #!/usr/bin/env bash
#run twitter api program
./clean.sh
python3 TwitterImages.py
cd TwitterPics/
pwd
myPicture = "TwitPic100.jpg"
#if file doesn't exist
if [ -f ${myPicture} ]; then
#ffmpeg -framerate 1/5 -start_number 1000 -i twitterimage%04d.jpg -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4
#ffmpeg -framerate 1/5 -s... | true |
0e2ded845c2cd206739a415b7ba22f5c11798fb4 | Shell | josephcopenhaver/SeniorDesignProject_Spring2010 | /Sensor/S70sensor | UTF-8 | 875 | 3.5625 | 4 | [] | no_license | #! /bin/sh
#
#This file should be named SXX_
#where XX is a two digit number denoting priority and _ is a descriptive name
#Place me in /etc/init.d to automatically start the sensor program upon booting
#If it doesn't seem to work, try changing the priority
#
### BEGIN INIT INFO
# Provides: Connection to Base... | true |
a9c45d328073581390f993d75087ea58c2ae867b | Shell | jasonm23/.zsh.d | /modules/gitconfig.zsh | UTF-8 | 2,124 | 2.765625 | 3 | [] | no_license | # General config defaults
git config --global --replace-all core.excludesfile '~/.gitignore_global'
git config --global --replace-all pull.rebase 'true'
git config --global --replace-all push.default 'upstream'
# Let editors deal with whitespace cleanup for now... (To be continued...)
git confi... | true |
c23838e49bcde0d8aa3a09f0a76138ffa4664112 | Shell | jiangxincode/ShellTest | /httpd.sh | UTF-8 | 751 | 3.84375 | 4 | [] | no_license | #!/bin/sh 定义实用的shell
#
# /etc/rc.d/rc.httpd
#
# Start/stop/restart the Apache web server.
#
# To make Apache start automatically at boot, make this
# file executable: chmod 755 /etc/rc.d/rc.httpd
#
#case结构开始,判断“位置参数”决定执行的操作。本程序携带一个“位置参数”,即$1
case "$1" in
'start') #若位置参数为start
/usr/sbin/apachectl start ;; #启动httpd进程
'st... | true |
7f685e9307256161a26557cb9a50526c939f8dfc | Shell | garner1/gpseq-hic | /main.sh | UTF-8 | 4,704 | 3.28125 | 3 | [] | no_license | #!/usr/bin/env bash
# bash ~/Work/pipelines/aux.scripts/make-windows.sh 1000000 hg19 > hg19.binned.1M.bed
dir=$1 # the directory where data can be found and where gpseq.${resolution}.chr${chr}.bincount is created
resolution=$2 # 1M or 100K
gpseq=$3 # the gpseq bed file in the gpseq directory: ~... | true |
b5d40ff215d3c03cde9b459d9b9a9a4652361c50 | Shell | termux/termux-packages | /packages/plantuml/build.sh | UTF-8 | 793 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | TERMUX_PKG_HOMEPAGE=https://plantuml.com/
TERMUX_PKG_DESCRIPTION="Draws UML diagrams, using a simple and human readable text description"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.2023.7
TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/project/plantuml/${TERMUX_PKG_VERSION}/pl... | true |
1dafe08368b8a89e2dae3ed2cbd4a14187678dda | Shell | Ametentia/LD43 | /code/build | UTF-8 | 757 | 3.125 | 3 | [] | no_license | #!/usr/bin/env bash
PROJECT="Ludum"
PROJECT="${PROJECT,,}"
PROJECT="${PROJECT^}"
COMPILER="clang++.exe"
echo "Compiling with \"$COMPILER\"..."
# Source and Executable Options
MainSource="SFML_${PROJECT}.cpp"
# Compilation Options
CompilerFlags="--driver-mode=cl -Wno-switch -Zi -Od /MDd /MTd -imsvc ../libs/SFML/inc... | true |
1cf3e718d6d11027cda4d4a2bf56083f2dc3613b | Shell | christiangael/cloud-service-broker | /acceptance-tests/azure/cf-test-services.sh | UTF-8 | 364 | 3.328125 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -o pipefail
set -o nounset
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
. "${SCRIPT_DIR}/../functions.sh"
${SCRIPT_DIR}/cf-test-adhoc-services.sh && ${SCRIPT_DIR}/cf-test-spring-music-service.sh
RESULT=$?
if [ ${RESULT} -eq 0 ]; then
echo "SUCCEEDED: $0"
el... | true |
a7012a855dba1a5c426f5d362a7e30fc89580fb2 | Shell | vittyz/robot-docker-chrome-alpine | /Example/run_test.sh | UTF-8 | 367 | 2.75 | 3 | [] | no_license | #!/usr/bin/env bash
cd `dirname $0`
#rm occ_result/*
export round=$1
if [ $round != "" ]
then
$rerun="--rerunfailed /out/output.xml --output output$round.xml"
fi
docker run --rm -t --network=general \
-v "$(pwd)":/tests \
-v "$(pwd)/occ_result":/out \
robot-framework \
-V /tests/conf/test.yaml -e... | true |
b44c72b031cb686aa5868ee6dd097ddd9a7a8966 | Shell | bameda/prezto | /runcoms/zshrc | UTF-8 | 2,736 | 2.84375 | 3 | [
"MIT"
] | permissive | #
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
# Customize to your needs...
#
# WINE
#
WINEPREFIX="$HOME/.wine32"
#
# F... | true |
05085c8c39304404a8ff4d17f0997c53fef24ec4 | Shell | jadanis/seinfind | /src/seinfind.sh | UTF-8 | 139 | 3.078125 | 3 | [] | no_license | #!/bin/bash
str="'$*'"
if [ -z "$str" ]; then
echo "Whoops! You didn\'t provide a search string!"
else
python ./seinfind.py "$str"
fi
| true |
5dad4cb8bfaaa8fa368d7943bcb997b4982c5a76 | Shell | Vinotha16/WIN_ROLLBACK | /templates/linux_actualfacts/oracle6/passwdcreation_541_actual.fact | UTF-8 | 632 | 2.765625 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
a=$(grep "pam_cracklib.so.*retry=3.*minlen=.*dcredit=.*ocredit.*lcredit.*" /etc/pam.d/system-auth | paste -sd ",")
b=$(grep "pam_cracklib.so.*retry=3.*minlen=.*dcredit=.*ocredit.*lcredit.*" /etc/pam.d/password-auth | paste -sd ",")
cmd="${a}","${b}"
if [ $(grep "pam_cracklib.so.*retry=3.*minlen=.*dcredit=.... | true |
02bfd9ee913be950308d527ee823b8ac529b47d4 | Shell | hojongs/dotfiles | /old/paste_to_dotfiles.sh | UTF-8 | 288 | 2.765625 | 3 | [] | no_license | #!/usr/bin/env sh
DST=~/dotfiles
SRC=~
for f in .zshrc .vimrc .ideavimrc
do
echo "cp $SRC/$f $DST/"
cp $SRC/$f $DST/
echo
done
echo "cp $SRC/.vim_runtime/my_configs.vim $DST/.vim_runtime/my_configs.vim"
cp $SRC/.vim_runtime/my_configs.vim $DST/.vim_runtime/my_configs.vim
| true |
224556f252a83bca408b514a997beb8e238be732 | Shell | twooster/dotfiles | /pkg/i3/bin/screenlock/locker.sh | UTF-8 | 1,256 | 3.828125 | 4 | [] | no_license | #!/usr/bin/env bash
XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR:-$HOME}"
IMG_FORMAT=png
IMG_PATH="${XDG_RUNTIME_DIR}/sleepshot.${IMG_FORMAT}"
INHIBIT_TIME=0.5
LOCKER_CMD=( i3lock --nofork --ignore-empty-password --color=000033 --image="${IMG_PATH}" )
# Run before starting the locker
pre_lock() {
import \
-window root \... | true |
f91226bdfc0677dc186678c8c739f7015c04a5da | Shell | jonghunDB/SciDB | /deployment/common/user_access.sh | UTF-8 | 2,045 | 3.75 | 4 | [] | no_license | #!/bin/bash
#
# BEGIN_COPYRIGHT
#
# Copyright (C) 2008-2018 SciDB, Inc.
# All Rights Reserved.
#
# SciDB is free software: you can redistribute it and/or modify
# it under the terms of the AFFERO GNU General Public License as published by
# the Free Software Foundation.
#
# SciDB is distributed "AS-IS" AND WITHOUT ANY ... | true |
6289aa3c0880bcfc9029b78e7ce6678c2dd48bad | Shell | meatcar/vagrant-phenomecentral | /setup.sh | UTF-8 | 1,512 | 3.375 | 3 | [] | no_license | #!/bin/bash
set -e
set -o pipefail
#########################
# Create VM
#
# if no virtualbox, just run vagrant up
if [ ! -x `which VBoxManage` ]; then
vagrant up
exit $?
fi
# The rest of this script is for VirtualBox
vagrant up --no-provision
## GuestAdditions require bzip2
vagrant ssh -c "sudo yum install -... | true |
fb88444a4e05e39175ceec66559bfc934133742f | Shell | aerokube/moon-website-ru | /ci/docs.sh | UTF-8 | 442 | 3.640625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
TAG=$1
WD=$(pwd)
SOURCE_DIR=${WD}/docs
OUTPUT_DIR=${WD}/dist/docs
echo "Removing existing files"
mkdir -p ${OUTPUT_DIR}
rm -Rf ${OUTPUT_DIR}/*.pdf
echo "Generating docs"
set -x
cd "$SOURCE_DIR" && ls *.adoc | while read file; do
docker run --rm --pull always -v "$OUTPUT_DIR:/output" -v "... | true |
184d88b5adc0a08f25aa9e5db55e46d4ae5eb049 | Shell | boulangg/phoenix | /kernel/scripts/initrd.s.sh | UTF-8 | 382 | 2.921875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# Arguments: disk_file_name, output_file
rm $2 2> /dev/null
touch $2
printf "/\* This file is generated \*/\n" >> $2
printf ".section .rawdata\n" >> $2
printf "\n" >> $2
printf ".align 4096\n" >> $2
printf ".globl _initrd_start\n" >> $2
printf "_initrd_start:\n" >> $2
printf ".incbin \"$1\"\n" >> $2
print... | true |
70005377088a6b93f8414b21461c682c5d62c314 | Shell | aventador917/CPSC-240-X86-Assembly-Programming | /Assignment#4/run.sh | UTF-8 | 796 | 2.65625 | 3 | [] | no_license | #!/bin/bash
rm *.o
rm *.out
#echo "This is program <Passing Array>"
#echo "Assemble the module Control.asm"
nasm -f elf64 -l Control.lis -o Control.o Control.asm
#echo "Assemble the module Sum.asm"
nasm -f elf64 -l Sum.lis -o Sum.o Sum.asm
#echo "Compile the C++ module array_main.cpp"
g++ -c -m64 -Wall -o array_ma... | true |
22cf5f7269b1042280e1068d109a916517d5de55 | Shell | memozhu/tf_CFO | /data_preprocess/fetch.sh | UTF-8 | 719 | 2.890625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# download dataset and put it in data directory
cd ..
mkdir data
mkdir raw_data
cd ./raw_data
printf "\nDownloading SimpleQuestions dataset...\n"
wget https://www.dropbox.com/s/tohrsllcfy7rch4/SimpleQuestions_v2.tgz
printf "\nUnzipping SimpleQuestions dataset...\n"
tar -xvzf SimpleQuestions_v2.tg... | true |
dfc6e4d98d2df0120f9c2bbff5a70c954c28efc6 | Shell | samir2901/Shell-Scripting | /conditional.sh | UTF-8 | 797 | 3.484375 | 3 | [] | no_license | #! /usr/bin/bash
#COMAPARISON OPERATORS
# Number
# -eq -> is equal to --> if ["$a" -eq "$b"]
# -ne -> is not equal to --> if ["$a" -ne "$b"]
# -gt -> is greater than --> if ["$a" -gt "$b"]
# -ge -> is greater than or equal to --> if ["$a" -ge "$b"]
# -lt -> is less than --> if ["$a" -lt "$b"]
# -le -> is les... | true |
1a4e8a26258461609d43603fb213c8a4c7576636 | Shell | todd-dsm/process-ph2 | /scripts/common/sshd.sh | UTF-8 | 704 | 3.5625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -eux
export DEBIAN_FRONTEND=noninteractive
adminHome='/home/admin'
backupDir="$adminHome/backup"
sshdConf="/etc/ssh/sshd_config"
### Backup original configuration file
cp -pv "$sshdConf" "$backupDir"
# ensure that there is a trailing newline before attempting to concatenate
sed -i -e '$a\' "$... | true |
d738663b4a992ed0c12b4651af22f23fa25b897a | Shell | olivierh59500/Noriben | /NoribenSandbox.sh | UTF-8 | 1,569 | 3.703125 | 4 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | #!/bin/bash
#Noriben Sandbox Automation Script
#Responsible for:
#* Copying malware into a known VM
#* Running malware sample
#* Copying off results
#
#Ensure you set the environment variables below to match your system
if [ ! -f $1 ]; then
echo "Please provide executable filename as an argument."
echo "For example:"... | true |
5f23a503f14f84d9097dbc495209e1b215446ca2 | Shell | rafaelsoaresbr/pkgbuild | /mate/libmateweather/PKGBUILD | UTF-8 | 865 | 2.703125 | 3 | [] | no_license | # Maintainer : Martin Wimpress <code@flexion.org>
_ver=1.12
pkgbase=libmateweather
pkgname=${pkgbase}-gtk3
pkgver=${_ver}.1
pkgrel=1
pkgdesc="Provides access to weather information from the Internet. (GTK3 version [EXPERIMENTAL])"
url="http://mate-desktop.org"
arch=('i686' 'x86_64')
license=('LGPL')
depends=('dconf' '... | true |
d26edf799d0aa6832cacea00fc5164ee9fdf5139 | Shell | BuzaL/boost_deploy | /deploy_all_sources.sh | UTF-8 | 823 | 3.40625 | 3 | [] | no_license | #!/bin/bash
source ensure_variables.sh
cd $boost_path
if [ ! -d "${library}" ]; then (>&2 echo "$library not found"); exit; fi
# Copy library sources
>&2 echo "Deploying all! Please wait..."
find ${library} -maxdepth 2 -type d -path '*/src' -exec mkdir -p "${output}/{}" \; -exec cp -r {} "${output}/{}/.." \;
# Copy... | true |
66c4b196084278b1c0155b42ceb76afb20174a30 | Shell | forresti/dnn_dsx | /finetune_datasets/finetune_nets.sh | UTF-8 | 383 | 2.953125 | 3 | [] | no_license |
#do these one at a time for now.
for d in /nscratch/forresti/dsx_backup/nets_backup_1-9-15_LOGO/*
do
echo $d
cd $d
now=`date +%a_%Y_%m_%d__%H_%M_%S`
newestWeights=`ls -t $d/*caffemodel | head -1` #thx: stackoverflow.com/questions/5885934
$CAFFE_ROOT/build/tools/caffe train -solver=solver.prototxt ... | true |
5cddc53b3fec7b20738d8fb1e81d2107f5308700 | Shell | kdjay517/EmployeeWageCalculation | /empWage.sh | UTF-8 | 1,106 | 3.359375 | 3 | [] | no_license | #!/bin/bash -x
IS_FULL_TIME=1;
IS_PART_TIME=2;
MAX_HRS_IN_MONTH=100;
EMP_RATE_PER_HR=20;
NUM_WORKING_DAYS=20;
totalEmpHrs=0;
totalWorkingDays=0;
declare -A dailyWage;
function getWorkHrs(){
local empCheck=$1;
case $empCheck in
$IS_PART_TIME )
workHrs=4... | true |
58f49db5c73ad04e82d1ea52f7289029d13ab6de | Shell | c-paras/shpy | /demo04.sh | UTF-8 | 474 | 3.84375 | 4 | [] | no_license | #!/bin/sh
#This script simulates a user login form
#obtains user details
echo Enter username:
read username
echo Enter password:
read password
#authenticates user
if [ $username == "hello" ] && [ $password == "world" ]
then
#proceeds if user authentication succeeded
echo "You have been successfully authenticated"
... | true |
4b0582ce64854b236c7a8ac420aa38b8c95a7921 | Shell | vavdoshka/gitpod-eks-guide | /ami/scripts/ubuntu2004/boilerplate.sh | UTF-8 | 699 | 2.8125 | 3 | [
"MIT-0",
"MIT"
] | permissive | #!/usr/bin/env bash
set -o pipefail
set -o nounset
set -o errexit
# shellcheck disable=SC1091
source /etc/packer/files/functions.sh
# wait for cloud-init to finish
wait_for_cloudinit
# upgrade the operating system
apt-get update -y && apt-get upgrade -y
# install dependencies
apt-get install -y \
ca-certificat... | true |
e864278691bbbd2fed42ebcfe65d0442b7cd5a01 | Shell | Tsar/tv_tuner_management | /tv_tuner_installer.sh | UTF-8 | 982 | 2.625 | 3 | [] | no_license | #!/bin/bash
# This script installs soft to work with AverMedia MCE116 Plus (for XUbuntu 11.10 and others)
# Run as root or with "sudo"
apt-get install ivtv-utils vlc
rmmod ivtv
modprobe ivtv
wget http://www.steventoth.net/linux/xc5000/HVR-12x0-14x0-17x0_1_25_25271_WHQL.zip #if this URL doesn't work, comment this lin... | true |
302eacec8598a2327fad6b97773be1e8c1d54405 | Shell | MichaelTong/bin | /mgreport.d/work_report | UTF-8 | 1,192 | 4.125 | 4 | [] | no_license | #!/bin/bash
# Serve mgreport
# Should not be called directly
if [[ -z $MGREPORT ]]; then
echo "This script needs to call within \"mgreport\""
exit -2
fi
# script starts here
regrex='^([0-9]{4})\.([0-9]{2})_([0-9])'
report_to_work_on=""
if [[ $# -lt 1 ]]; then
cd $REPORT_HOME
reports=($(ls -d *.*_*))... | true |
3fee5297a1024a72d397d9872a08414b2f6c80fa | Shell | rajdeeppinge/Systems_Software_Labs | /Lab_9/environmentVar.sh | UTF-8 | 416 | 3.59375 | 4 | [] | no_license | #!/bin/bash
echo "Path command: $PATH"
echo "Hello $USER!"
echo "Your current working directory is: $PWD"
echo "Your home directory is: $HOME"
echo "Shell command: $SHELL"
# Additional environment variables
echo "arg 0: $0"
echo "arg 1: $1"
echo "arg 2: $2"
echo "arg 3: $3"
echo "arg 4: $4"
# Use of $* and $#
echo "... | true |
1363b8f2a9268046b76230c3db52900f80c3d586 | Shell | ali5ter/vmware_scripts | /vke/vke_deploy_wordpress | UTF-8 | 3,202 | 3.921875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# @file vke_deploy_wordpress
# Deploy a helm based app to K8s cluster backing a VKE Smart Cluster
# @author Alister Lewis-Bowen <alister@lewis-bowen.org>
type helm &> /dev/null || {
echo 'Please install helm. Installation instructions are available from'
echo 'https://docs.helm.sh/using_hel... | true |
517328cdafe49eeef079557e6bf32f9e6ed92901 | Shell | kshiva1126/eqdock | /bin/eqdock | UTF-8 | 1,642 | 3.625 | 4 | [] | no_license | #!/usr/bin/env bash
set -e
CR=`echo $'\n> '`
FILE_DIR="$0"
EQDOCK_ROOT_DIR="${FILE_DIR%/*}/../"
echo "Hello eqdock!"
. "${EQDOCK_ROOT_DIR}bin/helperDocker.lib"
checkDockerMachineActive
. "${EQDOCK_ROOT_DIR}bin/helperECCUBE.lib"
ECCUBE_VERSION=`checkFromTheBeginningOrTheMiddle`
. "${EQDOCK_ROOT_DIR}bin/helperDB.lib... | true |
30a6b95cfb9f15ad20c7686556364607576ddc12 | Shell | evanshortiss/shipwars-deployment | /openshift/deploy.kafka-streams.sh | UTF-8 | 3,487 | 3.484375 | 3 | [] | no_license | #!/usr/bin/env bash
NAMESPACE=${NAMESPACE:-shipwars}
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
if ! command -v oc &> /dev/null
then
echo "Please install oc CLI to use this script"
exit
fi
if ! command -v rhoas &> /dev/null
then
echo "Please install rhoas CLI to use this scri... | true |
b2ad222fe03478321106b2b8237a23d9ff22f78c | Shell | SofyaTavrovskaya/disk_perf_test_tool | /scripts/run_test.sh | UTF-8 | 3,938 | 3.765625 | 4 | [
"Apache-2.0"
] | permissive | function get_arguments() {
export FUEL_MASTER_IP=$1
if [ -z "${FUEL_MASTER_IP}" ]; then echo "Fuel master node ip is not provided"; fi
export EXTERNAL_IP=$2
if [ -z "${EXTERNAL_IP}" ]; then echo "Fuel external ip is not provided"; fi
export KEY_FILE_NAME=$3
if [ -z "${KEY_FILE_NAME}" ]; th... | true |
65f6ef00fb11b60d59f60f8bfa85c4b751a0f4af | Shell | chunqishi/lappsvm | /bin/ubuntu.sh | UTF-8 | 11,831 | 3.234375 | 3 | [] | no_license | #!/bin/bash
UBUNTU_DIR=$(pwd)
PROJECT_DIR="$HOME/Project"
TOMCAT6_URL="http://mirror.nexcess.net/apache/tomcat/tomcat-6/v6.0.39/bin/apache-tomcat-6.0.39.tar.gz"
TOMCAT6_TAR="$PROJECT_DIR/tomcat6.tar.gz"
TOMCAT6_HOME="$PROJECT_DIR/apache-tomcat-6.0.39/"
TOMCAT6_WEBAPP="${TOMCAT6_HOME}/webapps"
TOMCAT6_SERVER="http://l... | true |
066d9aab75b40983c04ed13158fa34d3ef92bc43 | Shell | SaifNOUMA/Network-Traffic-Prediction | /data/scripts/reduce | UTF-8 | 331 | 3.109375 | 3 | [] | no_license | #!/bin/bash
# argument : $1 : The file that Contain the data which represent the trace per packets where each row contains the arrival time (seconds) and the length (bytes)
# argument : $2 : The granularity of the final data which is the timestep
name_fdata=fdata_Timestep_$2
awk -v granularity=$2 -f sum_up.awk $1 > $... | true |
eb484c54985f657967f7e7c534c5ba4302d41309 | Shell | won21kr/corteza-docker | /webapp/src/autoconfig.sh | UTF-8 | 1,488 | 3.46875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
set -eu
################################################################################
# (re)generate configuration files
# Where to put the configs
BASEDIR=${BASEDIR:-"/webapp"}
FEDERATION_ENABLED=${FEDERATION_ENABLED:-""}
# See if VIRTUAL_HOST exists
# if it does, it should hold the hostname of wher... | true |
d338abb4be193437c6099bc57bd4b5a9d7a49f72 | Shell | xfire/dotfiles | /bin/gsvn | UTF-8 | 1,769 | 3.859375 | 4 | [] | no_license | #!/bin/sh
USAGE='[help|status|info|update|log|blame|commit|dcommit|switch]'
LONG_USAGE='gsvn help
print this long help message
gsvn status
shows information about current working dir status.
gsvn info
shows information about a file or directory similar to
what ‘svn info´ provides. (git... | true |
285905a8f963514f19edae0d9dd1f5dc5f034e9b | Shell | gem5/gem5 | /util/dist/test/test-2nodes-AArch64.sh | UTF-8 | 3,772 | 2.640625 | 3 | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"MIT"
] | permissive | #! /bin/bash
#
# Copyright (c) 2015, 2022 Arm Limited
# All rights reserved
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implementation ... | true |
d92cbddca72f7c261264073a0fc7cbcb75c91da1 | Shell | regier/BFOD | /Compile_Install_Dependencies.sh | UTF-8 | 1,348 | 3.046875 | 3 | [] | no_license | #!/bin/bash
# Welcome to Building FlightGear OnDebian
# This is the following version of this script.
bfod_ver="0.0.1.20200513.1110"
# This script's intention is to download and build
# dependencies required to build FlightGear and
# FlightGear itself.
# The script follows the KISS principle, each file does one thin... | true |
edbcfc73cbac215c46f7ee19fa6e57b46d339d0d | Shell | 2063978470/snail | /init.sh | UTF-8 | 530 | 2.515625 | 3 | [] | no_license | #!/bin/bash
p=`pwd`
# install php dependency
docker run --rm -v "$p":/usr/src/app stenote/composer install
# 删除 composer.lock
rm composer.lock
# 重新 composer install
# laravel 的依赖貌似有个问题, 第一次 composer install 完成后, 会安装上多余的依赖, 删除 composer.lock 后重新 compsoer install 会删除那两个多余的依赖
docker run --rm -v "$p":/usr/src/app stenot... | true |
2f266328e3a4397a9511f39e0dbc8f9963db464e | Shell | luciaeveberger/OS_WITH_LINUX | /INTRO_TO_LINUX/BASH_SCRIPTING/LAB_3/conditional_logic_example | UTF-8 | 115 | 3.15625 | 3 | [] | no_license | #!/bin/bash
num=10
num2=5
if [[ $num -lt 4 ]] && [[ $num2 -gt 1 ]]; then
echo "Here!"
else
echo "Not here!"
fi | true |
2b35a3e3f356ef76ade0ae3ce79c2393f97d577e | Shell | sgringwe/buildkite-kubernetes-autoscaler | /build.sh | UTF-8 | 1,391 | 3.921875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Expects the directory structure:
# .
# └── projectname
# ├── build.sh
# └── src
# ├── custompackage
# │ └── custompackage.go
# └── main
# └── main.go
#
# This will build a binary called "projectname" at "projectname/bin/projectname".
#
# The final structure w... | true |
fb2969533c22247ad477951687815a4c96e9509a | Shell | MIT-LCP/mimic-code | /mimic-iii/buildmimic/sqlite/import.sh | UTF-8 | 1,620 | 3.703125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# Copyright (c) 2021 Thomas Ward <thomas@thomasward.com>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS... | true |
2b46b10423a4968d6e9abbcb027e52135f1df12e | Shell | CallumTeesdale/CSY2002-Assign2 | /archive.sh | UTF-8 | 4,748 | 4.09375 | 4 | [] | no_license | #!/bin/bash
#############################PLEASE READ##########################################
# This is an archive script with a simple ui created by callum teesdale 15423186 #
# run using "bash archive.sh" in the terminal #
# Use the arrow keys to move through the menu and enter key to select #
# Assumes that... | true |
4cd290d660d8df7dd2b25c3019e5c2cb06b6edf4 | Shell | mmatschiner/anguilla | /wgs_assemblies/src/merge_rearrangements.sh | UTF-8 | 692 | 2.78125 | 3 | [] | no_license | # m_matschiner Mon Dec 9 14:53:26 CET 2019
# Load modules.
module load ruby/2.1.5
# Set the combined rearrangements table.
table=../res/tables/rearrangements.txt
# Combine the rearrangements tables for the four different species.
cat ../res/tables/rearrangements.???.txt > ${table}
# Set the merged table.
merged_ta... | true |
123537241cf01abf61c05eb825533c6d9a143aaf | Shell | ChastityAM/LinuxShell | /Lab3_3.sh | UTF-8 | 773 | 3.546875 | 4 | [] | no_license | #!/bin/bash
#**************************************
#Script to Mount Point File system type
#Author: Chastity
#Date: 15 Feb 21
#**************************************
count=1
for word in $(mount)
do
# Get the specific information from the mount
if [[ $count -eq 1 ]]
then
echo "D... | true |
5c834519379edf593dbe741142a620a98466e194 | Shell | oluwoleo/xgboost-php | /src/setup | UTF-8 | 222 | 3.265625 | 3 | [] | no_license | #!/bin/bash
if [ "$1" ]; then
echo "configuring for PHP ${1}"
phpize$1;
./configure --with-php-config=/usr/bin/php-config$1
else
echo "configuring for the default installation of php"
phpize
./configure
fi
| true |
36214cd6efc5f59ccb9f9b4b66be47599f356512 | Shell | linsalrob/EdwardsLab | /bin/update_blastdb.sh | UTF-8 | 455 | 2.671875 | 3 | [
"MIT"
] | permissive | DATE=$(date +%Y%m%d)
cd /home2/db/blast
mkdir nr_$DATE
cd nr_$DATE
ncftpget ftp://ftp.ncbi.nlm.nih.gov/blast/db/nr*
cat *md5 > all.md5
md5sum -c all.md5
for t in *.tar.gz; do echo $t; tar xf $t; done
cd /home2/db/blast
rm -f nr
ln -s nr_$DATE nr
mkdir nt_$DATE
cd nt_$DATE
ncftpget ftp://ftp.ncbi.nlm.nih.gov/blast/db/n... | true |
1297a5ed14e0676bb463ba9be287592924c7ccda | Shell | akhila-s-rao/5G-SMART_traffic_gen_scripts | /ditg/send_ue1_ditg_traffic.sh | UTF-8 | 368 | 3.25 | 3 | [] | no_license | if [ $# -ne 1 ] ; then
echo 'Usage: bash command <path to save logs in>'
exit 1
fi
traffic_script="rttm_1000Bpkts_ue1_CBR_traffic_script1"
echo "traffic_script = "$traffic_script
# Save the traffic generation script used in the run folder for reference
cp ${traffic_script} ${1}/${traffic_script}
sudo ITGSen... | true |
764f68c23ae8b6f256dbc774bd3c1c38b5a4d5af | Shell | sunetos/dotfiles | /bin/update-julia | UTF-8 | 521 | 3.203125 | 3 | [] | no_license | #!/bin/bash
VERSION="0.3.0"
URL="http://status.julialang.org/download/osx10.7+"
APP="/Applications/Julia-$VERSION-prerelease.app"
echo "Downloading Julia v$VERSION nightly..."
dmg="/tmp/julia-v$VERSION-installer.dmg"
curl -fsSL "$URL" > "$dmg"
echo "Installing new DMG image..."
hdiutil attach -quiet "$dmg"
dmgapp=`f... | true |
4ff636fac3d81d8def301165c22706d0aac30900 | Shell | FlowNICA/CentralityFramework | /Framework/scripts/example/start.sh | UTF-8 | 3,367 | 3.078125 | 3 | [] | no_license | #!/bin/bash
#
#$ -wd /weekly/$USER/Soft/Centrality/TMP/
#$ -cwd
#$ -N run_centrality_fit
#$ -q all.q
#$ -l h_rt=8:00:00
#$ -l s_rt=8:00:00
#$ -t 1-200
#
#$ -o /weekly/$USER/Soft/Centrality/TMP/
#$ -e /weekly/$USER/Soft/Centrality/TMP/
#
export JOB_ID=${JOB_ID}
export TASK_ID=${SGE_TASK_ID}
START_DIR=$PWD
# Where ma... | true |
fefaab3cc94a8e83594ec3eb9aa9b4434c12d965 | Shell | ofayans/freeipa_upstream_builder | /step1.sh | UTF-8 | 698 | 2.6875 | 3 | [] | no_license | #!/bin/bash
# FreeIPA requires:
BUILD_DEPS=$(grep "^BuildRequires" freeipa.spec.in | awk '{ print $2 }' | grep -v "^/")
DEPS=$(grep "^Requires" freeipa.spec.in | awk '!/%/ { print $2 }' | grep -v "^/")
# Fedora min build env
# (https://fedoraproject.org/wiki/Packaging:Guidelines#Exceptions_2)
DEPS="$DEPS bash bzip2 cor... | true |
52445872cb1b4dcbb26fb3cbbfb81c621e862284 | Shell | dwisniewski1993/Text-processing-labc | /TO DONE PTX/PTX1 Wiśniewski Dominik - RUBY/demo | UTF-8 | 1,032 | 3 | 3 | [] | no_license | #!/bin/bash
echo 'Wykonał: Dominik Wiśniewski 396455'
echo 'Zadanie za: 3-4pkt'
echo 'Press any ENTER to continue'
read a
echo 'Zadanie polega na wyciągnięciu z wikipedi konkretnych informacji'
echo 'W tym wypadku są to informacje o noblistach'
echo 'Program potrzebuje imienia bądz nazwiska noblisty i jakiegoś słowa ... | true |
d81b8ab5d2b378b2376295d59476fc3b823485c5 | Shell | DanielCuSanchez/programacion-bash | /Ejemplo_And.sh | UTF-8 | 292 | 3.40625 | 3 | [] | no_license | #!/usr/bin/ksh
# Recibe un argumento y valida que es numero este [1...9]
# Validar el numero de argumentos
if [ ! \( $# -eq 1 \) ]
then
echo "ERROR\a"
else
# Condicion compuesta por un AND
if [ $1 -ge 1 -a $1 -lt 10 ]
then
echo "Correcto "
else
echo "ERROR\a"
fi
fi
| true |
85ad1a816bd8169f8b4b88102e26e82184f6fe5f | Shell | pombredanne/bin | /goto-server | UTF-8 | 2,006 | 3.671875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# go - quick connection script
. lib.bash || exit
do_sshfs() {
local src=$1 mtpt=$2
mkdir -p "$mtpt"
mountpoint -q "$mtpt" ||
sshfs -o idmap=none "$src" "$mtpt"
echo "Mounted sshfs#$src on $mtpt"
}
do_rdp() {
local host=$1
debug "using RDP to $host"
mstsc "$host" "${@:2}"
debug "spawned... | true |
7d50aaa8b9da4f13d7bc7a4b5bf20dd09545c5aa | Shell | mrled/psyops | /progfiguration_blacksite/progfiguration_blacksite/roles/k3s/progfiguration-k3s.sh.temple | UTF-8 | 10,017 | 3.84375 | 4 | [] | no_license | #!/bin/sh
set -eu
#### Configured in the progfiguration role
# The interface that will have the VIP added to it
# This must be the same on all nodes for kube-vip!
# Which is one reason we rename the primary NIC to psy0 earlier in the boot process.
interface={$}k3s_interface
# The address to use for the floating VIP
vi... | true |
cb3010411d448afde6e263e3726657ab75710884 | Shell | rojoka/GRETAP_mesh_Backbone | /gre_backbone.sh | UTF-8 | 1,738 | 3.125 | 3 | [] | no_license | #!/bin/sh
# Server name ending must be a single digit number
communityname="troisdorf"
server="troisdorf1 troisdorf2 troisdorf3 troisdorf4 troisdorf5 troisdorf6 troisdorf9"
domain="freifunk-troisdorf.de"
mtu=1500
# community MAC address, without the last Byte (:)!
communitymacaddress="a2:8c:ae:6f:f6"
# Network part of ... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.