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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
22ac4225a185a7f195d5e1985e2a9fb31e2eb032 | Shell | darthsuogles/build_scripts | /libuuid/build_libuuid.sh | UTF-8 | 222 | 2.53125 | 3 | [] | no_license | #!/bin/bash
source ../build_pkg.sh
source ../gen_modules.sh
BUILD_LIBUUID=yes
guess_build_pkg libuuid "http://downloads.sourceforge.net/project/libuuid/libuuid-1.0.3.tar.gz"
guess_print_modfile libuuid ${libuuid_ver}
| true |
3d710d9b0a9a368ad97e6f1e83ff24e345be2de3 | Shell | gary083/GAN_Harmonized_with_HMMs | /src/train_GAN.sh | UTF-8 | 1,054 | 2.609375 | 3 | [] | no_license | #!/bin/bash
iteration=$1
prefix=${bnd_type}_iter${iteration}_${setting}_gan
# Train GAN and output phoneme posterior
cd GAN-based-model
python3 main.py --mode train --cuda_id 0 \
--bnd_type $bnd_type --iteration $iteration \
--setting $setting \
--data_dir $DATA_PATH \
... | true |
d6ee4183e16b9f657a13a25ef6f738f50610ddfd | Shell | wesraph/dotfiles-1 | /home/.shared_env.d/__.sh | UTF-8 | 647 | 3.359375 | 3 | [
"MIT"
] | permissive | ###############################################################################
# __.sh
###############################################################################
###############################################################################
# Verbose Init
#
# Print the current file path when starting up with ve... | true |
f888b37c648675b4406d2b301f8124914a717d6e | Shell | edwardt/HVLearn | /dfa_learner/build-tools/compile | UTF-8 | 525 | 2.515625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
PACKAGE=org.learner
SSL_ROOT=../ssl
CLASS_PATH=./core/target/classes:./learners/target/classes
HEADER_PATH=$SSL_ROOT/utils
mvn -q compile
mvn -q install
javah -classpath $CLASS_PATH -o $HEADER_PATH/jni_initcert.h -jni $PACKAGE.core.CertificateTemplate
javah -classpath $CLASS_PATH -o $HEADER_PATH/jni_ve... | true |
64baf592d9703727046a4194a37a87780fe02ab7 | Shell | hanqqv/kafka-data-catalog | /environment/data/produce-test-products.sh | UTF-8 | 470 | 2.53125 | 3 | [] | no_license | #!/bin/bash
set -u -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
echo "$DIR"
cat $DIR/products-test-dataset.json | kafka-avro-console-producer --topic global.bank.local.ops.products.product-catalog --bootstrap-server broker:29092 --property schema.registry.url=http://schema-registry:8081 --p... | true |
b32225779fea81cadebf7edf4c3b0f781d8ea2a8 | Shell | nalabelle/dotfiles | /bashrc.d/osx | UTF-8 | 335 | 3.09375 | 3 | [] | no_license | #!/bin/bash
if [[ "$OSTYPE" != "darwin"* ]]; then
return
fi
touch ~/.bash_sessions_disable
if [[ "${BASH_VERSINFO:-99}" -lt 5 ]]; then
>&2 printf "bash version is lower than you're expecting\n"
>&2 printf "install the newer one, add it to /etc/shells, and then chsh -s to it\n"
export BASH_SILENCE_DEPRECATION... | true |
94918f2d1761b2cfbfc0fa4d04f456b5f4d43849 | Shell | arshadaleem66/test-swu-script | /test-swu.sh | UTF-8 | 2,461 | 4.03125 | 4 | [] | no_license | #!/bin/bash
DEV="sda1"
COUNT_FILE=/run/media/persistent/count
SYSTEM_FILE=/run/media/persistent/system
OVERFLOW=6
KERNEL_A="itbImageA"
KERNEL_B="itbImageB"
ROOTFS_A="2"
ROOTFS_B="3"
increment_count()
{
i=`read_count`
if [ -z $i ]; then
i=0
fi
i=$((${i}+1))
echo $i > $COUNT_FILE
read_count
}
r... | true |
5aa27669222e77fe17b375d5b89349fb74d4d316 | Shell | dmarcoux/shell_script_templates | /env | UTF-8 | 525 | 4.0625 | 4 | [] | no_license | #!/usr/bin/env bash
# Setup environment for other scripts. Source this script in other scripts
# -e: Exit on commands not found
# -u: Exit on unset variables
# -x: Write to standard error a trace for each command after it expands the command and before it executes it
set -eux
# Check if ABC is installed, just in case... | true |
5416a48778ce104aefe0c5dcca84eae7e5493ac2 | Shell | yuriy0/homedir | /path/retrack_lfs.sh | UTF-8 | 1,078 | 4.15625 | 4 | [] | no_license | #! bash
# This script tries to fix broken LFS files in a git repo
# This creates two new commits on the local copy and pushes the first
set -e # git should not fail
usage () {
echo "${FUNCNAME} GIT_PATHSPEC LFS_TRACKING_INFO"
echo " If any arguments have spaces, enclose in single quotes"
echo >&2 "$@"
... | true |
6cbaee707bd569026949c27200a962e8ce7506f0 | Shell | htelsiz/chainlink | /internal/bin/cldev | UTF-8 | 724 | 2.8125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Runs a Chainlink node preconfigured to communicate with smartcontract/devnet(parity).
# Steps:
# 0. Have docker installed and configured
# 1. ./devnet/devnet
# 2. cd solidity && truffle migrate --network devnet
# 3. ./cldevnet
export LOG_LEVEL=debug
export ROOT=./internal/devnet
export ETH_URL=ws://loca... | true |
cbbcd5fdf97338981c8034f30cbdb5e51f1a5778 | Shell | markcmiller86/SAF | /tools/build_sierra_saf/build.janus2.dbg | UTF-8 | 2,786 | 3.15625 | 3 | [
"LicenseRef-scancode-generic-export-compliance"
] | no_license | #!/bin/bash
#
# This script is intended to work with or without build_tpl
#
export TFLOPS_XDEV=/usr/local/x-comp/intel/tflop/current
export PATH=$TFLOPS_XDEV/tflops/bin.solaris:/usr/xpg4/bin:$PATH
#
# If you don't use build_tpl modify $DEST or set SRC_DIR externally. Build_tpl
# does it for you.
#
export DEST=/sierra/... | true |
2f302273c3029f332a052aa5195b2a1f9d1cbf74 | Shell | awslabs/amazon-ebs-autoscale | /install.sh | UTF-8 | 8,598 | 3.625 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# Copyright Amazon.com, Inc. or its affiliates.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and t... | true |
a01855d4edd5db3bc9a7ddecbd232170c9616c56 | Shell | mlorenzo-stratio/scriptcellar | /monitoring/utils/update_nagios_ui.sh | UTF-8 | 1,525 | 2.875 | 3 | [] | no_license | #!/bin/bash
cd /var/www/html/
wget --http-user nagiosadmin --http-passwd n4g10s 'http://10.150.20.15/nagios/cgi-bin/status.cgi?hostgroup=Production&style=detail&serviceprops=270346&hostprops=270346&sorttype=2&hoststatustypes=14&sortoption=3&limit=100&servicestatustypes=30&noheader=1' && \
grep -v "^<td valign=top ali... | true |
0b63a482d5b88e73166613d3a59a47a047d5fa8f | Shell | SecDorks/libfastbit | /.git-svn/post-merge | UTF-8 | 623 | 2.953125 | 3 | [
"BSD-3-Clause-LBNL"
] | permissive | #!/bin/sh
#
# An example hook script that is called after a successful
# merge is made.
# restore svn configuration files
mkdir -p ./.git/logs/refs/remotes/origin/
#mkdir -p ./.git/refs/remotes/origin/
cp ./.git-svn/logs/refs/remotes/origin/trunk ./.git/logs/refs/remotes/origin/trunk
#cp ./.git-svn/refs/remotes/orig... | true |
1ccad232f94890de2d057b1eb7568cfc1e1450f3 | Shell | snakka-hv/jfrog-cli-publisher | /entrypoint.sh | UTF-8 | 2,700 | 3.578125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
set -e
echo "Authenticating using $INPUT_CREDENTIALS_TYPE";
# Authenticate to the server
if [ $INPUT_CREDENTIALS_TYPE == "username" ];
then
sh -c "jfrog rt c action-server --interactive=false --url=$INPUT_URL --user=$INPUT_USER --password=$INPUT_PASSWORD"
elif [ $INPUT_CREDENTIALS_TYPE == "apikey" ];
the... | true |
d7f5ba876f9b317af859b715062515b44a4c95ef | Shell | naoto0822/dotfiles | /.zshrc | UTF-8 | 4,202 | 2.515625 | 3 | [
"MIT"
] | permissive | ### Added by Zinit's installer
if [[ ! -f $HOME/.zinit/bin/zinit.zsh ]]; then
print -P "%F{33}▓▒░ %F{220}Installing DHARMA Initiative Plugin Manager (zdharma/zinit)…%f"
command mkdir -p "$HOME/.zinit" && command chmod g-rwX "$HOME/.zinit"
command git clone https://github.com/zdharma/zinit "$HOME/.zinit/bin"... | true |
787d85f530aa7f4bd184e958c6cb518ffaaaa105 | Shell | liquid-sky/etcd-aws-cluster | /kubemaster-aws-proxy | UTF-8 | 1,507 | 3.765625 | 4 | [] | no_license | #! /bin/bash
# This script extracts private ipv4 from from /etc/environment
# and uploads it to s3, where it will be downloaded and used by workers.
pkg="kubemaster-aws-proxy"
version="0.4"
environment_file="/etc/sysconfig/environment"
private_ipv4_file="/etc/sysconfig/private_ipv4"
# Get S3 bucket url. Either pass i... | true |
28fd956b18d4999b1d8c4bbb4ad4c8d94f88dd72 | Shell | jsrgqinbin/docker-compose | /zookeeper_cluster/init_data_dir.sh | UTF-8 | 1,019 | 2.921875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
PRJ_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/../ >/dev/null && pwd )"
ZK1_DATA_PATH=${PRJ_PATH}/zk1/data
ZK1_CONF_PATH=${PRJ_PATH}/zk1/conf
ZK1_LOG_PATH=${PRJ_PATH}/zk1/log
ZK2_DATA_PATH=${PRJ_PATH}/zk2/data
ZK2_CONF_PATH=${PRJ_PATH}/zk2/conf
ZK2_LOG_PATH=${PRJ_PATH}/zk2/log
ZK3_DATA_PATH=$... | true |
723749c8448de9e2f10f652928edece9f41bc86c | Shell | agalue/alec-playground | /scripts/minion-centos7.sh | UTF-8 | 2,304 | 3.609375 | 4 | [] | no_license | #!/bin/bash
# OpenNMS Minion
# Designed for CentOS/RHEL 7
# Author: Alejandro Galue <agalue@opennms.org>
ONMS_REPO_NAME="${1-stable}"
ONMS_SERVER="${2-192.168.205.1:8980}"
KAFKA_SERVER="${3-192.168.205.1:9092}"
# Install OpenNMS Minion packages
if ! rpm -qa | grep -q opennms-minion; then
sudo yum install -y -q h... | true |
5db195286d1db359aaaefedb41240595978163e2 | Shell | mshabunin/container-for-mediasdk | /scripts/test.sh | UTF-8 | 369 | 2.890625 | 3 | [] | no_license | #!/bin/bash
set -e
if [ ! -f /.dockerenv ] ; then
echo "This script should be run in a Docker container"
exit 1
fi
SRCDIR=/opencv
DATADIR=/opencv_extra/testdata
BUILDDIR=/build
export OPENCV_TEST_DATA_PATH=$DATADIR
# export OPENCV_VIDEOIO_DEBUG=1
# export OPENCV_LOG_LEVEL=INFO
export LIBVA_MESSAGING_LEVEL=0... | true |
fb50e7d57ac915b19ec32637ce805059d23f656e | Shell | jameshilliard/PythonCode | /AutomationTools/bin/2.0/common/switch_controller.sh | UTF-8 | 12,812 | 3.40625 | 3 | [] | no_license | #!/bin/bash
#---------------------------------
# Name: Howard Yin
# Description:
# This script is used to call switch_controller
#
#--------------------------------
# History :
# DATE | REV | AUTH | INFO
#05 SEP 2012 | 1.0.0 | howard | Inital Version
REV="$0 version 1.0.0 (05 SEP 2012 )"
# p... | true |
428a691b876fccbbc8d2208f13611529482508dc | Shell | aallrd/dotfiles | /.functions | UTF-8 | 1,098 | 4.125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
function fdnfgroup() {
fdnfgroup_usage() { echo "fdnfgroup <package>"; return 0; }
if [[ -z ${1+x} || ${1} == "" ]] ; then fdnfgroup_usage; return 1; fi
local pkg
pkg="${1}"
dnf groupinfo '*' | sed -n '/Group:/h;/'"${pkg}"'/{x;p;x;p}'
return 0
}
function ssh_remote_pubkey() {
l... | true |
a2cf917d88bab7e4ec90ddc29ced42572f37973c | Shell | agolotin/CS484 | /CUDA/hello.sh | UTF-8 | 767 | 2.765625 | 3 | [] | no_license | #! /bin/bash
#SBATCH --time=00:10:00 # walltime
#SBATCH --ntasks=6 # number of processor cores (i.e. tasks)
#SBATCH --nodes=1 # number of nodes
#SBATCH --gres=gpu:4
#SBATCH --mem-per-cpu=1024# memory per CPU core
#SBATCH -J "hello_test" # job name
#SBATCH --mail-user=artem.golotin@gmail.com
# Compatibility var... | true |
d872f6a8f1822c7fef383f3df314f11284bef9a9 | Shell | Kongjh/server_used_script | /replace_chr_I.sh | UTF-8 | 1,227 | 2.984375 | 3 | [] | no_license | #!/bin/bash
str=("chrI" "chrII" "chrIII" "chrIV" "chrV" "chrVI" "chrVII" "chrVIII" "chrIX" "chrX" "chrXI" "chrXII" "chrXIII" "chrXIV" "chrXV" "chrXVI")
num=("chr1" "chr2" "chr3" "chr4" "chr5" "chr6" "chr7" "chr8" "chr9" "chr10" "chr11" "chr12" "chr13" "chr14" "chr15" "chr16")
for i in `seq 0 15`
do
# echo ${str[i]}... | true |
369bb1d2916a6d214683192fddc3e489dc02131e | Shell | truemark-saltstack-formulas/oracle-formula | /localdev-local.sh | UTF-8 | 611 | 3.140625 | 3 | [] | no_license | #!/usr/bin/env bash
# This is a simple script to setup a folder structure for local development.
# To execute this script run the following:
# bash < <(curl -s https://raw.githubusercontent.com/truemark-saltstack-formulas/oracle-formula/master/localdev-local.sh)
set -uex
mkdir -p salt-oracle
cd salt-oracle
mkdir -p ... | true |
b87c4728eb5ddaf9994e100e30e729c5d4aff1d0 | Shell | MahdiMuhaddesi/open-pryv.io | /scripts/restore-attachments-native.sh | UTF-8 | 318 | 2.953125 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
# working dir fix
SCRIPT_FOLDER=$(cd $(dirname "$0"); pwd)
cd $SCRIPT_FOLDER/..
BACKUP_DIR=$(echo $1 | sed 's:/*$::')
BACKUP_DIR="${BACKUP_DIR}/"
export VAR_PRYV_FOLDER=$SCRIPT_FOLDER/../var-pryv
rsync --recursive --times --human-readable --verbose --perms $BACKUP_DIR ${VAR_PRYV_FOLDER}/attachment-files/ | true |
e3aca24d4f3bca574c531446acea87f2ce15916d | Shell | Michael-Rhodes/DFIR_mjr2563_CSEC464 | /getArtifacts.sh | UTF-8 | 6,292 | 4.21875 | 4 | [] | no_license | #!/bin/bash
# Author: Michael Rhodes
#
# Description: gathers artifacts from linux operating systems and outputs them
# in a table or to a file in csv format. It also allows the option
# to send the csv file to an email address.
# Artifacts include:
# Time, OS version, hw specs, hostname, domain, users, startup,
... | true |
13993c24ac07c2be18fc0267f2a9fa11cf874672 | Shell | mathewmanueljm/rob_cam | /bin/prepare_release.sh | UTF-8 | 2,222 | 3.46875 | 3 | [] | no_license | #!/bin/sh
################################################################################
## Copyright (C) 2020 Alejandro Colomar Andrés ##
## SPDX-License-Identifier: GPL-2.0-only ##
################################################################################
##
## Prepare the repo for release
... | true |
a7bd77d76438851504d5c047820d7c4f951e6b18 | Shell | sahil-rao/deployment-sahil | /Compile-Server/usr/local/bin/xplaincompileserver | UTF-8 | 657 | 3.03125 | 3 | [] | no_license | #!/usr/bin/env bash
CLASSPATH="/usr/lib/baaz_compiler"
XPLAIN_HOME="/usr/lib/baaz_compiler"
# needed for execution
if [ ! -f ${XPLAIN_HOME}/navopt*.jar ]; then
echo "Missing Compiler Execution Jar: ${XPLAIN_HOME}/navopt*.jar"
exit 1;
fi
for f in ${XPLAIN_HOME}/*.jar; do
CLASSPATH=${CLASSPATH}:$f;
done
HIVE_MO... | true |
1fc8fe959938881fa6f48c3cd0a5448f44b35705 | Shell | hyamamoto/is_client.dart | /test/run_dart.sh | UTF-8 | 304 | 2.921875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# This script is written for drone.io CI
result=`content_shell --args --dump-render-tree test/test_client_dart.html 2>&1 | tee /dev/stdout | sed -n 2p | grep PASS`
if [ "$result" != "PASS" ]; then
echo "Dart Client Test Failed"
exit 1
else
echo "Dart Client Test Passed"
exit 0
fi
| true |
4b8052f46f4456eb2b86418344e40bff7b3fd9e7 | Shell | peterrrre/commonweal-on-blockchain | /BLOCKCHAIN/extended.sh | UTF-8 | 304 | 3.40625 | 3 | [] | no_license | #!/usr/bin/env bash
#
set -u
SCRIPTDIR=$(dirname "${BASH_SOURCE[0]}")
LINTALL=$(basename "${BASH_SOURCE[0]}")
for f in "${SCRIPTDIR}"/extended-lint-*.sh; do
if [ "$(basename "$f")" != "$LINTALL" ]; then
if ! "$f"; then
echo "^---- failure generated from $f"
exit 1
fi
fi
done
| true |
34af3a9716151194481ed3a63713e790d176b57c | Shell | luyanda/PracticeStuff | /testing-tutorial03-mutator/src/main/java/fallout.sh | UTF-8 | 1,133 | 3.84375 | 4 | [] | no_license | #!/usr/bin/bash
# Create the mutants
java -cp /home/phillip/.m2/repository/com/github/javaparser/javaparser-core/3.5.14/javaparser-core-3.5.14.jar:. Mutator "$1"
# Get the class name
CLASS=$(echo $1 | cut -d . -f 1)
echo "Class name is $CLASS"
# Compile driver
javac Driver.java
# Hide the original file
mv "$1" _"$1... | true |
ed2c0a4f76ba91b18e18757ef53e5f12e5ff16bd | Shell | vincevalenz/SecureFileManager | /secureFileManager.sh | UTF-8 | 4,479 | 4.21875 | 4 | [] | no_license | #!/bin/bash
###############################################################
# |
# |
# Secure File Manager |
# |
... | true |
2d51679d38b048b2964485d0ff9dd316099dd805 | Shell | iamtew/jolla-scripts | /usb_tether.sh | UTF-8 | 950 | 3.46875 | 3 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #! /usr/bin/env bash
# -*- mode: shell; tab-width: 2; sublime-rulers: [100]; -*-
# vim: tabstop=2 cc=100
# Set up IP forwarding and iptables rules to route traffic over the RNDIS interface. After this is
# setup you need to add the default gateway to point to the Jolla. On Linux something like this
# will suffice:
# ... | true |
7674bf3c224abeeed8213085a770e3c74f58085e | Shell | dhickin/epicsv4Training | /mybin/make_slides | UTF-8 | 265 | 2.578125 | 3 | [] | no_license | #! /bin/sh
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <presentation>"
exit 1
fi
ipython nbconvert ${1}.ipynb --to slides --reveal-prefix "http://cdn.jsdelivr.net/reveal.js/2.6.2"
cp ${1}.slides.html standalone
cp custom.css standalone
cp diamond.png standalone
| true |
349c7ad117ace61e7862258f96d8644a3eaea544 | Shell | conda-forge/gst-orc-feedstock | /recipe/build.sh | UTF-8 | 236 | 2.671875 | 3 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | #!/bin/bash
BUILD_DIR="${SRC_DIR}/build"
# configure
meson setup \
${BUILD_DIR} \
${SRC_DIR} \
--prefix ${PREFIX} \
--libdir "lib"
pushd ${BUILD_DIR}
# build
ninja -j ${CPU_COUNT} all
# check
ninja test
# install
ninja install
| true |
9df24ac91e0951455cf1ce2e849d503d13fa5ae0 | Shell | mkienenb/crosslinux | /pkg-cfg/readline-6.3/bld.sh | UTF-8 | 4,706 | 2.734375 | 3 | [] | no_license | #!/bin/${cl_bash}
# This file is part of the crosslinux software.
# The license which this software falls under is GPLv2 as follows:
#
# Copyright (C) 2014-2014 Douglas Jerome <djerome@crosslinux.org>
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Publ... | true |
c109902f3e644da94bfa47a9e95fa0bd038e1af3 | Shell | OlaAronsson/nenRip | /src/nenRip.sh | UTF-8 | 3,434 | 3.5 | 4 | [] | no_license | #!/bin/sh
# -------- To Configure Mandatory --------
# Basic file root - where temporary files and wavs
# will be put (and removed at the end of execution)
FS_ROOT=/tmp/rips/
# Where my MP3s should eventually end up
MP3_ROOT=/media/KOZAK/mp3
# Setup if needed, empty if not to be
# used (syntax : host:port).
#
# Ex... | true |
820b61f2ab6b90299fda8d2f71321932e30ad09b | Shell | swmcc/talk-tmux-lightning | /start_development | UTF-8 | 1,362 | 2.65625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
BASE=`pwd`
PROJECT='tmux-talk'
tmux start-server
# new-session creates first window named 'console'
tmux new-session -d -s $PROJECT -n console
# split window 'h'orizontally (into two vertical panes)
tmux split-window -t $PROJECT:console -h
# select the left-most pane
tmux last-pane
# split this pan... | true |
8bfc032d005b6b0bd6a999cfc1a2207e83d8f06b | Shell | elentok/dotfiles | /extra/ulauncher | UTF-8 | 341 | 2.828125 | 3 | [] | no_license | #!/usr/bin/env bash
source $DOTF/framework
VERSION=5.3.0
if dotf-command-missing ulauncher; then
dotf-apt python3-distutils-extra python3-levenshtein python3-websocket
cd $TMP
curl -L -O https://github.com/Ulauncher/Ulauncher/releases/download/${VERSION}/ulauncher_${VERSION}_all.deb
sudo dpkg -i ulauncher_$... | true |
647fce503a903694eb2fbf5ae93c7e016cfe23ec | Shell | actuated/user-parse | /user-mod.sh | UTF-8 | 14,895 | 4.0625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# user-mod.sh
# 11/3/2015 by Ted R (http://github.com/actuated)
# Script to generate additions to possible usernames
# ie, f/m/l initials, appended numbers
# 1/1/2016 - Aesthetic change
varDateCreated="11/3/2015"
varDateLastMod="1/1/2016"
varTempRandom=$(( ( RANDOM % 9999 ) + 1 ))
varTempFile="temp-user-mo... | true |
9106e18cdee9c826f3b0ce0c29d88e30ee74e479 | Shell | skatterbug/code | /fade.sh | UTF-8 | 225 | 2.609375 | 3 | [] | no_license | #!/bin/bash
BRANCH="r-nfldev"
git checkout $BRANCH
git pull
team=$1
file=src/scss/modules/_variables.scss
sed "s/\(.*$team.*eliminated: \)\(false\|true\)\(.*\)/\1true\3/" $file > $file.temp
mv -f $file.temp $file
git diff
| true |
1e73a1bd0ae59deb88e061834de479a5a8f4af17 | Shell | SUSE/scf | /make/stratos/metrics/stop | UTF-8 | 466 | 2.96875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -o errexit -o nounset
: "${GIT_ROOT:=$(git rev-parse --show-toplevel)}"
source "${GIT_ROOT}/make/include/defaults"
source "${GIT_ROOT}/make/include/has_namespace"
source "${GIT_ROOT}/make/include/has_release"
if has_release "${STRATOS_METRICS_HELM_RELEASE}"; then
helm delete --purge "${STRA... | true |
2773cea34597371ac8ecf3bcc4af61b3a300a8aa | Shell | biodranik/landing-hugo | /tools/build.sh | UTF-8 | 676 | 3.71875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Generates production version of static html site.
#
# Created by Alexander Borsuk <me@alex.bio> from Minsk, Belarus.
#
# Useful debug options:
# -e aborts if any command has failed.
# -u aborts on using unset variable.
# -x prints all executed commands.
# -o pipefail aborts if on any failed pipe operati... | true |
db7484121931c26fa0c2e084f87f2728e930e2c4 | Shell | SoxSokko/Shell_Script | /xBoxScript/ver/update_ver.sh | UTF-8 | 756 | 3.625 | 4 | [] | no_license | #!/bin/bash
source /data/xBoxScript/func/ver_func.sh
source /data/xBoxScript/func/run_func.sh
set -e
FullPath=$1
file=${FullPath##*/}
filename=${file%.*}
extension=${file##*.}
TargetTempDir="/data/ver/pkg_tmp"
NewFileName="$filename"_"$(date +%Y%m%d%k%M%S)"
if [ $# -lt 2 ]; then
PrintRunErr "Usage: too few paramter"
... | true |
887ef8a1123e706b1c38c1f2e08f17f99f5bcb74 | Shell | cha63506/oldshit | /client/Sepaq/sync.sh | UTF-8 | 4,729 | 3.125 | 3 | [] | no_license | #!/bin/sh
# vim: set ai et ts=~4 sw=4 ft=sh:
DATE=`/bin/date +%F`
message=/tmp/emailmessage.txt
function mailperl {
perl <<'EOF'
use Mail::Sender;
$data_file="/tmp/emailmessage.txt";
open(DATA, $data_file) || die("Could not open file!");
@raw_data=<DATA>;
close(DATA);
$sender = new Mail::Sender
{smtp => 'mai... | true |
0cb7a4b2d2fc25cb0c50a6d10c50dfbd356a6051 | Shell | dlux/InstallScripts | /install_kanboard.sh | UTF-8 | 3,942 | 3.515625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# ============================================================================
# Script installs and configure kanboard - SW to manage kanban projects
# Assume: Ubuntu distro. Mysql DB.
# ============================================================================
# Uncomment the following line to debug ... | true |
0bccc1c663a8730b2fd062836c0e5da1a89073cc | Shell | rlminers/rick | /bin/logfile_cleanup.sh | UTF-8 | 2,150 | 3.703125 | 4 | [] | no_license | #!/bin/sh
FIND=/usr/bin/find
PURGE_DAYS=1
HOSTNAME=`hostname | cut -d '.' -f 1`
ASM_NAME=`cat /etc/oratab | grep -v "^#" | grep -v '^$' | grep ASM | cut -d":" -f1`
RAC_NODE=`echo ${ASM_NAME: -1}`
if [ -z "$HOSTNAME" ]; then
echo HOSTNAME not set. Exiting...
exit 1
fi
echo "---------------------------------------... | true |
8c08ac456f5ab338ea3c97421e67f727756c206a | Shell | malston/pks-azure | /scripts/deploy-director.sh | UTF-8 | 6,078 | 3.390625 | 3 | [] | no_license | #!/bin/bash
set -e
# only exit with zero if all commands of the pipeline exit successfully
set -o pipefail
__DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if [ -z "$ENVIRONMENT_NAME" ]; then
echo "Must provide environment name ENVIRONMENT_NAME as environment variable"
echo "Set this to the same value o... | true |
f73687234d7c50bf036127a52060cb7125f9ff9e | Shell | jander99/dotfiles | /.config/yadm/scripts/docker-cleanup.sh | UTF-8 | 684 | 3.46875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
echo "Cleaning up Docker Components"
if ! command -v docker > /dev/null 2>&1; then
echo "Docker not installed"
exit 0
fi
echo "Removing Volumes"
docker volume rm $(docker volume ls -qf dangling=true) > /dev/null 2>&1
echo "Removing Networks"
docker network rm $(docker network ls | grep "bridge" | awk... | true |
7a7a4db1f49b1d43e84b35f90e20826df9099df6 | Shell | petronny/aur3-mirror | /haskell-base-unicode-symbols-git/PKGBUILD | UTF-8 | 1,722 | 3.0625 | 3 | [] | no_license | # Maintainer: Carlos Ruiz-Henestrosa <ruizh.cj+aur@gmail.com>
_hkgname=base-unicode-symbols
pkgname=haskell-${_hkgname}-git
pkgver=20120706
pkgrel=1
pkgdesc="Unicode alternatives for common functions and operators"
arch=('i686' 'x86_64')
url="http://hackage.haskell.org/package/$_hkgname"
license=('custom:BSD3')
depends... | true |
f77ac8d528dd75492e587e4b3e918b571707c829 | Shell | fanboimsft/lfs-script | /misc/config_files/bash_profile | UTF-8 | 587 | 3.046875 | 3 | [] | no_license | # Begin ~/.bash_profile
# Written for Beyond Linux From Scratch
# by James Robertson <jameswrobertson@earthlink.net>
# updated by Bruce Dubbs <bdubbs@linuxfromscratch.org>
# Personal environment variables and startup programs.
# Personal aliases and functions should go in ~/.bashrc. System wide
# environment variabl... | true |
1eadc11d2371b24a25a661ff33831caf405c6250 | Shell | balajipothula/k8s | /setup-k8s-kubectl-redhat.sh | UTF-8 | 512 | 3.21875 | 3 | [] | no_license | #!/bin/bash
# Author : BALAJI POTHULA <balaji.pothula@techie.com>,
# Date : 20 June 2019,
# Description : Kubernetes kube setup on RHEL7.
# Please run this script as non root user (with out sudo)
# creating .kube directory for current user (non root user)
mkdir -p $HOME/.kube
# copying kubernetes admin.... | true |
4ff6e5f1b4c9f757329fc7beba083b1ba56fb97d | Shell | hedlx/bbs | /travis/deploy.sh | UTF-8 | 2,237 | 3.640625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# deploy.sh - push things to the production server.
# This file can be executed by travis or locally.
set -e
die() { echo "$*"; exit 1; }
ssh_opts="-o Port=359 -o User=bbs-backend -o StrictHostKeyChecking=no -o IdentityFile=travis/ssh-key"
if [ ! -f travis/ssh-key ];then
openssl aes-256-cbc -K ... | true |
aa268f44a0ec7fe341286a26d7b8bb9a8d5ea99c | Shell | aland-zhang/scriptisms | /misc/markdown-rsync | UTF-8 | 6,500 | 4.21875 | 4 | [] | no_license | #!/bin/bash
# Command-line
[ $# -lt 1 -o "${1##*-}" == 'help' ] && cat << EOF && exit 1
USAGE: ${0##*/} [<option> ...] <source-dir> [<destination-dir>]
SYNOPSIS:
Synchronize the given source directory to the given destination directory,
replacing all Markdown (*.md) files with their HTML (*.html) equivalent.
T... | true |
78cc612740edfd6764695f636664d1f20795f56b | Shell | syedjafar01/Syed | /ShellScripts/Assignment_1/script2.sh | UTF-8 | 218 | 3.796875 | 4 | [] | no_license | #checking file present or not, if present then delete or else archive the folder
if [ -f $2/$1 ]
then
cd $2
rm $1
echo "file deleted"
else
echo "file not exist"
tar -zcvf $1.tar.gz $2
echo "archived"
fi
| true |
50aac993d4889f6a449ed411cc22a4dd06deb9bb | Shell | tmarques/chromebook | /spring-thermal.sh | UTF-8 | 2,045 | 3.6875 | 4 | [] | no_license | #!/bin/bash
MAX_FREQ_BAT=1600000
MAX_FREQ_ACP=1700000
TEMP_TARGET=75
NOD_SUBSYS='/sys/devices/system/cpu/cpu0/cpufreq/'
NOD_FREQMIN=$NOD_SUBSYS'/scaling_min_freq'
NOD_FREQMAX=$NOD_SUBSYS'/scaling_max_freq'
NOD_FREQ0=$NOD_SUBSYS'/scaling_cur_freq'
NOD_FREQS=$NOD_SUBSYS'/scaling_available_frequencies';
NOD_PS='/sys/cla... | true |
27d90a5aa2a60061f58cbf3305673c443ffd06a3 | Shell | gfd-dennou-club/Dennou-CCM | /exp/APESpinUpSolarDepExp/common/APESpinUpSolarDepExp_job_inc.sh | UTF-8 | 9,581 | 3.296875 | 3 | [
"MIT"
] | permissive | #------------------------------------------------------------------------------------------
# Copyright (c) 2016-2016 Yuta Kawai. All rights reserved.
#-------------------------------------------------------------------------------------------
# * Dennou-CCM launcher script
# A shell script used to perform climate nu... | true |
bb19df009c9cf0d105c0f28720e74e1cb206990e | Shell | wellington1993/packages-community | /manjaro-browser-settings/PKGBUILD | UTF-8 | 1,471 | 2.78125 | 3 | [] | no_license | # Maintainer: Ramon Buldó <rbuldo@gmail.com>
# Maintainer: Bernhard Landauer <oberon@manjaro.org
# Maintainer: Stefano Capitani <stefano@manjaro.org>
pkgname=manjaro-browser-settings
pkgver=20180220
pkgrel=1
pkgdesc="Manjaro Linux settings browser defaults"
arch=('i686' 'x86_64')
url="https://github.com/manjaro/$pkgna... | true |
655b482bf94923fc27a8c099a41d68ca219014c8 | Shell | juliendelplanque/PostgresV3 | /app | UTF-8 | 2,647 | 4.21875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# This script is inspired by st-exec.sh from http://stfx.eu/pharo-server/
# originally written by Sven Van Caekenberghe
function usage() {
cat <<END
Usage: $0 <command>
manage a Smalltalk server.
You *must* provide install.st and start.st files right next to the image
file.
start and s... | true |
a58d810af4eec25eaeab31cea8366c2122795dab | Shell | williamswalsh/BASh-scripting-bible | /31_B_dollar.sh | UTF-8 | 138 | 2.984375 | 3 | [] | no_license | #!/bin/bash
# Dollar dollar allows you to access the pid of the script
while [[ true ]]; do
echo "Process PID: $$";
sleep 1;
done
| true |
58300711840bce6436804fcf33f9a5644a37d05e | Shell | gpdolotina/vagrant-gpdolotina-xenial64 | /provisioning/move_mysql.sh | UTF-8 | 1,424 | 3.625 | 4 | [] | no_license | #!/bin/bash
## NOTE/WARNING
##
## ONLY EXECUTE THIS SCRIPT FOR INITIAL PROVISIONING
## AND ONLY IF YOUR LOCAL MYSQL FOLDER DO NOT ANY
## DATABASES ALREADY CREATED
##
## References:
# https://www.digitalocean.com/community/tutorials/how-to-move-a-mysql-data-directory-to-a-new-location-on-ubuntu-16-04
if [ -d "/va... | true |
cfa4e04851a80379c6f2c6e09719777e2617a246 | Shell | TheFoundation/duplicity-restore-external | /s3restore | UTF-8 | 864 | 3.421875 | 3 | [] | no_license | #!/bin/bash
# Export some ENV variables so you don't have to type anything
export AWS_ACCESS_KEY_ID="AWSKEYAWSKEY"
export AWS_SECRET_ACCESS_KEY="AWSSECRETKEYAWSSECRETKEY"
export PASSPHRASE="ENCRYPTIONPASSPHRASE"
# The S3 destination followed by bucket name
DEST="s3+http://my-bucket-name/folder"
# Your GPG key
#GPG_K... | true |
9a55168ef4b806bf2aa6c8e473211dd0b67f361f | Shell | j3N0/arch-config | /.zshrc | UTF-8 | 375 | 2.640625 | 3 | [] | no_license | ZSH=/usr/share/oh-my-zsh/
export LANG=zh_CN.UTF-8
alias sstart='sudo sslocal -c ~/.shadowsocks.json -d start'
alias sstop='sudo sslocal -c ~/.shadowsocks.json -d stop'
ZSH_THEME="robbyrussell"
DISABLE_AUTO_UPDATE="true"
plugins=(
git
)
ZSH_CACHE_DIR=$HOME/.cache/oh-my-zsh
if [[ ! -d $ZSH_CACHE_DIR ]]; th... | true |
cd20d4735d1a7dd155edb4e6667620f30119a8e0 | Shell | castle/zsh-test-suite | /random_traffic.sh | UTF-8 | 448 | 2.65625 | 3 | [] | no_license | #!/bin/zsh
while true; do
DICE=$((RANDOM %= 100))
if [[ $DICE < 60 ]]; then
zsh ./login_from_new_client.sh;
elif [[ $DICE < 90 ]]; then
zsh ./login_from_new_region.sh;
elif [[ $DICE < 94 ]]; then
zsh ./forgetful_user.sh;
elif [[ $DICE < 96 ]]; then
zsh ./credential_stuffing.sh;
elif [[ $DIC... | true |
0faafc55f7d205a8f53ef8efaab88cd26ff2554c | Shell | rmoorewrs/tic-windows-remote-clients | /wrs-remote-clients-2.0.2/python-heatclient-1.11.0/tools/tox_install.sh | UTF-8 | 831 | 3.5 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Client constraint file contains this client version pin that is in conflict
# with installing the client from source. We should remove the version pin in
# the constraints file before applying it for from-source installation.
CONSTRAINTS_FILE=$1
shift 1
set -e
localfile="$VIRTUAL_ENV/log/upper... | true |
c6b9ccb295fc76cae2687e69f64b364a7216e07e | Shell | Patrik-Stas/indyjump | /scripts/indyjump-utils.sh | UTF-8 | 6,046 | 3.953125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# INDYJUMPSCRIPT
INDYJUMP_INDY="libindy"
INDYJUMP_VCX="libvcx"
INDYJUMP_NULLPAY="libnullpay"
INDYJUMP_PGWALLET="libindystrgpostgres"
errcho(){ >&2 echo ">> ERROR: $@"; }
function magentaEcho() {
local text="$1"
echo -en "\033[1;95m$text\033[0m"
}
function greenEcho() {
local text="$1... | true |
9c2a9f1d2ec812b30b30ca67210beadb758434a8 | Shell | UesleiJf/lpi-essentials | /MaterialEstudo/Scripts/ScriptApagar | UTF-8 | 508 | 3.296875 | 3 | [] | no_license | #!/bin/bash
echo "O script já começou o trabalho sujo!"
echo "vamos pegar o arquivo listado abaixo..."
ls | grep -i "para_" || echo "Não existe esse arquivo listado..."
echo "Vamos formatá-lo e jogar o resultado em um novo arquivo chamado"
echo "NOVO_ARQUIVO"
touch NOVO_ARQUIVO
fmt -w 70 para_apagar > NOVO_ARQUI... | true |
d500f2fef01b15dd52e50642e881e604490ff1da | Shell | cchantep/ReactiveMongo | /.ci_scripts/integrationTests.sh | UTF-8 | 2,688 | 3.265625 | 3 | [
"Apache-2.0"
] | permissive | #! /bin/bash
ENV_FILE="$1"
source "$ENV_FILE"
export LD_LIBRARY_PATH
MONGOD_PID=`ps -o pid,comm -u $USER | grep 'mongod$' | awk '{ printf("%s\n", $1); }'`
if [ "x$MONGOD_PID" = "x" ]; then
echo "[ERROR] MongoDB process not found" > /dev/stderr
tail -n 100 /tmp/mongod.log
exit 1
fi
# Check MongoDB conne... | true |
406c8d252c64bc46be27ef014438bc51e53e8b4f | Shell | jgiovatto/letce2-emane-example | /distributed/exp-03/emane-spectrum-anayzer.sh | UTF-8 | 333 | 2.703125 | 3 | [] | no_license | #!/bin/bash -
# usage ./emane-spectrum-analyzer.sh container id
if [ "$#" != '1' ]
then
echo 'usage: emane-spectrum-analyzer.sh <hostname>'
exit 1
fi
emane-spectrum-analyzer \
$1:8883 \
--hz-min 2390000000 \
--hz-max 2410000000 \
--with-waveforms \
--subid-name 1,radio-1 \
--subid-nam... | true |
7b0bde4e1e598e90d17d3a68360fd70629da0d6d | Shell | archlinux-lucjan/archlinux-packages | /mkinitcpio-git/PKGBUILD | UTF-8 | 1,479 | 2.546875 | 3 | [] | no_license | # Maintainer: Piotr Gorski <lucjan.lucjanov@gmail.com>
# Contributor: Christian Hesse <mail@eworm.de>
# Contributor: Dave Reisner <dreisner@archlinux.org> ([core] package)
# Contributor: Thomas Bächler <thomas@archlinux.org> ([core] package)
pkgname=mkinitcpio-git
pkgver=32.r25.g1862ed5
pkgrel=1
pkgdesc='Modular initr... | true |
06c3de36ce8c82ee2e561373d191caed60692ee8 | Shell | infeeeee/kimai2-cmd-argos | /kimai.1r.1m.sh | UTF-8 | 1,401 | 2.953125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# <bitbar.title>Kimai2-cmd</bitbar.title>
# <bitbar.version>v0.1</bitbar.version>
# <bitbar.author>infeeeee</bitbar.author>
# <bitbar.author.github>infeeeee</bitbar.author.github>
# <bitbar.desc>Client for kimai2 the open source self hosted timetracker</bitbar.desc>
# <bitbar.image>http://www.hosted-somewhe... | true |
da5edf5146f6dce846743a0c8ef8637f65ab4168 | Shell | watchdog-wms/watchdog-wms-modules | /bamstats/test_bamstats.sh | UTF-8 | 1,483 | 3.15625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
SCRIPT_FOLDER=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
source $SCRIPT_FOLDER/../../core_lib/includeBasics.sh # include some basic functions
SCRIPT=$(readlink_own -m $SCRIPT_FOLDER/bamstats.sh)
GLOBAL_TEST_DATA=$SCRIPT_FOLDER/../../test_data
TEST_DATA_FOLDER=$SCRIPT_FOLDER/test_data
FAILED_TESTS=0
... | true |
a5bee70cf55129d63bc2a4d648a591e2f2c51992 | Shell | mbogoevici/strimzi | /docker-images/kafka/scripts/kafka_run.sh | UTF-8 | 2,615 | 3.28125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# volume for saving Kafka server logs
export KAFKA_VOLUME="/var/lib/kafka/"
# base name for Kafka server data dir
export KAFKA_LOG_BASE_NAME="kafka-log"
export KAFKA_APP_LOGS_BASE_NAME="logs"
export KAFKA_BROKER_ID=$(hostname | awk -F'-' '{print $NF}')
echo "KAFKA_BROKER_ID=$KAFKA_BROKER_ID"
# create dat... | true |
0d3ff921dae380e5661ff4a325ce9bdb169da4e5 | Shell | rootid/v2.config | /bin/git_java_fmt.sh | UTF-8 | 146 | 2.78125 | 3 | [] | no_license | #!/bin/sh
updated_files=`git diff --name-only --diff-filter=AM | grep java`
for f in ${updated_files[@]}
do
echo $f
clang-format -i $f
done
| true |
edaffb2e6b994ede3abda947b65943a403b0f48f | Shell | johnwickerson/netlistfuzz | /time.sh | UTF-8 | 152 | 2.609375 | 3 | [] | no_license | #!/bin/bash
start=$(date +%S%N)
#%N is nano second
sh check_abc_test.sh
end=$(date +%S%N)
cost=$((($end - start)/1000000))
echo "Time cost is $cost"
| true |
7dc84425e2cdd9a77cb1201e611408794bbfcf66 | Shell | Nurdilin/web_dev | /setup_env.sh | UTF-8 | 1,742 | 2.953125 | 3 | [] | no_license | #!/bin/bash
#in order to connect as root every time
echo "sudo su -" >> /home/$(whoami)/.bashrc
sudo su -
cp bashrc /root/.bashrc
cp inedit_secrets /root/.inedit_secrets
source /root/.bashrc
touch setup_env.log
# Will automatically update
yum -y update
####################VARIOUS##########################
yum -y in... | true |
2874e5d4251543faf1c1c4a67d444141d5310464 | Shell | codejianhongxie/sequoiadbutil | /mountDisk/mounthDisk.sh | UTF-8 | 3,650 | 4.25 | 4 | [] | no_license | #!/bin/bash
function usage() {
echo -e "Usage: Options"
echo -e "-t, --type=<type> filesystem type; when unspecified, ext4 is used"
echo -e "-h, --help display this help text and exit"
echo -e "-d, --disks=<disk> disk to format, separated by commas(,), such as: /dev/sdb,/dev/sdc"
echo -e "-p, --pr... | true |
6d6baf41808654ec4184746eaa5c9c9b253f37b8 | Shell | ismip/ismip6-gris-results-processing | /Archive_sc/A4tools/scalar_05_batch_func.sh | UTF-8 | 2,101 | 3.53125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Calculate scalar values for a models/experiment
if [[ $# -ne 8 ]]; then
echo "Illegal number of parameters. Need 8 got $#"
exit 2
fi
set -x
set -e
# parameters
outp=$1
lab=$2
model=$3
exp_res=$4
flg_GICmask=$5
flg_OBSmask=$6
res=$7
outpsc=$8
##############################
## wherever we are,... | true |
1a0437de6859cbb3023056c96bb02562271af965 | Shell | ivant/configs | /.zsh/auto/crx.zsh | UTF-8 | 1,871 | 4.1875 | 4 | [] | no_license | crx-create-pem() {
setopt err_return local_traps
if [[ $# != 1 ]]; then
echo "Usage: crx-create-pem <new pem path>" >&2
return 1
fi
local pem="$1"
if [[ -f "$pem" ]]; then
echo "$pem already exists, aborting..." >&2
return 1
fi
2> /dev/null openssl genrsa 2048 | openssl pkcs8 -topk8 -no... | true |
7780f41b703b9ba4707802af913b006e47a0d8d0 | Shell | NobodyXu/stacks | /clang/post_configure.sh | UTF-8 | 344 | 2.546875 | 3 | [
"MIT"
] | permissive | #!/bin/bash -ex
# Use ld.ldd as default linker
sudo ln -s -f $(which ld.lld) /usr/bin/ld
# Use clang as default compiler
## Set env variables instead of with /usr/bin/cc, /usr/bin/c++ or /usr/bin/cpp to avoid breaking
## the compilation of kernel modules.
./append.sh 'export CC=clang' ~/.bashrc
./append.sh 'export... | true |
6a5b31c415ceb9b4dc1c1f05dbd78c4b71c75894 | Shell | hevertonrodrigues/dotfiles | /install.sh | UTF-8 | 2,120 | 3.234375 | 3 | [] | no_license | #! /bin/bash
NO_COLOR="\033[1;0m"
GREEN="\033[0;32m"
BLUE="\033[0;34m"
RED="\033[0;31m"
WHITE="\033[0;37m"
GRAY="\033[1;30m"
#apps instalados com homebrew
APPS=(wget git ack ant autoconf automake cask cowsay cscope ctags emacs mongodb mysql node openssl sqlite postgresql funcoeszz "macvim --with-lua --with-override-... | true |
ef6b909eacb174ecb087ffb9bf06f4f02b73c763 | Shell | salamaashoush/bashDBMS | /start.sh | UTF-8 | 3,908 | 3.578125 | 4 | [] | no_license | #!/usr/bin/env bash
set -x
ROOTDIR="$HOME/bash_dbms/"
PARENTDIR="$ROOTDIR/databases"
USERSFILE="$ROOTDIR/users_file"
DBMSOPTFILE="$ROOTDIR/dbms_opt"
GPK=""
. ./tablemodule.sh
. ./dbmodule.sh
. ./usermodule.sh
commandHelp(){
case "$2" in
"create")
cat "$ROOTDIR/help/create.html" | yad --text-inf... | true |
fe5e2f457af7c811c998baf378fcc39507642548 | Shell | CognitiveScale/mantl | /tf_profile | UTF-8 | 7,177 | 3.765625 | 4 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/bin/bash
# This should be sourced from the top level of the ansible-cognitivescale repo to pull the values in correctly
trap "exit 1" TERM
export TOP_PID=$$
# Directory/repo for terraform
SECURITY_SETUP=security-setup-cs
MANTL_CONFIG_DIR="../mantl-config"
TF_STATE_FILE='terraform.tfstate'
TF_SECURITY_FILE='secur... | true |
7e6a262506079b6ba0ec43b19e891e281190215b | Shell | kaczmarj/container-workshop | /build_container.sh | UTF-8 | 883 | 3.90625 | 4 | [] | no_license | #!/bin/bash
# Name to give container
CONTNAME="$1"
# Path to definition file
DEFFILE="$2"
# if we are running on OpenMind, we need to use `vagrant`
. /etc/os-release
OS=$NAME
if [ "$OS" = "CentOS Linux" ]; then
# Setup variables to prevent dumps into /home/user
export VAGRANT_HOME="$PWD/.vagrant.d"
exp... | true |
730e45b176ffaed14678225413fa1d1f4d255113 | Shell | DichromaticLB/wadu | /test/common/misc_commands.sh | UTF-8 | 2,306 | 3.046875 | 3 | [] | no_license | #!/bin/bash
if [ -z "$(./wadu -f ../common/empty.json 2>&1| grep 'Required image, arguments and text offset to intialize trace')" ]; then
error "didnt complain on empty configuration"
else
suc "empty configuration test"
fi
if [[ $(./wadu -e "PRINT(CONCAT('test'.'123'.0x4142434445464748).'');") != "test123HGFEDCBA"... | true |
cef50475d8b77ece1e030035c56164a6a6065132 | Shell | wnxn/QKE | /image/update-cni.sh | UTF-8 | 1,079 | 2.765625 | 3 | [] | no_license | #!/usr/bin/env bash
# Copyright 2018 The KubeSphere 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 required by appli... | true |
3049af3d4810a2f4fa592cfea08c8282dcbb8f70 | Shell | WapStart/swordfishd | /daemon-src/misc/init.d/configure | UTF-8 | 990 | 3.984375 | 4 | [] | no_license | #!/bin/bash
function configure {
echo "Creating init.d script..."
echo "#!/bin/bash" > sw_init.d_script
echo "PROG="\"$1\" >> sw_init.d_script
echo "PROG_PATH="\"$2\" >> sw_init.d_script
echo "PROG_ARGS=\"-dc "$3"\"" >> sw_init.d_script
echo "PID_PATH=\""$4"\"" >> sw_init.d_script
`cat swordfish_init >... | true |
b0b4bb073a940d3215b5fd560a4c8514fd7012ec | Shell | jesyspa/toy-hisp | /run_tests.sh | UTF-8 | 471 | 3.84375 | 4 | [] | no_license | #!/bin/bash
readonly progname=$(basename $0)
readonly inputdir="$1"
print_usage() {
echo "usage: $progname inputdir" >&2
exit 1
}
if [[ -z $inputdir ]]; then
print_usage
fi
readonly now=$(date +%Y%m%d-%H-%M-%S)
readonly testdir="test-run-$now"
mkdir "$testdir"
for x in "$inputdir"/*.hisp; do
name=... | true |
c2e91fc2eb5ddca9c0194cb41d02900bd19452fc | Shell | diraulo/laptop-deprecated | /mac | UTF-8 | 4,061 | 3.640625 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | #!/bin/sh
# Welcome to the thoughtbot laptop script!
# Be prepared to turn your laptop (or desktop, no haters here)
# into an awesome development machine.
fancy_echo() {
local fmt="$1"; shift
# shellcheck disable=SC2059
printf "\\n$fmt\\n" "$@"
}
append_to_zshrc() {
local text="$1" zshrc
local skip_new_li... | true |
076eae1e2a9ffd46518ae777a6957f446a2709ee | Shell | OSBI/saiku | /saiku-bi-platform-plugin-p7/src/main/plugin/saiku-shareMondrian.sh | UTF-8 | 1,510 | 3.625 | 4 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
# This script makes saiku use the same mondrian as pentaho. Useful to share cache and resources (including CDC) on pentaho >= 4.8
#
usage (){
echo
echo "Usage: saiku-shareMondrian.sh -w pentahoWebapPath]"
echo
echo "-w Pentaho webapp server path"
echo "-h This help screen"
echo
exit 1
}
[ $# -gt 1... | true |
d22efb56d4600e517713adc7b903b9e7ca6ee839 | Shell | jhu-sheridan-libraries/nutch-compose | /nutch1/conf/build.sh | UTF-8 | 427 | 2.5625 | 3 | [] | no_license | #!/usr/bin/env bash
set -x
source /etc/profile.d/java.sh
source /etc/profile.d/ant.sh
source /etc/profile.d/nutch.sh
# config dir is copies to runtime/config on build
ELASTICSEARCH_ENDPOINT="localhost"
ELASTICSEARCH_PORT="9200"
envsubst < /opt/conf/nutch-site.xml.tmpl > $NUTCH_HOME/conf/nutch-site.xml
cp -f /opt/con... | true |
6aac2d974b032fb5eec4797bf0d5871840613da1 | Shell | ScriptHero/action-spicy-proton-generator | /entrypoint.sh | UTF-8 | 459 | 2.6875 | 3 | [
"MIT"
] | permissive | #!/bin/sh -l
set -e
export branch_name="$1"
spicy_proton_name=$(ruby -rspicy-proton -rdigest/sha1 -e'
branch_name_hash = Digest::SHA1.hexdigest(ENV["branch_name"]).to_i(16)
words = Spicy::Proton.new
adjective = words.adjectives[branch_name_hash % words.adjectives.length]
noun = ... | true |
498a6e726fc3b78b75e66f297f6811b470824964 | Shell | ibsd/ack | /bin/shell/lang/langmenu.sh | UTF-8 | 2,572 | 3.765625 | 4 | [] | no_license | export LANG_ROOT=$SHELL_ROOT/lang
LANG_VARS_FILE=$LANG_ROOT/vars.sh
LANG_GETS_FILE=$LANG_ROOT/gets.sh
USE_TIME=
function lang_menu()
{
echo "==================== LANG strings.xml Kit ===================="
echo -n "0.rechoose languages code [$LANG_CODE]"
if [ -n $LANG_CODE ] ; then echo " --> done!"; fi
echo ... | true |
2f482cd1d6deef616f0cd2db2e724ecd40c41c6d | Shell | PacBSD/abs | /devel/pac-ports/PKGBUILD | UTF-8 | 871 | 2.921875 | 3 | [] | no_license | #
pkgname=PacPorts
pkgver=20151231
pkgrel=1
arch=('any')
license=('GPLv2')
backup=('usr/local/etc/mkportpkg.conf')
url='http://github.com/Amzo/pac-ports'
makedepends=('git')
source=(git://github.com/Amzo/PacPorts)
md5sums=('SKIP')
install=pac-ports.install
pkgver() {
date '+%Y%m%d'
}
package() {
cd $pkgname
i... | true |
100ae362871a3b514e940302e493111a20ca516d | Shell | dask/dask-gateway | /continuous_integration/docker/hadoop/files/scripts/setup-hadoop.sh | UTF-8 | 2,682 | 3.546875 | 4 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | #!/bin/bash
set -ex
# Tweak hadoop configuration and permissions:
#
# - hadoop is unpacked with default configuration in etc/hadoop, we relocate
# that to /etc/hadoop/conf.empty.
#
mv /opt/hadoop/etc/hadoop /etc/hadoop/conf.empty
#
# - log4j.properties is a requirement to have in the hadoop configuration
# directo... | true |
fe47ce1ee309946d165606661db29b288e5b7196 | Shell | padeoe/one-key-proxy | /my_proxy.sh | UTF-8 | 1,937 | 3.578125 | 4 | [] | no_license | # 读取命令行参数
if [ "$#" -ne 3 ]; then
echo "Usage: $0 DOMAIN PORT EMAIL" >&2
exit 1
fi
domain=$1
port=$2
email=$3
# 安装软件
apt-get update
apt-get install -y git apt-transport-https
# 生成ssl证书
git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt
/opt/letsencrypt/letsencrypt-auto certonly --quiet --agree-... | true |
dbb7132694ed8579f1e1ad4b6a355c7866dd331c | Shell | sandyherho/bash-script_pribadi | /cek_root.sh | UTF-8 | 441 | 3.09375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Memastikan bahwa user yang mengeksekusi script ini root user atau bukan.
# Menampilkan UID
echo "UID kamu adalah ${UID}." # UID root selalu 0
# Menampilkan apakah user ini root user atau bukan
if [[ "${UID}" -eq 0 ]] # -lt lebih kecil, -gt lebih besar, -ne tidak sama
#perhatikan spasi 1 kali h... | true |
97cd30643f948091107a3b00fc4f57f45f4d539f | Shell | n8felton/DeployStudio | /DeployStudio Admin.app/Contents/Frameworks/DSCore.framework/Versions/A/Resources/Scripts/ds_partition.sh | UTF-8 | 4,089 | 3.828125 | 4 | [] | no_license | #!/bin/sh
echo "ds_partition.sh - v2.2 ("`date`")"
ARCH=`arch`
BOOT_DEVICE=`diskutil info / | grep "Device Node:" | sed s/Device\ Node://g | sed s/\ *//`
if [ "_${BOOT_DEVICE}" = "_" ]
then
echo "RuntimeAbortWorkflow: cannot get boot device"
echo "ds_partition.sh - end"
exit 1
fi
SLICE_INDEX=`expr ${#BOOT_DEVI... | true |
d1b67c2848ecfb996417df179621f0a856589f2e | Shell | joek295/scripts | /dmenu/dbc | UTF-8 | 753 | 3.703125 | 4 | [
"Unlicense"
] | permissive | #!/bin/sh
# calculator based on bc and dmenu
# Based on djp's script on the Arch forums. Made sh compatible, and
# uses bc instead of python for greater power.
if [ -f "$HOME/.config/dmenurc" ]; then
. $HOME/.config/dmenurc
else
DMENU="dmenu -i -l 20"
fi
hist="$(xsel -o)"
(echo "$hist" | bc -l 2>/dev/null) |... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.