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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
7d693fdbe4d84aed4e90fdb3e72dedf6967b23d2 | Shell | jaidevs/bash | /forloop-4.sh | UTF-8 | 390 | 2.53125 | 3 | [] | no_license | #!/bin/bash
for i in `cat /root/data1.txt`
do
cd /root/jai/"$i"
ls > /root/data_"$i"
for j in `cat /root/data_"$i"`
do
cd /root/jai/"$i"/$j
ls > /root/data_"$i"_"$j"
for k in `cat /root/data_"$i"_"$j"`
do
mv /root/jai/"$i"/"$j"/"$k" /root/jai/"$i"/"$j"/"$i"-"$j"_"$k"
cp /root/jai/"$i"/"$j"/"$i"-"$j"_"$k" /... | true |
66c16b41d13efa4e9b99d99f6d65bfe5aa572d57 | Shell | kidmeier/sparforge | /run | UTF-8 | 376 | 2.859375 | 3 | [] | no_license | #!/bin/bash
sparforge=`dirname $0`
clojure_trunk=$CLOJURE_HOME/clojure.jar
# Buid class path; any .jar under $sparforge/lib is placed on the classpath
classpath=".:$clojure_trunk"
for jar in $sparforge/lib/*.jar
do
classpath="${classpath}:$jar"
done
java -cp $classpath -Djava.library.path=$sparforge/lib clojure.ma... | true |
6cf7c3e5b933340728543b764ad4e15eca94c8b4 | Shell | dmorrill10/c_project | /templates/scripts/start_new_experiment.sh | UTF-8 | 634 | 3.546875 | 4 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | #!/usr/bin/env bash
set -x
my_dir="$(dirname "$(readlink -f "$0")")"
root_dir="$my_dir/../"
timestamp=$(date +%b%d_%Y.%H-%M-%S)
all_experiments_dir="$root_dir/experiments"
mkdir $all_experiments_dir 2> /dev/null
experiment_dir=$all_experiments_dir/experiment.$timestamp
# Use pbs_job to generate an experiment
pbs_... | true |
501777c8dec23d53f184858833e6dddb428e08a4 | Shell | jclo/kapp | /test/init_test_db.sh | UTF-8 | 288 | 3 | 3 | [
"MIT"
] | permissive | #!/bin/bash
NAME=$1
if [[ ${NAME} -eq 1 ]]
then
echo 'Re-initializes test db ./db/testdb.sqlite ...'
cp ./db/db.sqlite ./db/testdb.sqlite
else
echo 'Re-initializes test db ./db/kadmin_testdb.sqlite ...'
cp ./db/kadmin_db.sqlite ./db/kadmin_testdb.sqlite
fi
# -- oOo ---
| true |
f5f009a55ec3f0ba990010fb68bad29e07fd85ee | Shell | JophiArcana/dotfiles | /bashrc | UTF-8 | 1,972 | 2.71875 | 3 | [] | no_license | #
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
#PS1='[\u@\h \W]\$ '
# Custom scripts
export VISUAL='vim'
export EDITOR='vim'
export PATH="/home/ericshen/bin:$PATH"
export PYTHONPATH="/home/ericshen/.von:$PATH"
# Java PATH
export PATH="/usr/lib/... | true |
67aa868febac3c716aa66a460f8a529c7f2fb540 | Shell | rikuu/eval-error-correction | /k-steps.sh | UTF-8 | 1,143 | 3.125 | 3 | [] | no_license | #!/bin/bash
#
# Runs experiments for comparing results for different sets of values for k
# in the iteration steps of LoRDEC+LoRMA
#
DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd)
source $DIR/configuration.sh
SCRIPTS=$DIR/scripts
MASTER=$SCRIPTS/master.sh
ANALYZE=$SCRIPTS/analyze.sh
OUTPUT=$OUTPUT_DIR/k-steps
L... | true |
4d2e27713a888c56264d1c0cf7b5594abdb891da | Shell | robglnn/urth | /unus-script/unus | UTF-8 | 860 | 3.65625 | 4 | [] | no_license | #!/bin/sh
while [ 1 ]
do
clear
echo "Apache Web Server status check:"
#grab list of apache proccesses, resolve to a numeric count
numproc=`pgrep httpd | wc -l`
#if count less than 10 proccesses report LOW
if [ "$numproc" -lt 10 ]; then
echo "[LOW] Web Server OK!"
else
#if count greater than 20 proccesses repor... | true |
88fe4c33d2f35c6d651c4d64654af112eedaa4f7 | Shell | drmingdrmer/homefolder | /xp/bash-d/plugin/git-multiplex/src/git-discard | UTF-8 | 380 | 3.96875 | 4 | [] | no_license | #!/bin/bash
usage()
{
echo 'dicard changes of some files from a range of commits'
echo 'git discard from..to -- <fns>'
exit 1
}
if [ ".$2" != ".--" ]; then
usage
fi
range=$1
shift
shift
fns="$@"
base=${range%..*}
script="git rm -f -r $fns ; git checkout $base -- $fns ; git status >/dev/null"
git fi... | true |
230fc7b25b7fccab8586f20d693545dadce94153 | Shell | swarnakamcham-1406/Day9 | /EmployeeWageComputation.sh | UTF-8 | 939 | 3.34375 | 3 | [] | no_license | #! /bin/bash -x
echo "Welcome to the Employee Wage Computation "
is_part_time=1;
is_full_time=2;
max_hrs_in_month=100;
emp_rate_per_hr=20;
num_working_days=20;
totalEmpHr=0;
totalWorkingDays=0;
declare -A dailyWage;
function getWorkHrs() {
local $empCheck=$1
case $empCheck in
$is_full_time)
empHr... | true |
3a4c09fbb09de38d8376a7870f1434a0500179ff | Shell | dmytr/dotfiles | /roles/dev/nodejs/files/profile.sh | UTF-8 | 157 | 2.53125 | 3 | [] | no_license | export NPM_CONFIG_USERCONFIG="$HOME/.config/npm/npmrc"
if ! [[ ":$PATH:" =~ ":$HOME/.local/npm/bin:" ]]; then
export PATH="$PATH:$HOME/.local/npm/bin"
fi
| true |
3c0f4d6eb81b6380977dca88f4b3553afaa7865e | Shell | josemoreno90/Unix-and-Bash | /bash-scripting/loops2.sh | UTF-8 | 440 | 3.78125 | 4 | [
"MIT"
] | permissive | # Write a Bash script which will take a single command line argument (a directory) and will print each entry in that directory. If the entry is a file it will print it's size. If the entry is a directory it will print how many items are in that directory.
for file in $1
do
if [ -d $1 ]
then
echo command ls -... | true |
fc81fc71e6a3f335abb1276dab7585129ba6453a | Shell | 0xqq/Big-Data-Governance-Install-Software | /1.5/zookeeper/modify-zoo.cfg-file.sh | UTF-8 | 1,341 | 2.75 | 3 | [] | no_license | #!/bin/sh
MYDATE=$(date +%Y-%m-%d);
cd /var/local/hadoop/zookeeper-3.4.8/conf
cp zoo_sample.cfg zoo.cfg
sed -i '/dataDir/d' /var/local/hadoop/zookeeper-3.4.8/conf/zoo.cfg
cat >>/var/local/hadoop/zookeeper-3.4.8/conf/zoo.cfg<<EOF
server.1=zte-1:2888:3888
server.2=zte-2:2888:3888
server.3=zte-3:2888:3888
dataDir=/var/loc... | true |
ee86c0f04e387311f34ed0cf98c5e35010981885 | Shell | ecdown/useful_scripts | /createwebdev | UTF-8 | 625 | 3.390625 | 3 | [] | no_license | #!/bin/sh
BASEDIR=/home/ecdown/src/Java
if [ $# -lt 1 ];
then
echo "Need to specify a project directory"
exit 1
fi
PROJDIR=$BASEDIR/$1
if [ -d $PROJDIR ]
then
echo "Directory: $PROJDIR Exists. Exiting"
exit 1
fi
mkdir $PROJDIR
mkdir $PROJDIR/etc
mkdir $PROJDIR/lib
mkdir $PROJDIR/src
mkdir $PROJDIR/sr... | true |
f5aff8c3a57d3c7b445d92db4e8005404d8441ea | Shell | tectronics/laurentiudascalu | /SystemAPI/Tema2-IPC/_test/test5.sh | UTF-8 | 363 | 2.59375 | 3 | [] | no_license | #!/bin/bash
# interleaving
$SERVER
sleep 0.5
#set -x
TMP=_test5.tmp
$CLIENT s 50 a picasso s $GAP a philippine s $GAP a sofia &
$CLIENT a albertina s $GAP a ashlee s $GAP a sharleen s $GAP a alisha &
$CLIENT s 1000 r alisha a june s 100 p > $TMP
diff $DF $TMP test5.out
if [ $? -eq 0 ] ; then
echo $PASS
else
e... | true |
829494daa36174fcfbdc7709f8e21ff5a92428b2 | Shell | petronny/aur3-mirror | /flush-git/PKGBUILD | UTF-8 | 1,191 | 2.890625 | 3 | [] | no_license | # Maintainer: CYB3R <dima@golovin.in>
pkgname=flush-git
pkgver=20130202
pkgrel=1
pkgdesc="GTK+ based BitTorrent client"
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/flush/"
license=('GPL')
depends=('libconfig' 'libtorrent-rasterbar' 'libglademm' 'libnotify' 'dbus-core')
makedepends=('boost' 'git')
insta... | true |
4528dc700afe7d1fa57f71a5121c1ca4ffbcb87b | Shell | ecs-org/ecs-appliance | /salt/appliance/metric/smartmon-storage-metric.sh | UTF-8 | 5,125 | 3.375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# metric from smartctl values prometheus text collection
# based on http://devel.dob.sk/collectd-scripts/
# see also http://arstechnica.com/civis/viewtopic.php?p=22062211
toolname="smartctl"
storagesystem="smart"
usage() {
cat <<EOF
usage: $0 [--has-devices]
without parameter $(basename $0) will outp... | true |
7765bd31493309d27d29793fa92f64a82d701cfa | Shell | cyoung/stratux | /image/spindle/wheezy-stage1 | UTF-8 | 3,185 | 3.375 | 3 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | #!/bin/sh
# Part of spindle http://asbradbury.org/projects/spindle
#
# See LICENSE file for copyright and license details
set -e
. ./common
CURIMG=stage1.$IMGFORMAT
# Security for these keys doesn't matter: just using ssh as it's convenient
# It's not easy to disable authentication, so just use passwordless keys.
... | true |
a995a26f4740a62c742976a292aa80aa3c790ea6 | Shell | AlekNS/tinyenvsvc | /scripts/vagrant_provision.sh | UTF-8 | 791 | 3.203125 | 3 | [] | no_license | #!/usr/bin/env sh
user=${1:-vagrant}
echo "Installing Docker and other tools"
apt-get install apt-transport-https ca-certificates
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo 'deb https://apt.dockerproject.org/repo debian-jessie main' > /etc/a... | true |
e5065cb666437834052eab7279e269fc13c0f416 | Shell | filipbartek/vampire-ml | /map-reduce/run.sh | UTF-8 | 496 | 3.375 | 3 | [] | no_license | #!/usr/bin/env bash
set -euo pipefail
export OUTPUT=${OUTPUT:-$(dirname $0)}/$(date +"%Y-%m-%d_%H-%M-%S")
mkdir -p $OUTPUT
nohup nice $(realpath $(dirname $0))/map-reduce.sh "$@" &>$OUTPUT/stdout.txt &
# https://stackoverflow.com/a/17389526/4054250
pid=$!
echo "pid=$pid"
echo $pid >$OUTPUT/pid.txt
# We echo to ge... | true |
38511d206ceb5d3f6715d1d53d86e313537ca5d2 | Shell | morefreeze/leetcode | /algo/add_pro.sh | UTF-8 | 712 | 3.34375 | 3 | [] | no_license | #!/bin/sh
if [[ $1 == "" ]];then
echo sh $0 APP_NAME
exit 1
fi
if [ -f ${1}_unittest.cc ];then
cp ${1}_unittest.cc ${1}_unittest.cc.bak
fi
if [ -f ${1}.cpp ];then
cp ${1}.cpp ${1}.cpp.bak
fi
# convert foo_bar to FOO_BAR
uname=$(echo $1 | awk '{print toupper($0)}')
# convert foo_bar to FooBar
cname=$(ech... | true |
e48312c75b98b81dcada118709667c4eee66f178 | Shell | yfyau/flutter_utils | /setup/git/hooks/pre-commit | UTF-8 | 567 | 3.265625 | 3 | [] | no_license | #!/bin/sh
#
# An example hook script to verify what is about to be committed.
# Called by "git commit" with no arguments. The hook should
# exit with non-zero status after issuing an appropriate message if
# it wants to stop the commit.
#
# To enable this hook, rename this file to "pre-commit".
export PATH=/usr/local... | true |
bd246cde59e19c8400e22af717d010e0d687a6ab | Shell | cpellot/devstats | /util_sh/unique_contributors.sh | UTF-8 | 482 | 3.34375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
rm actors.txt
if [ -z "$ONLY" ]
then
host=`hostname`
if [ $host = "cncftest.io" ]
then
all=`cat ./devel/all_test_dbs.txt`
from="https://devstats.cncf.io/"
else
all=`cat ./devel/all_prod_dbs.txt`
from="https://cncftest.io/"
fi
else
all=$ONLY
fi
for db in $all
do
echo "DB: $db"
s... | true |
ad40528564216b12ea42bd081e7ca4c00853136e | Shell | RENCI-NRIG/exogeni-recipes | /hadoop/hadoop-2/hadoop_exogeni_postboot.sh | UTF-8 | 8,901 | 3.234375 | 3 | [] | no_license | #!/bin/bash
# using stable2 link for Hadoop Version
# HADOOP_VERSION=hadoop-2.7.4
# Velocity Hacks
#set( $bash_var = '${' )
#set( $bash_str_split = '#* ' )
############################################################
# setup /etc/hosts
############################################################
echo $NameNode.IP("V... | true |
b2ab061b7cdc79c8534ca90cf6d7e20fd9c82898 | Shell | fossabot/openvpn-on-docker | /bin/ovpn_initpki | UTF-8 | 740 | 3.40625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#
# Initialize the EasyRSA PKI
#
if [ "$DEBUG" == "1" ]; then
set -x
fi
set -e
source /usr/local/bin/func.sh
# Specify "nopass" as arg[2] to make the CA insecure (not recommended!)
nopass=$1
cn=$2
# Provides a sufficient warning before erasing pre-existing files
easyrsa init-pki
# CA always has a ... | true |
263aab12e1330e31bb7ac08a2785a50928cc6cd0 | Shell | vitalk/dotfiles | /.bin/own | UTF-8 | 246 | 3.6875 | 4 | [] | no_license | #!/usr/bin/env bash
# Usage: own [-u <user:me>] <file> [<file> ...]
# change <file> owner to <user>
name=$(whoami)
[[ $1 == '-u' && ! -z $2 ]] && { name=$2; shift 2; }
for file in "$@"; do
require sudo && sudo chown -R $name "$file"
done;
| true |
c5779a48d88e6e03741920fc78c88bb061f39df8 | Shell | dseg/archlinux-packages | /lua51-moonscript/PKGBUILD | UTF-8 | 2,681 | 2.578125 | 3 | [] | no_license | # Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
pkgname=lua51-moonscript
_pkgname=moonscript
pkgver=0.2.6
pkgrel=1
pkgdesc="Dynamic scripting language that compiles into Lua (5.1)"
arch=('any')
url='http://moonscript.org/'
license=('MIT')
depends=('lua51-filesystem' 'lua51-alt-getopt' 'lua51-lpeg')
conflicts=('moon... | true |
cc44e16dec0301952502a10871cf5c0493f9ebfb | Shell | fchmainy/arm-nginx-vmss | /terraform/scripts/install-and-onboard.sh | UTF-8 | 5,867 | 3.421875 | 3 | [] | no_license | #!/bin/bash
# Have a controller up and running. Create location and environment.
# $1: Controller IP Address
# $2: nginx-repo.crt b64
# $3: nginx-repo.key b64
# $4: Instance Location as defined on the controller
# $5: Gateway Name
# $6: Controller Admin Email Address
# $7: Controller Admin Password
# $8. Environment s... | true |
3ef579cc2ea680959a3b19b052d9ef1d718385a7 | Shell | utam0k/autoRecorder | /contrib/pre-commit.sh | UTF-8 | 307 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
files=$(git diff --cached --name-status | grep -v ^D | awk '$1 $2 { print $2}' | grep -e .py$)
array=(${files/// })
for file in "${array[@]}"
do
if [[ ${file} =~ "autoRecorder/test/" ]]; then
flake8 --max-line-length=160 ${file}
else
flake8 ${file}
fi
done
| true |
1227f967f2debe0e42f5a577ce0808ceab5cd1e1 | Shell | chennqqi/Hades | /project/push/shell/gp_radius_stat.sh | UTF-8 | 748 | 3.28125 | 3 | [] | no_license | #!/bin/bash
if [ $# -ne 1 ]; then
exit 1
fi
DATE=$1
if [ "$DATE" = "-1" ]; then
DATE=`date -d "1 day ago" +%Y%m%d`
fi
OUTPUTPATH=/user/project/radius
LOGFILE=/home/bigdata/project/push/log/gp_radius_stat.log
#rm data
hadoop fs -rm ${OUTPUTPATH}/* 1>>$LOGFILE 2>>$LOGFILE
hadoop fs -text /user/hive/ware... | true |
fad055de29b0ba72d5bf5e70fbbe50186eacaafd | Shell | imasahiro/gradle-thrift-plugin | /.travis/build-thrift.sh | UTF-8 | 628 | 3.53125 | 4 | [] | no_license | #!/bin/sh
set -ev
BINARY_SUFFIX=""
if ( test "`uname -s`" = "Darwin" )
then
BINARY_SUFFIX="osx-x86_64"
else
BINARY_SUFFIX="linux-x86_64"
fi
CMAKE_FLAGS="-DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF -DBUILD_LIBRARIES=OFF"
MAKEPROG=make
if ninja --version >/dev/null 2>&1; then
MAKEPROG=ninja
CMAKE_FLAGS="-GNi... | true |
448c0e503e2bc79b33251c0ad819a5114a4c2bdf | Shell | darwin-morales/shell-scripts | /scripts/setup | UTF-8 | 8,619 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -euo pipefail
# ==================================================================
# ROOT
# ==================================================================
cd ~
mkdir repos
# ==================================================================
# SHELL SCRIPTS
# ====================================... | true |
17530c46ba681b41227ec65f8baf8717d9d078c6 | Shell | harrifeng/system-config | /bin/Wrench-get-file | UTF-8 | 293 | 3.140625 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/usr/bin/env bash
file=$(getclip-android)
tmpdir=~/tmp/Wrench-get-file
mkdir -p ${tmpdir}
to_file=${tmpdir}/"$(bp "$file")"
adb pull "${file}" "${to_file}"
putclip "${to_file}"
if EMACS=t yes-or-no-p -y "use emacs to open ${to_file}?"; then
e "${to_file}"
else
of "${to_file}"
fi
| true |
2a0e101c68bf7ac35cd94551c7b92d577ef66474 | Shell | donaldducky/advent-of-code | /2016/day4/p2-alt.sh | UTF-8 | 153 | 2.8125 | 3 | [] | no_license | #!/bin/bash
in=$(cat input.txt)
for i in {1..26} do
{
echo "$in"
in=$(echo "$in" | tr 'a-z' 'b-za-a')
} | rg north | perl -pe 's/[^\d]+(\d+).*/\1/'
| true |
4c22330a283b72745f410716ee599b8ced2198ef | Shell | hasebems/linux_script | /shutdown-daemon.sh | UTF-8 | 493 | 3.6875 | 4 | [] | no_license | #!/bin/sh
GPIO=11 #使用するGPIOポート
PUSHTIME=3 #押す秒数
#初期設定
echo "$GPIO" > /sys/class/gpio/export
echo "in" > /sys/class/gpio/gpio$GPIO/direction
echo "low" > /sys/class/gpio/gpio$GPIO/direction
#PUSHTIME秒間押されるまで待つ
cnt=0
while [ $cnt -lt $PUSHTIME ] ; do
data=`cat /sys/class/gpio/gpio$GPIO/value`
if [ "$data" -eq ... | true |
5649831115238ac02e521732490c580657559a5a | Shell | jirutka/cesnet-tcs-cli | /cesnet-tcs-fetch-issued | UTF-8 | 2,218 | 4.28125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
#---help---
# USAGE:
# cesnet-tcs-fetch-issued [-h | -V]
#
# Checks all pending certificate requests in $spool_dir and fetches all that
# are already issued. Afterwards runs $post_fetch_script with domain names of
# the fetched certificates as arguments, if there are some. This script is
# supposed to be ... | true |
47aa13d61e2c679e1af92a6f4b863a37096965c2 | Shell | daviddaiweizhang/fraposa_ukb | /pca_global_global_pre.sh | UTF-8 | 444 | 2.875 | 3 | [] | no_license | #!/bin/bash
set -e
root=$1
refpref=kgn
inpref=ukb
n=100
methods="ap sp oadp"
fraposa="python $HOME/fraposa/fraposa_runner.py"
dim_ref=4
dim_spikes=$dim_ref
methods='sp ap oadp'
# reference pca
for method in $methods; do
$fraposa --method $method --dim_ref $dim_ref --dim_spikes $dim_spikes $root/$refpref
done
sc... | true |
4adfb77c042df975ed641cd3af4a66fec1a3173c | Shell | mgawan/GPU-BSW | /regression_test/quick_regression_test.sh | UTF-8 | 699 | 2.84375 | 3 | [
"BSD-3-Clause-LBNL"
] | permissive | #!/bin/bash
./program_gpu dna ./test-data/dna-reference.fasta ./test-data/dna-query.fasta test_regression_dna_out >/dev/null 2>&1
./program_gpu aa ./test-data/protein-reference.fasta ./test-data/protein-query.fasta test_regression_protein_out >/dev/null 2>&1
diff_dna=$(diff test_regression_dna_out ./r... | true |
63dd83740b048c4e17f2621eb4a49c0ae1fba6b3 | Shell | code-a-cola/treehash | /treehash | UTF-8 | 228 | 2.5625 | 3 | [] | no_license | #!/usr/bin/env bash
set -o nounset
set -o errexit
SCRIPT_FILE="$(perl -e 'use Cwd "abs_path"; print abs_path(shift)' "${BASH_SOURCE[0]}")"
SCRIPT_DIR="$(dirname "$SCRIPT_FILE")"
exec java -jar "$SCRIPT_DIR"/TreeHash.jar "$@"
| true |
3fe450dc38c9e86114d6979c3704629b69dec67c | Shell | SadovnichiyDmitry/LAMP-WP-vagrant-box | /ubuntu1804+LAMP+WP/scripts/LAMP.sh | UTF-8 | 2,295 | 3.265625 | 3 | [] | no_license | #!/bin/bash -eux
#install apache
sudo apt update
sudo apt upgrade -y
sudo apt install apache2 -y
sudo systemctl enable apache2
sudo ufw allow in "Apache Full"
sudo sed -i 's/ index.html index.cgi index.pl index.php/ index.php index.cgi index.pl index.html /' /etc/apache2/mods-enabled/dir.conf
sudo sed -i '$a\<Directo... | true |
006fcabc30cb8a1c81c75197b12cd84adeb9b315 | Shell | antoineB/vroom | /media/work/model/conv.sh | UTF-8 | 404 | 3.34375 | 3 | [] | no_license |
if [ ! -e $1 ] ; then
echo "usage : myxml.xml mymesh.mesh"
echo "pas de fichier valide spécifié" ;
exit -1 ;
fi
if [ $2 = "" ] ; then
echo "pas de fichier de sortie" ;
exit -1 ;
fi
#name=`echo "$1" |cut -d'.' -f1,2` ;
name=`echo "$1" |sed s/.xml//` ;
OgreXMLConverter $1 ;
OgreMeshUpgrader $... | true |
751acb5233ed085808cc6df884247454774f9241 | Shell | SargeKhan/docker-suicidesquad1 | /run-cluster.sh | UTF-8 | 796 | 3.734375 | 4 | [] | no_license | #!/bin/bash
no_of_nodes=$1
re_check_no='^[0-9]+$'
if ! [[ $no_of_nodes =~ $re_check_no ]] ; then
echo "error: Must pass number of docker instances to launch as the first argument" >&2; exit 1
fi
echo "Running network create"
sudo docker network create dockersuicidesquad1_default
echo "Running compose"
sudo docke... | true |
519de309802c2070e74f63e668e81aea40627f24 | Shell | dimgraycat/docker | /docker.sh | UTF-8 | 474 | 3.90625 | 4 | [] | no_license | #!/bin/bash
set -e
COMMAND=$1
echo_help() {
echo "-- command help"
echo "\tsh $0 network"
echo "\t\t - create dmgct_network docker network"
}
if [ $# -lt 2 ]; then
case "$COMMAND" in
"network")
echo 'create docker network: '
docker network create --driver=bridge \
... | true |
ebd7f268bf00a360b5c53bf8c3c0accfbfc79124 | Shell | normanwongcl/dev-workflow-setup | /first-time-setup/newMachine-setup.sh | UTF-8 | 2,485 | 3.078125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Setup Script to be executed every time I work on a new machine
# Distribution: WSL Ubuntu 20.04
# Add python and ansible repo to system repo
sudo apt-add-repository --yes --update ppa:deadsnakes/ppa
# sudo apt-add-repository --yes --update ppa:ansible/ansible
# Add the Google Cloud SDK distribution URI... | true |
da59ce25d8f6b0cabd3c0032ca852a0f7c4e5065 | Shell | matteomattei/servermaintenance | /Debian7/LAMP_24/MYSQL_CREATE.sh | UTF-8 | 882 | 3.328125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
MYSQL_ROOT_PASSWORD="yourrootpassword"
MYSQL_ROOT_USER="root"
DB_NAME="${1}"
USERNAME="${2}"
PASSWORD="${3}"
if [ $# -lt 3 ]; then
echo "USAGE: ${0} DB_NAME DB_USERNAME DB_PASSWORD"
exit 1
fi
mysql -u${MYSQL_ROOT_USER} -hlocalhost -p${MYSQL_ROOT_PASSWORD} -e " \
CREATE USER '${USER... | true |
a1868a36eef0e12ea3d5d19c71cb76a9112a7c50 | Shell | descala/puppet-modules | /install-puppet.sh | UTF-8 | 1,329 | 2.9375 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
# install puppet on wheezy from jessie
# this will remove any previous src (i.e CD-ROM)
cat << EOF > /etc/apt/sources.list
deb http://http.debian.net/debian/ wheezy main contrib non-free
deb-src http://http.debian.net/debian/ wheezy main contrib non-free
EOF
if [ ! -e /etc/apt/sources.list.d/jessie.list ]... | true |
2c5c3534a90971ba1a6425d20f1ad5a5cfb88bad | Shell | jerbia/container_hack | /hack.sh | UTF-8 | 412 | 3 | 3 | [] | no_license | #!/bin/sh
if [ -e /var/run/docker.sock ]; then
echo "====== Running privileged container ======"
docker run --rm --privileged --net=host -v /:/host -v /dev:/dev jpetazzo/nsenter nsenter --mount=/host/proc/1/ns/mnt -- /usr/sbin/useradd hacked
echo "====== User 'hacked' was added to your system ======"
else
ech... | true |
2ff84dbe0bbd61e41d4c67f5e20301a9bc796375 | Shell | adesutherland/vm-370 | /uprepro.sh | UTF-8 | 860 | 2.625 | 3 | [
"Unlicense"
] | permissive | #!/bin/sh
# Script to update container repositories
TAG=1.5.3
# Docker Tagging (builder, test and latest)
docker pull adriansutherland/vm370:$TAG
docker tag adriansutherland/vm370:$TAG adriansutherland/vm370:builder
docker push adriansutherland/vm370:builder
docker pull adriansutherland/vm370:$TAG
docker tag adriansu... | true |
72218c03fd7aef970115c8be7b495330c029ac5d | Shell | UWSysLab/diamond | /scripts/experiments-eurosys-15/baseline-chat-server-wrapper.sh | UTF-8 | 670 | 3.296875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if [[ $# -ne 1 ]]
then
echo "usage: ./baseline-chat-server-wrapper.sh port"
exit
fi
DIAMOND_SRC="/home/nl35/research/diamond-src"
PROJECT_DIR="$DIAMOND_SRC/apps/chat/BaselineChatServer"
JAVA_BINARY="/home/nl35/research/jdk1.8.0_60/jre/bin/java"
if [ ! -d $DIAMOND_SRC ]
then
echo "Error: DIAMO... | true |
4d8773a418c28cdb63f086735a7567e5b6a4a65c | Shell | xmlgrg/django3.2-docker | /backend/docker-entrypoint.sh | UTF-8 | 460 | 2.71875 | 3 | [] | no_license | #!/bin/bash
set -e
if [ "$2" == 'beat' ]; then
exec celery beat -A django_docker -l INFO --scheduler django_celery_beat.schedulers:DatabaseScheduler
fi
if [ "$2" == 'worker' ]; then
exec celery -A django_docker worker -l INFO -P gevent
fi
if [ "$2" == 'web' ]; then
exec gunicorn django_docker.wsgi -b 0.0.0.... | true |
b9b9d637e8a94560a102f75ff1355de626010392 | Shell | CaledoniaProject/BaiduHi-Remove-Family | /hi-remove-family.sh | UTF-8 | 697 | 3.484375 | 3 | [] | no_license | #!/bin/bash
set -e
source=/Applications/百度Hi.app/Contents/MacOS/BaiduHi
if [[ ! -f $source ]]; then
echo 没有安装百度Hi~
exit
fi
echo '[+] 备份中 ..'
if [[ ! -f "${source}.old" ]]; then
cp $source{,.old}
fi
file="${source}.old"
out="${source}"
# Retrieve file offset
offset=$(nm "$file" | grep 'UIManager chec... | true |
81e8a323ec81881a079eca102bc07b49050b7ca2 | Shell | petronny/aur3-mirror | /arduino-rfduino/PKGBUILD | UTF-8 | 894 | 2.546875 | 3 | [] | no_license | # Maintainer: Sergio Correia <sergio@correia.cc>
pkgname=arduino-rfduino
pkgver=2.2.2
pkgrel=1
pkgdesc="A finger-tip sized, Arduino compatible, wireless enabled microcontroller"
url="http://www.rfduino.com/"
license=('GPL')
arch=('i686' 'x86_64')
depends=('arduino-beta' 'wine')
options=('staticlibs' '!strip')
source=(... | true |
90ebd1a3f390bebc70c1f2c568932f03f5b172ea | Shell | NetBSD/src | /etc/rc.d/named | UTF-8 | 3,957 | 3.625 | 4 | [] | no_license | #!/bin/sh
#
# $NetBSD: named,v 1.27 2021/03/31 04:57:25 christos Exp $
#
# PROVIDE: named
# REQUIRE: NETWORKING mountcritremote syslogd
# BEFORE: DAEMON
# KEYWORD: chrootdir
$_rc_subr_loaded . /etc/rc.subr
name="named"
rcvar=$name
command="/usr/sbin/${name}"
pidfile="/var/run/${name}/${name}.pid"
start_precmd="name... | true |
e1c4aa53ad6febb3305431f0a1cff920e1c4a601 | Shell | nhutpm219/script-createawsecrrepo-pull-push-image | /create_repo.sh | UTF-8 | 743 | 3.921875 | 4 | [] | no_license | #!/bin/bash
#
# All Rights Reserved. Copyright (C) 2020, Hitachi, Ltd.
#
# Hitachi Confidential
# The information (or program) contained herein is Confidential Property of Hitachi, Ltd.
# Reproduction, use, modification or disclosure otherwise than permitted in the Agreement is strictly prohibited.
#for debug
#trap 'r... | true |
8886ef64c1c893f9869abfd3dfd831584788420c | Shell | agungsoeltani/epic-shelter | /SONARR/backup | UTF-8 | 1,673 | 3.65625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# This script will trigger a new Sonarr backup, grab a list of all available
# Sonarr backups, download the most recent one (should be the one that was just
# started), then excrypt it and upload it to google drive.
#
# To run, this script requires a few environment variables be passed in to it.
# The vari... | true |
158dd1b26210ccb7fc861299c1230c57807b299d | Shell | YellowOrz/server | /limits | UTF-8 | 336 | 3.375 | 3 | [] | no_license | #! /bin/bash
cd /home
maxsize=$((1024*1024*50)) #20 G
for file in $(ls /home)
do
if [ $file != "dataset" ]; then
filesize=`du -s $file | awk '{print $1}'`
#echo -n $file
#echo -n "| "
#echo $filesize
if [ $filesize -gt $maxsize ]; then
chown root $file
chgrp root $file
echo $file
... | true |
2b909d04d2f4c46e15b27b575762661be2677adc | Shell | evo-bots/zupi | /deps/cpp-netlib.build.sh | UTF-8 | 738 | 3.203125 | 3 | [] | no_license | #!/bin/bash
set -ex
ARCH=$1
test -n "$ARCH"
SRC_DIR=$HMAKE_PROJECT_DIR/_build/src/cpp-netlib
BLD_DIR=$HMAKE_PROJECT_DIR/_build/$ARCH/cpp-netlib
OUT_DIR=$HMAKE_PROJECT_DIR/out/$ARCH
CMAKE_OPTS=
if [ "$ARCH" == "armhf" ]; then
CMAKE_OPTS="$CMAKE_OPTS -DCMAKE_TOOLCHAIN_FILE=$HMAKE_PROJECT_DIR/common/cmake/armhf.too... | true |
3de48edf3016fb1909d0a08adc61f802fd4ab132 | Shell | jab416171/cloud-storage-benchmark | /1010mbfiles/test.sh | UTF-8 | 184 | 3 | 3 | [] | no_license | #!/bin/bash
md5sumpath="../hashes/$(basename $PWD)/md5sum"
while [ ! -e $md5sumpath ]; do
sleep 1
done
until [[ $(./generatehash.sh | grep "$(cat $md5sumpath)") ]]; do
sleep 1
done
| true |
de21336329faa7971539b38f91718227004273de | Shell | Laastar/PROTECO | /Linux/PowerRangersFuerzaSalvaje-master/pokejuego.sh | UTF-8 | 20,416 | 2.71875 | 3 | [] | no_license |
#!/bin/bash
if(( "$BahiadeLasMarianas" == 1))
then
clear
echo -e "\e[37;43;1m _____________________________________________________________________________________________________________ \e[0m"
echo -e "\e[37;43;1m | _________________________________________________________________________________________________... | true |
1ed05cda9902db0621dafc7eca437ca8fb06becd | Shell | dnowell/ec2-managed-linux | /roles/ec2-sshd-and-accounts/files/group-assign.sh | UTF-8 | 89 | 2.609375 | 3 | [] | no_license | #!/bin/bash
for i in `/usr/local/bin/expand_mcommgrp "$1"`
do
usermod -g "$2" $i
done
| true |
9ddf8a6c8d8417be7061b2ac1d5512734cb3b3cb | Shell | lk16/dotfiles | /dotfiles/bash/python.sh | UTF-8 | 344 | 2.859375 | 3 | [] | no_license | #!/bin/bash
[ -d ~/.pyenv/bin ] && PATH=$PATH:~/.pyenv/bin
[ -d ~/.poetry/bin ] && PATH=$PATH:~/.poetry/bin
if which pyenv > /dev/null; then
eval "$(pyenv init --path)"
eval "$(pyenv virtualenv-init -)"
fi
# force colored output of pytest
export PYTEST_ADDOPTS="--color=yes"
# force colored output of mypy
ex... | true |
b792560b9771800b0fe7724c51bc5e5c726613ab | Shell | julenvitoria/OpenBOR-63xx-RetroPie-openbeta | /scriptmodules/openbor-6xxx-RPi3/openbor-v6510-RPi3.sh | UTF-8 | 3,417 | 3.640625 | 4 | [] | no_license | #!/usr/bin/env bash
# This file is part of The RetroPie Project
#
# The RetroPie Project is the legal property of its developers, whose names are
# too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.
#
# See the LICENSE.md file at the top-level directory of this distribution ... | true |
87265d2e01ac1246110d2e6d8865c8e3d989aac5 | Shell | baden/navicc | /debian/postrm | UTF-8 | 1,066 | 3.375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
APP=navicc-server
USER=navicc
GROUP=navicc
case "$1" in
purge)
update-rc.d $APP remove >/dev/null
if [ -d /var/log/$APP ]; then
rm -r /var/log/$APP
fi
if [ -d /var/lib/$APP ]; then
rm -r /var/lib/$APP
fi
if [ -d /etc/$APP ];... | true |
29331b877f35e0ca73a200578353c151505117d0 | Shell | xin9min9/opsifmis | /opsifmis/aw07n0.sh | UTF-8 | 600 | 2.828125 | 3 | [] | no_license | aw07n0(){
if_was=''
if [ -f "/WebSphere/AppServer/bin/versionInfo.sh" ];then
if_was='Y'
elif [ -f "/IBM/WebSphere/AppServer/bin/versionInfo.sh" ];then
if_was='Y'
elif [ -f "/was32/AppServer/bin/versionInfo.sh" ];then
if_was='Y'
elif [ -f "/usr/lib/objrepos/vpd.properties" ];then
WAS_HOME=`grep WS /usr... | true |
bf03126206a4807708cdf9f6fa0fdb675ba467e0 | Shell | lordkev/ssc-imputation | /psmc/test.sh | UTF-8 | 177 | 3.171875 | 3 | [] | no_license | #!/bin/bash
OUTBUCKET=s3://ssc-psmc
OUTFILE=$1
x=$(aws s3 ls ${OUTBUCKET}/$(basename ${OUTFILE}) | awk '{print $NF}')
test -z $x || exit 0
echo "file not on aws. proceeding"
| true |
ea479f68369a9516eeb1db0af93c02061b19665b | Shell | no-12/desktop_provisioning | /roles/i3blocks/files/scripts/volume.sh | UTF-8 | 827 | 3.640625 | 4 | [] | no_license | #!/usr/bin/env bash
focus_pavucontrol() {
PROCESS_COUNT=`ps aux | grep -c pavucontrol`
if [ $PROCESS_COUNT -eq 1 ]; then
i3-msg exec pavucontrol > /dev/null
else
i3-msg "[class=Pavucontrol] focus" > /dev/null
fi
}
case $BLOCK_BUTTON in
1) focus_pavucontrol ;;
3) amixer -q -D pulse sset Master togg... | true |
2d2847f873a80bc4f306ac56479174b3dcf35376 | Shell | ThallingerLab/StructuralGenomeVariations | /bdmax/bdmax.sh | UTF-8 | 1,683 | 3.1875 | 3 | [] | no_license | #!/bin/bash
#Usage: bdmax.sh <bamfile> <output directory> <cutoff value> <calculate_lower>
#example : ./bdmax.sh lumpy_BSY_red.bam output_bdmax 60 3
#cutoff = 60
#calculate_lower should be 3 for BSY10dKU70 and 2 for BSY11dKU70 (only the full version works with breakdancer)
threads=8
bam="$1"
fasta="$2"
fastq1="$3"
f... | true |
ee841347378fd40e0fd38c207939331c4995d04b | Shell | CristianCantoro/yubikey-luks | /script-top | UTF-8 | 256 | 3.140625 | 3 | [] | no_license | #! /bin/sh
set -e
PREREQ=""
prereqs()
{
echo "$PREREQ"
}
case $1 in
# get pre-requisites
prereqs)
prereqs
exit 0
;;
esac
#if [ -e /etc/yubikey-challenge ]; then
sed -i 's|$|,keyscript=/sbin/ykluks-keyscript|' /conf/conf.d/cryptroot
#fi
exit 0
| true |
90b478990ca1aecb8ea8ec832ca48c2a51e77f9a | Shell | evolomics-group/rna-seq-pipeline | /paired_end/pipeline_noncoding_PE.sh | UTF-8 | 18,197 | 3.125 | 3 | [] | no_license | #!/bin/bash
#SBATCH --job-name=tomato
#SBATCH --nodes=1
#SBATCH --ntasks=56
#################################################################
################# USER INSTRUCTIONS #####################
#################################################################
# 1. Modify the "job-name" above (OPTIONAL)... | true |
0e9de6a2a984c337e0cf24afbda9772b37b766e6 | Shell | the-final-codedown/si5-al-the-final-codedown | /tfc-benchmark/run.sh | UTF-8 | 157 | 2.625 | 3 | [] | no_license | #!/bin/bash
[[ ! $1 ]] && echo Please provide the argument "micro" or "hybrid" && exit
for i in $(cat < "$1".env); do
export $i
done
sbt gatling-it:test | true |
0d7e4368fe60cdd21fab4a387c4a5787313f4edc | Shell | saksham324/Tiny-Search-Engine-1 | /crawler/testing.sh | UTF-8 | 1,524 | 3.46875 | 3 | [] | no_license | #!/bin/bash
# testing.sh - testing the tse crawler module
# Compiling common
cd ../common
make clean
make
# Compiling crawler
cd -
make clean
make
# Variables
testURL=http://old-www.cs.dartmouth.edu/~cs50/index.html
externalURL=www.google.com
out=output # name of directory
# remove output directory if it exists
i... | true |
e4ce6868fbd82f31ebd2615a7a2b67fccd1f1ea4 | Shell | titzer/virgil | /bench/ListBench/run.bash | UTF-8 | 1,619 | 3.375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
TMP=/tmp/ListBench
mkdir -p /tmp/ListBench
rm -f /tmp/ListBench/*
JAVA=$(which java)
echo "Compiling btime..."
gcc -O2 -o $TMP/btime ../btime.c
echo "Compiling (java) ListBench..."
javac -d $TMP ListBench.java
echo "Compiling (jar -server) ListBench..."
v3c-jar -output=$TMP/ -jvm.args='-server' ../Com... | true |
4303d3b4ae1445044c269c0b66798af64239547c | Shell | LStoney/rus | /nullabor/mundrabilla/rain_filter_new.sh | UTF-8 | 5,720 | 3.15625 | 3 | [] | no_license | # This scripts reads and filters the rain data for Mundrabilla (.csv format)
# The filtered data is sent to a new .dat file with the following variables
#
# for daily data: YEAR,MONTH,DAY,RAINFALL(mm),FLAG
# where flag=1 if the data has been quality checked, 0 if not.
#
#
# for monthly data: ....
#
# AUTHOR: Lachlan S... | true |
d1bca9e27b15792c69c1bab77e93df632d744e33 | Shell | Prakashmoharana1985/O_RAN | /test/auto-test/FTC100.sh | UTF-8 | 22,975 | 2.953125 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
# ============LICENSE_START===============================================
# Copyright (C) 2020 Nordix Foundation. All rights reserved.
# ========================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this fi... | true |
d057a37cfb7e93767e2cfef2475dc85bbf3f87ed | Shell | michaelofrancis/Francis_Li_PLOS_Revisions_NHS_HPFS | /1.filter-imputed-SNPs.sh | UTF-8 | 1,060 | 3.359375 | 3 | [] | no_license | #This script has two parts. First it generates a list of SNPs with quality score >=0.5 from the imputation .mfi file.
#Then it runs in PLINK to filter out these SNPs.
module load PLINK/2.00-alpha2-x86_64-20191128
cd #add directory here
chr=(1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 X XY)
#A list of ... | true |
9c2f3e8e1500764ecf26f88f173e8dfb9c91add1 | Shell | TomFern/dotfiles | /bin/xwallpaper | UTF-8 | 2,105 | 4.21875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#
# simple wallpaper setter
#
CFG=$HOME/.wallpapers
function usage() {
cat <<EOF
usage:
$0 [-b minutes] [wallpaper]
options:
-b minutes continue running, reapply the wallpaper every m minutes
[wallpaper] when it's a file, set it as background
when it's a directory, pick one file ran... | true |
03868943ec78420d6f25b01d9e4f9b4499012fdb | Shell | UCDenver-ccp/ccp-nlp-pipelines | /scripts/eval/cm-craft/cm-craft-pr-eval.sh | UTF-8 | 385 | 2.765625 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
# Evaluates ConceptMapper output against CRAFT CHEBI annotations
ONT_KEY="PR"
CM_DICT_KEY="PR"
OUTPUT_FILE_PREFIX="cm-craft-pr"
# precision-optimized param index = 286
# f-score-optimized param index = 478
PARAM_INDEX=286
if ! [[ -e README.md ]]; then
echo "Please run from the root of the project."
... | true |
144d79085a7d0537e7f83aa7b6be776ded1e7c7f | Shell | xueshell/shell_script_example | /shell_language/loop/until_do_done.sh | UTF-8 | 680 | 3.59375 | 4 | [] | no_license | #!/bin/bash
if [[ $@ -eq 0 ]]
then
echo " input number only "
exit 55
fi
#until [[ "$num" =~ "^[0-9]+$" ]] # 输入的全部是数字
# #直到条件满足才停止; 条件不满足一直执行
#do
#
# read -p "Please enter the number:" num
#
#done
#
#echo " The numbers you enter is $num "
#!/bin/bash
# Program:
# Repeat question until user in... | true |
cfc92ab655ab93e19b68874ff57bc4d4639b5b8c | Shell | jodyhuntatx/conjur-oc-poc | /2_oc_follower/2_init_follower_authn.sh | UTF-8 | 3,288 | 3.609375 | 4 | [] | no_license | #!/bin/bash
source ../config/cluster.config
source ../config/$PLATFORM.config
source ../config/utils.sh
# This script requires running w/ cluster admin privileges
#################
main() {
announce "Initializing Follower authentication."
initialize_conjur_config_map
apply_manifest
initialize_variables
}
#... | true |
93e260c69b31f967d9ac20cf48bb3776b483c126 | Shell | njau-sri/reseq-750 | /hxs-code/using haploview/step1/Haploview_haplotype_blocks.sh | UTF-8 | 2,231 | 3.1875 | 3 | [] | no_license | #!/bin/bash
#
#$ -cwd
#$ -j y
#$ -S /bin/bash
#
#$ -l mem_free=4G
#
PYTHON=/opt/python/bin/python2
VCFTOOLS=/share/apps/vcftools/vcftools-0.1.15
PLINK=/share/apps/plink/plink-1.90b4.3
HAPLOVIEW="java -jar /share/apps/haploview/4.2/haploview.jar -n"
# your code goes here
#按照soybase.org上提供的大豆基因组基因信息,得到基因组上共计基因间区53645个... | true |
d03df7583f8dd13dc3e09f75537a162296f24b38 | Shell | skullface20/chaperone-docker | /centosbase/setup/create-binaries.sh | UTF-8 | 1,599 | 3.96875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# This is NOT run during the docker image build, but is here for convenience because it is part of
# a pre-build setp. Some installations require gcc and all the development tools, which adds 100MB or
# more to the image! Hate that! So, what we do in the Makefile is this:
#
# docker run -i ubuntu:14.0... | true |
e2173e44561230a5c5c10deeca3704a635c0a4b0 | Shell | emiloslavsky/dxCompiler | /scripts/compiler_image/build_compiler_docker_image.sh | UTF-8 | 1,479 | 4.09375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash -e
# Create a public docker image for dxCompiler that allows a simple command line invocation
# Find the root directory of the distribution, regardless of where
# the script is called from
base_dir=$(dirname "$0")
root_dir=$base_dir/../..
# Figure out the version number
conf_file=$root_dir/compiler/src/m... | true |
d4754814aaa7169dce65498c2fe0fe5a85108ca6 | Shell | SmartAuditing/Smart-Contract-Hacker-Playground | /PoWH_Coin/start_level | UTF-8 | 753 | 2.734375 | 3 | [] | no_license | #!/bin/bash
if [ "$1" != "1" ]; then
echo "Please select level 1"
exit
else
trap 'kill $(jobs -p)' EXIT
rm -rf build
fi
KEY1="D2823AE08A737570063BCC8A6D396D6A8A5C2B2A4CD4A5BA79C9AA349AF7205F"
printf "Running test network...\n"
npx ganache-cli --account '0x601aaaf5f9ac507ffd34eb3b10bb1bf7b382bf312f460572ba20... | true |
6d849a887f2dcb4098eafbbbbae69526eaa49bdd | Shell | salvatorebrk/Linux-shell | /sl0.sh | UTF-8 | 692 | 2.6875 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
#Author Salvatore Bruccoleri 10/25/17
BAUD=38400
MY_IP=192.168.220.10
U_IP=192.168.220.1
#Include module SLIP/CSLIP when you compile Kernel
echo "Start Slip on Toradex Colibri i.MX6DL"
insmod /lib/modules/3.14.52-v2.6.1b1+g3894f6d/kernel/drivers/net/slip/slhc.ko
if [[ $? != 0 ]]
then... | true |
65bd4985ec61a83c714bb443e7738f75ed98b6e4 | Shell | OssuOlen/skriptimine | /praks7/yl4 | UTF-8 | 430 | 3.0625 | 3 | [] | no_license | #!/bin/bash
#
kell=`date | cut -c12-13`
#
if [ $kell -gt 6 -a $kell -lt 12 ];
then tervitus="tere hommikust, "
elif [ $kell -ge 12 -a $kell -lt 16 ];
then tervitus="tere päevast, "
elif [ $kell -ge 16 -a $kell -lt 20 ];
then tervitus="tere ohtust, "
else tervitus="KAO MAGAMA, "
fi
echo -n "$tervitus "
echo -n `who am ... | true |
6ed42229ce540eafce14fd61ea39b9142ec56092 | Shell | wcurrie/docker-consul | /up.sh | UTF-8 | 391 | 2.59375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
. funcs.sh
# start 3 servers
for i in {1..3}
do
docker run --detach --publish=8500 --name srv-$i --hostname srv-$i gliderlabs/consul-server -bootstrap-expect 3
ip=$(dip srv-$i)
export srv$i=$ip
done
docker exec srv-2 consul join $srv1
docker exec srv-3 consul join $srv1
# start 3 clients
fo... | true |
d5735bb73467e1812740825b542a6988d355508b | Shell | danikron/dotfiles | /homedir/config/bspwm/panel_resources/battery | UTF-8 | 747 | 3.328125 | 3 | [] | no_license | #! /bin/zsh
BATTERY=$(acpi -b | cut -d',' -f2 | grep -o '[[:alnum:]]*')
CHARGER=$(acpi -a | cut -d' ' -f3)
case $BATTERY in
[8-9]?|100)
LEVEL="\uf240"
;;
[6-7]?)
LEVEL="\uf241"
;;
[4-5]?)
LEVEL="\uf242"
;;
[2-3]?)
LEVEL="\uf243"
;;
1?)
LEVEL="\uf244"
;;
[0-9])
LEVEL="%{F#FFA54242}\uf244%{F... | true |
340f62bf9df8eea77fcaca3e3740e9c27e35e922 | Shell | rahul-c1/learnAnalytics-MicrosoftML | /Instructor-Resources/install-rstudio-ubuntu.sh | UTF-8 | 411 | 3.140625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
## install rstudio
ARG1=${1:-1.0.136}
RSTUDIO_VERSION=$ARG1
# RSTUDIO_FILE=rstudio-server-rhel-"$RSTUDIO_VERSION"-x86_64.rpm
RSTUDIO_FILE=rstudio-server-"$RSTUDIO_VERSION"-amd64.deb
wget https://s3.amazonaws.com/rstudio-dailybuilds/"$RSTUDIO_FILE"
apt-get install -y gdebi-core
gdebi --option=APT::Get::f... | true |
93a87ba583b43aeddc6b9594fc74b3148595010d | Shell | djinn/FrameworkBenchmarks | /toolset/setup/linux/languages/erlang.sh | UTF-8 | 616 | 2.953125 | 3 | [] | no_license | #!/bin/bash
fw_installed erlang && return 0
VERSION="18.2-1"
RELEASE="trusty"
ARCH="amd64"
fw_get -O http://packages.erlang-solutions.com/erlang/esl-erlang/FLAVOUR_1_general/esl-erlang_${VERSION}~ubuntu~${RELEASE}_${ARCH}.deb
dpkg -x esl-erlang_${VERSION}~ubuntu~${RELEASE}_${ARCH}.deb $IROOT/erlang
$IROOT/erlang/us... | true |
7dee7ff9dfb8691cfacef7b8a6c438ca82771b5b | Shell | maul-esel/boolector | /examples/btormc/run-examples.sh | UTF-8 | 4,317 | 3.21875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
readonly DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
readonly OUTDIR=$DIR/out
readonly MCWITNESSDIR=$DIR/mc-witnesses
BTORMC=$DIR/../../bin/btormc
if [ ! -e $BTORMC ]
then
echo "[error] BtorMC not built"
exit 1
fi
BTORSIM=$DIR/../../../btor2tools/bin/btorsim
if [ ! -e $BTORSIM ]
then
echo ... | true |
1a423c4126fd600e0b0a0810a29cf0e141abd44d | Shell | grantmacken/gmack.nz | /bin/db-list | UTF-8 | 810 | 3.703125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -Eeuo pipefail
declare -a args
args=("$@")
BaseName=$(basename "${BASH_SOURCE[0]}")
source .env
CURL="ghcr.io/grantmacken/podx-curl:${CURL_VER}"
CRL="podman run --rm --pod ${POD} ${CURL} --silent --show-error --connect-timeout 1 --max-time 2 "
function msg() {
echo >&2 -e "${1-}"
}
function... | true |
24d87c196d1ca9b6a194fcf4525179c4eb008d42 | Shell | atareao/dialogos | /yad/ejemplo_09.sh | UTF-8 | 599 | 3.125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
componente=$(yad --list \
--title="https://www.atareao.es" \
--height=200 \
--width=100 \
--button=Aceptar:0 \
--button=Cancelar:1 \
--center \
--text="Selecciona un componente para tu pizz... | true |
4a312aeef31fe7d03abb563ed41fc8ccfe57d610 | Shell | amsks/hoad | /hanabi_env/build_hanabi.sh | UTF-8 | 1,194 | 3.578125 | 4 | [] | no_license | #!/bin/bash
ROOT_DIR=`pwd`
# Create CMake build dir
printf "\n######################### Step 1 #########################\n"
printf "Create cmake build dir for Hanabi\n\n"
HANABI_BUILD_DIR=$ROOT_DIR/build/
if [ -d "$HANABI_BUILD_DIR" ]; then
rm -rf $HANABI_BUILD_DIR
fi
echo "Make Directory at $HANABI_BUILD_DIR"
mk... | true |
80501aadd526a1c358d808a9d34e3554107bf0bd | Shell | pajitnov/videoApp | /deploy.sh | UTF-8 | 594 | 2.75 | 3 | [] | no_license | #!/bin/bash
set -e
set -u
DB_USER=apajitnov
DB_PWD=lvlstudio4200
#$DB_PWD
echo "This uploads content of the folder to the local cloud and publishes to \n http://e2.lvlstudio.local \n http://e2.lvlnetworks.com "
read DB_USER
#echo "Please enter your username"
#read -s DB_USER
#tar --exclude='./deploy.sh' --exclude='./... | true |
caacb9642c507faf8edd8cd582a1a1041148e454 | Shell | mathieubouchard/nutch-scripts | /crawl | UTF-8 | 428 | 2.96875 | 3 | [] | no_license | #!/bin/sh
SOURCE_DIR=$( dirname "$0" )
DIR=$( cd "$SOURCE_DIR" && pwd )
. $DIR/common.sh
CORE_NAME=$1
CRAWLDB_DIR=${CORES_HOME}/${CORE_NAME}/crawldb/crawldb
NUTCH_HOME=${CORES_HOME}/${CORE_NAME}/apache-nutch/
if [ ! -e $CRAWLDB_DIR ]; then
mkdir -p $CRAWLDB_DIR
fi
check_params $1
initialize $CORE_NAME $CRAWLDB... | true |
079a4de92882034b996bf4bf0c0c2f11c3b2a330 | Shell | akhilvijay8232/Akhil-Vijay12345 | /Desktop/AV/addname.sh | UTF-8 | 242 | 3.640625 | 4 | [] | no_license | echo "no of arguments $#"
count=$#
FILE=$1
un=$2
if [ -f "$FILE" ]
then echo "file: $FILE exist"
else
echo "file: $FILE does not exist NOT FOUND"
fi
if grep -q $un "$FILE"
then
echo "$un present"
echo "$un not present"
echo $un >> $FILE
fi
| true |
baf800bfc07865ee6754083b8fafac3047f11105 | Shell | rcandidosilva/vagrant-alm | /sonar.sh | UTF-8 | 1,171 | 2.796875 | 3 | [] | no_license | #!/bin/sh
sudo yum -y install wget
/vagrant/install-oracle-jdk.sh
#Install MySQL Server
sudo yum -y install mysql-server
sudo /sbin/service mysqld start
sudo chkconfig mysqld on
sudo /usr/bin/mysqladmin -u root password '123456'
#Install Sonar
cd /opt
sudo wget -O /etc/yum.repos.d/sonar.repo http://downloads.source... | true |
cef8f28618cc204ba1a817567b286fdf9620ecd6 | Shell | project-ubin/ubin-quorum-setup | /binaries/setup/install.sh | UTF-8 | 3,892 | 3.84375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
show_menu(){
NORMAL=`echo "\033[m"`
MENU=`echo "\033[36m"` #Blue
NUMBER=`echo "\033[33m"` #yellow
FGRED=`echo "\033[41m"`
RED_TEXT=`echo "\033[31m"`
ENTER_LINE=`echo "\033[33m"`
echo -e "${MENU}*********************************************${NORMAL}"
echo -e "${MENU}**${MENU}... | true |
91b2bf2d204b0a779dc1a6edec1d4895099f02f1 | Shell | mbertrone/polycube | /Documentation/devel/install-autocodegen-tools.sh | UTF-8 | 2,856 | 3.96875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# This script installs the tools needed to automatically generate the
# code for a new service, together with their dependencies.
# In particular, it installs the pyang-swagger tool that is used to
# generate the swagger-compatible REST APIs and the swagger-codegen
# tool that is used to generate the servi... | true |
ac5e6d91322959a0ad37cc04e598cffb4ac538a4 | Shell | jenselstilzchen/gitsync | /scripts/del | UTF-8 | 1,278 | 3.828125 | 4 | [] | no_license | #!/bin/bash
#move files and directories to ~/deleted/yyyy-mm-dd_HH-MM-SS instead of deleting them
#last updated 17.02.2020
#02.08.2021 added progressbar and now moving files to /tmp/ instead of ~/deleted/
source ~jens/bin/progressbar.sh || exit 1
declare -a INPUT
INPUT=($@)
DATE=$(date +%Y-%m-%d_%H-%M-%S)
[ "$1" ==... | true |
60e94d40066f3c177c253afac6d83458d740b6cf | Shell | kazufusa/til | /20220813_bq_partitioned_table/read_size.sh | UTF-8 | 1,379 | 3.15625 | 3 | [] | no_license | #!/bin/sh
set -Ceux
# BQ datasets
# 1. dataset(us west1)
# 2. dataset2(asia-northeast1)
#
# GCS buckets
# 1. bigquery-export-608e6a2be981e351 (us)
# 2. bigquery-export-7825b675403f1831 (asia-northeast1)
export DATASET_US=dataset
export DATASET_TOKYO=dataset2
export GCS_US=bigquery-export-608e6a2be981e351
export GCS_... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.