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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
be8c64d602d462ab04f9cd4d743be0abcce59f57 | Shell | ish-xyz/easyxen | /src/cmd/present.sh | UTF-8 | 16,485 | 3.328125 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | function present() {
##Create VM and setup as the desidered state. (Non-Idempotent)
##
#Initialize variables
retry_temptative=0
count=0
vgflag="vgroot"
mount_point="/mnt/$vm_name";
mount_dev="/dev/${vgflag}/root";
tmp_pass="easyxen${RANDOM}${RANDOM}${RANDOM}";
function ansible_usage() {
... | true |
8604c2be10a6817f644f229be6fe4aab18df8af8 | Shell | prabhu66/Azure-IoT-PCS-RMS | /auth/scripts/env-vars-check | UTF-8 | 279 | 2.546875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
if [[ -z "$PCS_AUTH_ISSUER" ]]; then
echo "Error: the PCS_AUTH_ISSUER environment variable is not defined."
exit -1
fi
if [[ -z "$PCS_AUTH_AUDIENCE" ]]; then
echo "Error: the PCS_AUTH_AUDIENCE environment variable is not defined."
exit -1
fi | true |
066b5390f6bdba590eea46a104176973362a01fe | Shell | mcr/nmh | /test/format/test-functions | UTF-8 | 1,188 | 3.5625 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
#
# Test of various (well, start with one) function escapes.
set -e
if test -z "${MH_OBJ_DIR}"; then
srcdir=`dirname "$0"`/../..
MH_OBJ_DIR=`cd "$srcdir" && pwd`; export MH_OBJ_DIR
fi
. "$MH_OBJ_DIR/test/common.sh"
setup_test
expected="$MH_TEST_DIR/test-functions$$.expected"
actual="$MH_TEST_DIR/t... | true |
831f6e80cb8ffb2225c8910762bc453cdb298325 | Shell | jdegges/gumstix-pip-oe | /gumstix-oe/org.openembedded.snapshot/packages/initrdscripts/initramfs-jffs2/jffs2boot.sh | UTF-8 | 346 | 2.84375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
echo "Starting initrd boot..."
mkdir /proc
mount -t proc proc /proc
modprobe mtdram total_size=25088 erase_size=256
sleep 1
ID=`grep "mtdram test device" /proc/mtd | cut -d: -f1| cut -b4-`
cat /initrd.jffs2 >/dev/mtdblock$ID
mkdir /mnt
mount -t jffs2 /dev/mtdblock$ID /mnt
cd /mnt
exec switch_root -c /de... | true |
cd63147ca81f5fdeb97fe02e99ca940b5a9b6cd7 | Shell | patrisampe/Books-AI | /CrearClp.sh | UTF-8 | 1,122 | 3.40625 | 3 | [] | no_license | usage() {
echo "CrearClp.sh [destino]"
}
CLP=Libros.clp
if [ $# -eq 1 ]; then
CLP=$1
fi
cp $CLP $CLP.save
echo ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;" > $CLP
echo ";; Practica 2 IA ;;" >> $CLP
echo ";; Por: ;;" >> $CLP
echo ";; * Octavi Pascual ;;" >> $CLP
echo... | true |
5e16b85af7f3ede8cc28be4b308341c587968cfd | Shell | victorreyesh/hiphop-php | /hphp/parser/make-parser.sh | UTF-8 | 1,977 | 3.328125 | 3 | [
"PHP-3.01",
"Zend-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/sh
OUTFILE=${INSTALL_DIR}/hphp.tab.cpp
OUTHEADER=${INSTALL_DIR}/hphp.tab.hpp
EXTERNAL_TOOLS_ROOT=`readlink -f ${FBCODE_DIR}/third-party/centos5.2-native/`
export BISON_PKGDATADIR=\
${EXTERNAL_TOOLS_ROOT}/bison/bison-2.4.1/da39a3e/share/bison
${EXTERNAL_TOOLS_ROOT}/bison/bison-2.4.1/da39a3e/bin/bison \
-pC... | true |
337a477b9739c634a9ff9ffbc3e2b06f7045e188 | Shell | MeAdarshMishra/Shell_Programs | /even&odd.sh | UTF-8 | 128 | 3.515625 | 4 | [] | no_license | echo -n "Enter a number"
read n
rem=$(($n % 2))
if [ $rem -eq 0 ]
then
echo "$n is even number"
else
echo "$n is odd number"
fi
| true |
43c91e25c0fb25a6ae0a3cc4fd91fd189eacbcdf | Shell | Yeasayer/Random-Exercises | /Shell/lazygit.sh | UTF-8 | 337 | 3.3125 | 3 | [] | no_license | #!/bin/sh
COMMIT_MESSAGE=$1
TEST_VALUE=input
git add .
if ["$COMMIT_MESSAGE" == ""]
then
echo "Okay what do you want as your commit message?\n"
read input
COMMIT_MESSAGE=$input
echo $COMMIT_MESSAGE
git commit -m "$COMMIT_MESSAGE"
fi
echo "Okay, we're pushing to master!\n"
git push origin master
echo "AWESOME! We... | true |
f5ddb0111a023bf08c31f06f8ed0797414e39035 | Shell | cms-sw/cmssw | /FastSimulation/Validation/test/checkTiming.sh | UTF-8 | 1,487 | 3.078125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# First, enable timing report and message logger
if [ -f $CMSSW_BASE/src/FastSimulation/Configuration/test/IntegrationTestWithHLT_cfg.py ]
then
cp $CMSSW_BASE/src/FastSimulation/Configuration/test/IntegrationTestWithHLT_cfg.py IntegrationTestWithHLTWithTiming_cfg.py
echo "Taking IntegrationTestWithH... | true |
118db13f78b892d22db69ab8ad9e8b0be96fb937 | Shell | Kalabaza/gedit-advanced-find | /src/install.sh | UTF-8 | 2,120 | 3.53125 | 4 | [] | no_license | #!/bin/bash
# plugin name
PLUGIN_NAME="advancedfind"
APP_NAME="advancedfind"
# plugin install path for all user
PLUGIN_PATH_ALL=/usr/lib/gedit/plugins
# plugin install path for current user
PLUGIN_PATH_USER=~/.local/share/gedit/plugins
# plugin configuarion path for current user
CONFIG_PATH_USER=~/.local/share/gedit/p... | true |
971ae412689c8618077a4811290da0753bad26a8 | Shell | baby636/dotfiles | /dot_local/dotfiles.relaxdiego.com/executable_vim_plugin_lib | UTF-8 | 404 | 3.6875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
export dotvim_path=~/.vim
export bundle_path=$dotvim_path/bundle
ensure_plugin () {
plugin_name=$1
repo_url=$2
plugin_path=$bundle_path/$plugin_name
if ! [ -d $plugin_path ]; then
echo "Installing plugin: $plugin_name"
git clone $repo_url $plugin_path
el... | true |
4fdec5f6c11c70078921d6b5cb381a0e822aa9ee | Shell | shijingkun886/home_router_MGMT | /scripts/offServer.sh | UTF-8 | 650 | 2.78125 | 3 | [] | no_license | #!/bin/sh -e
. $(dirname $0)/common/_log
export PATH=$PATH:/opt/local/bin
GEN8ServerIP="10.0.0.2"
PLAYBOOK_HOME="/mnt/sda1/MGMT/synctool"
#power off.
cd $(dirname $0)
log "shutting down VMs"
#cp /tmp/mnt/sda2/Monitor/MGMT/id_rsa /tmp/home/root/.ssh
cd $PLAYBOOK_HOME
log "shutdown dsm result, $(PATH=/opt/bin:$P... | true |
3d66df92920cbdaaf0201f518c72aee649948f6e | Shell | manoharramarao/bashScripts | /kafka_scripts/delete_topic.sh | UTF-8 | 461 | 3.171875 | 3 | [] | no_license | #!/bin/bash
ZK_HOST="localhost"
ZK_PORT="2181"
topic=""
echo "Deleting kafka topics"
echo "--------------------"
read -p "enter zookeeper's host [$ZK_HOST]: " zk_host
zk_host="${zk_host:-$ZK_HOST}"
read -p "enter zookpper's port [$ZK_PORT]: " zk_port
zk_port="${zk_port:-$ZK_PORT}"
while [ -z "$topic" ]; do
read -p... | true |
719ac99c8aa61df63cf772c92e2b757db938007e | Shell | Tech-XCorp/bilder | /packages/adolc.sh | UTF-8 | 1,716 | 3.1875 | 3 | [] | no_license | #!/bin/sh
######################################################################
#
# @file adolc.sh
#
# @brief Version and build information for adolc
#
# @version $Rev$ $Date$
#
# Copyright © 2012-2017, Tech-X Corporation, Boulder, CO.
# See LICENSE file (EclipseLicense.txt) for conditions of use.
#
########... | true |
5b0c8c7f8d52b243f1bd0b070b6750e662ed5d33 | Shell | AlexeyPogorelov/config | /sh/performance.sh | UTF-8 | 664 | 2.828125 | 3 | [] | no_license | #!/bin/bash
while [ "$select" != "mute" -a "$select" != "unmute" -a "$select" != "powersave" -a "$select" != "performance" ];
do
select=$(echo -e 'mute\nunmute\npowersave\nperformance' | dmenu -nb '#1d2021' -nf '#928374' -sb '#d79921' -sf '#1d2021' -fn 'monospace-20' -i -l 180 -p "Performance")
[ -z "$selec... | true |
ad2e04a453c0ac4c550f22d01eccbc7199576484 | Shell | moraisgabri/trybe-exercises | /intro_webDev/my-shell-scripts/exercicio4.sh | UTF-8 | 265 | 3.046875 | 3 | [] | no_license | #!/bin/bash
ARQUIVO="/home/moraisgabri/unix_tests/shellscriptests/file.txt"
if [ -e "$ARQUIVO" ] ; then
echo "O caminho $ARQUIVO está habilitado"
fi
if [ -w "$ARQUIVO" ] ; then
echo "Você tem permissão para editar"
else
echo "Você NÃO foi autorizado a editar" | true |
e016eba39b2cf057c1045a6ed070aa60d62021e0 | Shell | GENERALGUBERNATOR1/1000G-integration | /scripts/union/20130723_phase3_wg/union.snps.construction.zsh | UTF-8 | 1,395 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/zsh
#
# construction of union snps
#
# 2 phases, union generation then annotation of SNPs
# particular importance is the cleaning process
mkdir -p /d2/data/1000G/phaseIII/union/20130723_phase3_wg/chroms ; echo $(seq 1 22) X Y | tr ' ' '\n' | parallel -j 10 'zcat chroms/{}.snps.vcf.gz | vcfbreakmulti | vcfnoNs |... | true |
912aec70252478c104647db974bb7f70ead90204 | Shell | aaronjorbin/homedir | /install-mac.sh | UTF-8 | 747 | 2.875 | 3 | [] | no_license |
# Install oh-my-zsh
if [ ! -d "~/.oh-my-zsh" ]; then
sh -c "$(wget -O- https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)";
fi
#
brew install python
pip install powerline-status
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
# Setup ... | true |
de1eca12a78f3810f38e625393072ba65a5b89ce | Shell | sld/dotfiles | /zsh/.zshrc | UTF-8 | 1,326 | 2.515625 | 3 | [] | no_license | export ZSH=$HOME/dotfiles/oh-my-zsh
export CUSTOM_ZSH=$HOME/dotfiles/zsh
export EDITOR='subl -w'
export PATH="/usr/local/bin:$PATH"
# Setting for the new UTF-8 terminal support in Lion
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
ZSH_THEME="miloshadzic"
plugins=(git ruby rails rvm osx sublime
br... | true |
cd2c0a782988b1db35040cd4760012f910175e2b | Shell | gwarf/dotfiles | /zsh/deprecated/zlogin | UTF-8 | 545 | 2.796875 | 3 | [
"WTFPL"
] | permissive | # ~/.zlogin
# display system informations
# uname -a
# uptime
# Display tasks
if $(type task &> /dev/null); then
printf '\n'
task due today
fi
# Display reminds
# if $(type remind &> /dev/null); then
# printf '\n'
# remind -f ~/.reminders
# fi
# Print Google calendar agenda
if (( $+commands[gcalcli] )); the... | true |
e0addd6fabdacb8a14de59a39f903ff34537d320 | Shell | microsoft/accessibility-insights-service | /packages/resource-deployment/scripts/deploy-e2e-test-site.sh | UTF-8 | 3,106 | 3.9375 | 4 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | #!/bin/bash
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
# shellcheck disable=SC1090
set -eo pipefail
defaultSiteContentFolder="${0%/*}/../../../e2e-test-site/dist/site-content"
defaultConfigFileFolder="${0%/*}/../runtime-config"
exitWithUsageInfo() {
echo "
Usag... | true |
18bddcd37dbd4fdf702cf0d1d0b822d2db67894c | Shell | chelroot/git_ch | /campic/mybash/dodo | UTF-8 | 1,789 | 2.546875 | 3 | [] | no_license | #!/bin/bash
for i in vova3-2 vova3-3
do
ls /home/campic/web/wa-data/public/campic/cams/$i > /var/www/html/"$i"n.html
y=`head -1 /var/www/html/"$i"n.html`
ls /home/campic/web/wa-data/public/campic/cams/$i/$y | sort -r > /var/www/html/"$i"d1.html
head -1 /var/www/html/"$i"d1.html > /var/www/html/"$i"d.html
j... | true |
9c6d9f7f3045167d608366db98f805ded1729981 | Shell | rainskript/skriptimine | /praks9/yl2.sh | UTF-8 | 274 | 2.703125 | 3 | [] | no_license | #!/bin/bash
#
#skript mis väljastab read ja tärnid
echo -n "sisesta ridade arv: "; read rida
echo -n "sisesta tärnide arv: "; read tarn
read tärnid
for(( a=1; a <= $rida; a++ ))
do
echo -n $a". "
for (( b = 1; b <=$tarn; b++ ))
do
echo -n "*"
done
echo ""
done
#
#lõpp
| true |
d2dc7c0c4c863d4a4c2bbb9a04b08addc3646a0b | Shell | Kypert/mj_dots | /.tmux/sessions/fireup.sh | UTF-8 | 922 | 2.828125 | 3 | [] | no_license | #!/bin/bash
# Create the basic tmux structure, used after a reboot
# Simply run following to attach:
# tmux $TMUX_ADDITIONAL_OPTS attach -t main
# Make sure we have /tmp/$USER since that is where I will put things...
mkdir -p "/tmp/$USER"
# Repo#1
tmux new-session -s work1 -d
~/.tmux/layouts/repo.sh -1 "/home/$US... | true |
09dab6d4c84954ead5dd27fb570c2275b2b9296e | Shell | JacopKane/NOD-bash | /nod/python.bash | UTF-8 | 409 | 2.953125 | 3 | [] | no_license | #!/usr/bin/env bash
export PATH="/usr/local/share/python:$PATH"
export PYTHONPATH="python -c 'import sys;print \":\".join(sys.path)'"
function nod-pipUpdate() {
pip install --upgrade pip &&
pip install --upgrade setuptools &&
pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs pip install --upgrade --allow... | true |
7dcd5286fabff31938a1a7084e6601543efe003b | Shell | epikjjh/Embedded-System | /s5pc1xx/staging/i686-linux/usr/bin/lddtree.sh | UTF-8 | 2,443 | 4.1875 | 4 | [] | no_license | #!/bin/bash
argv0=${0##*/}
usage() {
cat <<-EOF
Display ELF dependencies as a tree
Usage: ${argv0} [options] <ELF file[s]>
Options:
-a Show all duplicated dependencies
-x Run with debugging
-h Show this help output
EOF
exit ${1:-0}
}
SHOW_ALL=false
SET_X=false
([[ $1 == "" ]] || [[ $1 == --he... | true |
5774e632a743a58c8beec29c268f4edbde341bc8 | Shell | vishvpatel30/OS-ShellScript | /case.sh | UTF-8 | 125 | 2.78125 | 3 | [] | no_license | echo "Enter choice"
read choice
case "$choice" in
1) ls -l ;;
2) who ;;
3) cat > file1.c ;;
*) echo "choice is wrong"
esac
| true |
6f6b97cb6b7ae8dea67a3f2a3a6c15b804f1da09 | Shell | mattaho/system-config | /bash/.bash_profile | UTF-8 | 1,021 | 3.015625 | 3 | [] | no_license | source ~/.bashrc
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
# Start ssh agent to avoid retyping keys.
SSH_ENV="$HOME/.ssh/environment"
function start_agent {
echo "Initialising new SSH agent..."
if [ -f /usr/local/bin/ssh-agent ]
then
/usr/local/bin/ssh-agent | sed 's/^echo/#echo/' > "${S... | true |
a82a2669cd9e32d177ec6eee2057494fa0b92bd1 | Shell | djoreilly/cOS-toolkit | /packages/installer/deploy.sh | UTF-8 | 6,964 | 3.671875 | 4 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
source /usr/lib/cos/functions.sh
CHANNEL_UPGRADES="${CHANNEL_UPGRADES:-true}"
FORCE="${FORCE:-false}"
# 1. Identify active/passive partitions
# 2. Deploy active and passive to the same image
find_partitions() {
STATE=$(blkid -L COS_STATE || true)
if [ -z "$STATE" ]; then
echo "Sta... | true |
a0af75813ca526b3c30743e3fd767c9f398bd0f4 | Shell | gopalrajpurohit/bashutils | /bin/gitutils/rename_branch.sh | UTF-8 | 231 | 2.65625 | 3 | [] | no_license | #!/bin/bash
OLD_BRANCH=$1
NEW_BRANCH=$2
echo $NEW_BRANCH
## Rename it locally
git branch -m $OLD_BRANCH $NEW_BRANCH && git push origin :$OLD_BRANCH && git push origin $NEW_BRANCH && git branch -u origin/$NEW_BRANCH $NEW_BRANCH
| true |
8b41c07fb94ac379a5208b9d3acbecd7c2e89041 | Shell | zhanght021/segment-any-moving | /env.sh | UTF-8 | 922 | 3.78125 | 4 | [] | no_license | # Usage: . ./env.sh (activate|deactivate)
# Hacky script to add/remove this directory to PYTHONPATH.
function usage() {
echo "Usage:"
echo ". ./env.sh (activate|deactivate)"
}
if [[ $_ == $0 ]] ; then
echo "This script needs to be sourced."
usage
exit 1
fi
if [[ "$#" != 1 ]] ; then
usage
... | true |
90d41a2d5ff927e03aa0f6613d4e48242bd0da0d | Shell | autopkg/foigus-recipes | /Evolphin/Reference Evolphin Zoom Scripts/Fixed Scripts/722_preinstall_modified | UTF-8 | 17,462 | 3.4375 | 3 | [] | no_license | #!/bin/sh
SCRIPT_PATH="`dirname "$0"`"
PACKAGE_PATH="$1"
TARGET_LOCATION="$2"
TARGET_VOL="$3"
NO_AIR=$4
FAILED_TO_STOP_ZOOM_SERVER=50
FAILED_TO_STOP_PREVIEW_SERVER=51
echo "Script path: $SCRIPT_PATH";
echo "Package location: $PACKAGE_PATH";
echo "Target location:$TARGET_LOCATION";
echo "Target volume: $TARGET_VOL... | true |
2d45e580c30f81a49e7c5a46263ea0d04a9d03c8 | Shell | lbtanh/recommender_api | /watch_list/wl_run_server.sh | UTF-8 | 843 | 3.25 | 3 | [] | no_license | #!/bin/sh
# gunicorn -w 10 -b 0.0.0.0:5001 wl_run_server:app
PIDFILE=run/gunicorn.pid
LOGFILE=logs/gunicorn.log
GUNICORN_PORT=${GUNICORN_PORT:-5001}
GUNICORN_HOST=${GUNICORN_HOST:-0.0.0.0}
#VENV=${VENV:-/home/anh_lbt}
NUM_GUNICORN_WORKERS=${NUM_GUNICORN_WORKERS:-20}
TIMEOUT=120
cd $(dirname $0)
#source ${VENV}/bin/... | true |
a388c20e975953d2ca3b819d7219c7dfee9afbef | Shell | sealyun/kernel-ml-aufs | /scripts/build_ml_kernel.sh | UTF-8 | 5,105 | 4.1875 | 4 | [] | no_license | #!/usr/bin/env bash
# rhel-aufs-kernel builder
# This script automates building out the latest kernel-ml package with AUFS support
# Start by seeing how many command line arguments we were passed
for i in "$@"; do
case $i in
-v=*|--version=*)
VERSION="${i#*=}"
;;
-a=*|--arch=*)
ARCH="${i#*=}"
... | true |
5482d0a06e767869b11640dd8c78fd22af5fffd2 | Shell | shunsunsun/ftp.kaist.ac.kr | /bin/maintain-sync | UTF-8 | 1,449 | 3.703125 | 4 | [] | no_license | #!/usr/bin/env bash
# maintain-sync -- Trigger regular sync
#
# Created: 2006-01-26
#
# Written by Jaeho Shin <netj@sparcs.org>.
# (C) 2006, Geoul Project. (http://ftp.kaist.ac.kr/geoul)
set -e
. /mirror/lib/geoul.sh
system_not_degraded
running_as_mirror_admin "$@"
# parse arguments
force=false
while getopts "f" o;... | true |
8287efe32a0d21ca896058490694effb00610667 | Shell | plattfot/rgr-aur | /PKGBUILD | UTF-8 | 1,487 | 2.59375 | 3 | [] | no_license | # Maintainer: Fredrik Salomonsson <plattfot@gmail.com>
# Based on hgsreceiver-bin.git AUR
_wacomEnabled=no
pkgname=rgr
pkgver=7.7.0
pkgrel=1
epoch=
pkgdesc="HP Remote Graphics Software, receiver only"
arch=('x86_64')
url="http://www8.hp.com/us/en/campaigns/workstations/remote-graphics-software.html"
license=('custom')
... | true |
62979ad415feb333e30b5d803cd5dd0c459bae46 | Shell | Validators/Polkadot-Clustered-Nodes | /Scripts/update-polkadot.sh | UTF-8 | 597 | 3.125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -euo pipefail
echo "Changing to home directory..."
cd /home
echo "Stopping polkadot-node service..."
sudo systemctl stop polkadot-node
echo "Pulling newest polkadot source..."
cd polkadot
git pull
#In case we are still in terminal first time.
echo "Adding rust path manually (to avoid having to re-lo... | true |
a63c3c4f6d6320980f48323ecd15366c58940dec | Shell | xsurfer/AutonomicManagerScripts | /scripts/slave/nodeStart.sh | UTF-8 | 2,596 | 3.484375 | 3 | [] | no_license | #!/bin/bash
##################################################################################
# --> THIS SCRIPT SHOULD BE ON THE VM IMAGE AND IT'S CALLED BY /etc/rc.local <-- #
# This script should be executed by the VM during the bootstrap and it has to #
# download and extract all the binaries and configuration f... | true |
020c8d246e17450f0f2e6fd1b47a0d1e9e569ce9 | Shell | erikvanmulligen/BrainAPI | /gettoken.sh | UTF-8 | 585 | 3.3125 | 3 | [] | no_license | #!/bin/bash
function jsonval {
temp=`echo $json | sed 's/\\\\\//\//g' | sed 's/[{}]//g' | awk -v k="text" '{n=split($0,a,","); for (i=1; i<=n; i++) print a[i]}' | sed 's/\"\:\"/\|/g' | sed 's/[\,]/ /g' | sed 's/\"//g' | grep -w $prop`
echo ${temp##*|}
}
if [ -z "$1" ]
then
echo "No argument supplied"
... | true |
ffb295d724a15102be00a0046ad9bfd6837cf8df | Shell | Ernestico98/gan_steerability | /resources/download_resources.sh | UTF-8 | 942 | 2.75 | 3 | [] | no_license | #!/bin/bash
dir=$(dirname "$0")
echo Downloading resources to directory ... $dir
current=$(pwd)
# object detection model
modelfile=ssd_mobilenet_v1_coco_2017_11_17.tar.gz
modelpath=http://download.tensorflow.org/models/object_detection/$modelfile
wget -P $dir $modelpath
tar -xvzf $dir/$modelfile -C $dir
# fid script
... | true |
40d6b966855bcd71564471c03c995ce98b7ba4c4 | Shell | SandyWalsh/stacktach-sandbox | /build.sh | UTF-8 | 1,193 | 3.15625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
echo "StackTach dev env build script"
SOURCE_DIR=git
VENV_DIR=.venv
PIPELINE_ENGINE=winchester
if [[ -f local.sh ]]; then
source local.sh
fi
if [[ ! -d "$SOURCE_DIR" ]]; then
mkdir $SOURCE_DIR
fi
if [[ ! -d "$VENV_DIR" ]]; then
virtualenv $VENV_DIR
fi
cd $SOURCE_DIR
for file in shoebox simport... | true |
3e8c645da737f3b0b384b3edd84a350255e40104 | Shell | jsknto/scripts | /delete_log_backups | UTF-8 | 502 | 2.9375 | 3 | [] | no_license | #!/bin/sh
#
# Enlaces y Comunicaciones del Sureste, S.A. de C.V.
# Derechos Reservados 2002-2008
#
# Descripcion: Depura carpeta de respaldos de los logs de SQUID
# Version: 1.0
# Actualizacion: 23 de Agosto de 2008
#
DEST_DIR=/home/robot
RESP_DIR=/opt/respaldos_bitacoras_EE
LOG_FILE=/var/log/delete_log_backups
TODAY... | true |
6753e3e4e32d3401b5af0ceb674b3d28b9c27d1f | Shell | chenyilin0110/IntrusionDetection | /script/KDD99/Naive_Bayes.sh | UTF-8 | 839 | 2.9375 | 3 | [] | no_license | #!/bin/bash
train="train"
test="test"
END=10
max=`expr $END / 2`
# DAE 2 categories
outputLayer="2"
for i in $(seq 1 $END);
do
path="src/Naive_Bayes_KDD99/result/experimental_result_"$outputLayer".txt"
temp=`expr $i % $max`
if [ "$temp" = "0" ]
then
python3 src/Naive_Bayes_KDD99/main.py $train... | true |
5cf7e457bd4c4141897a05b24e5ad17d73aee9ad | Shell | joeytwiddle/jsh | /code/shellscript/logtimer/datediffeachline.sh | UTF-8 | 1,104 | 4.03125 | 4 | [] | no_license | #!/bin/sh
## Sometimes (e.g. when using datediff to determine slowest processes from a log) it's preferable
## to diaply the time taken beside (or at the end of) the last line, rather than the line reached.
## TODO: make an option for this
LAST_LINE_SECONDS=
export FORMAT="%s%N"
#if [ -n "$*" ]
#then "$@"
#else cat... | true |
a4e94eb7f43937a77a349581cd8893de8486918c | Shell | ddiannae/tcga-rawcounts-comparison | /start.sh | UTF-8 | 519 | 2.734375 | 3 | [] | no_license | #!/bin/bash
LEGACYCANCER="legacy/cancer"
NEWCANCER="new/cancer"
LEGACYHEALTHY="legacy/healthy"
NEWHEALTHY="new/healthy"
find $NEWCANCER -name '*.gz' -exec mv '{}' $NEWCANCER \;
find $NEWHEALTHY -name '*.gz' -exec mv '{}' $NEWHEALTHY \;
find . -type d -empty -delete
find . -name '*.gz' -exec gunzip '{}' \;
find . -n... | true |
3a0d52f53740fa2e46ac7fea20d9c8e1f6ade52e | Shell | alexdelgado/nodejs-aws-dashboard | /deploy.sh | UTF-8 | 960 | 2.953125 | 3 | [] | no_license | #!/bin/bash
# ==========
# Install Nginx
#
# @url https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-16-04
# ==========
apt-get update
apt-get install nginx
# ==========
# Install NodeJs
#
# @url https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-pro... | true |
3c377b811fe2a6aaa26ff51819653350093e561a | Shell | proof-by-accident/clear_sky_dictionary | /code/bash/combine_gifs.sh | UTF-8 | 172 | 3.109375 | 3 | [] | no_license | #!/bin/bash
# Scripts takes two arguments, first is directory of GIFs to combine and second is name of output GIF
LIST=`ls -v $1`
cd $1
echo $LIST
convert $LIST $2
cd ..
| true |
3675d155d4aa6dac2132f62c53aae148112926f0 | Shell | debovema/dojo-kubernetes-prometheus | /scripts/deploy-redis.sh | UTF-8 | 504 | 3.625 | 4 | [] | no_license | #! /usr/bin/env bash
set -e
# Helpers for readability.
bold=$(tput bold)
normal=$(tput sgr0)
function _info() {
echo "${bold}${1}${normal}"
}
# Run script from directory where the script is stored.
cd "$( dirname "${BASH_SOURCE[0]}" )"
# Deploy Redis.
_info "🏓 Deploying Redis..."
helm repo add bitnami https://... | true |
012ad7c9a4ef3cbf3d5bc30e4aa581a5c6cbfdcd | Shell | robkorv/webpack-demo | /script/build | UTF-8 | 308 | 3.328125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# script/build: Build a distribution
set -e
cd "$(dirname "$0")/.."
ECHO_PREPEND="${0##*/} ==>"
echo "$ECHO_PREPEND START"
# if [ -d "dist" ]; then
# echo "$ECHO_PREPEND removing dist dir"
# rm -Rf dist
# fi
echo "$ECHO_PREPEND building dist"
npm run build
echo "$ECHO_PREPEND END"
| true |
8075184526e2f0af83beaf3b85d6afd42578ac4e | Shell | NYU-CDS-Capstone-Project/Voyagers | /code/jets/shell-scripts/go.sh | UTF-8 | 565 | 2.984375 | 3 | [
"BSD-3-Clause"
] | permissive |
while [ "$1" != "" ]; do
case $1 in
-m | --model_type ) shift
model_type=$1
shift;;
esac
done
###-s | --seed ) shift
### base_seed=$1
### shift;;
printf "Launching a job on each G... | true |
b3d4b1e3db573e97e2f0389d49497f7013aeaab5 | Shell | hctwgl/spider-1 | /crawler-old/.svn/pristine/b3/b3d4b1e3db573e97e2f0389d49497f7013aeaab5.svn-base | UTF-8 | 263 | 3.125 | 3 | [] | no_license | #!/bin/sh
ps_num=`ps -aef|grep ProductImporter.jar|grep -v grep|wc -l`
if [ $ps_num -eq 0 ];then
echo "importer is not running."
else
pid=`ps -aef|grep ProductImporter.jar|grep -v grep|awk '{print $2}'`
kill $pid
echo "importer is stopped."
fi
| true |
d4f36d0edbe55beec577adc2ab6f160a5c80e276 | Shell | rcarreon/robc_main | /modules/nodejs/templates/nodejs-init.erb | UTF-8 | 1,814 | 4.0625 | 4 | [] | no_license | #!/bin/sh
#
#
# nodejs-<%= nodeappname %> This shell script takes care of starting and stopping
# nodejs-<%= nodeappname %>.
#
# chkconfig: - 80 30
# description: nodejs is server-side javascript.
# processname: node
# config: /etc/sysconfig/nodejs
# Source function library
if [ -f /etc/rc.d/in... | true |
39a1e02f5f7b23ed8fea71855dc76637e5cde38f | Shell | joe-hj/incubator-eagle | /eagle-server-assembly/src/main/bin/eagle-server.sh | UTF-8 | 3,198 | 3.4375 | 3 | [
"Apache-2.0",
"MIT"
] | permissive | #!/bin/bash
# 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, Version 2.0
# (the "License"); you... | true |
59e38567e322a03628c65609078b5652f9793373 | Shell | tiehan/ampliconDIVider | /sh/primer_longfrag_whittle.sh | UTF-8 | 652 | 3.140625 | 3 | [] | no_license | #!/usr/bin/env bash
CUTOFF=$1
LONGFRAGBC=$2
INFASTQ=$3
OUTTAB=$4
source ~/.bashrc
awk -v n="${CUTOFF}" '{print substr($2,1,n)"\t"substr($3,1,n)}' ${LONGFRAGBC} \
> ${LONGFRAGBC}.2col
# Make a single column of long-fragment barcodes, and sort them to prep for a
# join
awk '{print $1"\n"$2}' ${LONGFRAGBC}.2col \
|... | true |
4f7fac15effa490db7780c0d70b3a0f9b4c8d365 | Shell | thefonseca/colabrtc | /install.sh | UTF-8 | 591 | 2.546875 | 3 | [] | no_license | #!/bin/bash
export DEBIAN_FRONTEND=noninteractive
echo 'Updating ffmpeg...'
# We need this to update ffmpeg to version 4.x
add-apt-repository -qy ppa:savoury1/ffmpeg4 > /dev/null 2>&1
apt-get -qq install ffmpeg < /dev/null > /dev/null
echo 'Installing dependencies...'
apt-get -qq install libavdevice-dev libavfilter-... | true |
11978bdf777656f6cfa9845b5c52710e71b573da | Shell | aur-archive/c2ffi-git | /PKGBUILD | UTF-8 | 835 | 2.90625 | 3 | [] | no_license | # Maintainer: Akshay Srinivasan <akshaysrinivasan@gmail.com>
# Modified from julia-git
_pkgname=c2ffi
pkgname=c2ffi-git
pkgver=r113.ef729d0
pkgrel=1
pkgdesc="This is a tool for extracting definitions from C, C++, and Objective C headers for use with foreign function call interfaces."
arch=('i686' 'x86_64')
url="https:... | true |
dc39b11aa2ac798906dd98a69d4e01495cd9f3a4 | Shell | thariq1211/bashprogramming | /LatihanShell/LatihanShell/simpleIO | UTF-8 | 796 | 3.171875 | 3 | [] | no_license | #!/bin/bash
#simpleIO
clear
echo "Aplikasi Menghitung Luas Bangun Datar";
echo -e "Pilih Bangun Datar\n1.Segitiga\n2.Persegi\n3.Lingkaran";
read -p "Pilihanmu (1-3): " opsi;
if [ $opsi -eq 1 ];
then
echo "Penghitungan Segitiga";
echo -n "Masukkan Besar Alas Segitiga:"
read alas
echo -n "Masukkan Tinggi Segitiga:"
read... | true |
bc0deb94e3adc14a44bcf58c41a9cf8c91807a30 | Shell | BU-CS-CE-528-2017/Cloud-DevOps-Resources | /testScripts_ubuntu14/slackMSG.sh | UTF-8 | 600 | 2.75 | 3 | [] | no_license | #!/bin/bash
source $DEPLOYMENT_HOME/deployment-properties.sh
#number of machines:
numVMs=$cons3rt_fap_deployment_numMachines
runID=$cons3rt_deploymentRun_id
numSlaves=$(($numVMs-1))
linkToVM=https://www.cons3rt.com/ui/#/runs/$runID
if [ $cons3rt_deploymentRun_virtRealm_type = AMAZON_WEB_SERVICES ]
then
cloudspace=AWS... | true |
7ce0a58429cf2c431645856418ad16b6f7dac5be | Shell | ODEX-TOS/packages | /double-conversion/repos/extra-x86_64/PKGBUILD | UTF-8 | 878 | 2.609375 | 3 | [
"GPL-1.0-or-later",
"MIT"
] | permissive | # Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
# Contributor: Joel Teichroeb <joel@teichroeb.net>
# Contributor: Jonas Heinrich <onny@project-insanity.org>
pkgname=double-conversion
pkgver=3.1.5
pkgrel=2
pkgdesc='Binary-decimal and decimal-binary routines for IEEE doubles'
arch=(x86_64)
url='https://github.co... | true |
b3dd8048ecf21e793acdd42fb786691a98e8ff02 | Shell | songaal/systom-web | /cors-server/start.sh | UTF-8 | 230 | 3.03125 | 3 | [] | no_license | #!/bin/bash
pid=`ps -ef|grep node|grep server|grep -v grep|awk '{print $2}'`
if [ ! -z "$pid" ] ; then
echo "kill $pid"
kill $pid || kill -9 $pid
sleep 2
fi
sleep 1
trap '' 1
node ./server.js >> ./output.log 2>&1 &
| true |
ec17c57f19f26ca9d8f14fc88e6fdf3abd822c09 | Shell | wfscheper/dotfiles | /update.sh | UTF-8 | 181 | 2.71875 | 3 | [] | no_license | #!/usr/bin/env bash
set -eu
packages="fish git nvim powerline python ssh tmux vim"
if [[ "$OSTYPE" == "darwin" ]]; then
packages="${packages} iterm"
fi
stow ${packages} "$@"
| true |
75fb98dd7346f17ddfc7f7bba530bb34b8e40a43 | Shell | pinuno-com-gh/pinunobox | /provisioner/provisioner.sh | UTF-8 | 2,592 | 3.296875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# ------------------------------------------------------------------------
# Copyright 2018 Pinuno (http://ww.pinuno.com.gh)
#
# 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
#
# h... | true |
34e49a22708c4dd8f3004c1e139d65c428d705ff | Shell | sandstorm-io/vagrant-spk | /release.sh | UTF-8 | 3,679 | 3.828125 | 4 | [
"Apache-2.0"
] | permissive | #! /bin/bash
set -euo pipefail
DRY_RUN="${DRY_RUN:-yes}"
function assert_github_token_and_release_tool_present() {
echo "**** Checking environment for GitHub token. ****"
export | grep -q GITHUB_TOKEN= || (echo "Aiee, you should set a GITHUB_TOKEN environment variable." ; exit 1)
echo "**** Checking path for G... | true |
accb17e2713c96ddd2f6cc3f2de4568eca5e978b | Shell | lovelyrrg51/yoga_ruby_project | /scripts/import_db_dump_to_docker.sh | UTF-8 | 348 | 2.609375 | 3 | [] | no_license | #!/bin/sh
DB_CONTAINER=db
DB_NAME=shivyog_development
DB_USER=postgres
LOCAL_DUMP_PATH="./tmp/development.dump"
docker-compose up -d "${DB_CONTAINER}"
sleep 15s
docker-compose exec -T "${DB_CONTAINER}" pg_restore --verbose -C --clean --no-acl --no-owner -U "${DB_USER}" -d "${DB_NAME}" < "${LOCAL_DUMP_PATH}"
docker-com... | true |
db61a60f5f9630a2ff87426c7c729a01ead762e8 | Shell | jakub-bao/dedupe-refresh-2 | /testData/install.sh | UTF-8 | 439 | 2.75 | 3 | [] | no_license | #!/usr/bin/bash
section(){
echo ----------------------------
echo $1
}
section Users \> Adding test user accounts
(cd users && ./persistUsers.py)
section Datastore \> add datastore settings
(cd dataStore && ./dataStore.py)
section CORS \> Whitelist localhost
(cd cors && ./cors.py)
section DataSets \> unlock da... | true |
d15c0292c5442e22939b15b3fd044d9ae1008b1f | Shell | fouqau4/networkManagement | /project1/ifInfo | UTF-8 | 954 | 3.09375 | 3 | [] | no_license | #!/bin/bash
ip=$1
get_value="snmpget -v2c -Oqv -c public $ip"
ifNum=`$get_value ifNumber.0`
for idx in $( seq 1 $ifNum )
do
echo -e '[interface description]:' `$get_value ifDescr.$idx`
echo -e '\t[Type]:' `$get_value ifType.$idx`
echo -e '\t[physical addr.]:' `$get_value ifPhysAddress.$idx`
echo -e '\t[MTU]:' `$g... | true |
46c7c36f98636ae81d2b03e7e0283150b7ec381a | Shell | ech1/shortcuts | /src/vimtraining.sh | UTF-8 | 7,655 | 3.390625 | 3 | [] | no_license | #!/bin/bash
GREEN="\033[0;32m"
NC="\033[0m"
# :%s/\[+\] /\$\{GREEN\} \[+\] \$\{NC\} /gi
# :%s/echo /printf /gi
# :%s/'/\"/gi
# :%s///gi
# :%s/\"$/ \\n\"/gi
# :%s/read step/sleep $1/gi
# :%s/sleep $1/sleep $1 ; printf \"\\n\"/gi
echo "DURATION: $1"
printf "${GREEN} [+] ${NC} VIM TRAINING ! Hit ENTER to go to the nex... | true |
996411c0ca23b842238076bef453be01e36a9f56 | Shell | ytulf/ScriptDebian8 | /config_rsync.sh | UTF-8 | 2,791 | 3.609375 | 4 | [] | no_license | echo "
#####################################################################
### Configuration de la sauvegarde avec le script config_rsync.sh ###
### par Thomas SAVIO ###
#####################################################################
"
### Changer les sources listes ... | true |
677301b295a6795e67ab7f6ae64808f4413eea35 | Shell | OmidTahouri/ahr | /examples/dc1-cluster-l-1.2.0.sh | UTF-8 | 777 | 2.671875 | 3 | [] | no_license | #
# collection of variables to define apigee hybrid topology and configuration
#
# cloud: GCP
# cluster: two node-pools, multi-zonal
#
#
# usage:
# source <env-conf-file>
BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. $BASEDIR/dc-all.sh
export REGION=us-east1
#
#
# Cluster
#
export CLUSTER_CO... | true |
822adad4f406a3fab45f45ff95f3595f632fa84d | Shell | rvermeulen/vmware-fusion-screen-recording-permission-fix | /fix-permission.sh | UTF-8 | 922 | 2.875 | 3 | [] | no_license | #!/bin/bash
set -e
sudo mv /Applications/VMware\ Fusion.app/Contents/MacOS/VMWare\ Fusion /Applications/VMware\ Fusion.app/Contents/MacOS/_VMWare\ Fusion
sudo cp inject.dylib /Applications/VMware\ Fusion.app/Contents/MacOS/
(
cat <<'HEREDOC'
#!/bin/bash
DYLD_INSERT_LIBRARIES=/Applications/VMware\ Fusion.app/Contents/... | true |
5834227f2641457a41170eeec3bf5be888c67e1a | Shell | jonathonmcmurray/reQ | /conda/dev/build.sh | UTF-8 | 172 | 2.65625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
PKG_NAME="req"
QHOME=$PREFIX/q
mkdir -p $QHOME/packages/${PKG_NAME}-${PKG_VERSION}
cp -r ${SRC_DIR}/${PKG_NAME}/* $QHOME/packages/${PKG_NAME}-${PKG_VERSION}/
| true |
7510e94ae75c1d1246d96697b2bab2de43888a18 | Shell | VSNanditha/BashProblems | /Average.sh | UTF-8 | 557 | 3.484375 | 3 | [] | no_license | # Given N integers, compute their average correct to three decimal places.
#
# Input Format
# The first line contains an integer, N.
# N lines follow, each containing a single integer.
#
# Output Format
# Display the average of the N integers, rounded off to three decimal places.
#
# Input Constraints
# * 1 <= N <= 500... | true |
aa5d77c93448a72c4cc9d3aa01284d031dabddc3 | Shell | AshisutoCV/scripts | /shield-setup.sh | UTF-8 | 99,212 | 3.15625 | 3 | [] | no_license | #!/bin/bash
####################
### K.K. Ashisuto
### VER=20230117b
####################
function usage() {
echo ""
echo "USAGE: $0 [--pre-use] [--deploy] [--get-custom-yaml] [--uninstall] [--delete-all] [--offline --registry <Registry IP>:<Port>]"
echo " --pre-use : 日本での正式リリースに先立ち、1バージョン先のものを... | true |
6b6c77d06875dbc6d85cd27e13a1a41d6dafa72d | Shell | opnfv/container4nfv | /src/vagrant/kubeadm_app/app_setup.sh | UTF-8 | 1,890 | 3.09375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/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
# dis... | true |
f200ac7bf563e900b19d936d5234888290432590 | Shell | coolzyz/dotfiles | /function.sh | UTF-8 | 1,461 | 3.453125 | 3 | [] | no_license | function cd() {
builtin cd "$@" && ls
}
cdl() {
cd "$@" && pwd
ls -al
}
# Reload the shell (i.e. invoke as a login shell)
alias reload="exec $SHELL -l"
#mkdir, cd into it
mkcd() {
mkdir -p "$*"
cd "$*"
}
ld() {
pushd .
cd ~
source .bashrc
popd
}
#=============== fzf ===================================... | true |
db8411f1deefc226a5f4801360b2635f12f98f49 | Shell | pwcazenave/misc-utils | /photogo.sh | UTF-8 | 1,004 | 4 | 4 | [] | no_license | #!/bin/bash
set -e
OLDIFS=$IFS
IFS="
"
# Copy media to their final resting place.
cwd=$(pwd)
prefix=${prefix:-/Volumes/Photos/}
if [ ! -d ${prefix} ]; then
echo "${prefix} does not appear to exist. Check your path and try again."
exit 1
fi
if [ $# -ne 0 ]; then
files=("$@")
else
files=($(ls *.JPG *.N... | true |
cf4142c08a18d0d17913ddccd0986b0dee75eaff | Shell | anthony-chu/build-tool | /test.sh | UTF-8 | 3,803 | 3.84375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
source bash-toolbox/init.sh
include array.util.ArrayUtil
include array.validator.ArrayValidator
include command.validator.CommandValidator
include file.name.util.FileNameUtil
include file.util.FileUtil
include git.util.GitUtil
include help.message.HelpMessage
include logger.Logger
include pr... | true |
17997062789f2a50bf82a55951cea7d0fa589ad6 | Shell | aaronlaver/docker-qgis-build | /bh-qgis.sh | UTF-8 | 1,348 | 2.734375 | 3 | [] | no_license | # Qgis build helper
#!/bin/bash
set -x
set -e
#BUILD_THREADS=${BUILD_THREADS:-8}
#WITH_DESKTOP=${WITH_DESKTOP:-ON}
#WITH_GRASS=${WITH_GRASS:-OFF}
#USE_OPENCL=${USE_OPENCL:-OFF}
#WITH_3D=${WITH_3D:-OFF}
#ENABLE_TESTS=${ENABLE_TESTS:-OFF}
mkdir -p /build/release
cd /build/release
if [ "$BUILD_DEBUG" == "1" ]; then
C... | true |
971f8a5eafc1f67f8bf3d498063e3a7451cdef7b | Shell | kybernetyk/bagfolio | /etcperf | UTF-8 | 226 | 2.515625 | 3 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env bash
BUY_PRICE="15.78343"
NOW_PRICE=`./etceur`
PERF=`echo "scale=8; (($NOW_PRICE / $BUY_PRICE) - 1.0) * 100.0" |bc`
printf "BUY: $%.2f\n" $BUY_PRICE
printf "NOW: $%.2f\n" $NOW_PRICE
printf "PRF: %.2f%%\n" $PERF
| true |
bc6303ad02ab0f39e23225e599315b6ee3e43c27 | Shell | liuhongbin1991/dtdream | /checkyaochiservice | UTF-8 | 1,209 | 3 | 3 | [] | no_license | #!/bin/sh
#****************************************************************#
# ScriptName: checkyaochiservice.sh
# Author: liuhb@dtdream.com
# Create Date: 2015-11-11 13:29
# Modify Author: $SHTERM_REAL_USER@alibaba-inc.com
# Modify Date: 2015-11-14 21:31
# Function: used for check all yaochi serivce except dubbo zook... | true |
7275d46e2ddf559e486d630d0a3393928a8c4599 | Shell | mattxlee/vimrc | /uninstall.sh | UTF-8 | 306 | 2.90625 | 3 | [] | no_license | #!/bin/sh
delpath() {
if [ -f $1 ]; then
rm $1
echo "Remove file $1"
fi
if [ -d $1 ]; then
rm -rf $1
echo "Remove dir $1"
fi
}
delpath ~/.vimrc
delpath ~/.vim
delpath ~/.clang-format
delpath ~/.editorconfig
delpath ~/.gitconfig
delpath ~/.gitignore_global
| true |
497542d0d02a9999ba3ca456e27aa1a1e09a75ea | Shell | ignitusboyone/homedir | /environments/linux-alias | UTF-8 | 227 | 2.90625 | 3 | [] | no_license | #!/usr/bin/env bash
alias vi="vim"
alias glg="git lg | tac | sed -e 's/\\\\/\\!SLASH\\!/g' -e 's/\\//\\\\/g' -e 's/\\!SLASH\\!/\\//g'"
if [ "$(uname)" == "Linux" ]; then
alias ls='ls -l --color'
else
alias ls="ls -G"
fi
| true |
4c26d1053fc09d6854270e34e1ed9e46547fa41c | Shell | eric-pine/mkto_shell | /get_all_segments.sh | UTF-8 | 1,951 | 3.921875 | 4 | [] | no_license | #!/bin/bash
source ./vars.sh
i=0
pauseafter=45
throttlewait=25
if [ $# -eq 0 ]
then
echo "Correct script usage: get_landingPages_content.sh <auth token>"
access_token=$(cat auth_token.json | awk -F'"' '{print $4}')
else
access_token=$1
fi
echo "Retreiving segmentation data..."
cat ${MARKETODATADIR}... | true |
efcb2259400f0a0855ec82cb25e0b5c78fdbf649 | Shell | ragingo/Notebook | /src/2020/Bash/math.sh | UTF-8 | 375 | 3.1875 | 3 | [] | no_license | #!/bin/bash
# ビットシフトを書くと、VSCode拡張のエラーでエディタが真っ赤になってしまう・・・
# ということで自分で用意した
# が、 ** 演算子があったから要らなくなった
pow() {
local b=$1
local e=$2
local r=1
for ((i=0; i<e; i++)) do
r=$((r * b))
done
echo "$r"
}
export -f pow
| true |
b796b452e7f907960588ede54e6ae88fe45f312f | Shell | nickelaway/utils | /bin/fsi-basedir.sh | UTF-8 | 205 | 3.171875 | 3 | [] | no_license | #!/bin/bash
## extract directory component from fsindex output
#| awk '{$1=""; print $0}'
while read -r line; do
[[ "$line" == "#*" ]] && continue
dirname "$(echo $line | awk '{$1=""; print $0}')"
done
| true |
74ae96bd0915a3e5ece2f62e749081cd055cdc29 | Shell | MrOyoung/practise | /May/shell_test/scan_path.sh | UTF-8 | 498 | 3.6875 | 4 | [] | no_license | #!/bin/sh
CWD=`pwd`;echo $CWD
cmd="./gpuinfo GPU3D"
function() {
filename=gpu$1d_profiling.txt
if [ ! -f ${filename} ];then
echo "not exist"
touch ${filename}
fi
if [ ! -w ${filename} ];then
echo "${gpu2d_file} can not write"
chmod u+w ${gpu2d_file} ;chmod g+w ${gpu2d_file}
fi
}
function 2
function... | true |
2c04b86ba4f97d9eefc2725a2e229be52b22218f | Shell | ubibazaar/api | /src/main/resources/ahab_installation_script.sh.mustache | UTF-8 | 616 | 2.8125 | 3 | [
"Apache-2.0"
] | permissive | # download the jar
wget https://github.com/ubibazaar/ahab/releases/download/v0.1/ubibazaar-ahab-0.1-jar-with-dependencies.jar
# prepare properties
echo "manager_id = {{manager_id}}" >> ahab.properties
echo "manager_key = {{manager_key}}" >> ahab.properties
# copy the jar and properties to a dir
mkdir /usr/local/ubiba... | true |
4a3cf7b1a0d94b713dffa554364deff3bc736e6d | Shell | benlvovsky/stockdatamine | /wekacommon.sh | UTF-8 | 3,064 | 3.25 | 3 | [] | no_license | #!/bin/bash
export CP=$WEKA_PATH:/home/ben/wekafiles/packages/LibSVM/LibSVM.jar:/home/ben/wekafiles/packages/LibSVM/lib/libsvm.jar:/media/bigdrive/dev/weka-3-7-13/weka.jar:$CLASSPATH
if [ -z "$wkCost" ]
then
wkCost=100
fi
if [ -z "$wkNu" ]
then
wkNu=0.55
fi
#calculates mode with crossvalidating, saves into models/$... | true |
834b767748b8092694d923288e8818a9d96fa4d5 | Shell | PontusTideman/webp2gif | /webp2gif | UTF-8 | 1,571 | 3.84375 | 4 | [] | no_license | #!/bin/bash
#title :webp2gif
#description :convert animated webp to gif
#author :elsonwx
#date :20200205
#usage :webp2gif input.webp output.gif
#==============================================================================
version=0.1
if [[ $1 == "-v" ]];then
echo "version:$v... | true |
6b0cc13c030317fd11386ceaf758db18eaf28fb6 | Shell | ammolitor/bin | /old-scripts/splice/pritunlsucks | UTF-8 | 523 | 2.796875 | 3 | [] | no_license | #!/bin/bash
if [ "${1}" == "stop" ]; then
sudo kill -2 $(ps aux | awk '/Pritunl.app/{print $2}')
sudo kill -9 $(ps aux | awk '/pritunl-service/{print $2}')
sudo launchctl unload /Library/LaunchAgents/com.pritunl.client.plist
sudo launchctl unload /Library/LaunchDaemons/com.pritunl.service.plist
elif [ ... | true |
7befd32c6a16c9f0c2d018db6dd787fce145207e | Shell | iwasakims/memo | /local-resourcemanagers-ha.sh | UTF-8 | 2,541 | 3.4375 | 3 | [] | no_license | #!/bin/sh
#/**
# * Copyright 2007 The Apache Software Foundation
# *
# * 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
# ... | true |
c7392ccfdbeea968d93d0ddae51354f0bc6049b5 | Shell | chuckberry/toolchain_for_nsj-poli | /scripts/global_graphics.sh | UTF-8 | 2,931 | 4.03125 | 4 | [] | no_license | #!/bin/bash
if [ x$INIT_SOURCE == "x" ]; then
echo "export INIT_SOURCE like environmento variable"
exit 1;
fi
if [ ! -f $INIT_SOURCE ]; then
echo "run init_env.sh to select what profile do you want"
exit 1;
fi
source $INIT_SOURCE
############### don't touch following lines
function print_usage {
cat - <<EOF
... | true |
cc1853199d8932c5d936acab77a19ce38e750fdc | Shell | WadeBarnes/moh-prime | /devops/OC4/tests.bash | UTF-8 | 2,650 | 2.859375 | 3 | [
"Apache-2.0"
] | permissive | export uuid=$(cat /proc/sys/kernel/random/uuid)
export SONAR_URL=http://sonar-backend-9c33a9-tools.apps.silver.devops.gov.bc.ca
function headless(){
export DISPLAY=:1.0
if [ ! -f /tmp/.X1-lock ]
then
Xvfb :1 -screen 0 1024x768x16 -ac &
fi
}
function dotnetTests()
{
# Clean out previous tes... | true |
1f5e0c5bbbbcb8b4916fa5741c882a6802c8f2ed | Shell | makker-nl/vagrant | /Stage/commonScripts/oracle/fmw/12.2.1.4/rcu/rcuSOA.sh | UTF-8 | 728 | 2.8125 | 3 | [] | no_license | #!/bin/bash
SCRIPTPATH=$(dirname $0)
#
. $SCRIPTPATH/../../../install_env.sh
. $SCRIPTPATH/../fmw12c_env.sh
. $SCRIPTPATH/../../../db/12.1/db12c_env.sh
#
echo Run rcu for SOA Infrastucture
export FMW_EXTRACT_HOME=$EXTRACT_HOME/FMW/$FMW_VER
export RCU_INSTALL_HOME=$FMW_EXTRACT_HOME/RCU
export RCU_SOA_RSP=rcuSOA.rsp
expo... | true |
1c48c77b376ef767bfe904a9d2d241b6dcebe636 | Shell | dollar349/dollar_script | /iCOMCMS/POINT.sh | UTF-8 | 373 | 3.03125 | 3 | [] | no_license | #/bin/sh
Link_list="src"
Link_list+=" meta-icom-cms"
Link_list+=" meta-avct-browser"
for Link in ${Link_list};
do
rm -rf $Link
ln -s $1/$Link $Link
done
#echo ${Link_list}
#SIPATH=~/_for_SourceInsight
#len=`expr length $0`
#len=`expr $len - 7`
# echo $len
#substr=`expr substr $0 5 $len`
#echo $substr
#rm -... | true |
a72ce7e5024d3df4e2c0e83c64c6f2dda4a926c2 | Shell | DaniThueler/kurs_20_21 | /17 Einführung in die Netzwerkanalyse/2 Daten besorgen/2 Politische Interessensgruppen/lobbywatch_export_neo4j.csv/neo4j_csv_lobbywatch_import.sh | UTF-8 | 2,388 | 2.75 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Neo4j sample import script for Lobbywatch data
# https://neo4j.com/docs/operations-manual/current/tools/import/
set -e
# MATCH (n) DETACH DELETE n
NEO4J_PATH="$HOME/.config/Neo4j Desktop/Application/neo4jDatabases/database-0b42a643-61a0-4b3f-8c54-4dfbe872d200/installation-3.5.6"
NEO4J_DB="$NEO4J_PATH... | true |
5533b6ab02dbf294b9c9bdb4b4ae68724e75bc02 | Shell | OleksandrChu/py-todo | /entrypoint.sh | UTF-8 | 159 | 2.65625 | 3 | [] | no_license | #!/bin/sh
echo "Waiting for postgres..."
while ! nc -z $SQL_HOST $SQL_PORT; do
sleep 1
done
echo "PostgreSQL started"
python manage.py migrate
exec "$@" | true |
f47a6980a0fafd752612fb5442ed7c4282f2512b | Shell | Rsvyas/avakas | /tests/integration/plain.bats | UTF-8 | 8,571 | 3.09375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bats
# -*- mode: Shell-script;bash -*-
load helper
setup() {
shared_setup
REPO_ORIGIN=$(fake_repo)
template_skeleton "$REPO_ORIGIN" plain "0.0.1"
origin_repo "$REPO_ORIGIN"
REPO=$(clone_repo $REPO_ORIGIN)
}
teardown() {
shared_teardown
}
@test "set a plain version" {
run a... | true |
7c8877356cb8f31fe9508246fe6080c03bba4b2b | Shell | kruglikdenis/ProjectManager | /up.sh | UTF-8 | 391 | 2.875 | 3 | [] | no_license | #!/bin/bash
# забираем изменения из git
git pull
if [ $? -eq 0 ]; then
# выполняем миграции
php app/console doctrine:migrations:migrate
if [ $? -eq 0 ]; then
# чистим кеш
php app/console cache:clear
php app/console cache:clear --env=prod
else
echo Migration fail
fi... | true |
821c5cd5d7acf70150e85d5ecad1258a156928aa | Shell | rasmuskr/isapi | /logging/delete_all_cache.sh | UTF-8 | 487 | 3.078125 | 3 | [] | no_license | #!/bin/bash
read -p "Are you sure you want to continue? <y/N> " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]
then
echo "okay lets delete that data"
# http://stackoverflow.com/questions/1537673/how-do-i-forward-parameters-to-other-command-in-bash-script
else
exit 0
fi
... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.