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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
9ca669b846b0dd8a211f0eedece134ee9862241f | Shell | nii-gakunin-cloud/sinetstream | /docs/tutorial/all-in-one/init.sh | UTF-8 | 6,558 | 3.140625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
: ${CATOP:=/etc/pki/CA}
: ${CA_COUNTRY:=JP}
: ${CA_STATE:=Default_Organization}
: ${CA_ORGANIZATION:=Default_Organization}
: ${CA_CNAME:=private-ca}
: ${CA_DAYS:=1095}
: ${BROKER_HOSTNAME:=$(hostname -f)}
: ${KAFKA_CERTS_DIR:=/srv/kafka/config/certs}
: ${TRUSTSTORE_PASSWORD:=ca-pass}
: ${KEYSTORE_PASSWORD:... | true |
9b1fffafa5b7dc21435f3116d092ba14e4a90de3 | Shell | tetrapharmakon/yoneda-ontology | /II-spheres/MAKE | UTF-8 | 495 | 2.75 | 3 | [] | no_license | #!/bin/env bash
case "$1" in
"Ip")
latexmk -pdf -shell-escape -pvc II-spheres.tex
latexmk -c ;;
"I")
latexmk -pdf -shell-escape II-spheres.tex
latexmk -c ;;
"clobber")
git add -A
git commit -m "safety update"
git push
# ^ do a push for safety reason: one never knows what rm deletes...
find . -regex ".*... | true |
a50c73f19b60316f717ceb431e155d295bb8cd44 | Shell | ydongfang/imx28x-build | /configs/zlg_imx287_env.sh | UTF-8 | 3,240 | 3.4375 | 3 | [] | no_license | #
# build scripts for ZLG IMX28x Board
# Author: Han Pengfei <pengphei@foxmail.com>
#
export BUILD_TRUNK=$(pwd)
export BUILD_TRUNK_OUT=${BUILD_TRUNK}/out_zlg_im28x
export BUILD_LINUX_PATH=${BUILD_TRUNK}/package/linux-2.6.35.3
export BUILD_UBOOT_PATH=${BUILD_TRUNK}/package/bootloader/u-boot-2009.08
export BUILD_BOOTLE... | true |
d0dfc4544c59b42401afc44367b2386ce57f37f8 | Shell | bigmontz/dev-env-maker | /git/hooks/pre-commit | UTF-8 | 1,135 | 3.953125 | 4 | [] | no_license | #!/bin/sh
if git rev-parse --verify HEAD >/dev/null 2>&1
then
against=HEAD
else
against=f737485baee8b0edc5ef4d00c498305578d630fd
fi
# Redirect output to stderr.
exec 1>&2
RED='\033[0;31m'
NC='\033[0m' # No Color
keywords=(System.out.print @deleteme console.log)
keywords_for_grep=$(prin... | true |
f142b97a86a589424e0444d934b2967c70660451 | Shell | oracle/cloudtestdrive | /AppDev/wls/ll-wls-migration/WLS_deploy_scripts/source-12213-domain/container-scripts/setEnv.sh | UTF-8 | 2,663 | 3.65625 | 4 | [
"UPL-1.0"
] | permissive | #!/bin/bash ex
# Copyright (c) 2018, 2019 Oracle and/or its affiliates. All rights reserved.
# The Universal Permissive License (UPL), Version 1.0
#
# This example creates the BUILD_ARG environment variable as a string of --build-arg for
# the arguments passed on the docker build command. The variable file that is us... | true |
f3c697fd404e85206c2b80ea20142a73bf0d903d | Shell | wlshiu/my_note | /ref_shell/my_add2line.sh | UTF-8 | 340 | 2.78125 | 3 | [] | no_license | #!/bin/bash
function help()
{
echo "usage: addr2line [execute file] [addr]"
echo " e.g. addr2line ../build/live555_server-1.0/liveMediaServer 0x406854 "
echo " ps. Need to add compiler options '-g -rdynamic' "
exit 1
}
if [ $# != 2 ];then
help
fi
./host/usr/bin/aarch64-linux-gnu-addr... | true |
dda328cbbf3f7b8876600c365645b84d60a0b110 | Shell | tsony-tsonev/configs | /setup.sh | UTF-8 | 3,697 | 2.515625 | 3 | [] | no_license | #/bin/sh
# install vim
sudo apt-get -y remove vim vim-runtime gvim
# install deps for manually building vim
sudo apt-get -y install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev python2.7 python3.6 python-pip python3-pip libgnome2-dev li... | true |
f858ed14c90fb65ede1c5c364b31afdf0113054f | Shell | n800sau/robotarr | /3wheeler/link_extern2ws.sh | UTF-8 | 184 | 2.578125 | 3 | [] | no_license | DIRNAME=`dirname $0`
#echo $DIRNAME
ROS2_PACK_PATH=`realpath ${DIRNAME}`/ros2_ws_extern/wheeler_3_extern
#echo $ROS2_PACK_PATH
ln -s "${ROS2_PACK_PATH}" ~/ros2_ws/src/wheeler_3_extern
| true |
ffcb32a2e548ed06fdb74419a3b624325f667282 | Shell | yuankunzhang/gb | /entry.sh | UTF-8 | 1,114 | 3.453125 | 3 | [] | no_license | #!/bin/bash
set -e
DRUPAL_DIR=/var/www/html
setup_drupal() {
cd $DRUPAL_DIR
php composer.phar require drush/drush
./vendor/bin/drush site-install standard -y \
--db-url="mysql://$DB_USER:$DB_PASS@$DB_HOST:3306/$DB_NAME" \
--site-name="$SITE_NAME" \
--account-name="$ACCOUNT_NAME" \
--account-pass="$AC... | true |
5f5e70946c79e5fb07c74c89910a55544c8f792f | Shell | ilias500/xsd2pgschema | /example/lucene_index_uniprotkb.sh | UTF-8 | 1,250 | 3.671875 | 4 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
sync_update=true
XML_DIR=uniprot_xml
XSD_SCHEMA=uniprot.xsd
IDX_DIR=lucene_index
if [ -d $IDX_DIR ] ; then
echo
echo "Do you want to update lucene index? (y [n]) "
read ans
case $ans in
y*|Y*) ;;
*) echo stopped.
exit 1;;
esac
if [ $sync_update != "true" ] ; then
rm -rf $IDX_DIR
fi
... | true |
999300c8e77328365184490bd446c7be46f54593 | Shell | oldcryptogeek/guild-operators | /files/grest/cron/jobs/asset-registry-update.sh | UTF-8 | 2,489 | 3.84375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
CNODE_VNAME=cnode
DB_NAME=cexplorer
TR_URL=https://github.com/cardano-foundation/cardano-token-registry
TR_SUBDIR=mappings
TR_DIR=${HOME}/git
TR_NAME=${CNODE_VNAME}-token-registry
echo "$(date +%F_%H:%M:%S) - START - Asset Registry Update"
if [[ ! -d "${TR_DIR}/${TR_NAME}" ]]; then
[[ -z ${HOME} ]] && e... | true |
2303b5db302e464b6e75d1e2fca22664f74df936 | Shell | lyf-1/parallel | /project1/run.sh | UTF-8 | 728 | 2.765625 | 3 | [] | no_license | #!/bin/bash
chmod 777 ./gather/my_allgather
chmod 777 ./gemm/cannon
chmod 777 ./gemm/conv
# 1 - name
# 2 - num of procs
# 3 - num of elements
# 4 - num of trials
if test $1 = "gather"; then
mpirun -np $2 ./gather/my_allgather $3 $4
# 3 - matrix dimension
elif test $1 = "matrixmat"; then
mpiexec -n $2 ./gemm/c... | true |
0980ebb000c70bb34cb6f4881f686327bcb37b8e | Shell | mmalenta/meertrap_shipyard | /tag_functions.sh | UTF-8 | 5,213 | 4.71875 | 5 | [] | no_license | #!/bin/bash
source ./logging.sh
BETA_REG="^[0-9]+\.[0-9]+\.[0-9]+b[0-9]+$"
STABLE_REG="^[0-9]+\.[0-9]+\.[0-9]+$"
function get_latest_tag()
{
# Check for the latest tag
# This assumes we stick to the convention and don't create
# any tags that deviate from it significantly
local tag_image=$1
latest_tag=$( ... | true |
ab8597476f4de21960ca683d2c18459a43fd5096 | Shell | skyzyx/server-metadata | /get-server-info.sh | UTF-8 | 16,437 | 3.671875 | 4 | [
"MIT"
] | permissive | #! /usr/bin/env bash
# https://github.com/skyzyx/server-metadata
# By Ryan Parman
echo "#-------------------------------------------------------------------------------"
# Which version of sed do we have available?
if [[ $(sed --help 2>&1) && $? -eq 0 ]]; then
gnused=true
sed=sed
elif [[ $(gsed --help 2>&1) ... | true |
5d0f81071995fcbfd36b0a7bacbaed65d18ddd87 | Shell | tabulon-ext/ellipsis | /scripts/shim.sh | UTF-8 | 640 | 3.59375 | 4 | [
"MIT"
] | permissive |
EOF
# shim for ellipsis install.bash
#
# This is used on ellipsis.sh to bootstrap the full installer, which you
# otherwise can't curl and pipe to sh (as it requires bash). Not meant to be
# run standalone.
# wait for curl output to finish
sleep 0.5
# Ensure dependencies are installed.
deps="bash curl git"
for dep... | true |
afc98601ce3fbf13fd673dd1c8968cdb6fa9664a | Shell | seckcoder/.seck_config | /bin/sed.sh | UTF-8 | 593 | 3.8125 | 4 | [] | no_license | #!/bin/bash
source_script=$PWD/sub.sed
ybuild_script=$PWD/ybuild.sed
process() {
local file=$1
if [ "${file##*.}" = "h" ] || [ "${file##*.}" = "cc" ]; then
echo "processing $file.."
sed -i -f $source_script $file
elif [ "${file##*\/}" = "YBUILD" ]; then
echo "processing $file.."
sed -i -f $ybuild_... | true |
284e70330355ddef321273ddca856313e43a3a01 | Shell | david50407/plurk-privatify | /tools/join.sh | UTF-8 | 81 | 2.75 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
IFS="$1"
shift
echo -n "$1"
shift
printf "%s" "${@/#/$IFS}"
| true |
cb7e2a8b3bd3dccbe2578c1cd0e0d07206afb64b | Shell | pocketgroovy/voltage | /witches-server-configuration/scripts/StartServers.sh | UTF-8 | 1,053 | 3.125 | 3 | [] | no_license | #!/usr/bin/env bash
###################################################################################################
###### This script is responsible for setting up a server for an app "Kisses and Curses" ######
###################################################################################################
m... | true |
8437144a23d469d069c49b7b39e3f87e70f907fe | Shell | DebmalyaRay9989/Movies-Analytics-in-Spark-and-Scala | /Spark_RDD/Distinct_Genres/execute.sh | UTF-8 | 308 | 2.984375 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Check if the directory is present or not
if [ -d "result" ]
then
echo "Removing existing directory"
rm -r result
else
echo "Executing File"
fi
spark-shell -i list_of_distinct_genres.scala
echo ""
echo ""
echo "The list of distinct genres are"
echo ""
cat "result/part-00000"
echo ""
| true |
e9b237bb1e8532aa0486994b39e54dc81a9d9d7c | Shell | ertanden/enmasse | /systemtests/scripts/setup_tck.sh | UTF-8 | 1,870 | 3.015625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
CURDIR=`readlink -f \`dirname $0\``
source ${CURDIR}/test_func.sh
CLI_ID=$1
DEFAULT_ADDRESS_SPACE=$2
#install prerequisites
sudo yum -y install patch jq
oc extract secret/keycloak-credentials --confirm
USER=$(cat admin.username)
PASSWORD=$(cat admin.password)
#setup environment
create_addres_spa... | true |
22010e334cfb959dc408db90a5d01a7289c3c696 | Shell | gtheys/dotfiles | /script/bootstrap.sh | UTF-8 | 2,341 | 3.78125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#
# bootstrap installs things.
DOTFILES_ROOT="`pwd`"
# Test whether a command exists
# $1 - cmd to test
type_exists() {
if [ $(type -P $1) ]; then
return 0
fi
return 1
}
echo ''
echo 'Bootstrapping local environment'
echo ''
# Check If I need to fetch this submodule
# Use this ... | true |
81475c253d22a638ab8140749463dbfddca8089e | Shell | lynnagara/dotfiles | /script/symlink-dotfiles.sh | UTF-8 | 175 | 3.1875 | 3 | [] | no_license | files="vimrc vim gitconfig"
dir=~/dotfiles
cd $dir
for file in $files; do
echo "Creating symlink to $file in home directory."
ln -s $dir/$file/.$file ~/.$file
done
| true |
8bc9ec0465682869992335dd5daf15f31e3ebaf6 | Shell | sanderboer/IfcOpenShell-devenv | /scripts/build.sh | UTF-8 | 559 | 3.390625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
DIR="$( cd -P "$( dirname "$0" )" && pwd )"
source $DIR/env.sh
# pushd ${ROOT_DIR}
# rm .clang_complete
# for i in ${COMPILER_FLAGS}; do
# echo ${i} >> .clang_complete
# done
# for i in ${INC_PATHS}; do
# echo ${i} >> .clang_complete
# done
# popd
echo "BUILD_DIR: ${BUILD_DIR}"
if [ ! -d "${BUIL... | true |
56f88d1ede7b6e26b4f2abf1da3da13280a065fb | Shell | kblancato/theia-net | /theia-net/classification/make_run.sh | UTF-8 | 1,338 | 3.25 | 3 | [
"MIT"
] | permissive | #!/bin/bash
RUN=0
SAMPLE="balanced_classification"
DATA="ts"
# hyperparameter file id
HYPER=97
# number of hyperparam combinations
NHYPER=144
declare -a PARAMS=("evolve")
for n in "${!PARAMS[@]}"
do
echo "${PARAMS[$n]}"
CODE_DIR="<path to code directory>"
HOME_DIR="<path to home directory>"
DIR="<path to save ... | true |
44642fbf1121b55a0f22cb97eaf7b1f8231339ed | Shell | GhaiethZouaghi/tunihack-workshop | /schema-manager/script.sh | UTF-8 | 1,796 | 3.09375 | 3 | [] | no_license | #! /bin/bash
DB_HOST=cassandra
DB_PORT=9042
DB_USER=dse
DB_PASS=\"\"
ARGS="$DB_HOST $DB_PORT -u $DB_USER -p $DB_PASS"
#### Create keyspace
echo "[INFO] Creating keyspace"
query="CREATE KEYSPACE IF NOT EXISTS tunihack WITH replication = {'class': 'SimpleStrategy','replication_factor': 3 };"
cqlsh $ARGS -e "$query"
#... | true |
791c62cbfb9f92d6f4364af7f9c7c8283d4ebe27 | Shell | Tushar-W/ShellScript-Programming | /ProgrammingConstruct/RepetitionStatementExamples/ProgramsOnForLoop/CheckNumberIsPrimeOrNot.sh | UTF-8 | 540 | 3.9375 | 4 | [] | no_license |
#!/bin/bash -x
read -p "Enter Number :" number;
count=0;
if [ "$number" != 0 ] && [ "$number" != 1 ];
then
for (( tempNum=1; tempNum <= number; tempNum++ ))
do
if [ $((number%tempNum)) == 0 ];
then
count=$((++count))
fi
done
if [ "$count" == 2 ]
then
... | true |
33a0458a79dc00658d8ebe3b567f1fe0f9c53a25 | Shell | facebook/buck | /bin/buck | UTF-8 | 784 | 3.578125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Resolve symlinks if necessary, otherwise madness will follow.
# On a GNU system, we could use "-f" to follow all symlinks. BSD based
# systems don't have this flag. *sigh*
# http://stackoverflow.com/a/246128
# https://gist.github.com/tvlooy/cbfbdb111a4ebad8b93e
function abs_script_dir_path {
SOURCE=$... | true |
de31b1c6d9e46ccec45e2aa86f52a4000524acf9 | Shell | seocahill/ember-fastboot-pwa | /scripts/make-dev-cert.sh | UTF-8 | 662 | 2.765625 | 3 | [] | no_license | #!/bin/sh -
# docker run --rm -v /tmp/certs:/certs -e SSL_SUBJECT=test.seocahill.dev paulczar/omgwtfssl
mkdir certs && cd certs
cat > openssl.cnf <<-EOF
[req]
distinguished_name = req_distinguished_name
x509_extensions = v3_req
prompt = no
[req_distinguished_name]
CN = *.seocahill.dev
[v3_req]
keyUs... | true |
c1b3bdda8963331cc8ee9f71ad58820cb799114b | Shell | rohitraj29/example-project-nist-fingerprint-matching | /match.sh | UTF-8 | 1,605 | 3.125 | 3 | [] | no_license | #!/usr/bin/env bash
source /etc/profile
usage() {
cat <<EOF
Usage: $0 load-images|ridge-detection|subsample|match
EOF
}
load-images() {
spark-submit \
--master yarn \
--deploy-mode cluster \
--driver-class-path $(hbase classpath) \
--class LoadData \
target/scala-2.1... | true |
249b6ae656479414e3d05b82bffe5807db2cf768 | Shell | more456/Android-sdk-setup-ubuntu | /scripts/android_sdk_frame.sh | UTF-8 | 2,847 | 3.90625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# set -e
# to run this script on remote server
# ssh root@host_ip_address 'bash -s' < android_sdk_framer.sh
counter=0
function printAndSleep() {
((counter++))
echo "
########################################################
$counter: $1
########################################################"
if ... | true |
8b8da64b6a6e46e40a8956e258f163d402578273 | Shell | wikimedia/WikiContrib | /deploy/deploy_frontend.sh | UTF-8 | 663 | 2.734375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
ssh -o "StrictHostKeyChecking=no" -i /tmp/deploy_rsa -A ${DEPLOY_USERNAME}@${DEPLOY_HOST} << EOT
become ${DEPLOY_FRONTEND}
rm -rf ~/public_html/
git clone https://github.com/wikimedia/WikiContrib
echo "Cloned the repo"
cp -r WikiContrib/frontend/WikiContrib-Frontend/. dep/
rm -rf WikiContrib/
cd dep... | true |
aff41289a873cf438f00f83a49254556751e7d22 | Shell | fbaileyjr/high_availability_linux | /.svn/pristine/af/aff41289a873cf438f00f83a49254556751e7d22.svn-base | UTF-8 | 170 | 3.21875 | 3 | [] | no_license | #!/bin/bash
service=firewalld
if (( $(ps -ef | grep -v grep | grep $service | wc -l) > 0 ))
then
echo "$service is running!!!"
else
echo "$service is NOT running!!!"
fi
| true |
c74f15b4c0b504bda3f51dcf7ed9364c935303ed | Shell | lappsgrid-incubator/discovery-course | /scripts/clone | UTF-8 | 588 | 3.109375 | 3 | [] | no_license | #!/bin/bash
set -eu
GITHUB=https://github.com/lappsgrid-incubator
function clone {
dir=$1
repo=$2
branch=$3
if [ -e $dir ] ; then
cd $dir
git pull origin $branch
else
git clone $GITHUB/$repo $dir
cd $dir
git checkout $branch
fi
# make
# make push
cd ../
}
clone vassar docker-vassar.git master
clon... | true |
1923380596cc34dee5592792c09815b9e3aec0a8 | Shell | cbdavide/competitive-programming-tools | /runner | UTF-8 | 971 | 3.921875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
PREPROCESSOR_VAR="CBDAVIDES"
BAR="----------------------------------------------------------------"
PROBLEM=$1
if [ ! -d "$PROBLEM" ]; then
echo "Error: Problem $PROBLEM does not exits in the current folder."
exit 1
fi
echo "Compilando source code of problem $PROBLEM..."
echo $BAR
BINAR... | true |
ed5391d4c817b1e390c391bbd554f1d857223b28 | Shell | EMBL-EBI-TSI/veewee | /templates/Debian-5.0.8-amd64-netboot/cleanup.sh | UTF-8 | 375 | 2.6875 | 3 | [
"MIT"
] | permissive | # Remove items used for building, since they aren't needed anymore
apt-get -y remove linux-headers-$(uname -r) build-essential
apt-get -y autoremove
# Removing leftover leases and persistent rules
echo "cleaning up dhcp leases"
rm /var/lib/dhcp3/*
echo "Adding a 2 sec delay to the interface up, to make the dhclient h... | true |
8c8b8f41da1ac63f218477d9839cebc2687b2e38 | Shell | wangjf8090/MIRTT | /bilinear_method/run.bash | UTF-8 | 248 | 3 | 3 | [] | no_license | # The name of this experiment: model_dataset
name=$1
# Save logs and models
output=result/$name
mkdir -p $output
# See Readme.md for option details.
CUDA_VISIBLE_DEVICES=$2 python ./main.py --mod $3 --dataset $4 --model $5 --output $output ${@:6} | true |
e7e30d6509582322a076689de30bc744ffa53465 | Shell | ivan-c/rpi4b-debootstrap | /debootstrap-rpi4.sh | UTF-8 | 2,025 | 3.203125 | 3 | [] | no_license | #! /bin/sh -e
set -x
if [ ! -f rpi4.img ]; then
fallocate --length 3GiB rpi4.img
fi
loopback_devices=$(losetup -l --noheading)
if [ -z "$loopback_devices" ]; then
losetup -f -P rpi4.img
fi
loopback_device=$(losetup -l | grep rpi4 | awk '{print $1}')
parted --script --align optimal "$loopback_device" -- \
... | true |
d3e737cae88fbc720aa6d36a5b867a673837351c | Shell | bestclover/mirrors.cug.edu.cn | /test/shell/stat_watcher.sh | UTF-8 | 365 | 3.25 | 3 | [] | no_license | #!/bin/bash
source $(cd `dirname $0`; pwd)/../sync.conf
STAT_WATCHER_LOCK="$VAR_DIR"stat.watching.lock
if [ -e $STAT_WATCHER_LOCK ] ; then
exit 0
else
touch $STAT_WATCHER_LOCK
chmod 600 $STAT_WATCHER_LOCK
fi
trap "rm -f ${STAT_WATCHER_LOCK}; exit 0" 0 1 2 3 9 15
while true
do
"$SYNC... | true |
a1f3dd8c4af5db95a5700e8d4944fc87c0768cdb | Shell | caguerra/Burkardt-Fortran-90 | /f_src/ornstein_uhlenbeck_test/ornstein_uhlenbeck_test.sh | UTF-8 | 546 | 2.765625 | 3 | [] | no_license | #! /bin/bash
#
gfortran -c -Wall ornstein_uhlenbeck_test.f90
if [ $? -ne 0 ]; then
echo "Compile error."
exit
fi
#
gfortran ornstein_uhlenbeck_test.o $HOME/lib/ornstein_uhlenbeck.o
if [ $? -ne 0 ]; then
echo "Load error."
exit
fi
rm ornstein_uhlenbeck_test.o
#
mv a.out ornstein_uhlenbeck_test
./ornstein_uhlenbe... | true |
608b247ad4101493e3d2029a4f426bdfe0f55a47 | Shell | petronny/aur3-mirror | /arm-linux-gnueabi-eglibc-headers/PKGBUILD | UTF-8 | 1,723 | 3 | 3 | [] | no_license | # Contributor: Alexander 'hatred' Drozdov <adrozdoff@gmail.com>
# Maintainer: Erico Nunes <nunes dot erico at gmail>
_target="arm-linux-gnueabi"
pkgname=${_target}-eglibc-headers
pkgver=2.19
pkgrel=1
pkgdesc="Embedded GNU C Library. Stage 1 - headers only. Needed for initialy build toolchain (${_target})"
arch=(any)
u... | true |
863cb2cbd95155acec787d10ccaeecf4d5c3fe9b | Shell | yanivyam/vm-bakery | /build_vm_image.sh | UTF-8 | 6,517 | 4.1875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
#
# Creates VM image
#
# Requires the following environment variables to be set:
#
# PROVIDER - hypervisor to use: kvm, virtualbox, vmware
# OSNAME - target operating system name (CentOS, OracleLinux, etc)
# OSVERSION - target OS version (example: 7.1, 6.5)
# OSBUILDVERSION - target OS buil... | true |
752a495f39dc52cc6485526fdffe994aa848a023 | Shell | GEResearch/build_with_docker | /build.sh | UTF-8 | 191 | 2.75 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
echo "Running build_with_docker generic script for cmake project..."
mkdir -p bin/$ARCH/src
cp -R $NAME bin/$ARCH/src
#Compile cmake project
cd bin/$ARCH/src/$NAME
cmake .
make
| true |
ee2ad00e5ddb6d4f84c1fde0726dea07947362c0 | Shell | pbas4/mac-setup | /scripts/ssh-key.sh | UTF-8 | 328 | 3.125 | 3 | [] | no_license | #!/bin/sh
echo "Running ssh-key.sh..."
if [[ ! -e ~/.ssh ]]; then
echo "Creating an SSH key for you..."
ssh-keygen -t rsa
else
echo "Existing ssh key found, skipping..."
fi
# Github config
echo "Please add this public key to Github \n"
echo "https://github.com/account/ssh \n"
read -p "Press [Enter] key after t... | true |
81250c66ffba8b596b8eeaf64f5b084caf8e6d18 | Shell | smasoka/ChpcSlurm | /roles/slurm/templates/init.d.slurmdbd.j2 | UTF-8 | 4,037 | 3.84375 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
#
# chkconfig: 345 90 10
# description: SLURMDBD is a database server interface for \
# SLURM (Simple Linux Utility for Resource Management).
#
# processname: ${exec_prefix}/sbin/slurmdbd
# pidfile: /var/run/slurmdbd.pid
#
# config: /etc/sysconfig/slurm
#
### BEGIN INIT INFO
# Provides: ... | true |
3b0fd17a5bb1c38a1be7fa65565cb1d13030a0f4 | Shell | edwardzhu/git-mirror | /bash.sh | UTF-8 | 582 | 3.46875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
input=$GIT_LIST
proxy=$PROXY
[ -z "$proxy" ] || (git config --global http.proxy "$proxy" && git config --global https.proxy "$proxy" && echo "Set the proxy: $proxy")
for f in *.git; do
if [ -d "$f" ]; then
cd $f && git fetch origin && git lfs fetch --all && git fetch --tags; cd ..
fi
done
while IFS= rea... | true |
dbba86f551266095f176537a00bb012d64b163f2 | Shell | chingchangtw/systemdynamics | /publish_gitbook.sh | UTF-8 | 622 | 3 | 3 | [] | no_license | # install the plugins and build the static site
gitbook install && gitbook build
# checkout to the gh-pages branch
if ! git checkout gh-pages
then
echo >&2 "Checkout to branch gh-pages failed!"
exit 1
fi
# pull the latest updates
git pull --rebase origin gh-pages
# copy the static site files into the current... | true |
3b06a78f6d3b1832ffd729c9e1b4daeaf3689598 | Shell | kubernetes-sigs/kind | /site/static/examples/kind-gcr.sh | UTF-8 | 1,582 | 4.1875 | 4 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | #!/bin/sh
set -o errexit
# desired cluster name; default is "kind"
KIND_CLUSTER_NAME="${KIND_CLUSTER_NAME:-kind}"
# create a temp file for the docker config
echo "Creating temporary docker client config directory ..."
DOCKER_CONFIG=$(mktemp -d)
export DOCKER_CONFIG
trap 'echo "Removing ${DOCKER_CONFIG}/*" && rm -rf $... | true |
573d8d5973783110bd5a95f1066d9d7bca469c94 | Shell | TAEKnical/ansible-study | /wordpress/wordpress_adhoc.sh | UTF-8 | 3,720 | 2.6875 | 3 | [] | no_license | #아파치 설치,재시작,방화벽
ansible node1 -m yum -a "name=httpd state=latest" -b
ansible node1 -m firewalld -a "immediate=true permanent=true service=http state=enabled" -b
#repository 추가
ansible all -m yum -a "name=https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm" -b
ansible all -m yum -a "name=https://rpms... | true |
c9f96fd8903693c63b569b3998a5dd8d9fb53fd2 | Shell | leejw51crypto/chain-tx-enclave | /chain/integration-tests/docker/tendermint/bin/entrypoint.sh | UTF-8 | 1,036 | 3.40625 | 3 | [
"Apache-2.0",
"MIT",
"BSD-3-Clause"
] | permissive | #!/usr/bin/env bash
set -e
IFS=
# @argument message
function print_message() {
echo "[$(date +"%Y-%m-%d|%T")] ${1}"
}
# @argument Description
function print_step() {
print_message "${1}"
}
# @argument Key
# @argument Value
function print_config() {
print_message "[Config] ${1}=${2}"
}
# @argument Descri... | true |
78e44f6bfcfd57b80ca2d96c04c43f2019b1f62b | Shell | orgenbora/CutLang | /runs/showall.sh | UTF-8 | 590 | 3.546875 | 4 | [] | no_license | #!/bin/bash
htxtfile=BP_1-histos.txt
rootfile=histoOut-CLA.root
regno=1
printUsage() {
echo "Usage: $0 [region_id=${regno}] [rootfile=${rootfile}]"
exit 0
}
showAll() {
cat ${htxtfile} | cut -f2 -d'"' | cut -f1 -d',' | grep -v Basics > histoname.txt
root.exe -l -q -x showall.C"(${regno} , \"${rootfile}\")"
ex... | true |
ae7eb307f7633b2c3e29d78fe0fc73f70586f3c1 | Shell | nakulp007/BigData-Mortality-Prediction-in-ICU | /code/scripts/process_labresults.sh | UTF-8 | 110 | 2.515625 | 3 | [] | no_license | #!/bin/bash
sed 's/\"\"/ /g' $1 | awk -F'"' -v OFS='"' '{ for (i=2; i<=NF; i+=2) gsub(",", ";", $i) } 1' > $2 | true |
a2d21f2a365e6bdebb70502332a6ae09ce897b2f | Shell | oamat/hyperledgerFabric | /MultiOrgDocker/scripts/scriptsSeparated/fabric-ca/gen-orderer-identity.sh | UTF-8 | 1,275 | 3.140625 | 3 | [
"Unlicense"
] | permissive | # Creates/Enrolls the Orderer's identity + Sets up MSP for orderer
# Script may executed multiple times
# PS: Since Register (step 1) can happen only once - ignore register error if you run multiple times
# Identity of the orderer will be created by the admin from the orderer org
# 1. Set the Identity context to Orde... | true |
cf387d1bfa6139ebdd0eb85d55a744004da42425 | Shell | sakilk130/shell-scripting-example-1-20 | /ex18.sh | UTF-8 | 227 | 2.984375 | 3 | [] | no_license | echo enter a range
read range
echo 2
j=3
while test $j -le $range
do
i=2
x=$(($j - 1))
while test $i -le $x
do
if [ $(($j % $i)) -ne 0 ]
then
i=$(($i + 1))
else
break
fi
done
if [ $i -eq $j ]
then
echo $j
fi
j=$(($j + 1))
done
| true |
251851583f0c9da9ce05679f66e44b178e65dbf0 | Shell | jawshooah/dotfiles | /bash/bashrc.symlink | UTF-8 | 5,932 | 3.171875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# set -x
# shell options
shopt -s extglob
shopt -s globstar
# Gradle shit
alias gw='./gradlew --daemon --parallel --configure-on-demand'
alias gwi='gw --info'
# Common aliases
alias ..='cd ..'
alias cd..='cd ..'
alias l='ll'
alias ls='ls -G'
alias gp='grep -Hn --color=auto'
alias fgp='fgrep -Hn ... | true |
d574c24437deacb9d42a40cb5ff92e72ef08cd5a | Shell | ShannonS-DS/nodecontroller | /scripts/configure-system.sh | UTF-8 | 1,967 | 2.984375 | 3 | [] | no_license | #!/bin/bash
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# this will make sure that an empty eMMC card will get the waggle image
touch /root/do_recovery
# this will trigger a self test on the first full boot
touch /home/waggle/start_test
echo -e "10.31.81.51\textensionnode1 extensionnode" >> /etc/host... | true |
a3021c531e2f1cb149af87661e2ca7227182529d | Shell | AymanAzzam/Mini-Reddit-Scripts | /Front-End-New.sh | UTF-8 | 515 | 2.53125 | 3 | [] | no_license | ########## Front End Build ###########
#install the packages
sudo npm install jquery --save && sudo npm install --save @types/jquery && sudo npm install rxjs
#Build the project
sudo ng build --base-href=http://35.204.169.121
#Run unit testing
#sudo ng test
#Remove the Deployed Version
if [ -d "/var/lib/jenkins/work... | true |
c967f705e68880ccb23da44016ee7424962fcd2f | Shell | lbrayner/lbrayner | /wm/bin/terminal | UTF-8 | 685 | 3.65625 | 4 | [] | no_license | #!/bin/sh
# set -x
print_usage() {
printf '\n%s\n' "$(basename "${0}") [-d] [-l] [-c PATH] -- [ARGS...]"
}
path=""
background="" # dark by default
while getopts ":c:dlh" opt
do
case ${opt} in
c)
path="${OPTARG}"
;;
d)
background=""
;;
l)
... | true |
03d7670748eafc8ffeeafc2abde8d3d2da667f7c | Shell | jessestuart/dotfiles | /zsh/git/aliases.zsh | UTF-8 | 3,796 | 2.859375 | 3 | [] | no_license | #!/usr/bin/env bash
# ======================================
# Git aliases -- because who needs GUIs?
# ======================================
alias g="git"
alias ga="git add -A && git status -s"
alias gacam="git add -u && git cam"
alias gacm="git add -A && gcm"
alias gag="git add . && git commit --amend --no-edit && g... | true |
2d894e293fea93f603ebe701ad0f802bb9ec0a91 | Shell | afunsten/oil | /spec/explore-parsing.test.sh | UTF-8 | 259 | 2.796875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
#
# Tests that explore parsing corner cases.
#### Length of length of ARGS!
func() { echo ${##}; }
func 0 1 2 3 4 5 6 7 8
## stdout: 1
#### Length of length of ARGS! 2 digit
func() { echo ${##}; }
func 0 1 2 3 4 5 6 7 8 9
## stdout: 2
| true |
37b1af11d604fbec0be9e8412ee56c4c612387c7 | Shell | saodasinei/shell_script | /d2.sh | UTF-8 | 3,766 | 3.890625 | 4 | [] | no_license | #!/bin/bash
#环境变量文件的地址
ENV_DIR='/etc/profile.d/myenv.sh'
#绿色安装的根目录
SOFTWARE_DIR='/opt/software/'
#安装源文件目录
DOWNLOAD_DIR='/opt/download/'
#根据据参数1提供的识别符和参数2提供的行数[删除相关的配置信息]
function removeEnvVarIfExists(){
if [ $# -lt 2 ]
then
echo 'no sign when remove env variables'
exit -1
fi
sed -rin "/^#.*?$1/,+$2d" $ENV_D... | true |
9d3eafa22c1d94cbb2cf4ca4a4f2b50c4eb64cb3 | Shell | c4s4/babel | /bin/vscodium-build | UTF-8 | 1,500 | 4.1875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Script to install VScodium in ${APP_DIR}/vscodium/${version} directory
set -e
TMP_DIR=/tmp
VSC_DIR=${APP_DIR}/vscodium
VSC_REPO=git@github.com:VSCodium/vscodium.git
# test if version was passed on command line
VERSION=$1
if [[ $VERSION == "" ]];
then
VERSION=$(git ls-remote --tags ${VSC_REPO} | t... | true |
0a4e164d5ed5056b96bbc75e014ef99d6e81929e | Shell | Gavinok/scripts | /surf/mypassmenu | UTF-8 | 751 | 3.5 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
winid=$(xdotool getactivewindow)
shopt -s nullglob globstar
typeit=0
if [[ $1 == "--type" ]]; then
typeit=1
shift
fi
prefix=${PASSWORD_STORE_DIR-~/.password-store}
password_files=( "$prefix"/**/*.gpg )
password_files=( "${password_files[@]#"$prefix"/}" )
password_files=( "${password_files[@]%.g... | true |
f570e1bfe3ee1e34e4ad149de5ddabef5927bdc2 | Shell | NHKWorldForks/plugin.video.nhkworldtv | /build/copy_local_wsl.sh | UTF-8 | 561 | 2.65625 | 3 | [] | no_license | #!/bin/bash
# Copies the Plugin from the dist folder to the local Kodi directory - used for local development on Windows 10 WSL2 (Ubuntu)
# Build the Plugin
. ./build_matrix.sh
# Set the local path (you need to adjust this)
local_kodi=/mnt/c/Users/stefa/AppData/Roaming/Kodi
# Change the <reuselanguageinvoker> to false
... | true |
e62c53f8fe7e49855357e4dda22414eff415c564 | Shell | danieljahn/dotfiles | /vscode/setup.sh | UTF-8 | 251 | 2.78125 | 3 | [] | no_license | #!/bin/bash
. ../helpers.sh
_link settings.json "$HOME/Library/Application Support/Code/User/settings.json"
cat extensions.txt | while read extension
do
echo_info "Installing extension $extension"
code --install-extension "$extension"
done
| true |
c844bec7b1b9e6e2e4e1c32ff36bb2f56a7c82bf | Shell | geoneric/peacock | /script/build_all.sh | UTF-8 | 2,441 | 4.46875 | 4 | [] | no_license | #!/usr/bin/env bash
set -e
# The purpose of this script is to test the build of all versions of all
# packages with the current set compiler (default in PATH or explicitly set
# in CC/CXX environment variables).
cwd=$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd)
peacock_root=$cwd/..
function print_usage()
{
ec... | true |
aca2715bcd6eb3c60ad9f2c90d4c92ad231afb18 | Shell | dankamongmen/s-i | /scripts/git-setup | UTF-8 | 703 | 3.625 | 4 | [] | no_license | #!/bin/sh
set -e
runshow () {
echo "$@"
eval "$@"
}
config_git_anon () {
# rewrite urls to use git://
runshow git config --global 'url.git://git.debian.org/d-i/.insteadOf' 'git+ssh://git.debian.org/git/d-i/'
}
config_git_auth () {
config_git_anon # speeds up checkouts
# use ssh for pushes
runshow git config -... | true |
afc53d5609018d93bd2b6e2421626f5fb09659e2 | Shell | loony-bean/textplots-rs | /run_examples.sh | UTF-8 | 178 | 2.984375 | 3 | [] | no_license | #!/bin/bash
set -e
for d in examples/*
do
example=$(echo $d | sed 's/examples\/\(.*\).rs/\1/')
echo "Running example $example..."
cargo run --example $example
done
| true |
6b8f41de1193abe3bf798969ea44e9e6120e0865 | Shell | PerinatalLab/SE_MFR_FAMILIES | /convert_cousinfamilies_topairs.sh | UTF-8 | 1,087 | 2.515625 | 3 | [] | no_license | #!/bin/bash
## remove 'next' from the first line if you have no header
awk 'NR==1{print "fid" FS "mom1" FS "kid1" FS "mom2" FS "kid2" FS "dad1" FS "dad2" FS "birthyear1" FS "birthyear2" FS "dadage1" FS "dadage2" FS "momage1" FS "momage2"}
{split($3, m, ","); split($4, k, ","); split($5, d, ","); split($6, by, ",");
... | true |
179f47afe84d4c6fbd96081b61346149c2331719 | Shell | scubasonar/openrov-software | /linux/arduino/firmware-upload.sh | UTF-8 | 1,405 | 3.953125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
PROGNAME=$(basename $0)
error_exit ()
{
# ----------------------------------------------------------------
# Function for exit due to fatal program error
# Accepts 1 argument:
# string containing descriptive error message
# ----------------------------------------------------------------
echo "${PRO... | true |
e7ffd4ff95cf5ffba41a7f87cf1da2c62d8a7557 | Shell | junxie01/RecieverFunctions | /Cheng_codes/Prep_RFs.sh | UTF-8 | 1,464 | 3.4375 | 3 | [] | no_license | #!/bin/bash
#RMS Feb 2017
#Following Cheng's workflow in preparing data for RF analysis
#Enter directory structure created by obspyDMT, make a new directory for the RFs, copy the
#SAC files here, filter at the desired passband.
freqmin=2
freqmax=4
for event in $( ls -d 20* ); do
echo In $event
cd $event
cd BH_VE... | true |
e44234d1ff8ea68ce7273242e5ef5e0eb34dd8f6 | Shell | jkelly467/dotfiles | /bash/bashrc | UTF-8 | 297 | 2.53125 | 3 | [] | no_license | #!/bin/bash
[ -n "$PS1" ] && source ~/.bash_profile
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="/Users/jkelly/.sdkman"
[[ -s "/Users/jkelly/.sdkman/bin/sdkman-init.sh" ]] && source "/Users/jkelly/.sdkman/bin/sdkman-init.sh"
export PATH="$HOME/.yarn/bin:$PATH"
| true |
e8697ca4faee02266e4d6e9005400d57e016f385 | Shell | justintoo/rose-sh | /applications/claws_mail/claws_mail.sh | UTF-8 | 4,233 | 2.96875 | 3 | [] | no_license | # TOO1 (2/10/2014): We need to use gtk 2.x since Claws Mail 3.7.9+ does not support gtk 3.x,
#
# Claws mail bug report:
# http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=2371
: ${CLAWS_MAIL_DEPENDENCIES:=curl gtk224 libetpan zlib}
: ${CLAWS_MAIL_CONFIGURE_OPTIONS:... | true |
f802a0f6d12ef20e8bc3dc4a644dc43457a5e997 | Shell | zaitrarrio/mingw-distro | /pcre.sh | UTF-8 | 754 | 2.609375 | 3 | [] | no_license | #!/bin/sh
source ./0_append_distro_path.sh
extract_file pcre-8.40.tar
patch -d /c/temp/gcc/pcre-8.40 -p1 < pcre-color.patch
cd /c/temp/gcc
mv pcre-8.40 src
mkdir build dest
cd build
../src/configure --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 \
--prefix=/c/temp/gcc/dest --disab... | true |
53b736d4d20aefdb144cf33dcf854e7aff5a5abe | Shell | Gandalf-/ipfwd | /scripts/cpu_usage.sh | UTF-8 | 328 | 3.234375 | 3 | [] | no_license | # bash
finish() {
echo
echo "$results"
awk '{s+=$1}END{print "average:",s/NR}' RS=" " <<< "$results"
exit
}
trap finish INT
results=""
while true; do
pid="$(pgrep "$1" | head -n 1)"
if ! [[ -z "$pid" ]]; then
results="$results $(ps -p "$pid" -o '%cpu' | tail -n 1 | grep -o '[0-9\.]*')"
fi
sleep 0... | true |
76467ac8348ac52653d3d6981319f1428ed8c0bd | Shell | doumeki/grub4dos-build | /build-page.sh | UTF-8 | 1,454 | 3.359375 | 3 | [
"MIT",
"TMate"
] | permissive | #! /bin/bash
COMMIT=${GITHUB_SHA:0:8}
VER=`cat grub4dos_version`
DATE=`date -u +%Y-%m-%d`
#DATE=`git log -1 --pretty=format:%ad --date=format:%Y-%m-%d --no-merges $GITHUB_SHA`
BIN=grub4dos-${VER}-${DATE}.7z
NAME=`basename $BIN`
PAGE=`pwd`/${NAME%.7z}.md
BASE_URI=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY
echo title: $NAME ... | true |
f2cafb797a5f54d79eee2e7d0f1125516773c059 | Shell | PlumpMath/cpp-precompiler | /generate_grammar_parser.sh | UTF-8 | 676 | 3.109375 | 3 | [] | no_license | #!/bin/bash
function generate_parser()
{
java -jar ${WORKSPACE}/lib/antlr-4.6-complete.jar \
-o ${WORKSPACE}/generated \
-listener \
-visitor \
-DcontextSuperClass=PrettyPrintParserRuleContext \
-Dlanguage=Python3 \
-lib ${WORKSPACE} \
${WORKSPACE}/gra... | true |
8b95d6bf00275e30bd33806e26c79f043283f374 | Shell | intel/stacks | /dlrs/deprecated/clearlinux/ml-compiler/scripts/install_mkl.sh | UTF-8 | 1,924 | 3.09375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Copyright (c) 2020 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | true |
eba7e3bcc065c9731dfc583b9a196b587c658c05 | Shell | Filipovici-Andrei/scripts | /run_acceptance.sh | UTF-8 | 1,704 | 3.4375 | 3 | [] | no_license | #!/bin/sh -x
echo "Checking for available host..."
if test -z $HOST || ! grep -q "$HOST" <<< "$(floaty list --active)"
then
echo 'Getting new machine'
sleep 2
beaker init -h windows2019-64a -o config/aio/options.rb
export HOST=`beaker provision | grep 'Using available host' | awk {'print $4'} | xargs`
... | true |
3bf75c2167e8401d41c47573c44f917cb50b3894 | Shell | nafeu/oavp | /tools/export-app.sh | UTF-8 | 1,108 | 3.359375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
BUILD_SCRIPT=./configure-build.sh
source ./configure-build.sh
if [[ ! -f "$BUILD_SCRIPT" ]]; then
echo "Missing build configuration script at $BUILD_SCRIPT" 1>&2
exit 1
fi
if [[ -z "$OAVP_PROJECT_PATH" ]]; then
echo "Must provide OAVP_PROJECT_PATH in environment" 1>&2
exit 1
fi
if [[ -z... | true |
0f68611539070e468a1a55b10bb2e91488256bbd | Shell | apple/servicetalk | /servicetalk-test-resources/src/main/resources/io/servicetalk/test/resources/generate-certs.sh | UTF-8 | 3,164 | 2.65625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Copyright © 2018 Apple Inc. and the ServiceTalk project authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless req... | true |
15b722920566ffa789fddf9bcca85260ba06e31d | Shell | OCHA-DAP/hdx-infrastructure | /scripts/devtools/ckan-db-get-snapshot.sh | UTF-8 | 1,167 | 3.625 | 4 | [] | no_license | #!/bin/bash
if [ $(id -u) -ne 0 ]; then
echo "You need to be root to run me.";
exit 1;
fi
# includes the config file to define YOUR specific parameters
# (ckan and cps location, branches etc)
. $(which devtoolconfig.sh)
ckan_db_backup="NON-EXISTENT-BACKUP"
function get_last_backup_name {
echo -en "Getting the la... | true |
0808e3af6a15ddaabe868ce731f024bceed582b7 | Shell | sdrik/athome | /mythtv/bin/mythmove | UTF-8 | 1,567 | 3.5625 | 4 | [] | no_license | #!/bin/bash
# mythmove %JOBID% %CHANID% %STARTTIME% BACKEND
. /usr/local/lib/mythjoblib.sh
backend="$1"
shift
checkdb
checkjob
[ "${hostname}" = "${backend}" ] && die 3 "Cannot move to myself !!"
which klist >/dev/null || die 1 "Missing command : klist"
which kinit >/dev/null || die 1 "Missing command : kinit"
wh... | true |
7e25ed46d96410ec4906306bebd0da4ff50940fc | Shell | arhangeldim/ok | /iterate.sh | UTF-8 | 1,322 | 3.3125 | 3 | [] | no_license | #!/usr/bin/env bash
# Results:
# GIF source = 73Mb
#
# 1) default(sierra) = 62sec (77Mb=68+8,8)
# 2) bayer 2 = 32sec (75Mb=66+8,8)
# 3) bayer 0 = 34sec (80Mb=71+8,8)
# 4) none = 30sec (62Mb=53+8,8)
ffmpeg_bin="/Users/dmirty/Downloads/ffmpeg"
palette="/tmp/palette.png"
filters="fps=10"
out_folder="out/"
gif_to_mp4... | true |
b27cc1522648eba5d2d2cfd15bda79dee4080db7 | Shell | admix/admix-osx-conf | /.zshrc | UTF-8 | 2,821 | 2.53125 | 3 | [] | no_license | # Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
eval $(thefuck --alias)
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="spaceship"
SPACESHIP_VENV_COLOR=green
# Plug... | true |
59752f033094c1eaecb03b3c9d3d41166d3b4562 | Shell | Snap-A/HS4-RPi-USB-Alsa | /combiner_alsa.sh | UTF-8 | 1,112 | 4.125 | 4 | [] | no_license | #! /usr/bin/env bash
###
# Apply adjustments to HomeSeer 'root' image
#
# - Adjust speaker setup to use USB speaker instead of internal one.
#
####
# Platform: Raspian RPi 32bit
####
function Usage()
{
echo "Usage: $0 [-h] <output path>"
echo ""
echo "This script adjusts the HomeSeer for RPi root fs image ... | true |
4654e987deb3a4c517b18e9ce1be2cdb633ed1a4 | Shell | Aniruddha-Deb/DebPMM | /DebPMMSetup.sh | UTF-8 | 1,268 | 3.34375 | 3 | [] | no_license | #!/bin/sh
set -e
codename=''
# get project codename
read -p "Enter project codename: " codename
codename_caps=$(echo $codename | tr 'a-z' 'A-Z')
mkdir -p "$codename/Documents/Team/Mail/Sent"
touch "$codename/Documents/Team/Team_members.txt"
echo "$codename_caps\nTEAM MEMBERS" > "$codename/Documents/Team/Team_membe... | true |
dff1feccd7c56c91f6adefc5535de147172d0b36 | Shell | andreafrancia/dot-files | /bin/lineinfile | UTF-8 | 1,155 | 3.984375 | 4 | [] | no_license | #!/bin/bash
# from https://gist.github.com/kokumura/a6d819ddcb4efe54c5541fc15e1d0347
function lineinfile(){
if [[ $# != 3 ]];then
local THIS_FUNC_NAME="${funcstack[1]-}${FUNCNAME[0]-}"
echo "$THIS_FUNC_NAME - 3 arguments are expected. given $#. args=[$@]" >&2
{
cat << USAGE
Usage:
$THIS_FUNC_NAME... | true |
25ebea1f252f4a6312f36b3bbbddb3afca520e64 | Shell | zoujianmin/fighters | /build.bash | UTF-8 | 12,815 | 3.75 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright 2021, 2023 Ye Holmes <yeholmes@outlook.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | true |
81288e5b7d7fb0279b48f104e46ca833a9d5f422 | Shell | thor/dotfiles | /config/zsh/.zprofile | UTF-8 | 1,784 | 3.3125 | 3 | [] | no_license | #!/usr/bin/env zsh
#
# Executes commands at login pre-zshrc.
#
#
# Editors and tools
#
export EDITOR='nvim'
export VISUAL='nvim'
export PAGER='less'
export AUR_PAGER='nvim'
export FZF_DEFAULT_COMMAND='fd --color=never'
export DIFFPROG='nvim -d'
export FZF_DEFAULT_COMMAND='fd --color=never -IH -E .git'
#
# Language
#... | true |
cc88aa14d37ff4022a845cf0d2bf0fee4a8976cf | Shell | tdierks/tageventor | /tagEventor/tageventor | UTF-8 | 371 | 3.625 | 4 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | #! /bin/sh
# /etc/init.d/tageventor
#
# Carry out specific functions when asked to by the system
case "$1" in
start)
echo "Starting tagEventor"
/usr/bin/tagEventor -p 250 -d start -v 1
;;
stop)
echo "Stopping tagEventor"
/usr/bin/tagEventor -d stop
;;
*)
echo "Usage: /etc/init.d/tagev... | true |
9df3e8579efbd8f0a19f18de89c456a4ca249272 | Shell | xiexiang89/Android-Auto-BannerView | /switch_git_remote.sh | UTF-8 | 317 | 2.9375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
remote=$1
originUrl='';
if [ "$remote" == '1' ]
then
echo "switch to oschina"
originUrl=git@git.oschina.net:DeWork.com/Banner.git;
elif [ "$remote" == '2' ]
then
echo "Switch to gitHub"
originUrl=git@github.com:xiexiang89/Android-Auto-BannerView.git
fi
git remote set-url origin $originUrl... | true |
61e440a442b25dd8c1b0a04492f68baa445f85eb | Shell | mralexgray/Appstore-Through-Terminal | /Uncompiled/com.levi.appstorethruterm/bin/AppStore | UTF-8 | 629 | 3.34375 | 3 | [] | no_license | #!/bin/sh
#run this to open AppStore from terminal, at #any time.
#this requires EricaUtilities
#Code for EricaUtilies check taken from #metadatatool on insanelyi repo, thanks!
if [ ! -e /usr/bin/plutil ] ; then
echo "Installing erica utilities now"
apt-get install -y com.ericasadun.utilities
... | true |
af6877c36a00a44d4a4a27b03f6b38e952469448 | Shell | akramjannah/MN | /bltg_install.sh | UTF-8 | 4,280 | 3.28125 | 3 | [] | no_license | #!/bin/bash
NONE='\033[00m'
CYAN='\033[01;36m'
RED='\033[01;31m'
GREEN='\033[01;32m'
echo "[1/${MAX}] Checking Ubuntu version..."
if [[ `cat /etc/issue.net` == *16.04* ]]; then
echo -e "${GREEN}* You are running `cat /etc/issue.net` . Setup will continue.${NONE}";
else
echo -e "${RED}* You are not running Ub... | true |
60363381aa8658e3acaec8e8356e5c10a8b36673 | Shell | ellbee/dotfiles | /mysetup.sh | UTF-8 | 1,216 | 3.734375 | 4 | [] | no_license | #!/bin/bash
set -e
create_dot_config() {
if [ ! -d ~/.config ]; then
echo "creating .config file"
mkdir ~/.config
fi
}
create_dot_vim() {
if [ ! -d ~/.vim ]; then
echo "creating .vim file"
mkdir -p ~/.vim/backup
fi
if [ ! -e ~/.vim/UltiSnips ]; then
ln -s ~/dotfiles/configfiles/UltiSnip... | true |
d5e02de73a7acaaa4e4bc04d73a744f1a65e69e7 | Shell | OpenCMISS/iron | /doc/latex/genpstex.sh | UTF-8 | 297 | 3.125 | 3 | [] | no_license | #!/bin/sh
#
# Shell file for generating pstex files (for the first time)
#
# Usage:
# genpstex [figs]/plots *.fig
# Created:
# Chris Bradley
# Updates:
# Chris Bradley 10/3/96 Added figs/plots option
#
type=$1
shift
for filename
do
${OPENCMISS_ROOT}/src/iron/doc/latex/genpstex1.sh $type $filename
done
| true |
f4ebf20ac0b9d77154ff3fa19654f923be460109 | Shell | Jason-gyj/X6 | /scripts/build-apps | UTF-8 | 515 | 2.5625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
target=sites/x6-sites/static/apps
er_repo=examples/x6-app-er
dag_repo=examples/x6-app-dag
draw_repo=examples/x6-app-draw
er_dist=$target/er
dag_dist=$target/dag
draw_dist=$target/draw
(cd $er_repo && yarn build)
rm -rf $er_dist && mkdir -p $er_dist && cp -rv $er_repo/dist/* $er_dist
(cd $dag_repo && yarn... | true |
c1322b821083790708c0f655427ca793f9f4cb10 | Shell | scriptzteam/SCENE-SCRiPTS | /Others/Other/glftpd_scripts/loadet/FTP-Backup.txt | UTF-8 | 1,680 | 3.171875 | 3 | [
"WTFPL"
] | permissive | #!/bin/bash
#----------------------------------------------------------------------------#
# Name: FTP-Backup #
# Version: 1.0 #
# Last Updated: 2002-05-03 ... | true |
6817a6b3776cad6af80267285ae9ad176ab5d8b2 | Shell | Mrs-wang1/python-test | /CMDB/shell_script/get_host_info.sh | UTF-8 | 1,162 | 2.9375 | 3 | [] | no_license | #!/usr/bin/env bash
# centos6系统
#windows上编辑的shelljiaoben ,要在linux上执行dos2unix后才能执行成功
# dos2unix get_host_info.sh
# [root@m01 shell_script]# sh get_host_info.sh
#mem:1990,host_name:m01,disk:30865437,cpu:2
#1.获取CPU信息
## 总核数 = 物理CPU个数 X 每颗物理CPU的核数
## 总逻辑CPU数 = 物理CPU个数 X 每颗物理CPU的核数 X 超线程数
#
## 查看物理CPU个数
#cat /proc/cpuinfo| ... | true |
29efd674d29151c80ad6d46d505c3c788a6f3bc8 | Shell | luke1987515/box-turtle | /run.bash | UTF-8 | 1,217 | 3.5625 | 4 | [
"Unlicense"
] | permissive | # !/bin/bash
# Log JBOF Nvme SSD number
#
# 2019-07-22 12:00:00 Add 300 loop & Date_Time Info
# 2019-07-22 10:04:59 luke.chen
IP=192.168.0.41
if [ "$1" == "" ]
then
echo You forget input IP "(use defult 192.168.0.41 )"
else
IP=192.168.$1
fi
sleep_time=3
Start_DAY=$(date +"%Y-%m-%d_%H%M%S")
echo "" > log_$Start_... | true |
0bf7ceacd1a73c722e45fc53ef19788179ecb613 | Shell | yanweibing/docker-zookeeper | /customer/usr/local/bin/environment.sh | UTF-8 | 3,957 | 2.953125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Ver: 1.0 by Endial Fang (endial@126.com)
#
# 应用环境变量定义及初始化
# 通用设置
export ENV_DEBUG=${ENV_DEBUG:-false}
export ALLOW_ANONYMOUS_LOGIN="${ALLOW_ANONYMOUS_LOGIN:-no}"
# 通过读取变量名对应的 *_FILE 文件,获取变量值;如果对应文件存在,则通过传入参数设置的变量值会被文件中对应的值覆盖
# 变量优先级: *_FILE > 传入变量 > 默认值
app_env_file_lists=(
ZOO_CLIENT_PASSWORD
ZOO_SE... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.