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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
75e78159a55d042e37b146e7ac924ed3e3525a6c | Shell | aleksandaratanasovski/ac_rootfs_phytec | /opt/ltp/testcases/bin/ddt/common/dd_raw_perf.sh | UTF-8 | 3,677 | 3.78125 | 4 | [] | no_license | #! /bin/sh
###############################################################################
# Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Fr... | true |
00ea8a16048cccb0a6b9715e63cad210ba9bdfba | Shell | oonisim/spark-hadoop-Installation | /installation/setup_artefacts.sh | UTF-8 | 1,608 | 3.40625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
#--------------------------------------------------------------------------------
# Modules e.g. hadoop requires information such as where to install the master.
# Consult the infrastructure provisioner (e.g. aws provisioner) and collect the
# cluster infrastructure information, e.g. master server ... | true |
c391d8d766654f0cb79cc93fac4f8de7db6b9dcc | Shell | FenixAra/imdb-rating-app | /build.sh | UTF-8 | 617 | 3 | 3 | [] | no_license | #!/usr/bin/env bash
export APP_NAME="IMDB-Rating"
export PORT=3000
export AUTH_TOKEN="6D7U6Xh2uRRUxcVRPeSGNfxmVT4tepxuMVC5vLkL2LtLBrDBstrz2qbKuHtZVsPM"
go install
if [ $? != 0 ]; then
echo "## Build Failed ##"
exit
fi
echo "Doing some cleaning ..."
go clean
echo "Done."
echo "Running goimport ..."
goimports -... | true |
1251b679615a11624cb5e33fcccf2039f0e9152f | Shell | bHartiii/Programming-Constructor-bash | /for-loops-problems/displayPowerOfTwo.sh | UTF-8 | 145 | 3.125 | 3 | [] | no_license | #! /bin/bash
read -p "Enter a number - " n
result=1
for((count=0;$count<$n;count++))
do
result=$(($result*2))
echo "result - " $result
done
| true |
1d3c25ed68855a4d3a2be2fb7194f96364265191 | Shell | geekofweek/homeassistant | /tools/ha-github-scrub.sh | UTF-8 | 2,056 | 3.625 | 4 | [] | no_license | #!/bin/bash
##########################################################
## Variables
##########################################################
filename='PATH_TO_FILE_WITH_REDACTED_WORDS_redacted.txt'
directory='PATH_TO_LOCAL_GITHUB_DIRECTORY'
haconfigdir='PATH_TO_LOCAL_HA_CONFIG_DIR'
user1=USERNAME_TO_BE_REPLACED_WIT... | true |
b8644dab64d241f479d05d86e20e739229b59819 | Shell | lvlinuxfeng/ARM | /x2/stage2_build_ddk.sh | UTF-8 | 2,269 | 3.171875 | 3 | [] | no_license | #!/bin/bash
function setup_environment()
{
info "**************************"
info "* Set Environment..."
info "**************************"
cd $ROOT_DIR
source build/envsetup.sh
lunch $LUNCH_ENG
}
#####################################################################
# ... | true |
6f526d17e09851ecdb431bfd9e5b3a74a4964070 | Shell | s-nakaoka/choreonoid | /misc/script/extract-messages-initial.sh | UTF-8 | 326 | 3.484375 | 3 | [
"MIT",
"Zlib"
] | permissive | #!/bin/sh
if [ ! -d "po" ]; then
mkdir po
fi
echo "Extracting messages to translate from the source files."
xgettext -k"_" -k"N_" -k"Q_" -o po/messages.pot *.cpp
if [ -n "$1" ]; then
echo "Creating $1.po file."
msginit --input=po/messages.pot --locale=$1 -o po/$1.po
else
echo "Please specify a locale... | true |
e335a7aedf7823fddc4c164a9e718edb2664650c | Shell | arthursiq5/shell_script_alura | /convertendo_imagens/conversao_jpg_png_automatico.sh | UTF-8 | 442 | 3.171875 | 3 | [] | no_license | #!/bin/bash
# se o diretório png não existir, crie-o
if [ ! -d png ]
then
mkdir png
fi
cd ./imagens-livros
for imagem in *.jpg # percorre um vetor com todos os arquivos com extensão '.jpg'
do
# pegando o nome da imagem sem extensão
imagem_sem_extensao=$(ls $imagem | awk -F . '{ print $1 }')
convert $imagem ..... | true |
fe60aa755da5c9559eb36e48d97f9fbcfaf1559a | Shell | enkiv2/corpus2gg | /corpus2gg.sh | UTF-8 | 702 | 3.421875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env zsh
function convert() {
name="$1"
tr -d '\r' |
sed '
s/{/\n{\n/g;
s/}/\n}\n/g;
s/\[/\n\[\n/g;
s/\]/\n\]\n/g' |
grep -v '" *:'|
awk '
/\[/ {
capture=1
}
/\]/ {
capture=0
}
{
if(capture) {
print $0
}
}' | grep -v '\[' | grep -v '{' | grep -v '\]' | grep ... | true |
c16e7fe6aa43e0e76f454279248c639df672d81f | Shell | b-com-software-basis/remaken | /scripts/unixes/clean_remaken_builds.sh | UTF-8 | 101 | 2.890625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
for i in $(find . -type d -name build-\*)
do
echo "Removing $i folder"
rm -rf $i
done
| true |
cf4abafc94f4ad3b0da55609c5a05854f2aecc23 | Shell | LoesterFranco/foss-asic-tools | /images/iverilog/scripts/dependencies.sh | UTF-8 | 295 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
yum group install "Development Tools" -y
yum -y install gcc-c++
wget http://ftp.gnu.org/pub/gnu/gperf/gperf-3.1.tar.gz
tar -xvzf gperf-3.1.tar.gz && \
cd gperf-3.1 && \
autoconf && \
./configure --prefix=/opt/gperf/ && \
make -j$(nproc) && \
make install
| true |
016b529750cf5d842e0f73e84b2f28852a6c9227 | Shell | JackXuXin/nn | /c2/BuildScript/xcode-archive-release.sh | UTF-8 | 4,034 | 3.390625 | 3 | [] | no_license | #!/bin/sh
#
#出现过 can't find device 的错误,使用 rvm system 解决掉了
# source xcode-archive-release.sh 1 3551 4 2 1.0.0.6
if [ $# != 3 ]; then
echo "错误:参数最少3个,第一个参数打包类型:1、adhoc 2、appstore
第二个平台ID:3551
第三个大版本号:如 输入5,build会设置成5"
# 第四个服务器选项:1,内网(暂时没有)2,测试服,3,正式服
# 第五个热更版本:如 1.0.0.1"
exit 1
fi
declare -... | true |
9f145d7e8c28c7a874c0ccf04f9c92b98555ffe8 | Shell | ProjetEvaluationBash/Code | /Evaluation.sh | UTF-8 | 201 | 2.6875 | 3 | [] | no_license | #!/bin/bash
# SCORE (float)
SCORE=""
# MAXSCORE (float)
MAXSCORE=""
# COMMENT (string)
echo "Commentaire :"
read commentaire
# evaluateAnswer(answer : string)
function evaluateAnswer {
return 0
}
| true |
68af57a6d5e220ae009d284241cbad58e59ead36 | Shell | manuelisimo/awsddns | /awsddns.sh | UTF-8 | 2,033 | 3.84375 | 4 | [] | no_license | #!/usr/bin/env bash
function usage
{
echo "awsddns.sh Updates dns records to route53"
echo "Usage: awsddns.sh"
}
if [[ ! $(command -v aws) ]]; then
echo "This script requires the aws cli"
exit 1
fi
if [[ ! $(command -v jq) ]]; then
echo "This script requires jq"
exit 1
fi
if [[ -f "/etc/awsddns.conf" ]]... | true |
2c6e5c15aef0c675b3ceee1532fe26044aa88a22 | Shell | genscape-jlee/Backfill | /cygwin64/tocsv.sh | UTF-8 | 381 | 3.765625 | 4 | [] | no_license | #!/bin/zsh
if [[ "$#" -eq 0 ]] {
echo "usage: './tocsv.sh <files>";
exit 1;
}
for file_name in $*;
do
if [[ ! ${file_name} =~ '\.xml$' ]] {
echo " WARNING: ${file_name}: this script only handles xml files";
} else {
output_file=${file_name//.xml/.csv};
xsltproc --output "${output_file}" tocsv.xsl ... | true |
3783985aee44cbb80bfd060ceee684b4048eeabe | Shell | kassytech01/PCF-demo | /ci/scripts/verify_service.sh | UTF-8 | 347 | 3.25 | 3 | [] | no_license | #!/bin/bash
function verify_service(){
result=$(curl -LI localhost:80/pcf-demo/ -o /dev/null -w '%{http_code}\n' -s)
if [[ "$result" =~ "200" ]]; then
return 0
else
return 1
fi
}
NEXT_WAIT_TIME=0
until verify_service || [ $NEXT_WAIT_TIME -eq 10 ]; do
sleep $(( NEXT_WAIT_TIME++ ))
... | true |
7d52aa0c6f127e3c64aeb2f86789e504f788e6a3 | Shell | petronny/aur3-mirror | /dnt/PKGBUILD | UTF-8 | 916 | 2.765625 | 3 | [] | no_license | # Contributor: Si Snow <si@sisnow.im>
pkgname=dnt
pkgver=git
pkgrel=1
pkgdesc="A free sarcastic 3D single player RPG set in a post-apocalyptical world"
arch=('i686' 'x86_64')
url="http://dnt.dnteam.org/"
license=('custom')
depends=('cal3d' 'openal' 'libgl' 'sdl_image' 'sdl_ttf' 'libvorbis' 'mesa')
makedepends=('git')
... | true |
2207fbc193ada19ded0b8306deaa880ade427e08 | Shell | rckarns8/Scripts_Pipelines | /Oil_Fluff.sh | UTF-8 | 42,491 | 3.125 | 3 | [] | no_license | #Oil Fluff Metagenomics Pipeline
#Initiated: October 30, 2019 by Rachael Storo
#Last Edit: December 13, 2019 by Rachael Storo
#Purpose: Create a script for the processing of oil fluff metagenomic samples
#Read this paper before use of this pipeline, it will provide a visual context to what the majority of these steps... | true |
578784afdf9fc7e2dae7f1a73a02668d5b2ea42c | Shell | SICKAG/sick_lidar_localization | /test/scripts/run_linux_ros1_simu.bash | UTF-8 | 8,615 | 3.421875 | 3 | [] | permissive | #!/bin/bash
#
# Function call_service "<service>" "<parameter>" "<expected answer>" just calls a ros service
# Example: call_service LocIsSystemReady "{}" "success: True"
#
function call_service()
{
echo -e "rosservice call $1 \"$2\""
answer=$(rosservice call $1 "$2") # call rosservice
answer=$(echo $answer|tr ... | true |
e5d77e81c45995e9f68aa5161663e81ca849b3d0 | Shell | fhdk/openbox-config | /config/skel/.local/bin/fpf | UTF-8 | 1,986 | 4.28125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/bash
### Help
Help() {
echo
echo "Use fzf to search and install with Pacman and Yay"
echo "Defaults to Pacman if no options passed"
echo
echo "Syntax: fpf -[y|h]"
echo
echo "options:"
echo
echo "y Search and install with Yay"
echo
echo "h Print this help ... | true |
79fc6e62980438924cc0a9a3ac6e0a9fafbc480e | Shell | Formlabs/libuavcan | /bootstrap.sh | UTF-8 | 1,286 | 3.4375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# +----------------------------------------------------------+
# | BASH : Modifying Shell Behaviour
# | (https://www.gnu.org/software/bash/manual)
# +----------------------------------------------------------+
# Treat unset variables and parameters other than the special
# parameters ‘@’ or ‘*’... | true |
6af0ab841e8d80d9affacf70b7b2bd4dd4ce314c | Shell | bloopton/InflationEconomics-Research-ColumbiaU | /currencyData/currencyDetailScript | UTF-8 | 319 | 2.765625 | 3 | [] | no_license | #!/bin/bash
curl -X GET https://api.mercadolibre.com/currencies/ | jq . > currencies
cat currencies | grep "\"id\":" | tr -d '"' | tr -d ':' | tr -d ',' | tr -d ' ' | tr -d 'id' > currencyList
while read CUR; do
curl -X GET https://api.mercadolibre.com/currencies/$CUR | jq . > curDetails$CUR
done < currencyList
| true |
32a94eae43ca103a1a0a8c36536aba5a7e36dde3 | Shell | Wang1995/trafodion | /core/sqf/src/seabed/src/xchkhdr.sh | UTF-8 | 1,873 | 2.9375 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-generic-export-compliance",
"BSD-3-Clause",
"MIT"
] | permissive | #!/bin/sh
#
# @@@ START COPYRIGHT @@@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Vers... | true |
e0e421abd6e566e410ab43ee9cb1f90ad2386606 | Shell | JackXuXin/nn | /网络协议/protocol/.svn/pristine/e0/e0e421abd6e566e410ab43ee9cb1f90ad2386606.svn-base | UTF-8 | 199 | 3.09375 | 3 | [] | no_license | #!/bin/bash
protofiles=`ls | grep [.]proto`
rm -rf *.pb
for f in ${protofiles[*]}
do
chmod u+x ./protoc-mac
./protoc-mac $f -o ${f/".proto"/".pb"}
echo " generate" ${f/".proto"/".pb"} done !
done
| true |
982e73541e9bb93c7b31c9bb7523f47d96f0e637 | Shell | SuperDanielDu/comp2041-19T2-thu09-strings | /tut03/count_course.sh | UTF-8 | 262 | 2.53125 | 3 | [] | no_license | #!/bin/sh
mlalias cs2041.thu09-strings |
egrep -v ":" |
sed 's/ //g' |
egrep "." |
while read zid
do
acc "$zid" |
egrep "_Student" |
cut -d: -f2 |
sed -E 's/[^ ]+_Tutor[^ ]+//' |
egrep -o "[A-Z]{4}[0-9]{4}"
done |
sort |
uniq -c |
sort -nr
| true |
c68ce58d56e6119bd38dcc8dfb4917c379335650 | Shell | navaz-alani/macos-config | /scripts/project_header_sc.sh | UTF-8 | 909 | 4.25 | 4 | [
"MIT"
] | permissive | #! /bin/bash
name=$(git config --global user.name)
email=$(git config --global user.email)
help=(
"header: print a header for source code."
" Uses name and contact from global"
" Git configuration."
"usage: header <proj name>"
" [copyright start year]"
)
_raw_header() {
figlet ... | true |
5bc978b7c3d497e69698c480156c15c1c5490fc3 | Shell | sixmonkey/hassio-addons | /feste-ip-updater/run.sh | UTF-8 | 406 | 2.84375 | 3 | [] | no_license | #!/usr/bin/env bashio
HOST_ID=$(bashio::config 'host_id')
HOST_PASSWORD=$(bashio::config 'host_password')
HOSTNAME=$(bashio::config 'hostname')
while true; do
if answer="$(curl -sk --user ${HOST_ID}:${HOST_PASSWORD} "https://members.feste-ip.net/nic/update?hostname=${HOSTNAME}")"; then
bashio::log.info "$... | true |
624dc1a6b5aa47d09a68198b368b1019726dfbea | Shell | ericmjalbert/PDE-ODEsolver-Auxillary | /error-calc/run_error_implicit.sh | UTF-8 | 1,206 | 3.421875 | 3 | [] | no_license | #!/bin/bash
curr=$(pwd)
resu=$(find ~/Documents -name batch-results -type d)
cp -r $resu/out-eSoln-* ./
num=0
# Grabs the highest numbered output.
# echo gives out-pXXX/2D_outYYY so the first sed gets rid
# of everything before the last YYY The second sed grabs
# remaining numbers. Because we want last num, ... | true |
e8c865ab17682a793ad9cc8fb18d290747532e12 | Shell | huyan09/ddcw | /shells/dulsdiffddcw.sh | UTF-8 | 1,615 | 3.6875 | 4 | [] | no_license | #!/usr/bin/env bash
#write by ddcw at 2021.10.10
#统计部分文件虚大的.
#用法: sh dulsdiffddcw.sh dir
jindutiao(){
jindutiaoflag=""
jindutiaoflagn="0"
max=100
current=$[ ${1} * 100 / ${2} ]
baifenbi=$[ ${current} * 100 / ${max} ]
while [[ ${jindutiaoflagn} -lt ${baifenbi} ]]; do jindutiaoflagn=$[ ${jindutiaoflagn} + 1 ] ... | true |
997c5c6a4afa963c695cec74a47cf0d5890bc167 | Shell | grintor/cpanel-lets-encrypt | /run.sh | UTF-8 | 570 | 2.8125 | 3 | [] | no_license | #!/bin/bash
export PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin
src=/home/georgiatc/letsencrypt/certs/acme-v01.api.letsencrypt.org.directory
usr=username
pwd=password
function install_cert {
dom=$1
cert=$(< $src/$dom/cert.pem)
key=$(< $src/$dom/key.pem)
curl -s -u $usr:$pwd -F domain=$... | true |
b15033dca0be810eec4b12d4f05a240588e96108 | Shell | BachoSeven/idasen | /idasen | UTF-8 | 3,598 | 3.71875 | 4 | [
"MIT"
] | permissive | #!/bin/sh
_help()
{
cat >&2 <<EOF
Usage: idasen [pos | moveto \$height]
You have to pair with your desk first. Use bluetoothctl for that. Next,
create the file ~/.idasen:
hci=hci0 # default, can be omitted
device=11:22:33:44:55:66
Once done, run "idasen pos" to retrieve the current height. Take note of... | true |
01273cf075e56ad815ba663b9ffda94876d5085c | Shell | rajeev2353/importantDoc-1 | /replication.sh | UTF-8 | 978 | 3.265625 | 3 | [] | no_license | #!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
#script checking the replication is running or not.
#If replication is down then sent the alert mail.
slave_server_hostname=192.168.2.64
###check if already notified###
cd /root
if [ -f replication_prob... | true |
cb03a7ee574d511beacda5feb0fed10c1b51907b | Shell | 1980Add/N1 | /common2.sh | UTF-8 | 659 | 2.765625 | 3 | [] | no_license | #!/bin/bash
Diy_n1() {
KERNEL_VERSION="5.4.108-flippy-56+o"
VERSION="5.4.108"
mkdir opt
chmod -R 777 opt
tar -xzvf mk_openwrt_src_20210327.tar.gz -C opt
cp openwrt/bin/targets/armvirt/*/*.tar.gz opt/openwrt
cd opt
mkdir imgs
chmod -R 777 imgs
echo "PATH2=${GITHUB_WORKSPACE}/opt/imgs" >> $GITHUB_ENV
cd imgs
pathi... | true |
f5684600eeab25bb60be3743567d10fa48ac6d81 | Shell | rjcoelho/dotfiles.rcm | /rc.d/youtube.sh | UTF-8 | 911 | 2.875 | 3 | [
"MIT"
] | permissive | export YT_PLAYLIST="https://www.youtube.com/playlist?list=PLuOtXP9DKvRIJzPbBOS52rKrKhEbywjwr"
#export YT_PLAYLIST="https://www.youtube.com/playlist?list=PLuOtXP9DKvRKzc0-_IQpYKefPFxuRKj3I"
# see https://github.com/mps-youtube/mps-youtube
[ -x "$(command -v mpsyt)" ] && \
alias yt_music="mpsyt pl \$YT_PLAYLIST, all... | true |
d19f4eae3c8adf89e41a0a612b55431764a7490f | Shell | ruizhang81/graph_server | /webAssembly.sh | UTF-8 | 3,910 | 3.140625 | 3 | [] | no_license | #!/bin/sh
quick="false"
js="false"
while getopts 'qj' OPT; do
case $OPT in
q) quick="true";;
j) js="true";;
esac
done
rm graph.wasm 2>/dev/null
rm graph.js 2>/dev/null
rm graph.js.mem 2>/dev/null
rm graph.worker.js 2>/dev/null
rm graph.wasm.mem 2>/dev/null
rm asm.js 2>/dev/null
nofindStr="com... | true |
54365b889c7dac0ccaf2374fae4b914c348c725a | Shell | ionic-team/capacitor-plugins | /google-maps/e2e-tests/scripts/create_E2E_AVD.sh | UTF-8 | 1,672 | 3.640625 | 4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/bash
CPU_ARCH=`uname -p`""
SDKMANAGER=$ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager
AVDMANAGER=$ANDROID_SDK_ROOT/cmdline-tools/latest/bin/avdmanager
ABD=$ANDROID_SDK_ROOT/platform-tools/adb
EMU=$ANDROID_SDK_ROOT/emulator/emulator
E2E_DEVICE_EXISTS=`${EMU} -list-avds | grep -c e2eDevice`
if [[ $E2E_DE... | true |
61e8d46c5fb342da366c10fa749d030fe313bc60 | Shell | shon-phand/treasuremap | /tools/validate_docs | UTF-8 | 1,045 | 2.734375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
#... | true |
46acd2482de33316e4f78d31ee63822e1522ca34 | Shell | praytime/praytime | /script/places-details.sh | UTF-8 | 764 | 3.296875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Google Maps Places 'details' search: https://developers.google.com/maps/documentation/places/web-service/details
# fields=formatted_address,name,geometry. Use a forward slash when specifying compound values. For example: opening_hours/open_now
# usage: place-details.sh '<place_id>'
set -euf -o pi... | true |
ccc4718c959c1c0b87c91a2980894f9194b1e23e | Shell | latifkabir/Computation_using_Fortran90 | /wavelet/wavelet_prb.sh | UTF-8 | 512 | 3.078125 | 3 | [] | no_license | #!/bin/bash
#
gfortran -c -g wavelet_prb.f90 >& compiler.txt
if [ $? -ne 0 ]; then
echo "Errors compiling wavelet_prb.f90"
exit
fi
rm compiler.txt
#
gfortran wavelet_prb.o -L$HOME/lib/$ARCH -lwavelet
if [ $? -ne 0 ]; then
echo "Errors linking and loading wavelet_prb.o"
exit
fi
rm wavelet_prb.o
#
mv a.out wavele... | true |
3a07f13811f697c88ad28bdb9c9795e46922d0e6 | Shell | richardhewett/local-setup | /Scripts/docker/docker_flush_images.sh | UTF-8 | 490 | 3.890625 | 4 | [] | no_license | # Remove all Docker images
function remove_all_images {
echo ""
echo "Remove all local images:"
docker images |
while IFS= read -r line
do
local IMAGE_ID="$(echo $line | cut -d ' ' -f 3)"
if [ "$IMAGE_ID" != "IMAGE" ];
then
echo "Removing ... | true |
74278bb471c057fec86114ff6e597a1099d26655 | Shell | jasonkarns/dotfiles | /.config/bashrc.d/ruby.sh | UTF-8 | 1,783 | 2.765625 | 3 | [] | no_license | #########################
# ruby
#########################
# ruby is now keg_only in homebrew: https://github.com/Homebrew/homebrew-core/commit/b4bf45228a
PATH="${HOMEBREW_PREFIX:=$(brew --prefix)}/opt/ruby/bin:$PATH"
#########################
# irb
#########################
export IRBRC="$XDG_CONFIG_HOME/irb/config... | true |
b195afe0345aa7bb5253801afec545f4626f17a7 | Shell | OctopusDeploy/Calamari | /build-local.sh | UTF-8 | 4,265 | 4.03125 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
Green='\033[32m'
Yellow='\033[1;33m'
NoColour='\033[0m' # No Color
StartMessage="${Green}\
╬════════════════════════════════════════════════════════════════════════════════════════════════╬
║ ║
║ This i... | true |
8dc180dce36e121226a031249b2389c3a40627aa | Shell | niekcandaele/allocs-fixes | /scripts/usr/local/lib/7dtd/monitor-log.sh | UTF-8 | 8,143 | 3.390625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright 2016 Christian 'Alloc' Illy
#
# 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 appl... | true |
fb6f8111596dadca16dfb9b5408e2e830fcc3096 | Shell | Danyboy/mailrulogs | /separator.sh | UTF-8 | 503 | 3.6875 | 4 | [] | no_license | #!/bin/sh
outdir="out"
separate(){
mark="event_key="
regexp="${mark}[0-9]+"
echo "$@" >> "$outdir/$(echo "$@" | grep -Eo -m1 "${regexp}" | sed "s|"${mark}"||g").log"
#echo "$@" >> "$outdir/$(echo "$@" | grep -Eo -m1 "${regexp}").log"
}
separate_events(){
while read line ; do
separate "${line}"
... | true |
92df56f1ac6fdaf1ccb43d5734859fe09bdb7e05 | Shell | flyingtang/cosme | /bin/install.sh | UTF-8 | 941 | 3.1875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# 由于国内的原因,导致golang.org 的文件下载不下来,所有用这个脚本替代
# 第一部分 安装git
apk add git
# 第二部分
rootdir=`pwd`
echo "this pwd is $rootdir"
golangpath="$rootdir/vendor/golang.org/x"
echo "golangpath :"$golangpath
ls -la $golangpath
rm -rf "$rootdir/vendor/golang.org"
ls -la $golangpath
# if [ ! -d $golangpath/ ]; then
echo ... | true |
c8b5b596b63712a1e8703c8c97f14cad637ae789 | Shell | no2key/nginx-sandbox | /script/local-luarocks-build | UTF-8 | 1,914 | 3.203125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env sh
source "./script/local-init"
LUAROCKS_NAME="luarocks"
LUAROCKS_VERSION="2.1.1"
LUAROCKS_TAG="$LUAROCKS_VERSION"
LUAROCKS_SOURCE="$LUAROCKS_NAME-$LUAROCKS_TAG"
LUAROCKS_URL="http://luarocks.org/releases/$LUAROCKS_NAME-$LUAROCKS_TAG.tar.gz"
LUAROCKS_SOURCE_PATH="$VENDOR/$LUAROCKS_NAME-$LUAROCKS_TAG"
LU... | true |
4bce1bd4350febfeef407e7a25b95230f30ec5dd | Shell | wenlizhe/shell_test | /yunjinginstall_linux64.sh | UTF-8 | 3,530 | 3.375 | 3 | [] | no_license | #!/bin/bash
if [ `id -u` -ne 0 ];then
echo "Yunjing software must run as root. Please check your account"
exit 0
fi
system_info=`uname -a`
Is64BitSystem=` echo $system_info | grep -c "x86_64" `
if [ $Is64BitSystem -le 0 ]; then
echo "Your system is not 64-Bit. That Yunjing is not support yet."
exit 0... | true |
3fc90e85e0abe0dea1457656d4e0003af9a8ab81 | Shell | shamithmc/gitlab-docker | /files/gitlab-cookbooks/gitlab/templates/default/sv-mailroom-finish.erb | UTF-8 | 447 | 3.296875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# Fixes https://github.com/gitlabhq/gitlabhq/issues/9891 :
# mailroom respawn loop pinning the CPU.
if [ x$2 = x15 ] ; then
# mailroom received SIGTERM (15) so this is probably a
# user-initiated restart. Skip the waiting.
exit 0
fi
# If the user runs 'gitlab-ctl restart mailroom' during this sleep
# ... | true |
e2d959720ade8ff93e8f7420b1b3850dbbb5921d | Shell | jarosser06/omnios-golang | /build.sh | UTF-8 | 584 | 3.140625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
GO_VERSION=1.4
GO_PKG=go${GO_VERSION}.src.tar.gz
GO_URI=http://golang.org/dl/${GO_PKG}
case $1 in
"clean")
rm -rf ./go
rm -f *.tar.gz
;;
*)
./build.sh clean
echo "Fetching Golang Source"
wget $GO_URI
tar -xf $GO_PKG
vagrant up
vagrant ssh -c "sudo pkg unset-publisher ms.omniti.com
sudo... | true |
7bbc53803e00cc6b112ef399f439a4c6cb874e4e | Shell | wxweather/CPC_GAUGE_SCRIPTS | /mudanome.sh | UTF-8 | 134 | 2.765625 | 3 | [] | no_license | #!/bin/sh
for file in `ls -1 CPC_CU_GAUGE_V1*`
do
nome1=`echo $file | cut -d "-" -f 1`
echo $nome1
mv $file $nome1".nc"
done
| true |
cb852c1f60ea8776457ca48297465f43671d4956 | Shell | madAndroid/puppet_pipeline_demo | /localmodules/data/files/repo/create_repo_recursive.sh | UTF-8 | 722 | 3.84375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
src_dir=$1
repo_dir=$2
if [ $# != '2' ]; then
echo "incorrect number of arguments provided!"
echo "please ensure the first arg is the src_dir, the second is the repo_dir"
exit
fi
cd $repo_dir
rsync --delete -vr $src_dir/ $repo_dir/packages/
for rpm in $(find $repo_dir -type f -name '*rpm'); ... | true |
487db6d41939776de4359eb71b1ec493d0c22ffb | Shell | cyclone-project/cyclone-DACI | /TokenSrv/resources/createUserKeyStore.sh | UTF-8 | 506 | 2.546875 | 3 | [] | no_license | #!/bin/bash
KEYSTORE="user-keystore.jks"
STORETYPE="JKS"
STOREPASS="cloudsecurity"
KEYPASS="user-cloud"
ALIAS="end-user"
VALIDITY=365
KEYSIZE=2048
keytool -genkey -alias $ALIAS -dname "CN=UvAUser, OU=SNE Group, O=UvA, C=NL" -validity $VALIDITY -keypass $KEYPASS -keyalg "RSA" -keysize $KEYSIZE -keystore tokenSrv... | true |
5395b4f07b9f898f1df1e32ac4a60bb39de729ef | Shell | caballero/biobuilds | /docker-build | UTF-8 | 4,489 | 3.828125 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | #!/bin/bash
basedir=$(cd "`dirname ${BASH_SOURCE[0]}`" && pwd)
shell=0
img=
build_pkgs=
build_opts=
make_jobs=
FEATURE_OPT=0
# Always allocate a pseudo-TTY in (-t) and attach STDIN to (-i) the container;
# if we don't, conda build messages (particularly in the test phase) can
# disappear into the void, which making ... | true |
c8f8182abaef402269dfa99cbfbe06cd7c330fb9 | Shell | siyuliu0519/ERNIE | /Pubs/Automation/Updates_Processing/wos_update_auto.sh | UTF-8 | 7,731 | 3.78125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Author: Lingtian "Lindsay" Wan
# Created: 02/24/2016
# Modified:
# * 06/07/2016, Lindsay Wan, divided wos_references update to loops of small chunks
# * 11/17/2016, Lindsay Wan, added command to prepare a file list of parsed csv directories for production server
# * 11/28/2016, Lindsay Wan, added... | true |
52f5e323f1de152004052ce4c46ef7a9aeac48ca | Shell | bizmate/s3_mount | /provision/genericFunctions.sh | UTF-8 | 252 | 3.5625 | 4 | [] | no_license | #!/usr/bin/env bash
global_args=("$@");
function argValue {
for word in ${global_args[@]}
do
arrIN=(${word//=/ })
if [ "$1" == "${arrIN[0]}" ]
then
echo "${arrIN[1]}"
return;
fi
done
} | true |
2a600692a46f5f7c6c17b12f75dc711bd2327e31 | Shell | nlopez/soc | /setup.sh | UTF-8 | 1,303 | 3.421875 | 3 | [] | no_license | #!/usr/bin/env bash
error_exit() {
echo "$1" >&2
exit 1
}
readonly dot_chef="$HOME/.chef"
readonly here="$(dirname "$0")"
readonly cache="$here/.cache"
if [[ ! -e "$here/Vagrantfile" ]]; then
cp "$here/Vagrantfile.example" "$here/Vagrantfile"
fi
if [[ ! -e "$cache" ]]; then mkdir -vp "$cache"; fi
if [[ ! -e ... | true |
f9f3fb9f682b782e7b9ed80755c53f4ab816bbf2 | Shell | irgallard/tfm_unir_afernandez_V1 | /pdftotext.sh | UTF-8 | 318 | 3.484375 | 3 | [] | no_license | #!/bin/bash
# -*- ENCODING: UTF-8 -*#
%https://pypi.org/project/pdftotext/
%Convert *.pdf to plain text in a folder
%Remove *.pdf files
%Move to Main folder
cd ArXiv_Papers/
for file in *.pdf
do
pdftotext "$file" "$file.txt"
done
if [ "$1" = "rm" ]
then
echo "Pdf removed"
rm *.pdf
fi
exit
| true |
a058d0f8cf98bbeb8ce1ca6f708cae97e07b1a99 | Shell | nerdgeneration/hosting | /lib/hosting/lib/msg.sh | UTF-8 | 218 | 2.765625 | 3 | [] | no_license | # shellcheck shell=bash
msg:info() {
printf "\e[34mInfo:\e[0m %s\n" "$1"
}
msg:warning() {
printf "\e[33mWarning:\e[0m %s\n" "$1" >&2
}
msg:error() {
printf "\e[31mError:\e[0m %s\n" "$1" >&2
exit 1
} | true |
1d98cb0a9cbf9e8acef253b7ef341866178ae503 | Shell | BounteousCanada/vagrant-lamp | /scripts/optional/setup_elasticsearch6.sh | UTF-8 | 1,383 | 3.484375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Enable trace printing and exit on the first error
set -e
# Include helper functions
source /vagrant/files/setup_helper.sh
# Print Header
print_header "Setup ElasticSearch"
# Install the required Java
apt-get install -y openjdk-8-jre-headless 2>&1
# Install ElasticSearch
if [ ! -f /etc/elastic... | true |
cd4f6de0a565d6a096c4abc824664b0c9efe3aae | Shell | Zhimin90/heroku-buildpack-rgeo-prep | /bin/compile | UTF-8 | 576 | 2.765625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# bin/compile <build-dir> <cache-dir>
echo "-----> Removing cached .bundle/config"
if [ -f $2/.bundle/config ]; then
rm $2/.bundle/config
fi
echo ""
echo " ### WARNING: THIS BUILDPACK HAS BEEN DEPRECATED"
echo " Please check https://git.io/fj5QW"
echo ""
echo " Writing new .bundle/conf... | true |
409bc0072ead7db69478097e7e60725b550a6ef1 | Shell | Sdattagu/Python | /Prelab01/.svn/text-base/exist.bash.svn-base | UTF-8 | 581 | 4.09375 | 4 | [] | no_license | #! /bin/bash
#
# $Author$
# $Date$
# $HeadURL$
# $Revision$
#Takes list of filenames as an argument
#For each filename,
# IF File exists: print message: File <filename> is readable!
# ELSE IF file cannot be read: Create an empty file with that name (touch command)
#Note: When a value in a prelab or lab is ... | true |
8642714ccfe7e45c28f007b0862b3d3632336fcb | Shell | anshuljainansja/azhpc-images | /ubuntu/common/hpc-tuning.sh | UTF-8 | 1,613 | 2.9375 | 3 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | #!/bin/bash
# Disable some unneeded services by default (administrators can re-enable if desired)
systemctl disable ufw
# Disable cloud-init
echo network: {config: disabled} | sudo tee /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
bash -c "cat > /etc/netplan/50-cloud-init.yaml" <<'EOF'
network:
ethernets:
... | true |
6b49e7df98e5604bc30947adb453c86edb2580ba | Shell | delkyd/alfheim_linux-PKGBUILDS | /mysqlconvertertool-git/PKGBUILD | UTF-8 | 1,262 | 3.171875 | 3 | [] | no_license | # Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
# cli functionality has been tested.
# Web functionality has not been tested.
set -u
pkgname='mysqlconvertertool-git'
pkgver=r7.0fc9af5
pkgrel=1
pkgdesc='A fork of the MySQL Converter Tool (mysql to mysqli)'
arch=('any')
url='https://github.com/phi... | true |
398185833828a39ffdd90c6624ed0b2ebc76fdb8 | Shell | ivmm/LNMP | /source.sh | UTF-8 | 11,017 | 3.8125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
clear
# Root check
[[ $(id -g) != '0' ]] && die 'Script must be run as root.'
# Declare variables
libiconvVersion='libiconv-1.15'
libgdVersion='libgd-2.2.5'
pcreVersion='pcre-8.41'
zlibVersion='zlib-1.2.11'
opensslVersion=... | true |
f426da7a01116b87b2b645139beaf6984c155af3 | Shell | daixs/EasyRTMP | /EasyRTMP_SDK/Buildit | UTF-8 | 654 | 2.921875 | 3 | [] | no_license | #!/bin/sh
usage()
{
echo "0. clean up ./Buildit clean"
echo "1. build hisiv100 program ./Buildit hisiv100"
}
if [ "$*" = "clean" ] ; then
make -f nbproject/Makefile-hisiv100.mk QMAKE= SUBPROJECTS= .clean-conf
make -f Makefile-exe clean
make -f Makefile-armexe clean
elif [ "$*" = "hisiv100" ] ;... | true |
a0bcc82c86daf4c0e616603137027805e0a1c859 | Shell | sw1/kmer_embeddings | /code/merge_to_group.sh | UTF-8 | 844 | 3.84375 | 4 | [] | no_license | #!/bin/bash
usage() { echo "Usage: $0 [-s <string>] [-o] [-h]" 1>&2; exit 1; }
while getopts "s:oh" opt; do
case $opt in
s)
s=${OPTARG}
;;
o)
o=true
;;
h)
usage
;;
*)
usage
;;
esac
d... | true |
cbf0f9eb8454c3eaf2aa4f6d0470229da0fa1442 | Shell | stackhpc/ceph-perfkit | /3-iperf-aggregate-sendfile/iperf-server.sh | UTF-8 | 179 | 2.59375 | 3 | [] | no_license | #!/bin/bash
# Script to start up a number of iperf instances on a target server,
# listening on consecutive ports
for i in {0..12}
do
iperf3 -s -p $((5200 + $i)) &
done
wait
| true |
2792f180a7632b374843dca550669fa7a1675bb3 | Shell | kenorb/dotfiles | /.iterm2/it2setkeylabel | UTF-8 | 2,991 | 4.03125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# tmux requires unrecognized OSC sequences to be wrapped with DCS tmux;
# <sequence> ST, and for all ESCs in <sequence> to be replaced with ESC ESC. It
# only accepts ESC backslash for ST.
function print_osc() {
if [[ $TERM == screen* ]]; then
printf "\033Ptmux;\033\033]"
else
printf "\033]"
... | true |
19d1257868d27dfc8aa9cbb7707607d21bf08355 | Shell | skullkey/wbc-utils | /mavlink/simple-control/watch_keys.sh | UTF-8 | 1,387 | 3.671875 | 4 | [] | no_license | #!/bin/bash
sleep 5
chvt 2
SIMPLE_PATH=/home/pi/wbc-utils/mavlink/simple-control
cd $SIMPLE_PATH
function clearfb {
dd if=/dev/zero of=/dev/fb0 &> /dev/null
}
function killall {
systemctl stop wbcrxd
pkill ss2d
cd $SIMPLE_PATH
clearfb
}
function help {
clearfb
echo "1 - Wbcrxd Start"
... | true |
a3f4e61ac9e0f79e5fdbccc5a07d43aad8ad8b05 | Shell | XieFengXiYu00/gnss | /firmware/make_binaries.sh | UTF-8 | 443 | 2.6875 | 3 | [] | no_license | #!/bin/bash
BOOTLOADER_SIZE_KB=8
SIGNED_BINARY="com.zubax.gnss-1.0-2.0.`git rev-parse --short=8 HEAD`.uavcan.bin"
./make_can_boot_descriptor.py -v build/zubax_gnss.bin build/$SIGNED_BINARY
dd if=/dev/zero ibs=1k count=$BOOTLOADER_SIZE_KB | tr "\000" "\377" >build/padded_bootloader.bin
dd if=bootloader.bin of=build/p... | true |
5408ab44e3b3d16945f181cf121ca2d3d9ad0737 | Shell | cansik/depth-profile-image | /assets/tool/createProfile.sh | UTF-8 | 979 | 3.875 | 4 | [] | no_license | #!/bin/bash
IMAGE_FORMAT="jpg"
if [ $# -eq 0 ]
then
echo "createProfile.sh prortrait.$IMAGE_FORMAT"
exit 0
fi
INPUT_FILE=$1
NAME=$(echo "$1" | cut -f 1 -d '.')
COLOR_FILE="$NAME-color.$IMAGE_FORMAT"
MATT_FILE="$NAME-matt.$IMAGE_FORMAT"
DEPTH_FILE="$NAME-depth.$IMAGE_FORMAT"
echo "extracting meta images.... | true |
5f44a54852b8957bbafcababb583a063dca3ba24 | Shell | areebimtar/hive | /QA/oauth1/post_resource_etsy_any | UTF-8 | 609 | 3.03125 | 3 | [] | no_license | #!/bin/bash
if [ -z "$4" ]; then
printf "%s\n%s\n" "Usage: $0 <token> <secret> <url> <data>" "$0"' xxx yyyy /v2/listings/472667359/images '\''{"listing_id": "472667359", "rank:": "1", "overwrite": "1", "base64:image": "'\''`base64 -w 0 my.img`'\''"}'\'
exit 1
fi
token=$1
secret=$2
resource=$3
data=$4
script_dir=$(cd ... | true |
459738eb9da1d109c98722d4080563479c5d4e69 | Shell | dwsilverstein/asp_glu_work | /python_rdf/make_cec_xyzfile.sh | UTF-8 | 1,185 | 3.734375 | 4 | [] | no_license | #!/bin/bash
# Script for making a CEC file with its XYZ coordinates
##### Variables
# Timesteps to keep. This should in general be set to
# match the frequency of the dump file
kline='100'
fbin='0' # First US window
lbin='36' # Last US window
fprefix='bin_' # EVB output file prefix... | true |
8d29819333568525366de2a08c80f0d2828c2aff | Shell | n1amr/dotfiles | /bin/deprecated/ipscan | UTF-8 | 836 | 4.0625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
trap "exit 2" INT
start=1
end=255
while [[ $# -gt 1 ]]; do
case $1 in
--start=*)
start=${1#*=}
;;
--end=*)
end=${1#*=}
;;
-q|--quiet)
quiet=true
;;
*)
echo Error: Invalid arguments
... | true |
218cbb27ca22210dc1340b84fc6239fe423973d3 | Shell | LiteracyBridge/dashboard-scripts | /AWS-LB/ufReports/uf_archive.sh | UTF-8 | 3,706 | 2.796875 | 3 | [] | no_license | #!/usr/bin/env bash
if [ -z ${dropbox-} ]; then
dropbox=~/Dropbox
fi
cd ${dropbox}
bkt=s3://amplio-uf-archive
function main() {
processAll
}
function arc() {
local acmDir="${1}"&&shift
if [ -d ${dropbox}/${acmDir} ]; then
echo "Archive ${acmDir} to s3 and remove locally."
aws s3 mv -... | true |
99891f38142887a0231c00a5bca259f01befef87 | Shell | won21kr/corteza-webapp | /files/start.d/generate_webapp_configs | UTF-8 | 1,286 | 3.015625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env sh
set -eu
VIRTUAL_HOST=${VIRTUAL_HOST:-"local.cortezaproject.org"}
BASEDIR=${BASEDIR:-"/webapp"}
# All APIs are on the same domian
MONOLITH_API=${MONOLITH_API:-""}
API_SCHEME=${API_SCHEME:-""}
API_PREFIX=${API_PREFIX:-"api."}
if [ ! -z "${MONOLITH_API}" ]; then
API_BASEURL=${API_BASEURL:-"${API_P... | true |
be56e3e7c0376099f838393874a20acb8876f8ee | Shell | delkyd/alfheim_linux-PKGBUILDS | /cardpeek-svn/PKGBUILD | UTF-8 | 1,049 | 2.84375 | 3 | [] | no_license | # Maintainer: Thomas Jost <schnouki@schnouki.net>
pkgname=cardpeek-svn
pkgver=206
pkgrel=1
pkgdesc="A tool to read the contents of smartcards"
arch=(i686 x86_64)
url="https://code.google.com/p/cardpeek/"
license=('GPL')
depends=('gtk2' 'hicolor-icon-theme' 'lua' 'pcsclite')
makedepends=('subversion')
provides=('cardpee... | true |
d16061e140bd9999910cceeac9eb80bc0610f35a | Shell | adina/Assembly-Scripts | /assembly-stats/ratio.bash | UTF-8 | 163 | 2.53125 | 3 | [] | no_license | #!/bin/bash
for file in *.fa;
do
echo $file >> calc-kmer-part.out
python ~/khmer/scripts/calc-kmer-to-partition-ratio.py $file >> calc-kmer-part.out
done | true |
2b84fc76d9fbffc72d8d25ed60814568d3b11d14 | Shell | brics-db/AHEAD | /bootstrap.sh | UTF-8 | 1,021 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env /bin/bash
#
# Copyright (c) 2017 Till Kolditz
#
# 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... | true |
e5630f345c3792d468decbe42810c224c9651c36 | Shell | curoles/snips | /bumbler/tools/most_freq_word.bash | UTF-8 | 297 | 3.21875 | 3 | [] | no_license | #!/bin/bash
#
# Usage: cat README.md | tools/most_freq_word.bash
#
# tr -c A-Za-z '\n' - replace all non words with \n
tr -cs A-Za-z '\n' | # all non-words to \n and then squeeze \n
tr A-Z a-z | # all to lower-case
sort |
uniq -c |
sort -rn |
sed ${1}q
| true |
fc2d3982dfd7beb15405d46acb5604ef5dfa4b20 | Shell | ywj07/LinuxInit | /security_conf/security_configure.sh | UTF-8 | 5,928 | 2.96875 | 3 | [] | no_license | #!/bin/bash
# richstonedt-devops
# yeweijie
# 20170321
#echo "" >>
echo "操作系统版本"
cat /etc/centos-release
echo "本脚本使用于CentOS 6的操作系统"
echo "一、检查项名称:检查主机访问控制(IP限制)"
echo "all:172.13.:DENY" >> /etc/hosts.deny
echo "all:192.:allow " >> /etc/hosts.allow
echo "all:172.16.:allow" >> /etc/hosts.allow
echo "all... | true |
40a4f30fcc03f28cfdf390686c7bc5195360da07 | Shell | huawei-openlab/oct-engine | /cases/case-tools/reportGenerator/source/iperf_test.sh | UTF-8 | 1,356 | 3.25 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#Build iperf image
echo -n "Building iperf3 image"
printf "\n"
docker build -t iperf3 .
printf "\n"
b=''
for ((i=0;$i<=100;i+=2))
do
printf "progress:[%-50s]%d%%\r" $b $i
sleep 0.1
b=#$b
done
printf "\n"
#Running iperf server
echo -n "Running iperf server"
printf "\n"
docker run --name iperf_S... | true |
230a38f83643127d9ff0aaa936392613b05ba653 | Shell | tleonardi/nanocompore_paper_analyses | /ncRNAs_structures/7SK/generate_figures.sh | UTF-8 | 1,828 | 2.53125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# RF00100.stockholm.txt was edited by hand to replace the gap at position 82 with a G, which is actually
# present in hg38
BASEDIR=$(git rev-parse --show-toplevel)
WD="${BASEDIR}/ncRNAs_structures/7SK/"
nanocomp_res_kd="${BASEDIR}/nanocompore_pipelines/METTL3_KD_ncRNAs/results/nanocompore/out_nanocompore_... | true |
231a2ff5d64f74f61b7230c3193a5d7e3874e30d | Shell | wangaoone/LambdaObjectstore | /reclaim_test/multi_updatecode.sh | UTF-8 | 765 | 3.03125 | 3 | [] | no_license | #!/bin/bash
PREFIX="Proxy1Node"
if [ "$1" != "" ] ; then
PREFIX="$1"
fi
mem=3008
# concurrency=30
echo "compiling lambda code..."
GOOS=linux go build lambda.go
echo "compress file..."
zip Lambda2SmallJPG lambda
echo "updating lambda code.."
for i in {0..13}
do
aws lambda update-function-code --function-name $... | true |
65a7e7d368f860e57de4e6f059a5a6f1565a6112 | Shell | vtumuluri/cockroach | /build/release/teamcity-support.sh | UTF-8 | 1,738 | 3.515625 | 4 | [
"BSD-3-Clause",
"LicenseRef-scancode-bsl-1.0",
"MIT",
"LicenseRef-scancode-cockroach"
] | permissive | # Common helpers for teamcity-*.sh scripts.
# root is the absolute path to the root directory of the repository.
root=$(cd "$(dirname "$0")/../.." && pwd)
source "$root/build/teamcity-common-support.sh"
remove_files_on_exit() {
rm -f .cockroach-teamcity-key
rm -rf ~/.docker
common_support_remove_files_on_exit
}... | true |
c85b180778d0c33d53ef6fc4957275cb44329a5f | Shell | aharon-br/jamf-scripts | /Clear Location & User Info.sh | UTF-8 | 1,440 | 3.609375 | 4 | [] | no_license | #!/bin/zsh
## This will clear user info from the serial number chosen and unmanage the device
## Harry Richman April 2021
## Get serial of computer this is to be run on
serial=$( osascript -e 'tell application "System Events" to text returned of (display dialog "Please enter the serial number of the computer" default... | true |
8816111cfbb6a12963c6357570f9563682c930f4 | Shell | betrybe/source-code-watcher-action | /entrypoint.sh | UTF-8 | 239 | 2.5625 | 3 | [] | no_license | #!/bin/sh -l
echo ${GITHUB_WORKSPACE}
cp /analyzer.js ${GITHUB_WORKSPACE}
cp /package.json ${GITHUB_WORKSPACE}
echo $@
npm install
node analyzer.js ${GITHUB_WORKSPACE} $@
if [ $? != 0 ]; then
echo "Execution error"
exit 1
fi
exit 0
| true |
dbda186337666f8c75b10c9b0b8910ccac91e04a | Shell | multipath-tcp/mptcp-scripts | /testing/virtme.sh | UTF-8 | 2,328 | 2.78125 | 3 | [] | no_license | #! /bin/bash
STD="tools/testing/selftests/net/mptcp"
STC="${STD}/config"
mkdir -p "${STD}"
cat <<EOF > "${STC}"
CONFIG_MPTCP=y
CONFIG_MPTCP_PM_ADVANCED=y
CONFIG_MPTCP_FULLMESH=y
CONFIG_MPTCP_NDIFFPORTS=y
CONFIG_MPTCP_BINDER=y
CONFIG_MPTCP_NETLINK=y
# CONFIG_DEFAULT_FULLMESH is not set
# CONFIG_DEFAULT_NDIFFPORTS is n... | true |
761f63bf765b4fb95a8e899eeb5077655ad3c493 | Shell | CaledoniaProject/public-src | /bash/purevpn/start-vpn.sh | UTF-8 | 746 | 3.046875 | 3 | [] | no_license | #!/bin/bash
cd "$(dirname "$0")"
trap "set -; echo -ne '\nCleaning up ..\n'; exit" SIGINT
gateway=$1
if [[ -z "$gateway" ]]; then
echo $0 opt-cn1
exit
fi
set -x
sudo nmcli con modify purevpn vpn.data "refuse-pap = yes, gateway = ${gateway}.ptoserver.com, refuse-chap = yes, refuse-eap = yes, require-mppe-128... | true |
d30b57d05c7490a395b612460215869bdb03da85 | Shell | kaustavha/blueflood | /blueflood-elasticsearch/src/main/resources/init-es.sh | UTF-8 | 2,623 | 3.328125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# init-es.sh is the script to be run to properly setup the es cluster. The main things
# it does is set up the aliases and mappings as required by BF. The mappings
# are required to properly tokenize the incoming data.
#WARNING: this script will destroy existing ES data and reset it to the proper init ... | true |
8f02056c067fe215b3e6b5dcd37118232598e4ee | Shell | progd/dotfiles | /.bashrc | UTF-8 | 655 | 2.84375 | 3 | [] | no_license | if [ -f /usr/local/share/gitprompt.sh ]; then
GIT_PROMPT_THEME=Default
. /usr/local/share/gitprompt.sh
fi
# 共通の alias の設定
case "$OSTYPE" in
darwin*) alias ls='ls -G' ;;
*) alias ls='ls --color=auto' ;;
esac
alias t='ls -lhtr'
alias l='ls -lha'
alias a='ls -a'
alias f=ls
alias d=cd
alias grep='grep --c... | true |
01e53787cf5587501b6ae3f80d851553364c0115 | Shell | ipolifemo/dotfiles-1 | /bash/bashrc.symlink | UTF-8 | 1,831 | 2.640625 | 3 | [
"MIT"
] | permissive | # -*- mode: shell-script -*-
shopt -s globstar
# Eternal bash history.
# ---------------------
export HISTFILESIZE=-1
export HISTSIZE=-1
export HISTTIMEFORMAT="[%F %T] "
export HISTFILE=~/.bash_eternal_history
export PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
if ! shopt -oq posix; then
if [ -f /usr/share/bash-co... | true |
afc2aa203ed4802d92b4c3f406728ce9b9ac9815 | Shell | rhomobile/rhoconnect-push | /build/rhoconnect-push | UTF-8 | 1,441 | 3.71875 | 4 | [
"MIT"
] | permissive | #!/bin/sh
#
# chkconfig: 35 99 99
# description: rhoconnect-push init script
#
. /etc/rc.d/init.d/functions
USER="nodejs"
ROOT_DIR="/opt/rhoconnect"
DAEMON="$ROOT_DIR/bin/rhoconnect-push"
CONFIG_FILE="$ROOT_DIR/etc/config.json"
LOG_FILE="/var/log/rhoconnect-push/push.log"
LOCK_FILE="/var/lock/subsys/rhoconnect-push"... | true |
0310c4e111efc8723f34a1f4a1b702d3339be487 | Shell | jaandrle/dotfiles | /ubuntu/bin/uu | UTF-8 | 3,572 | 3.6875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -eo pipefail
this="${0##*/}"
version="2022-07-27"
config_file="$HOME/.config/${this}rc"
[ ! -t 0 ] && exo-open --launch TerminalEmulator -- -e "$this $*" && exit 0
arg=${1:---help}
if [[ "$arg" = "--completion-bash" ]]; then
echo "_${this}_completion(){
local cur=\"\${COMP_WORDS[COMP_CWORD]}\... | true |
fdcff3810e547be0457802d61b5c8b518a5bff74 | Shell | SamLau95/vm-setup | /setup.sh | UTF-8 | 4,523 | 3.3125 | 3 | [] | no_license | # Install git
sudo add-apt-repository ppa:git-core/ppa -y
sudo apt-get update -y
sudo apt-get install git -y
# Install mosh
sudo apt-get install mosh
# SSH keys
[ ! -f ~/.ssh/id_rsa ] && ssh-keygen
# git config
read -p "Enter git email: " git_email
git config --global user.email $git_email
read -p "Enter git name: "... | true |
831de3878755f5717ca342ec243b471a45314cde | Shell | skraynev/ci-cd-pipeline-app-murano | /LBaaS/LBaaS-ops-manager-tile/releases/jobs/lbaas-config/templates/put_pem.sh | UTF-8 | 241 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | host=$1
pem_file=$2
pkey_path=$3
echo $host
echo $pem_file
echo $pkey_path
scp -o StrictHostKeyChecking=no -i $pkey_path $pem_file ec2-user@$host:~/
ssh -o StrictHostKeyChecking=no -i $pkey_path ec2-user@$host "sudo mv ~/cf.pem /etc/ssl/" | true |
bad2aea56194753faf1db4a4afcac0f312c97ff9 | Shell | razzvan91/kraken_interview | /scripts/check_pods.sh | UTF-8 | 409 | 3.40625 | 3 | [] | no_license | #!/bin/bash
#problem 4
#Below command is looking for the pods that are scheduled but not yet in READY state.
kubectl get po -l app=ltc --no-headers | awk -v col=3 '{print $col}' | tee pod_status.txt
a=$(wc -l pod_status.txt | awk '{print $1}')
b=$(grep -o -i Ready pod_status.txt | wc -l)
if [ $a -gt $b ]; then
ech... | true |
47e3a5f8cd957aa0e45218df1a44b3e118984d73 | Shell | magos-linux/magos-linux | /make_modules/source/games/oolite-functions | UTF-8 | 1,430 | 3.625 | 4 | [] | no_license | #!/bin/bash
function addmod()
{
[ "$4" = "" -o "$6" != "" ] && die "addmod:invalid parameters"
MODNAME="$1"
MODURL="$2"
MODARH="$3"
MODDIR="$4"
MODMAN="$5"
echo -e "\nAdding mod $MODNAME ($MODARH/${MODDIR##*/} ${MODMAN##*/})"
cantdownload "$MODURL" "$MODARH"
unpack "$MODARH" "$MODNAME"
echo "Moving $MODARH c... | true |
3ba607a3153936a05694e646892738f26ba87f70 | Shell | mahantesh-d/AIS_Bangkok | /Postgres/pgxc_ctl_conf_check_v3.sh | UTF-8 | 5,459 | 3.328125 | 3 | [] | no_license | echo "**************************8***************PostgresXl Pgxctcl Conf configuration*************************************************************************"
function help() {
echo "Please specify the correct path from below"
locate pgxc_ctl.conf
exit 1;
}
if [ $# -lt 1 ]
then
help
fi
echo... | true |
d2ba56bf8582c61be42e036b1c77502a2a84d316 | Shell | Cnd-North/physionet-scripts | /stressRR.sh | UTF-8 | 950 | 2.75 | 3 | [] | no_license | # Get RR interval for stress test
#
#
#
#/Users/gerritvanrensburg/bin
#
# Uses Physio-net ann2rr function to grab record and place RR interval into a file RRinterval.txt --HOWEVER -- Found I could not use this with pnnlist as it was missing the NN interval information -- pNNx uses ann2rr and pnnlist together :D
ann... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.