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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
984ee193c3dcaf0ab803956a469f1bc133f43e8e | Shell | lliurex/zero-lliurex-installers | /zero-lliurex-ganttproject.install/usr/share/zero-lliurex-ganttproject/ganttproject_script | UTF-8 | 393 | 3.671875 | 4 | [] | no_license | #!/bin/bash
ACTION="$1"
shift
PACKAGE_LIST=$@
case $ACTION in
remove)
count=0
for ix in $PACKAGE_LIST
do
if [[ "$ix" == "ganttproject" ]];then
apt-get remove -y $ix
TEST=$( dpkg-query -s $ix 2> /dev/null| grep Status | cut -d " " -f 4 )
if [ "$TEST" == 'installed' ];then
count+=1
fi
... | true |
df3a1da6b4a64f961f6a5cadc89ef1f0c3e5b127 | Shell | iulianerc/proiectul_caminelor | /shell/power.scaffold/helpers/join_array.sh | UTF-8 | 176 | 3.84375 | 4 | [] | no_license | #!/bin/bash
# Joins an array with specified separator
function join() {
local separator="$1"
shift
local array=("$@")
shift
printf %s $array "${@/#/$separator}"
}
| true |
e35d0edacde6b086772e717856e111f8b5ca27a4 | Shell | danhtaihoang/islet-structure | /295Nov2013_ISLET_PARAMETERS_H01_varyJab_1_0.92/2plot_nn.script | UTF-8 | 887 | 3.03125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
#=========================================================================================
# Loai bo, chi lay tu cot 31 den cot 35 cua file parameter.in
cut -c31-35 1parameter.in > parameter_file_giantiep.dat
# Doc gia tri dua vao so dong
i=1
while [ $i -le 35 ]
do
read value
if [ $i -eq 8 ]
then
name_data... | true |
afa285e38b0166b29379b71794a6ef64f30d7c3c | Shell | cheruvu1/dsop-rke2 | /scripts/tunnel-create.sh | UTF-8 | 371 | 3.015625 | 3 | [] | no_license | #!/bin/bash
# You can't create devices in docker build phase. This script
# opens the device TAP/TUN tunnel when not run as privileged
echo "=== Creating network device"
sudo mkdir -p /dev/net
ls -alF /dev/net
if [[ -c /dev/net/tun ]]; then
echo "=== TUN already exists"
else
echo "=== Creating TUN"
sudo ... | true |
64e1a36706db8c3b50f8bedf3c53269b30558da0 | Shell | 0k/git-irebase | /bin/git-irebase | UTF-8 | 5,268 | 4.25 | 4 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | #!/bin/bash
#!-
. /etc/shlib
#!-
include common
include pretty
depends git
usage="$exname [-n MAX] [-q] [-o REPORTFILE] TARGET"
help="
Rebase current branch on target branch incrementally.
USAGE
$usage
OPTIONS
-q Quiet mode
-n MAX Limit number of commit to do.
(def... | true |
c3ad7452b47392049550c4c6eb47597ec4155816 | Shell | AhmedELShafaie/nginx-lua | /bin/test.sh | UTF-8 | 2,473 | 3.796875 | 4 | [
"MIT",
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-other-permissive"
] | permissive | #!/bin/bash
# shellcheck disable=SC1091
source supported_versions
function test() {
DOCKER_TAG=$1
docker rm -f nginx_lua_test 2> /dev/null || true
FOUND=$(docker image ls -q fabiocicerchia/nginx-lua:"$DOCKER_TAG" | wc -l)
if [ "$FOUND" -ne "0" ]; then
docker run -d --name nginx_lua_test -p 8... | true |
05af1612839c11022127a7eaba8cd47b709a33d1 | Shell | HaraldoFilho/temperature_monitor | /files/temp-mon | UTF-8 | 693 | 3.515625 | 4 | [
"MIT"
] | permissive | #!/bin/sh
### BEGIN INIT INFO
# Provides: tempmon
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 5
# Default-Stop:
# Short-Description: Temperature Monitor
# Description: Monitors processor's temperature
# and send an e-mail if it is too high
### END INIT INFO
RUN_DIR=/home/pi/temper... | true |
c72380fb43e52f153959291687833c2a6501830f | Shell | ilya-golovenko/missio | /build/unix/build.sh | UTF-8 | 1,602 | 3.90625 | 4 | [
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/sh
MISSIO_ROOT=`cd "$(dirname "$0")/../.." && pwd`
echo MISSIO_ROOT = $MISSIO_ROOT
if [ ! -e "$MISSIO_ROOT/Jamroot" ]
then
echo Could not find file \"Jamroot\" required to build missio
exit 1
fi
if [ -n "$BOOST_ROOT" ]
then
# Remove trailing slash
BOOST_ROOT="${BOOST_ROOT%/}"
echo BOOST_... | true |
9a55cc20286c7ecf9540021f76fbbc4ec3fde80c | Shell | fossabot/dotfiles-13 | /dotfiles/zshrc | UTF-8 | 5,742 | 2.84375 | 3 | [
"MIT"
] | permissive | # SET PACKAGE MANAGER & SDK LOCATIONS
export BREW_HOME=$(brew --prefix)
export ANDROID_HOME=${HOME}/Library/Android/sdk
export GCLOUD_SDK=${BREW_HOME}/Caskroom/google-cloud-sdk/latest/google-cloud-sdk
export DART_SDK=${BREW_HOME}/opt/dart/libexec
export FLUTTER_SDK=${HOME}/Code/flutter
# SET PATH COMPONENTS
export BRE... | true |
eb848f31a61a77939240b849c4c38f83bfe3f5fb | Shell | mayukhrooj/monsoon-azure | /control-docker.sh | UTF-8 | 490 | 3.578125 | 4 | [] | no_license | #!/bin/sh
case "$1" in
setup)
docker-compose up -d
;;
status)
docker ps --format 'table {{.Names}}\t{{.State}}'
;;
pid)
for i in $(docker container ls --format "{{.ID}}"); do docker inspect -f '{{.Name}} {{.State.Pid}}' $i; done
;;
stop)
for i in $(docker container ls --format "{{.I... | true |
da6bf6057af05ecfb5fd33dc6c916f9ec948b0b3 | Shell | hpssjellis/TensorFlow-Android-Camera-Demo-on-Cloud9 | /old-stuff/old-setup.sh | UTF-8 | 2,454 | 3.34375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# only need to run this script with the command (do not type the #)
# bash setup.sh
echo "First checking the Python version"
python --version
echo "--------------------------------------------------------------"
echo ". "
echo "Now checking is pip is installed"
pip list
echo "-------------------... | true |
d6e576d5a6ced79e129d8e45d017564c7eab1e45 | Shell | ebean-orm/ebean-orm.github.io | /cli-dist/install | UTF-8 | 1,087 | 3.734375 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
installHost="https://ebean.io";
installVersion="$(curl --insecure --silent "${installHost}/cli-dist/version.txt?_=$(date +%s)")";
installJar="ebean-init-${installVersion}.jar";
installUrl="${installHost}/cli-dist/${installJar}";
installDir="NOTSET";
if [ -d "${HOME}/bin" ]; then
installDir="${H... | true |
f345210970295e5e07e74b75fd8486fd813f9f60 | Shell | NickHub4017/CPP_Simple_CallGraph | /cppcallgraph | UTF-8 | 1,788 | 3.8125 | 4 | [] | no_license | #!/usr/bin/bash
TMP="./.tmp";
WORK_CAT="";
MY_HOME=`pwd`;
TEMP_FILE_NAME=".___t_e_m_p__";
OUT_DOT="out.dot";
OUT_PNG="out.png";
#Проверка на наличие в системе ctags
ctags --version &>/dev/null || ( echo 'ERROR: please, install ctags'; exit 1 )
#Проверка на наличие в системе cscope
cscope --version &>/dev/null || ( echo... | true |
0ef8e8fa5d1d744ca241e61fec646e4e9000c006 | Shell | bleuchair/2031P1 | /lab3.sh | UTF-8 | 1,236 | 3.96875 | 4 | [] | no_license | #!/bin/sh
#Alan Lee, 215612898
#Goal is to find all *.rec files (Readable files)
#Prompt user to enter command (List all readable files found "list", Quit "q")
#The input paramater is the path in which all *.rec files are under including subdirectories
leave="q"
listing="list"
listingC="List"
#Check the number of arg... | true |
6dfa864fcc6125d94d9397e3b5fbffb273db03fc | Shell | dberstein/gauge | /gauge-float | UTF-8 | 129 | 2.671875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# Usage: gauge-float <value> [<scale=100>]
BUCKET=$(echo "scale=2; 100*${1:-0}/${2:-100}" | bc -l)
echo "${BUCKET}%"
| true |
95a1720ea9e1794dd5318817122f04aff9279903 | Shell | asenci/bdosoa | /bdosoa-redhat.sh | UTF-8 | 2,108 | 3.78125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
#
# bdosoa Starts/stop the BDOSOA daemon
#
# chkconfig: - 85 15
# description: Brazil LNP (NPAC) BDO/SOA messages processing
### BEGIN INIT INFO
# Provides: bdosoa
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Short-Description: Starts/stop the BDOSOA daem... | true |
57c4fe96f6fb8606cfbd39143f1c2ac2fbf0cad1 | Shell | petronny/aur3-mirror | /juju-core/PKGBUILD | UTF-8 | 766 | 2.765625 | 3 | [] | no_license | # Maintainer: Jonjo McKay <jonjo@jonjomckay.com>
pkgname=juju-core
pkgver=1.19.4
pkgrel=2
pkgdesc="Open source service orchestration management tool developed by Canonical Ltd."
arch=('i686' 'x86_64')
url="https://juju.ubuntu.com"
license=('AGPL3')
makedepends=('go')
options=('strip' 'ccache')
source=("https://launchpa... | true |
bc2a054b0f9a70659da9d36db7faf5f7115a96c6 | Shell | giriprasath1261/iss-sem2 | /2018111006_assign1/some/q6/q6.sh | UTF-8 | 628 | 3.40625 | 3 | [] | no_license | declare path1=$1
declare path2=$2
touch sorted.txt
sort -t":" -k2 -n $path1 > sorted.txt
cp sorted.txt $path2/sorted.txt
sort="sorted.txt"
cd $path2
mv sorted.txt $path1
mkdir Bad Average Good Awesome
i=1
total=$(ls -p | grep -v / | wc -l)
while [ $i -le $total ]
do
name=$(ls -p | grep -v / | head -$i | tail -1)... | true |
ef616e56a3e38de3bbdfe24304d945f0ac130e70 | Shell | cdancette/zerospeech-vae | /embed_and_eval.sh | UTF-8 | 784 | 2.796875 | 3 | [] | no_license | #!/bin/bash
set -e
if [ "$#" -lt 1 ]; then
echo "Usage: script.sh model_path"
exit 1
fi
model=$1
models_dir=`dirname $model`
exp_dir=`dirname $models_dir`
zerospeech_vae="~/zerospeech-vae"
#~/.conda/envs/zerospeech-vae/bin/python embedder.py -f ~/zerospeech-vae/data/mandarin-fbanks-testing-10s.h5f -p $model -o $e... | true |
0e655b1e1eda602db89e9454417ab0335e7780d2 | Shell | rashack/skel | /bin/pimp | UTF-8 | 618 | 4.125 | 4 | [] | no_license | #!/bin/sh
colour() {
COLOUR=$(tput setaf $1)
}
bold() {
COLOUR="$COLOUR$(tput bold)"
}
colour 1
while getopts "Brgbcmy" opt ; do
case $opt in
r) colour 1; shift ;;
g) colour 2; shift ;;
b) colour 4; shift ;;
c) colour 6; shift ;;
m) colour 5; shift ;;
y) colour 3; shift ;;
B) bold; shift ;;
... | true |
b44881dedd525b7c4715058e1f7ebeecac1e2594 | Shell | jkutner/forge | /app/bin/vendor | UTF-8 | 473 | 3.21875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
cli_version=6.34.1
cli_pkg=code.cloudfoundry.org/cli
cli_url=https://github.com/cloudfoundry/cli/archive/v${cli_version}.tar.gz
cd $(dirname "${BASH_SOURCE[0]}")/..
tmp_dir=$(mktemp -d)
curl -sSL "$cli_url" | tar -C "${tmp_dir}" -xz --strip-components=1 "cli-${cli_version}"
rm -rf vendor
mv "${tm... | true |
3ffdc876aa566f9be5928b7d6bba39ce6dfdd3f5 | Shell | cryptofriend/incognito-chain | /bin/bridge/run.sh | UTF-8 | 1,321 | 2.75 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
privatekey=$PRIVATEKEY
dataDir="data"
ethDataDir="eth-data"
declare -a ethNodes
ethNodes[1]=enode://572a275a45e6a49d995948ac4d20cfc7cd78f937809128d2fb321b15e94eacd8508798be0ffec2c73664b9175707c378286f49e0dbb55d8838f37a71a1840305@54.39.158.106:30303
ethNodes[2]=enode://52da3bb510cb5a695a2faa1729b2c... | true |
641b7b3d2ee480587be2e2e6e182f63e0d47ce6c | Shell | c-dilks/sims_mposka | /geant/fmsu/mkMacros | UTF-8 | 301 | 3.34375 | 3 | [] | no_license | #!/bin/bash
# builds macros from argfile
if [ $# -lt 1 ]; then
argfile="simgen/outgen/argfile_eventloop"
else
argfile=$1
fi
echo "`cat $argfile | wc -l` lines to read"
rm outroot/*.mac
echo "building macros..."
while read line; do
./shoot-particle $line
done < $argfile
echo "macros built"
| true |
22857225c14e43a3d2a7382c12cd4b6b2aedd458 | Shell | alexwbaule/telegramopenwrt | /usr/lib/telegramopenwrt/plugins/get_ping | UTF-8 | 155 | 3.203125 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | #!/bin/sh
DEVICE="$1"
NL="$2"
ping ${DEVICE} -w 1 -q &>/dev/null; [ $? == 0 ] && echo -en "Up" || echo -en "Down"
if [ -z ${NL} ];then
echo -en "\n"
fi
| true |
47457a68f290e841154aacef6d004fe5f895b2d5 | Shell | MoisesTapia/Infra-Basic | /verify_infra.sh | UTF-8 | 661 | 2.734375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
FILE=$PWD
clear
echo -e "\e[1;32mWait a moment .....\e[0m"
sleep 2
echo -e "\e[0;31mGenereting the report with Inspec ....\e[0m"
mkdir report
inspec exec infrabasic --reporter cli json:$FILE/report/output.json html:$FILE/report/index.html -t aws://
#$md5 = md5sum report/output.json && md5sum report/index.... | true |
ecb75bcbf76f0f93928385e5f5d582a2b19cb866 | Shell | cameroncros/cameroncros.github.io | /build.sh | UTF-8 | 215 | 2.578125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
cd "$(dirname "$0")" || exit
pwd
if [[ ! -f ./.venv ]]; then
python3 -m venv ./.venv
fi
source ./.venv/bin/activate
pip install sphinx
rm docs/* || true
python3 -m sphinx source/ docs/
| true |
ab796b6a8b16dd79c77c499ab128dcbf97d34f75 | Shell | Nicu1309/dual-potato | /init_riscv_env.sh | UTF-8 | 7,245 | 4.25 | 4 | [
"SHL-0.51"
] | permissive | #!/bin/bash
DEP_FILE="rv_dependences.txt"
PROJECT_FOLDER=""
ENV_RISCV=""
USE_CUSTOM_GCC=""
CUSTOM_GCC=""
CUSTOM_GXX=""
YES=""
BUILD_TOOLS_COMMAND="CC=$CUSTOM_GCC CXX=$CUSTOM_GXX ./build.sh"
INSTALL_TOOLS=""
function usage {
echo 'sudo <script> -r <RISCV_TOP> -p <DESTINATION_PROJECT> [-g <GCC_CUSTOM> -x <GXX_CUSTOM... | true |
1b8a19aff5b4b5975d3d4980d4fa7dd1a7c5d098 | Shell | fylxzq/ShellProgram | /testWhile.sh | UTF-8 | 105 | 2.96875 | 3 | [] | no_license | #! /bin/bash
SUM=0
i=0
while [ $i -le $1 ]
do
SUM=$[($SUM+$i)]
i=$[($i+1)]
done
echo "SUM=$SUM"
| true |
91de2b3a17e0beba3bff9bbccd07536c43606d45 | Shell | msys2/MINGW-packages | /mingw-w64-python-twisted_iocpsupport/PKGBUILD | UTF-8 | 1,794 | 2.703125 | 3 | [
"BSD-3-Clause"
] | permissive | # Contributor: Raed Rizqie <raed.rizqie@gmail.com>
_realname=twisted-iocpsupport
_pyname=twisted_iocpsupport
pkgbase=mingw-w64-python-${_pyname}
pkgname=${MINGW_PACKAGE_PREFIX}-python-${_pyname}
pkgver=1.0.4
pkgrel=1
pkgdesc='An extension for use in the twisted I/O Completion Ports reactor (mingw-w64)'
arch=('any')
mi... | true |
68a2c858c3a0a6d5a897d1c0f7b39afa29f8c1a1 | Shell | dekz/dotfiles | /scripts/stash.sh | UTF-8 | 630 | 3.578125 | 4 | [] | no_license | stash() {
local out q k sha
while out=$(
git stash list --pretty="%C(yellow)%h %>(14)%Cgreen%cr %C(blue)%gs" |
fzf --ansi --no-sort --query="$q" --print-query \
--expect=ctrl-d,ctrl-b);
do
IFS=$'\n'; set -f
lines=($(<<< "$out"))
unset IFS; set +f
q="${lines[0]}"
k="${lines[1]}"... | true |
d1d134b4d18b63a71d511884a7c4a1bdf0de81b4 | Shell | drkennetz/cwlexec | /src/test/integration-test/integration/scatter/valueform0/process_reads.sh | UTF-8 | 715 | 3.640625 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
############################################################
### Simulate the workflow of processing paired-end reads ###
############################################################
R1_FILE=""
R2_FILE=""
OUTPUT_FILE=""
while [[ ! -z $1 ]]; do
case $1 in
--R1_file) R1_FILE=$2; shift;;
--R2_f... | true |
eb4037fe08eb93084ac89aa0ed3a20b3e1b2489e | Shell | EchoLiao/nalstudy | /shell/stsc/printf_demo.sh | UTF-8 | 1,099 | 3.890625 | 4 | [] | no_license | #!/bin/bash
#Example 11-2. printf in action
# printf_demo
case "$1" in "-h" | "--help")
echo "Usage: ${0##*/}";
echo "Example 11-2. printf in action";
echo "printf用法."
exit $E_PARAM;; # 没有命令行参数,
esac
PI=3.14159265358979
DecimalConstant=31373
Message1="Greetings,"
Message2="Earthling."
echo
printf "Pi to 2 decimal... | true |
c4e8ed4bfc888f72d16f14abebdac91c4dd11ec0 | Shell | MingHongYang/HybridCache | /tool/analyze.sh | UTF-8 | 424 | 3 | 3 | [] | no_license | cp /home/curtis/sdc/sim/analyze/a.out .
for file in ./*.f
do
filename=$(basename "$file")
filename="${filename%.*}"
echo $filename
#mkdir -p $filename
outputFile="trace/$filename.out"
writeOut="trace/$filename.write"
filePath="$filename/$filename"
#awk -f 'awkCommand' $file > $outputFil... | true |
4a0f299096b8d1c92cd1d7ad58b18f8a015973bc | Shell | eafit-apolo/apolo-users | /docs/source/software/managementsoftware/slurm/src/submit/templates/array_file.sh | UTF-8 | 799 | 2.578125 | 3 | [] | no_license | #!/bin/bash
#SBATCH --job-name=array_file_test # Job name
#SBATCH --mail-type=FAIL,END # Mail notification
#SBATCH --mail-user=<user>@<domain> # User Email
#SBATCH --output=slurm-arrayJob%A_%a.out # Stdout (%a expands to stepid, %A to jobid )
#SBATCH --error=slurm-array%J.err # Stderr (%J... | true |
204d5837db30293a796a57bf47c5fdf7497c3d5a | Shell | vilasfe/ApplicationSets | /pine64/Pico5/resize_P64.sh | UTF-8 | 277 | 2.796875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
part=`fdisk -l /dev/mmcblk0 | grep mmcblk0p1 | awk '{print $2}'`
echo "Found the start point of mmcblk0p1: $p2_start"
fdisk /dev/mmcblk0 << __EOF__ >> /dev/null
d
n
p
1
$part
w
__EOF__
sync
partprobe /dev/mmcblk0
resize2fs /dev/mmcblk0p1
echo "Resize complete"
| true |
d36dd32c66bb9f7e69e7e7612a3d6139c6b053f0 | Shell | pocblockchain/pocc | /run.sh | UTF-8 | 155 | 2.65625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if [[ ! -d "/root/.pocd/config" ]]; then
echo "Initialize /root/.pocdd"
cp -r /go/initial-node/* /root/.pocd/
fi
cd /go; ./pocd start $@
| true |
4a67645b047997c67f8a9428cfe8a6e50d34cd18 | Shell | zhonglol/CaloBWSubmissionScripts | /NeuralNets/qsub.sh | UTF-8 | 192 | 2.609375 | 3 | [] | no_license | nhyperparamcombos=20
((nhyperparamcombos--))
for hyperparamset in $(seq 0 $nhyperparamcombos)
do
sed 's/HYPERPARAMSET/'$hyperparamset'/g' <qsub_template.in >qsub.in
qsub qsub.in
done
| true |
f51e8bb665d8b9769ae89ef8bc9490541ef27408 | Shell | tonefreqhz/misc | /stupidrss.sh | UTF-8 | 260 | 3.09375 | 3 | [] | no_license | #!/usr/bin/env zsh
feeds=()
if [ -e ~/.stupidrss ] ; then
. ~/.stupidrss
fi
for item in "$@" ; do
feeds+="$item"
done
for feed in $feeds ; do
curl $feed | grep '<link>' | sed 's/^[ \t]*//;s/<[\/]*link>//g' | while read x ; do w3m -dump "$x" ; done
done
| true |
852e7f11e5d304c3255a7c81a26ed781136f8391 | Shell | Javastro/astrogrid-legacy | /astrogrid/installscripts/cdsclient/setup.sh | UTF-8 | 1,401 | 3.796875 | 4 | [] | no_license | #!/bin/sh
#
# <meta:header>
# <meta:title>
# AstroGrid install script.
# </meta:title>
# <meta:description>
# Initial setup script for the test machine.
# This script needs to be run as root.
# </meta:description>
# </meta:header>
#
#
# Get the install script name and path.
SCRIPT_NAME=`basen... | true |
5a71505c9c2dac5e1c6abc7a21148211ff5bba8a | Shell | acnickv/dotfiles | /.bash_profile | UTF-8 | 549 | 2.890625 | 3 | [] | no_license | # .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
#parse_git_branch() {
# git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1) /'
#}
EDITOR=vim
VISUAL=vim
PATH=$PATH:$HOME/.local/bin:$HOME/bin
#export PS1="\e[90m... | true |
556ad183d68ef4f29044d18218a12b53bcb81300 | Shell | pedantic79/Exercism | /bash/atbash-cipher/atbash_cipher.sh | UTF-8 | 973 | 4.0625 | 4 | [] | no_license | #!/usr/bin/env bash
set -o errexit
set -o nounset
main() {
local output
output=$(codec "$2")
if [ "$1" = "encode" ]; then
local -i i
local -a groups=()
for ((i = 0; i < ${#output}; i+=5)); do
groups+=("${output:$i:5}")
done
echo "${groups[*]}"
else... | true |
e7a448a9e6af05e3e5c27b8c2c989bc510748389 | Shell | flintiii/boj | /bin/obe/mswf.07.sh | UTF-8 | 8,668 | 3.640625 | 4 | [] | no_license | #!/bin/bash
# Wed 21 Jan 2015 07:17:44 AM EST Microsoft Word Filter for Grant Generator
# Note change in evaluation of ARG!
#
version="0.07"
#
# next lines run ballisticly
#* hold environment
S=$PWD
# echo "This is the path "$S
#
#
#* function help - Help function for template basic help goes here
function help(){
... | true |
26d9731b276914fdfff4eb34a66d0b27a5fcb272 | Shell | tautologyclub/emacsd | /install.sh | UTF-8 | 589 | 2.78125 | 3 | [] | no_license | #!/bin/bash -e
i3file="$PWD/i3/config"
homefiles="$PWD/HOME/.bashrc $PWD/HOME/.Xmodmap $PWD/HOME/.bash_aliases \
$PWD/HOME/.bash_bindings $PWD/HOME/.xinitrc"
binfiles="$PWD/bin/chr-deb $PWD/bin/E $PWD/bin/split_optimal \
$PWD/bin/wut $PWD/bin/xcape-restart $PWD/bin/xcape-restart-swedish"
for file... | true |
c970f4166660a138e16d828b2a306b6e7a5e9ccc | Shell | gbataille/MyConfig | /scripts/git-prapproved | UTF-8 | 1,884 | 3.9375 | 4 | [] | no_license | #!/bin/sh
TARGET=${1:-staging}
set -e
CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD`
echo ""
echo "Trying to put branch $CURRENT_BRANCH on top of $TARGET"
echo ""
echo "# Fetch remotes"
git fetch
echo "# Rebase $CURRENT_BRANCH on $TARGET"
git rebase origin/$TARGET
echo "# Pre-push and merge checks"
if ! [ -z "${VIRT... | true |
b6cb8035abf23b24e05e326508d481e77d234d47 | Shell | ashutoshkrm/terraform-aks-pipelines | /resources/setup-aks.sh | UTF-8 | 4,091 | 3.1875 | 3 | [
"MIT"
] | permissive | # Deploying a multi-container application to Azure Kubernetes Services
# Setting up the environment
# https://www.azuredevopslabs.com/labs/vstsextend/kubernetes/#setting-up-the-environment
# Open https://shell.azure.com/ and choose a BASH shell
# Copy/paste commands below
# Vars
# no dashes or spaces allowed in prefi... | true |
5c723fca7323dcb8600a226b90adf660e22d5ba1 | Shell | shiqing881215/ShellScript-Basic-Syntax | /Read.sh | UTF-8 | 215 | 2.78125 | 3 | [] | no_license | #!/bin/bash
#Program
# Read the user input
#History
# 04/21/2014 Qing Shi
read -p "Pleas enter your firstname " firstname
read -p "Pleas enter your lastname " lastname
echo "\nYour full name is $firstname $lastname"
| true |
dccf7100175860becec367e967b6304ed425a311 | Shell | athomsen115/bash-scripts | /IO/filedesc.sh | UTF-8 | 193 | 3.265625 | 3 | [] | no_license | #!/bin/bash
echo "Enter a file name to read: "
read FILE
exec 5<>$FILE
while read -r SUPERHERO;do
echo "Superhero Name: $SUPERHERO"
done <&5
echo "File was read on: `date`">&5
exec 5>&-
| true |
6b78eaa1e9b6b36f3511b297ac52420aaab61cbb | Shell | alexmazurik/dotfiles | /.bash_profile | UTF-8 | 527 | 3.390625 | 3 | [] | no_license | # .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
which gpg-agent >/dev/null || return
envfile="$HOME/.gnupg/gpg-agent.env"
if [[ -e "$envfile" ]] && kill -0 $(grep GPG_AGENT_INFO "$envfile" |... | true |
b1c9223dba44bdf407896b4f5632247daed3e5a1 | Shell | urban-1/ida | /scripts/disks.sh | UTF-8 | 1,565 | 3.828125 | 4 | [] | no_license | #!/bin/bash
#
# select * from disks where name='/dev/mapper/vgdata-data'
# select distinct(name) from disks
#
if [ $# -lt 1 ];
then
echo "[start|stop] is needed"
exit 1
fi
dn=`dirname $0`
. "$dn/vars.sh"
. "$dn/tools.sh"
function startDisks(){
if [ ${#DISKS[@]} -eq 0 ]; then
echo "WARNING: Disk monitor... | true |
57ec2dcde32d6cdd6a28d7738b4e4ae62db9348b | Shell | a-atalla/BarqDM | /compile.sh | UTF-8 | 1,192 | 2.53125 | 3 | [] | no_license | #!/bin/bash
#
# <one line to give the program's name and a brief idea of what it does.>
# Copyright (C) 2013 a.atalla <a.atalla@hacari.org>
#
# 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 Free Software Foundation, ei... | true |
dc429d93b29320bd8b73a3206df82453d4068491 | Shell | eiuapp/swift-quick-install | /swift/swift-storage-node/configure-components.sh | UTF-8 | 1,060 | 2.640625 | 3 | [] | no_license | #!/bin/bash
## configure components
if [ ! -f ./ding-dev-storage-node-swift-conf/account-server.conf ]; then
echo "./ding-dev-storage-node-swift-conf/account-server.conf 文件不存在, 请检查后再安装!"
exit
fi
cp ./ding-dev-storage-node-swift-conf/account-server.conf /etc/swift/account-server.conf
if [ ! -f ./ding-dev-sto... | true |
bde21f2131a5efebfee02fb32b00000f9a83c24a | Shell | rodins/gtk_exua_viewer | /exua_viewer-0.3/usr/local/exuaviewer/exua_viewer.sh | UTF-8 | 937 | 3.140625 | 3 | [] | no_license | #!/bin/sh
searchTxt_onChange(){
if [ -z "$searchTxt" ]
then echo false
elif [ -n "$searchTxt" ]
then echo true
fi
}
export -f searchTxt_onChange
# Проверка подключения к Интернет
internet_status() {
LANG=C route | grep -q 'default[ ].*[ ]0\.0\.0\.0[ ]' && grep -wq 'nameserver' /etc/resolv.conf #&& ping -c1 goo... | true |
3094c89d70f4caa824601908a0aa2aed375d3ca1 | Shell | MrGKanev/Smily | /shellscript/generate-code.sh | UTF-8 | 1,907 | 3.546875 | 4 | [
"MIT"
] | permissive | #!/bin/sh
HERE=$(cd "$(dirname "$0")" && pwd)
source="/home/bastien/github/emojione/assets/png_512x512"
output="LetTheMontageBegin.java"
xmloutput="emojilist.xml"
#==========================================
# Fonctions
#==========================================
getArguments() {
while true; do
case "$1" in
... | true |
6f4cbc253e37c5b3dc9ec3ae720265a8f65d469b | Shell | delkyd/alfheim_linux-PKGBUILDS | /vapoursynth-plugin-lsmashsource-git/PKGBUILD | UTF-8 | 1,221 | 2.796875 | 3 | [] | no_license | # Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
_plug=lsmashsource
pkgname=vapoursynth-plugin-${_plug}-git
pkgver=r875.14b040e
pkgrel=1
pkgdesc="Plugin for Vapoursynth: ${_plug} (GIT version)"
arch=('i686' 'x86_64')
url='http://forum.doom9.org/showthread.php?t=167435'
license=('LGPL')
depends=('vapoursynth'
... | true |
17e6fff76376b6bc41d53be63dc3ea67116ce545 | Shell | TellinaTool/tellina_user_experiment | /client_side/.infrastructure/test/libs/assertions.bash | UTF-8 | 1,805 | 4.125 | 4 | [] | no_license | # Bash source file loaded by Bats defining useful test assertions and output
# printing.
# Prints all arguments passed to the console.
debug() {
echo "------------"
for arg in "$@"; do
echo "$arg"
done
}
# Prints the actual and expected values of a test
# $1: actual value
# $2: expected value
output_failure... | true |
10dae88dac01d2cba20148a1a14a550d6ad66af8 | Shell | xsulca00/IPP | /proj1/test/' | UTF-8 | 320 | 3.53125 | 4 | [] | no_license | #!/usr/bin/bash
TEST=test*
SRC=../cppheader.php
for FILE in $TEST
do
echo "[Processing $FILE]:"
php -f $SRC -- --input=$FILE > output1
cat $FILE | tr -d ' \n\t' > output2
if [ $(diff output1 output2) == 0 ]
then
echo " Test successful!\n";
else
echo "Test $FILE failed!"
fi
done
| true |
9e9dce89b560f705b7ead17b7ed90c06d83b468a | Shell | agrausem/rcfiles | /install | UTF-8 | 1,643 | 3.0625 | 3 | [] | no_license | #!/bin/zsh
# VI
VI_HOME=$HOME/.vim
VUNDLE=$VI_HOME/bundle/Vundle.vim
JEDI=$VI_HOME/.vim/bundle/jedi-vim
if [[ ! -d $HOME/.vim/bundle/Vundle.vim ]]
then
git clone https://github.com/VundleVim/Vundle.vim.git $VUNDLE
else
cd $VUNDLE
git pull
cd -
fi
if [[ ! -a $HOME/.vimrc ]]
then
ln -s $(pwd)/vim/vimrc $HOME/.vi... | true |
104a84850a67cc5e8e3fbe2512517920f8bde16e | Shell | sergiobaro/codewars | /shell/mumbling.sh | UTF-8 | 1,310 | 3.84375 | 4 | [] | no_license | # This time no story, no theory. The examples below show you how to write function accum:
# Examples:
# accum("abcd") -> "A-Bb-Ccc-Dddd"
# accum("RqaEzty") -> "R-Qq-Aaa-Eeee-Zzzzz-Tttttt-Yyyyyyy"
# accum("cwAt") -> "C-Ww-Aaa-Tttt"
# The parameter of accum is a string which includes only letters from a..z and A..Z.
#!... | true |
049aead6cad40d030ee2f15613521889e58f51a2 | Shell | smithjw/JAMF_goodies | /Scripts/configure_default_dock.sh | UTF-8 | 2,511 | 3.59375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Author: James Smith - james@smithjw.me
# Version 1.1.0
dockutil="/usr/local/bin/dockutil"
log_prefix="CONFIGURE_DOCK"
logged_in_user=$( scutil <<< "show State:/Users/ConsoleUser" | awk '/Name :/ && ! /loginwindow/ { print $3 }' )
logged_in_user_uid=$(id -u "$logged_in_user")
logged_in_user_home=$(dscl . ... | true |
3ac29d03eac4f9170f93212af4d8d1ab07951aea | Shell | coffiasd/kind-local | /.circleci/portforward.sh | UTF-8 | 1,319 | 3.765625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Sets up portforwarding for the specified port.
#
# Usage:
# start-portforward-service.sh
# portforward.sh [port]
#
# Adapted from
# https://github.com/kubernetes-retired/kubeadm-dind-cluster/blob/master/build/portforward.sh
#
# Copyright 2020 The Kubernetes Project
#
# Licensed under the Apache Lice... | true |
6ca79db5deba4dcba882dbb865f7f9208cae2bd8 | Shell | moruikang/prometheus | /prometheus/grafana/install_grafana.sh | UTF-8 | 663 | 2.703125 | 3 | [] | no_license | #!/bin/bash
useradd -s /bin/bash -m grafana
mkdir -p /usr/share/grafana /var/log/grafana /var/lib/grafana /etc/grafana
tar -zxvf grafana-7.3.6.linux-amd64.tar.gz
cd grafana-7.3.6
cp grafana-server.sysconfig /etc/sysconfig/grafana-server
cp grafana-server.service /etc/systemd/system/
cp bin/grafana-cli bin/grafana... | true |
1a8f9a09bbd6dc2b8051c3765f795ea4f435e60c | Shell | tommy-muehle/ansible-vagrant-boxes | /definitions/centos-7.2-x86_64/base.sh | UTF-8 | 808 | 2.65625 | 3 | [] | no_license | # Base install
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
cat > /etc/yum.repos.d/epel.repo << EOM
[epel]
name=epel
baseurl=http://download.fedoraproject.org/pub/epel/7/\$basearch
enabled=1
gpgcheck=0
EOM
yum groupinstall -y development
yum install -y zlib-dev openssl-devel sqlite-devel bzip2-devel w... | true |
08f93d09490f4fb7fb50d3eaf6ebf4c282ec06bd | Shell | lyuboraykov/mathematica-su | /install.sh | UTF-8 | 222 | 2.828125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
echo "Copying main script"
cp mathematica.py /usr/bin/mathematica
echo "Making it executable"
chmod +x /usr/bin/mathematica
echo "Installation is successful, to run it type mathematica in the console"
| true |
51b9275e0069061748ae225be00ce494e6ce41e0 | Shell | gao4306629/Vitis-AI-Tutorials | /Feature_Tutorials/tf2_quant_fine_tune/files/run_all.sh | UTF-8 | 2,258 | 2.765625 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
# Copyright 2021 Xilinx Inc.
#
# 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... | true |
aa94dac2c11bc97678ec210527e2e67f9d13bea1 | Shell | SamuelSarle/dotfiles | /.profile | UTF-8 | 310 | 2.953125 | 3 | [] | no_license | #!/bin/sh
if [ -d "/home/samuel" ] ; then
HOME="/home/samuel"
fi
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
if [ -d "$HOME/go/bin" ] ; then
PATH="$HOME/go/bin:$PATH"
fi
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
if [ -d "$HOME/go" ] ; then
GOPATH="$HOME/go"
fi
| true |
bcbe5ef1745b2cb8e0640abccf6acfac4a51ade3 | Shell | bminovski/final_MTC | /setup.bridge.sh | UTF-8 | 4,006 | 3.46875 | 3 | [] | no_license | #!/bin/bash
# Copyright 2013
# Charles Steinkuehler <charles@steinkuehler.net>
#
# 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 Free Software Foundation; either version 2 of the License, or
# (at your option) any later ... | true |
0bff40e6053d8183817d48a24af8716521353f33 | Shell | zaf00130/zsh-plugins | /ls.plugin.zsh | UTF-8 | 933 | 3.09375 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #
# Sets ls environment variables and defines ls aliases.
#
# Define colors for ls.
export LSCOLORS='exfxcxdxbxGxDxabagacad'
# Define colors for the completion system.
export LS_COLORS='di=34:ln=35:so=32:pi=33:ex=31:bd=36;01:cd=33;01:su=31;40;07:sg=36;40;07:tw=32;40;07:ow=33;40;07:'
#
# Aliases
#
# Enable colorized... | true |
5fb742767550bb600595fdf95f2554497cc3e92f | Shell | wrmilling/chartrepo | /.buildkite/hooks/pre-command | UTF-8 | 508 | 2.859375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -eu
if [[ "${BUILDKITE_STEP_KEY}" == "index" ]]; then
echo "--- :tada: Configuring git user"
git config user.name "Authelia[bot]"
git config user.email "autheliabot@users.noreply.github.com"
fi
if [[ "${BUILDKITE_STEP_KEY}" == "upload" ]] || [[ "${BUILDKITE_STEP_KEY}" == "index" ]]; th... | true |
8a72d2bccb2be302ab5b6bc98b2b62c4eb60c589 | Shell | unik-name/uns-cli | /scripts/publish_next.sh | UTF-8 | 631 | 3.78125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -ex
# Check current version format
version=$(grep '"version":' package.json | cut -d\" -f4)
if [[ $version =~ "-" ]]; then
echo "Version format is not X.Y.Z ($version)"
exit 1
fi
echo "Bump package version."
tag="-next.$CIRCLE_BUILD_NUM"
sed -i.bak '/\"version/s/[^0-9]*$/'"$tag\",/" package.... | true |
d87ed61838bb1444d657fe759bc8da0c21b5f70c | Shell | changshoumeng/DBC-AIComputingNet | /deployment/container/autoshell/check_process.sh | UTF-8 | 1,152 | 2.828125 | 3 | [] | no_license | #! /bin/bash
sshd_number=`ps -ef |grep -w sshd|grep -v grep|wc -l`
if [ $sshd_number -le 0 ];then
sudo service ssh restart
fi
jupyter_number=`ps -ef |grep -w jupyter-lab|grep -v grep|wc -l`
if [ $jupyter_number -le 0 ] || [ $jupyter_number -ge 4 ];then
ps -ef|grep jupyter-lab | awk '{print $2}'| sudo xargs ... | true |
91139d9289f71548795320865c0d39a6cd4f1830 | Shell | pdyachen/java-max | /Lesson_3/java_solution/compile.bash | UTF-8 | 350 | 2.53125 | 3 | [] | no_license | #/bin/bash
cd cpp/
if [[ $1 == 'comp' ]];then
g++ -std=c++11 -fPIC -c -I /usr/lib/jvm/java-8-openjdk-amd64/include/ -I /usr/lib/jvm/java-8-openjdk-amd64/include/linux/ -I . -I ../../include/ -I ../../database/ -o libJdatabase.o libJdatabase.cpp
elif [[ $1 == 'link' ]]; then
g++ -shared -L . -o libJdatabase.so ... | true |
32d64f281305d23aca1d9960f1a1f343062fe9d6 | Shell | b3n10/linux-sysadmin | /forinloop | UTF-8 | 167 | 3.375 | 3 | [] | no_license | #!/bin/bash
suffix=BACKUP--`date +%Y%m%d-%H:%M`
for script in *.sh; do
new_name="$script.$suffix";
echo "Copying $script to $new_name";
cp $script $new_name
done
| true |
e05816e58e1e12285000fec2fd7aa716477d8c3d | Shell | wdross/Generic | /ConfigGit.sh | UTF-8 | 1,050 | 2.578125 | 3 | [] | no_license |
# configure git behaviors and colorizations:
git config --global core.editor "nano"
git config --global push.default simple
git config --global pull.rebase true
git config --global alias.hist 'log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short'
git config --global user.name "Wayne Ross"
git config --global... | true |
b17689af3eefae19bdfc08d8334ab36437804b64 | Shell | yiyilinghun/pj | /create_backup.sh | UTF-8 | 748 | 3.75 | 4 | [] | no_license | #! /bin/bash
packetname=$(basename $(pwd))
echo -e "\033[31m 正在对git版本库打包...\033[0m"
tar -zcvf ./$packetname.tar.gz .git/
#echo -e "\033[34m 正在备份git版本库到E盘根目录...\033[0m"
#cp /d/$packetname.tar /e/
#echo -e "\033[34m 正在备份git版本库到F盘根目录...\033[0m"
#cp /d/$packetname.tar /f/
for arg in "$@"
do
mkdir -p $arg
if [ -d $ar... | true |
24901fdfb889c4107abdabdebd377b4b08bfc0e0 | Shell | bambrikii/spring-cloud-example | /ca/root-ca.sh | UTF-8 | 450 | 2.578125 | 3 | [] | no_license | #!/bin/bash
STORE_PW=$1
HOST=localhost.localdomain
openssl req -x509 -sha256 -days 3650 -newkey rsa:4096 -keyout rootCA.key -out rootCA.crt \
-subj "/CN=${HOST}/emailAddress=email@${HOST}/C=US/ST=NJ/L=Weehawken/O=${HOST}-CA/OU=CA" \
-passin "pass:${STORE_PW}" \
-passout "pass:${STORE_PW}"
openssl pkcs12 -expor... | true |
520b4495714cc3364677aa0e32f94e01f365c208 | Shell | k0ffee/howto-scribbles | /zfs-snapshot-rotation.txt | UTF-8 | 1,117 | 3.984375 | 4 | [] | no_license | #! /usr/local/bin/zsh
#
# This creates ZFS snapshots and deletes them if
# the snapshot count reaches a limit set as an
# argument to this program.
#
# Example crontab entries:
#
# 14 7 * * * root /root/bin/snapshot 14 zroot/ROOT/default
# 14,44 * * * * root /root/bin/snapshot 336 data
#
PATH=/usr/local/bin:/usr/... | true |
1fa95486838ffdb4fa9a5c7872410182b4500294 | Shell | PedroHLC/.dotfiles | /.profile | UTF-8 | 291 | 2.765625 | 3 | [] | no_license | #!/usr/bin/env sh
# User's settings
export EDITOR=nvim
export VISUAL=$EDITOR
export SUDO_EDITOR=$EDITOR
export BROWSER=firefox
export TERMINAL_COMMAND='alacritty -e'
# Auto startup
if [ -z "$TMUX" ] && [ "$SSH_CLIENT" != "" ]
then
exec tmux
elif [ "$(tty)" = '/dev/tty1' ]
then
sway
fi
| true |
fa580fa568d50004985bda7a49116d345659db8f | Shell | moriorhythm/myan | /func/pt.sh | UTF-8 | 422 | 2.84375 | 3 | [] | no_license | # pt
function pt()
{
cat <<EOF
===pt===
# 拡張子.sql で sqlディレクトリ配下にあるファイルを検索
$ pt -g \.sql$ **/sql/*
# 拡張子.sh のファイルの中身を全検索
$ pt hoge */*/*.sh
# monococoに関するレポジトリでModel配下の"->{status}"を検索
$ pt -e "\-\>{status}" m-*/lib/*/Model/*
# 日本語を検索
$ pt -e "[ぁ-ん|ァ-ヴ|一-龠|ー・、。]"
========
EOF
}
| true |
aebd2bbd6b747370e8bba935bd1086ff1faf7c05 | Shell | Srilathaky/Shell_Scripting | /reverse_number | UTF-8 | 362 | 3.53125 | 4 | [] | no_license | #!/bin/bash
if [ $# -ne 1 ]
then
echo "Usage:Number $0"
exit 1
fi
num=$1
echo "NUmber is $num"
rev=0
while [ $num -gt 0 ]
do
rev=$((rev * 10 + $num % 10))
num=$(($num / 10))
done
echo "reversed number is $rev"
: '
while [ $num -gt 0 ]
do
a=`expr $rev \* 10`
mod=`expr $num % 10`
rev=`expr $a + $mod`
num=`expr $num / 1... | true |
ac861597a5dabac4371e59d6234411d9827e58b4 | Shell | jmleefree/poc-cicd-ladybug | /docs/test/connectioninfo-create.sh | UTF-8 | 12,075 | 3.453125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# ------------------------------------------------------------------------------
# usage
if [ "$#" -lt 1 ]; then
echo "./connectioninfo-create.sh [AWS/GCP/AZURE] <option>"
echo "./connectioninfo-create.sh GCP"
echo "./connectioninfo-create.sh AWS add"
exit 0
fi
source ./conf.env
# -------------------... | true |
a78e218e693bd5025e2357a310da86529317544f | Shell | slevy1ster/Best-in-Show | /bash/ifs.sh | UTF-8 | 79 | 2.609375 | 3 | [] | no_license | LINE=$'1,2,3,\n4,5,6,\n7,8,9\n'
IFS=','
for ch in $LINE
do
echo -n $ch
done
| true |
1b68538cd1e7866033c052e183a8bc788479473c | Shell | landonalder/dotfiles | /.zshrc | UTF-8 | 1,916 | 2.78125 | 3 | [] | no_license | # Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
plugins=(git)
export PATH="/usr/local/opt/findutils/libexec/gnubin:/usr/local/opt/coreutils/libexec/gnubin:/usr/local/opt/gnu-sed/libexec/gnubin:/usr/bin:/usr/sbin:/sbin:/usr/local/go/bin":$PATH
source $ZSH/oh-my-zsh.sh
alias gcam='git commit -am'
al... | true |
630de87f87d41fd8b83b8dd3e30081a7c848f1b8 | Shell | paulmao1/Cloud-Study-Group | /CloudWatch/metric.sh | UTF-8 | 648 | 2.8125 | 3 | [] | no_license | #!/bin/sh
#install AWS CLI
apt update -y
apt install awscli
#Testing scripts
remote_ip=172.31.1.1
ping_count=5
tc qdisc add dev eth0 root handle 1: htb
tc class add dev eth0 parent 1: classid 1:1 htb rate 100mbit
tc filter add dev eth0 parent 1: protocol ip prio 1 u32 flowid 1:1 match ip dst 172.31.1.1/32
tc qdisc add ... | true |
4f83eb558b7cd5604c308114148c6931edf3b469 | Shell | marronmaro/dotfiles | /.bashrc | UTF-8 | 566 | 2.609375 | 3 | [] | no_license | alias vi='vim'
alias ls="ls -G"
alias ll="ls -lG"
alias la="ls -laG"
alias rm="rm -i"
alias cp="cp -i"
alias grep='grep --color'
alias fig="docker-compose"
alias less='/usr/share/vim/vim80/macros/less.sh'
if [ -d "${HOME}"/.bashrc.d ]; then
for f in "${HOME}"/.bashrc.d/*.sh ; do
source "$f"
done
fi
... | true |
bdc2561819c26659f7e632d43b0d5643c1ed3bd7 | Shell | RocketSH/dotfiles | /link_configs.sh | UTF-8 | 1,457 | 2.953125 | 3 | [] | no_license | #!/bin/bash
if [[ ! -f $HOME/.config/nvim/init.vim ]]; then
mkdir -p $HOME/.config/nvim
ln -s $HOME/.dotfiles/init.vim $HOME/.config/nvim/init.vim
fi
[[ -f $HOME/.tmux.conf ]] || ln -s $HOME/.dotfiles/.tmux.conf $HOME/.tmux.conf
[[ -f $HOME/.prettierrc.js ]] || ln -s $HOME/.dotfiles/.prettierrc.js $HOME/.prettier... | true |
f0b4371ea96ec1f62e69ebb6cb9dfa4b2ea29cb4 | Shell | varun-projects/SUMO_OMNeT_Veins_Slackware | /3_Veins/JB_scripts/veins_save_config_used_JBr.sh | UTF-8 | 2,680 | 3.34375 | 3 | [] | no_license | #!/bin/bash
#
# Autor= João Batista Ribeiro
# Bugs, Agradecimentos, Críticas "construtivas"
# Mande me um e-mail. Ficarei Grato!
# e-mail: joao42lbatista@gmail.com
#
# Este programa é um software livre; você pode redistribui-lo e/ou
# modifica-lo dentro dos termos da Licença Pública Geral GNU como
# publicada pela Fund... | true |
1a56ff0dffc8e8281023ef663513562c888d3e69 | Shell | Pawley-l/dotfiles | /.local/bin/qkill | UTF-8 | 211 | 3.21875 | 3 | [] | no_license | #!/bin/sh
PROCESS="$(ps --user "$(id -u)" -F | \
dmenu -i -l 10 -p "Kill process:" "$@" | awk '{print $2" "$11}')";
if [[ -n $PROCESS ]]; then
kill -9 "$(awk '{print $1}' <<< "$PROCESS")";
fi
| true |
095d3719cdd9102007b0f7695105ec7a444b5008 | Shell | williamflow/digMySoul | /sbin/bash | UTF-8 | 302 | 3.015625 | 3 | [] | no_license | #!/bin/sh
dir=$(sbin/pwd)
sbin/PS1
while read cmd params ; do
if [ $cmd ] ; then
exe=$(readlink -f bin/$cmd)
if [ -x $exe ] ; then
$exe $params
else
sbin/cmd-not-found $cmd $params
fi
fi
sbin/PS1
done
echo exit
sleep 0.5
sbin/cd $dir
| true |
b300d8470ad3b5fd7903f9d77f0d6d8058873660 | Shell | zphyzp/zabbix-offline | /docker-zabbix-proxy/init_net.sh | UTF-8 | 329 | 3.09375 | 3 | [] | no_license | #!/bin/bash
##############创建docker网络##################
PROXYNET()
{
docker network ls|grep -wE zabbix-proxy &> /dev/null
if [ $? -ne 0 ];then
`docker network create --subnet 172.21.0.0/16 --ip-range 172.21.240.5/20 zabbix-proxy` &> /dev/null
echo "zabbix-proxy已创建"
else
echo "zabbix-proxy已存在"
fi
}
| true |
90c9d3b0c301ca734c5a5c50aca01aad6a72f34e | Shell | ryanwoodsmall/oldsysv | /SysVr2.0_32000/SysVr2.0_32000/src/cmd/whodo.sh | UTF-8 | 1,397 | 3 | 3 | [] | no_license | ################################################################################
# Copyright (c) 1985 AT&T #
# All Rights Reserved #
# ... | true |
b05bd0b1d5084d39400167c785dccd13e86498b0 | Shell | milen16/Cloud-Healing | /data_sets/BGL/select.sh | UTF-8 | 416 | 3.21875 | 3 | [] | no_license | #!/bin/bash
select_data(){
#Input variables
where_clause=${@}
echo "where clause is $where_clause"
#Update the file
mysql -u cloud --password=Shaatir1\! -e \
"select facility, severity, entry_data from data_set.blue_gene_ras where entry_data like '$where_clause' group by entry... | true |
512a662f6b517adef5accb5b9eb5970d3ef9fb60 | Shell | KernelDeimos/ikmoqsvwxyz | /build.sh | UTF-8 | 223 | 2.921875 | 3 | [
"Unlicense"
] | permissive | for os in windows linux darwin; do
[[ $os = 'windows' ]] && exe='.exe' || exe=''
for arch in amd64 386; do
echo 'ikmoqsvwxyz_'$os'_'$arch$exe
GOARCH=$arch GOOS=$os go build -o 'ikmoqsvwxyz_'$os'_'$arch$exe
done
done
| true |
52be2218f779fa95dcd7dbb4237656e79a26e3b1 | Shell | GreenLightt/RedgoShell | /install/mysql.sh | UTF-8 | 2,401 | 4.21875 | 4 | [] | no_license | #! /bin/bash
#####################################################################
# Goal: Auto Install Mysql
#####################################################################
##################################
# Import File
##################################
filepath=$(cd "$(dirname "$0")"; pwd)
file=$filepath"... | true |
bd865e6789813e00c5ece0f5f960237e0ce87fdf | Shell | Unidata/LDM | /mcast_lib/FMTP-LDM7/measure/tc_mon.sh | UTF-8 | 171 | 2.71875 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
LOG=$(printenv LDMHOME)/tc_mon.log
while true
do
date -u >> $LOG
uptime >> $LOG
tc -s qdisc >> $LOG
echo -en "\n\n" >> $LOG
sleep 60
done
| true |
68f5779ef6d3f502cfd78ce7ff3ab87c58a8ca69 | Shell | ljk9410/42 | /ft_server/srcs/run.sh | UTF-8 | 1,721 | 3.265625 | 3 | [] | no_license | #!/bin/bash
service mysql start
# Database
echo "CREATE DATABASE wordpress;" | mysql -u root
echo "CREATE USER 'jung-lee'@'localhost' IDENTIFIED BY 'a12031234!';" | mysql -u root
echo "GRANT ALL PRIVILEGES ON wordpress.* TO 'jung-lee'@'localhost' IDENTIFIED BY 'a12031234!';" | mysql -u root
echo "FLUSH PRIVILEGES;" |... | true |
1fea97595365318d5ddfd1bdb1f1cba1439bd5b3 | Shell | SODALITE-EU/ide | /dsl/documentation/MongoDB/createMongoDB.sh | UTF-8 | 1,610 | 3.890625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
DIALOG_CANCEL=1
DIALOG_ESC=255
HEIGHT=0
WIDTH=0
display_result() {
dialog --title "$1" \
--no-collapse \
--msgbox "$result" 0 0
}
while true; do
exec 3>&1
selection=$(dialog \
--backtitle "MongoDB" \
--title "Restore AnsibleDB" \
--clear \
--cancel-label "Exit" \
--menu "... | true |
63066279f8e9e190503ffed94ff698c95da843fc | Shell | firoorg/react-native-zcoin-sigma | /build-secp-ios.sh | UTF-8 | 4,667 | 3.5 | 4 | [] | no_license | #!/bin/bash
echo Build secp for ios started
# names
: ${LIBRARY:=libsecp256k1.a}
# build architectures
BUILD_ARCHS="armv7s armv7 arm64 i386 x86_64"
# commands
: ${LIPO="xcrun -sdk iphoneos lipo"}
# iphone SDK version
: ${IPHONE_SDKVERSION:=$(echo $(xcodebuild -showsdks) | grep -o 'iphonesimulator[0-9]\+.[0-9]\+' ... | true |
82e39f4c681aa46d0bb65e3430818c116209bbc7 | Shell | nju33/Nasterisk | /src/now.sh | UTF-8 | 289 | 3.234375 | 3 | [] | no_license | #!/bin/sh
fn() {
appname=$1
now -n "$appname" \
&& sh -c "now ls \"$appname\" | while read line; do if echo \"$line\" | grep \""$appname"-\" > /dev/null; then set $line; echo \"$2\"; break; fi; done;" | xargs -I@ now ln @ \"$appname\" \
&& now rm "$appname" --safe --yes
}
fn $1 | true |
fcd1daf5728cfe1d6671f10c5f7edb5ff00cbf8d | Shell | c2theg/srvBuilds | /install_LEMP-php7.4.sh | UTF-8 | 10,635 | 2.828125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# If you update this from Windows, using Notepad ++, do the following:
# sudo apt-get -y install dos2unix
# dos2unix <FILE>
# chmod u+x <FILE>
#
clear
echo "
_____ _ _ _ _
| |___ ___ ___| |_ ___ _| | | |_ _ _ |_| ... | true |
95526d83ff39dadb15c0a29c6cb82d2d378596d2 | Shell | SUSE/scf | /src/scf-release/jobs/authorize-internal-ca/templates/pre-start.erb | UTF-8 | 1,868 | 4.03125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash -e
# This installs certificate authorities:
# - if available, the internal CA used to identify the components in the cluster
# - if available, the CA used for UAA
# This file is (sometimes) sourced as an environment script, as it is required by
# `fetch_uaa_verification_key.sh`, which itself must be an en... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.