blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
ed5f5c5e58d5ff4983974a5f2f63c9bbd1be9cec | 84 | function cd()
{
builtin cd "$@"
if [ -f .description ]; then
cat .description
fi
}
|
c3af07445e26f2f0a9ecbfa4063a525878326df4 | 2,381 | # $NetBSD: t_vnode_leak.sh,v 1.7 2018/01/17 00:23:17 maya Exp $
#
# Copyright (c) 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistri... |
5af1c5914167630d8d30eb73d3dfe1f5786167d4 | 3,922 | #!/bin/bash
# Post installation dedibox
# Sécurisation
# Open Source Services - 01/2015
# GPL
#
# Syntaxe: # su - -c "./secure-01.sh"
# Syntaxe: or # sudo ./secure-01.sh
#
# Doit etre lance en root
if [ $EUID -ne 0 ]; then
echo "Le script doit être lancé en root: # sudo $0" 1>&2
exit 1
fi
# Fonctions
#----------... |
9a34498dc57cc5cd31f112b90121843eab00686a | 370 |
status=running # 1: running, 0: finished, 2: failed
mysql="mysql -h xxxxxxx -P 3306 -uroot -p123"
#$mysql -NBe " use artist_at_ease;select task_name, starttime, endtime, status, wget_path from neural_style_report where status = '${status}';"
$mysql -NBe " use artist_at_ease;select task_name, starttime, endtime, stat... |
7cebb72c447ac3d5177df394509a6b331f40505f | 1,758 | #!/bin/bash
# Copyright 2020 VMware, Inc.
# SPDX-License-Identifier: Apache-2.0
set -o errexit # Exits immediately on unexpected errors (does not bypass traps)
set -o nounset # Errors if variables are used without first being defined
set -o pipefail # Non-zero exit codes in piped commands causes pipeline to fail
... |
f2a75fd26feed8033a21c67ca8022f8864d786de | 166 | #!/usr/bin/env bash
#
# SSH to a server.
#
user="$USER"
server="86.28.170.125"
port=6176
ssh -o TCPKeepAlive=yes -o ServerAliveInterval=50 -p $port "$USER@$server"
|
0e2f1e71202003761bf242fa8911b0fda1463cd7 | 35 | docker image build -t mllabs:1.0 .
|
c51a3a3082a3febe8d674c24ddc8d399ab7cbd5e | 43 | #!/bin/bash
javac Q3/*.java
java Q3/Main
|
857411bbc55a47d743d4d23257f6a5797889fe43 | 1,232 | #!/bin/bash
# Jaspersoft Studio 6.5.0
sudo mkdir /tmp/jaspersoft && cd "$_"
sudo wget https://downloads.sourceforge.net/project/jasperstudio/JaspersoftStudio-6.5.0/TIB_js-studiocomm_6.5.0.final_linux_amd64.deb
sudo dpkg -i TIB_js-studiocomm_6.5.0.final_linux_amd64.deb
# Jaspersoft Studio 6.4.3
#sudo mkdir /usr/local/... |
957ddcc822c1bced53b670af12aae952fe35817b | 388 | #!/bin/sh
# GoogleCDN からファイルをダウンロード
# 先に root で /ajax ディレクトリを作っておく事
# @see https://developers.google.com/speed/libraries/devguide?hl=ja#jquery
VERSIONS=$@
for v in $VERSIONS
do
URL="http://ajax.googleapis.com/ajax/libs/jquery/$v/jquery.min.js"
DIR="/ajax/libs/jquery/$v/"
mkdir -p $DIR
curl -o $DIR/jquery.min.js ... |
e3c8fdaf3404cbf522013021f5096548a39eef89 | 259 | #!/bin/sh
#set -x
#set -e
echo "Enter 's' for set up and 'd' for shut down > "
read action
if [ $action = "s" ]; then
echo "Set Up..."
ifconfig
./route.sh
elif [ $action = "d" ]; then
echo "Shut Down..."
./delAllDef.sh
else
echo "Invalid Command!"
fi
|
395da3a1fa9eeb961673bc76b6761c59d2a3ee92 | 1,597 | #!/bin/bash
# Author:
# Héctor Molinero Fernández <me@znt.se>.
#
# Exit on errors:
set -e
#############################################
# Messages: #
#############################################
function infoMsg {
echo -e "\e[1;33m + \e[1;32m$1 \e[0m"
}
function promptMsg {
... |
c3575b599f7c426998e6139417d7978c23aa17ff | 1,111 | #!/usr/bin/env bash
#Remove adapters from small RNA sequencing studies
echo "Removing sequencing adapters from reads"
cutadapt -m 15 --adapter='TCGTATGCCGTCTTCT' SRR029131.fastq | gzip -c >SRR029131_trimmed.fastq.gz
cutadapt -m 15 --adapter='TCGTATGCCGTCTTCT' SRR029124.fastq | gzip -c >SRR029124_trimmed.fastq.gz
c... |
54cd81ab0dedaba11e45ac05bf7ee937893cf72a | 1,925 | #!/bin/bash
# http://ip-api.com/batch?fields=country,countryCode
# API documentation: https://ip-api.com/docs/api:batch
# Example request body: '["208.80.152.201", "91.198.174.192"]'
check_ip_geolocation() {
# Construct request body
BATCH_IPS=$1
BODY="["
for IP in ${BATCH_IPS[@]}; do
BODY+='"'$... |
cc56de03c33db712bb3932b61db58f703a5a4e8e | 926 | #!/bin/bash
# This script is meant to be the entrypoint for OpenShift Bash scripts to import all of the support
# libraries at once in order to make Bash script preambles as minimal as possible. This script recur-
# sively `source`s *.sh files in this directory tree. As such, no files should be `source`ed outside
# of... |
50ebb26c062e833c0989d496213f478e23b12c46 | 131 | add-apt-repository -y ppa:chris-lea/redis-server
apt-get -q -y --force-yes install redis-server={%version%} redis-tools={%version%} |
bd55322e0e43bfa02f68afc1555c99f3c85b5423 | 938 | # Maintainer: Steven Allen <steven@stebalien.com>
# COntributor: Ferk <ferkiwi at gmail.com>
# Contributor: Shizeeque Unadequatov <shizeeque@gmail.com>
pkgname=imlib2-webp-git
_gitname=imlib2-webp
pkgver=20131017
pkgrel=1
pkgdesc='A WebP loader for Imlib2. Enables WebP support for every application that uses the imlib... |
ae8ea921d2ae1c3d24e0270e29f0592db69552e6 | 440 | #/usr/bin/env bash
gfortran parametersData.F90 -o xpara
./xpara
rm xpara
cd ../1_picks/
gfortran dataSelectSourceGather.F90 -o xgather
./xgather
rm xgather
gfortran receiverGather.F90 -o xrec
./xrec
rm xrec
mv evtstaminmax nevtstaray traveltimeReceiverGathers sources receivers ../../
rm earthquakesOnlyInResearchReg... |
6e449ccf1fa001ab4b3434b17a047ac05dec61ac | 27 | PATH=$PATH:/home/user/bin
|
ef575101a4cfb10a49253c8725052fe00669490a | 186 | #!/bin/bash
#
# fehbg-loop.sh --- Randomize and set the wallpaper (and also change it again every hour)
while true; do
feh --randomize --bg-fill ~/Pictures/wallpapers/*
sleep 1h
done
|
1f4cb334cd87a585861f3aa9c20d9293540ce815 | 1,221 | #!/bin/bash
# exit when any command fails
set -e
VER=$1
echo Bumping version to v${VER}...
cd packages/focal && yarn version --new-version $VER --no-git-tag-version && cd ../..
sed -i '' 's/grammarly\/focal":.*"\(.*\)$/grammarly\/focal": "'${VER}'"\1/g' packages/examples/all/package.json
sed -i '' 's/grammarly\/foc... |
45ebc5ee4507c2748818a48501310f926d76c156 | 85 | /scratchbox/compilers/cortex-linux-gnueabi/arch_tools//share/libtool/config/ltmain.sh |
ed9277937fd4a819c67f63c336b5ecc3726e2726 | 91 | #!/bin/bash
RUBY_HOME=$STORY_SPEC_OPT/ruby
PATH=$RUBY_HOME/bin:$PATH
bundle exec cap $@
|
da96af5fb9db17d7440a2e103442091d2ab29dae | 593 | #!/bin/bash
#a)
no_of_inches=42
#scale=4 fixes no of digits after . to 4
no_of_feets=$(echo "scale=4; $no_of_inches / 12" | bc -l)
echo "42 inches = $no_of_feets feets"
#b)
length_in_ft=60
breadth_in_ft=40
area_in_ft=$(( length_in_ft * breadth_in_ft ))
#scale=4 fixes no of digits after . to 4
area_in_m=$(echo " scale... |
6464d6d687519e4f41ac46266d1cd8c3d76ca67a | 316 | #!/bin/sh
BUILD_DIR="build"
mkdir -p ${BUILD_DIR}
cd ${BUILD_DIR}
rm -fr debug
mkdir debug
cd debug
cmake \
-DCMAKE_BUILD_TYPE=Debug \
-DGCC_ROOT=/usr \
-DBUILD_TESTS=ON \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
../..
|
94f7f92a2d4fe9848b087b0db782f564fe60ee9c | 580 | #!/usr/bin/env bash
source "$DIR/utils/index"
info "Setup \033[0;37m[vim]\033[0m"
plugin_path="${XDG_DATA_HOME:-$HOME/.local/share}/nvim/site/autoload/plug.vim"
if [ ! -f $plugin_path ]; then
sh -c "curl -fLo $plugin_path --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim"
#... |
9000349d8c8570c462c712c6a2a2f36258fac2b8 | 200 | #!/bin/sh
module="pipeq"
device="pipeq"
# invoke rmmod with all arguments we got
/sbin/rmmod $module $* || exit 1
# Remove stale nodes
rm -f /dev/${device} /dev/${device}[0-3]
|
b247a639e5070faaf8f57b900707f8881869149d | 25 | ./selfcommand.sh t28.txt
|
0820ac47c3b0497ac4f52be6971c47a71537b0e2 | 376 | #!/bin/sh
#
# face2xbm
# convert an mail face back into a normal xbm file
#
# Anthony Thyssen 10 Jan 1994 anthony@cit.gu.edu.au
#
(
echo '/* Format_version=1, Width=48, Height=48, Depth=1, Valid_bits_per_item=16'
echo ' */'
uncompface
) | icontopbm | pbmtoxbm |
sed 's/static *char/static unsig... |
4588e003cefd74a6c33f3ac6a4e30177298c68fb | 668 | # Learning Series: Network Programmability Basics
# Module: Programming Fundamentals
# Lesson: REST Part 1
# Author: Hank Preston <hapresto@cisco.com>
#
# curl_examples.sh
# Illustrate the following concepts:
# - REST API Basics
# - Leveraging curl utility
# Example 1: Random Chuck Norris Joke
curl https://api.icndb.c... |
5b626b024e9d495057dca03414825f756f353596 | 15,039 | #!/usr/bin/env bats
setup() {
export LC_ALL="en_US.UTF-8"
cd $BATS_TEST_DIRNAME/../egs/wsj/asr1
utils=$(cd $BATS_TEST_DIRNAME/..; pwd)/utils
tmpdir=$(mktemp -d testXXXXXX)
mkdir -p $tmpdir/data
ark_1=$tmpdir/test_1.ark
mkdir -p $tmpdir/data_multilingual
ark_1_multilingual=$tmpdir/test... |
f87888875b9218b9bc9ae6954a478322a0027c00 | 1,770 | #!/bin/sh
dockerUsage() {
cat 2>&1 <<EOF
This container must be linked with the cs (as 'dctm-cs') and bam (as bam) servers.
Something like:
docker run -dP --name apphost -h xms --link dctm-cs:dctm-cs --link bam:bam dctm-apphost
EOF
exit 2
}
# check container links
[ -z "${DCTM_CS_NAME}" -o -z "${BAM_NAME}" ] ... |
eecacbc0a25056409d2ca0dd889627062e17b57c | 101 | for i in HLT_PA*txt
do
echo $i
cd ${i/.txt}
crab submit -c pickevents_crab.py
cd ..
done
|
30b7b79c5a45eacc9eda8eb962acc44571063514 | 97 | #!/bin/bash
rm -f *.toc *.aux *.dvi *.ps *.snm *.log *.vrb *.out *.nav a.out
rm -rf _minted-main
|
6cd968c446ceea208cd77d776e817debb2a65adc | 69 | DB_HOST=""
DB_NAME=""
DB_USER=""
DB_PASS=""
ADMIN_ID=""
ADMIN_PASS="" |
933c31b2380cc562b706d19c1b61f011ce650f0e | 68 | # JWT Setting
SECRET=just_some_secret
# Bcrypt Setting
SALT_ROUNDS=2 |
f78f829963eeffc474f8fea7f2728e9146318387 | 1,307 | #!/usr/bin/env bash
# This is a simple script using zenity to popup input dialog for video url link
# then feed it to streamlink.
#
# Copyright 2022 Jeff Chien
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Softw... |
fe3099f40ad782f7fbedba4b4b6b3ac984f290f9 | 663 | #!/usr/bin/env bash
#/var/githome/ecm-drive/drive-rest/build/libs
cd /var/githome/ecm-drive
git pull https://git.nextcont.com/Dev/ecm-drive.git
echo -e "\033[41;37m git pull complete... \033[0m"
gradle clean
echo -e "\033[41;37m gradle clean complete... \033[0m"
gradle build -x test
echo -e "\033[41;37m gr... |
e584e66b9d0d53c1d98572e960350fa2e06a09f1 | 1,159 | # Based on the file created for Arch Linux by:
# Contributor: fancris3 <fancris3 at aol.com>
# Contributor: fbianconi <fbianconi at gmail.com>
# Contributor: Moritz Maxeiner <moritz@ucworks.org>
# Maintainer: Philip Müller <philm[at]manjaro[dot]org>
pkgname=forecasts
pkgver=221.a169559
ever=0.18.5
pkgrel=3
pkgdesc="En... |
d3db1f3261da168d19a7c43af2027b4d58601edc | 973 | sudo rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
sudo cat > /etc/yum.repos.d/elasticsearch.repo << EOF
[elasticsearch]
name=Elasticsearch repository for 7.x packages
baseurl=https://artifacts.elastic.co/packages/7.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=0
a... |
054de0f53fcaa8d0c137c2b1d06d7ec70b194d51 | 286 | #!/bin/bash
#
# Builds all the demos
set -e
PROJECT_ROOT=`readlink -f $(dirname $0)/..`
cd $PROJECT_ROOT;
for demo in *; do
if [ ! -f "$demo/wscript" ]; then
continue
fi
pushd $demo
rm -rf deploy
wafl -v distclean configure install -j1 "$@"
popd
done
|
e850d2e93b37091db4eec71bef461a6774504c29 | 1,331 | #!/bin/bash
echo "dir_a tests ..."
echo "Creating file dir_a/admin.txt"
sudo -u admin bash -c 'echo "Hello from admin: dir_a/admin.txt" > dir_a/admin.txt'
echo "Viewing file dir_a/admin.txt"
sudo -u admin bash -c 'cat dir_a/admin.txt'
echo "Removing file dir_a/admin.txt"
sudo -u admin bash -c 'rm dir_a/admin.txt'
ech... |
6b1b910ef8882fa7fb032a0f0aad4242ce7846c4 | 884 | #!/usr/bin/env bash
ME=$(readlink -f $0)
HERE=${ME%/*}
PRODUCT="rr62x"
PVERSION="1.2"
PTARGET="/usr/src/${PRODUCT}-${PVERSION}"
die() {
>&2 echo "ERROR: $@"
exit
}
[ -d "$HERE" ] || die "Can't figure out where we are"
[ -f "${HERE}/dkms.conf" ] || die "Can't find dkms.conf"
[ $(id -u) -eq 0 ] ... |
7a333b182da6153b01945a77226a108875a80bff | 1,084 | #!/bin/bash
# build docker of kafka docker service
echo "[INFO] Building Kafka Docker Service..."
docker-compose -f kafka_docker/local.yml build
echo "[INFO] Kafka Docker Service build successfully"
# build docker of notification data handler service
echo "[INFO] Building Notification Data Handler Service..."
docker-... |
7a29ff6712160b94f9c2283b9a6b516df9b3c898 | 76 | #!/usr/bin/env bash
# killing a process
pkill -f 4-to_infinity_and_beyond
|
ae216ab4b1b727a62e625e8bc8038f3fe06ea2d0 | 4,223 | #!/bin/bash
VERSION=1
SANS_ARGS=0
E_ERREUROPTION=65
#Récupération des differents chemins
#Si on est dans le répertoire plugins ou dans un de ses sous répertoires ex : plugins/saisies
if [[ "`pwd| grep plugins`" ]]; then
repertoire_racine=${PWD%/plugins*}
repertoire_plugins=$repertoire_racine/plugins
reper... |
06483d7fd7cecb51e885431cdee7ddbd31b46d32 | 353 | #!/bin/bash -li
echo "/* Traducao de Potigol para Scala usando http://github.com/potigol/potigol2scala" > $1.scala
cat $1 >> $1.scala
echo "*/" >> $1.scala
cat /workspaces/gitpod/lib/potigolutil.scala >> $1.scala
echo "object Main extends App{" >> $1.scala
potigol -d $1 | tail -n +6 >> $1.scala
echo "}" >> $1.scala
ec... |
9adbbdd0aa450603463055376e708deb11cd945d | 23 | brew cask install onyx
|
dbe5bd7911891a05255b16288f90777cc74939d7 | 560 | pkg_origin=cosmos
pkg_name=libisofs
pkg_version=1.4.6
pkg_description="Library to create an ISO-9660 filesystem with extensions like RockRidge or Joliet. "
pkg_upstream_url="http://libburnia-project.org"
pkg_license=('GPL')
pkg_deps=('acl' 'zlib')
pkg_source=("http://files.libburnia-project.org/releases/${pkg_name}-${... |
47d7a056e635f8c2e83f0b74305a9edc8d8dbee9 | 297 | # Install Homebrew deps
xcode-select --install >> .droplog 2>&1
# If Homebrew is already installed and in the PATH, exit.
if command -v brew >> .droplog 2>&1; then
exit;
fi
# Install Homebrew (Default)
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
a07696301ce2a5679bde8e1911325749b66964e2 | 567 | #! /bin/bash
#安装ansible
# 一种
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install ansible
#
# 二种pwd
/etc/yum.repos.d
# cat aliBase.repo
[aliBase]
name=aliBase
baseurl=https://mirrors.aliyun.com/centos/$releasever/os/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://mirrors.al... |
36c7ea02860c09d909166520bdca118ef03077b0 | 1,699 | #########################################################################
# File Name: deploy.sh
# Author: qiezi
# mail: qiezi@gmail.com
# Created Time: Wed 19 Feb 2020 12:29:13 PM CST
#########################################################################
#!/bin/bash
# ===================run the script with root us... |
df1902a35c2b7b5c6b6b43e41451a6af4da935c9 | 268 | #!/bin/sh
LNAME=$2
if [ -z $LNAME ] ; then
LNAME=`whoami`
fi
echo adb shell am start -a android.intent.action.VIEW -n org.mozilla.fennec_$LNAME/.App -d $1
adb shell am start -a android.intent.action.VIEW -n org.mozilla.fennec_$LNAME/org.mozilla.gecko.BrowserApp -d $1
|
963387dc41b38b13d771008b9997edfbd92fbedf | 975 | #!/usr/bin/env bash
# Setup web browsers
source ./functions/utils.sh && no-root
# Add Brave web browser repository
# Free and open-source privacy focused web browser by Brave Software,
# founded by the creator of Javascript and former CEO of Mozilla Corporation
apt-install apt-transport-https curl
curl -s https:/... |
c5fcd875beab9b00f1434625b26f02c4001631e9 | 258 | for i in 0 1 2 3
do
{
if [ $i -eq 0 ]
then
python testbed.py
elif [ $i -eq 1 ]
then
python testbed.py --acc
elif [ $i -eq 2 ]
then
python testbed.py --pos
elif [ $i -eq 3 ]
then
python testbed.py --acc --pos
fi
}&
done
wait
|
497787464b6d00e7f44b96b6f535257fd1497be9 | 75 | #!/usr/bin/env bash
set -x
CC=gcc make clean all
CC=clang make clean all
|
ab35a06a41fa3cbe7c9af7b06a7a51ade8150821 | 123 | #!/bin/bash
FRASE="shell script usando estrutura repetição for terminal"
for PALAVRA in $FRASE ; do
echo $PALAVRA ; done |
0a6678824583f3a9ab4cc3e76c6e9714dcf7499a | 2,200 | #!/bin/bash
# ----------------------------#
# CORE------------------------#
# ----------------------------#
function process {
# Create projects folder structure
mkdir $project;
cp -r android $project/$project-android;
cp -r desktop $project/$project-desktop;
cp -r core $project/$project;
cd $project;
find . -... |
7ada79c5ee8b78ed255c5988d325b5eafe1dae17 | 189 | #!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
for i in $(seq 1 10000000)
do
printf "\n\n============================== $i ==============================\n\n"
mvn clean verify
done
|
bf68d518144566f47bddf1359dea390f70283ef2 | 280 | pip install cmake
pip install open_spiel
pip install -e .
pip install -U https://s3-us-west-2.amazonaws.com/ray-wheels/master/4de1f35b3e626db0456232bdaaf8efb6fc098ba7/ray-2.0.0.dev0-cp36-cp36m-manylinux2014_x86_64.whl
pip install --upgrade opencv-python
pip install 'aioredis<2.0' |
59aaa09d015bb8afb135f2a9593003400a448e13 | 214 | ctioga2 --name center_xz --line-style no --marker Circle --marker-scale 0.05 \
-c Blue center_3d.dat@1:3 \
--xrange -200:200 --yrange -200:200 \
-x 'Arcseconds East of Centre' -y 'Arcseconds into Sky'
|
d453531c0e48722d633fd342bc6d70d802bbfc4e | 1,205 | #!/usr/bin/env bash
set -e
# Locations
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
CONFIG_HOME="../home"
DOTBOT_DIR="../dotbot"
DOTBOT_BIN="bin/dotbot"
#
# Getting config file for host
#
unameOut="$(uname -a)"
MACHINE_TYPE="anonymous"
if [[ "$unameOut" =~ "mini-linux" ]]; then
MACHINE_TYPE="server"
e... |
8c7a4fc2cd8a0ffbe1a7da424cc727974357896f | 51 | solo-machine chain balance applemint_9000-2 aapple |
48b50fa81b234aaa0494c7085fdb2531de870f84 | 295 | From the dip_tet_2.scores result sort the column number 11, assuming that you have a contrast of two things, tail refers to 1% outliers (check by wc -l the number of snps you get, and take 1%)
sort -k11 -n dip_tet_2.scores | tail -21085 | sort -k 1,1 -k 2,2n > dip_tet_outliers_2_0.01.sorted
|
c986a238d6773f7ab9614c6798b3ef57d5722d29 | 2,813 | FROM ubuntu:18.04
CMD ["/bin/bash"]
RUN apt-get -y -qq update && apt-get -y -qq upgrade \
&& echo "12 4" | apt-get -y -qq install software-properties-common \
&& apt-get -y -qq install \
apt-transport-https \
ca-certificates \
gnupg-agent \
python3 \
python3-pip \
gnupg2 \
unzip \
ipu... |
c821f7165b9af69f386da7511bebd9907db962cd | 4,569 | #!/bin/bash
GO=0; if [[ "$1" == "--go" ]]; then GO=1; shift; fi;
LSF=0; if [[ "$1" == "--lsf" ]]; then LSF=1; shift; fi;
PRI=0; if [[ "$1" == "--pri" ]]; then PRI=1; shift; fi;
GS=0; if [[ "$1" == "--gs" ]]; then GS=1; shift; fi;
CBL="cern"; if [[ "$1" == "--cbl" ]]; then CBL="$2"; shift; shift; fi;
PFIX=0;
if [[ "$... |
52f62b3ad6c092273cab98f04e709a7f8de8e874 | 112 | read file
read str
grep -q $str $file
if [ $? -eq 0 ]
then echo "Found it!"
else echo "It's not in the file"
fi
|
ac709e36ae0e0f006abeae0d92a05ae8ca08e0e1 | 268 | #!/usr/bin/en sh
echo "compile libPCN.so"
g++ -fpic -shared -o libPCN.so PCN.cpp -O3 -D CPU_ONLY -I $CAFFEROOT/include/ -I $CAFFEROOT/.build_release/src/ -L $CAFFEROOT/build/lib/ -lcaffe -lglog -lboost_system -lprotobuf `pkg-config --cflags --libs opencv`
echo "done"
|
f778041245fe1fc5a9569a8f1fd655894205adad | 367 | dist=$(tr -s ' \011' '\012' < /etc/issue | head -n 1)
if [ "$dist" = "Ubuntu" ]
then
apt-get -y install ruby
gem install redis
else
gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
curl -L get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
rvm install 2.3.1
... |
01a8b51b2265e4dfebeb6cc2094512de5bf9f946 | 3,836 | #!/bin/bash
function print_usage(){
echo "Usage: start [-options]"
echo " where options include:"
echo " -help 帮助文档"
echo " -http_port <port> http服务端口号"
echo " -ambari_ip <ip> ambari-server所在主机的IP"
echo " -hostname <hostname> 暂不支持在此脚本内修改,此处不添加该参数或设定参数为... |
9e28db6c473a7356dcbafe736f53fd83c7b79ac3 | 2,079 | #!/bin/bash
#
# Model select standard MHCflurry Class I models.
#
set -e
set -x
DOWNLOAD_NAME=models_class1_selected_no_mass_spec
SCRATCH_DIR=${TMPDIR-/tmp}/mhcflurry-downloads-generation
SCRIPT_ABSOLUTE_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/$(basename "${BASH_SOURCE[0]}")"
SCRIPT_DIR=$(dirname "$SCRIPT_... |
6c74558fb6b98197ad486d6c14a28b535e6487b5 | 293 | dffml accuracy \
-model spacyner \
-sources s=op \
-source-opimp model.spacy.dffml_model_spacy.ner.utils:parser \
-source-args train.json False \
-model-model_name en_core_web_sm \
-model-location temp.zip \
-model-n_iter 5 \
-features tag:str:1 \
-scorer sner \
-log debug |
4c2874f97965ae0422ae0282fea9628a80a9e404 | 4,113 | #!/bin/bash
gzip -dck ./ADMISSIONS.csv.gz | sed 1d | mclient -d mimic -s "COPY INTO MIMICIII.ADMISSIONS FROM STDIN USING DELIMITERS ',','\n','\"' NULL AS ''" - &&
gzip -dck ./DATETIMEEVENTS.csv.gz | sed 1d | mclient -d mimic -s "COPY INTO MIMICIII.DATETIMEEVENTS FROM STDIN USING DELIMITERS ',','\n','\"' NULL AS ... |
e5c75c53d07641f647c729a6b182da83640637bb | 589 | #!/bin/bash -l
set -ex
if [ $ACTION == "xcode" ]; then
if [ -n "$DESTINATION" ]; then
xcodebuild -UseModernBuildSystem=NO -workspace Floatation.xcworkspace -scheme "$SCHEME" -sdk $SDK -destination "$DESTINATION" -configuration Debug -PBXBuildsContinueAfterErrors=0 $XCODE_ACTION
else
xcodebuild -UseModernBu... |
5c1b74bee9197f393522a703f8a9f21033696f7b | 90 | #!/usr/bin/env bash
docker-compose run --rm --user $(id -u) --no-deps app bin/console $@
|
3a99a9154b04820e8f23aa3b3a5d3c8e0af4f319 | 791 | #!/bin/sh
# Format Git commits in colors with IRC
# Usage:
# echo oldrev newrev refname | git/send-message
# Example:
# echo 012345 abcdef master | git/send-message
source "${KAOZ_CLIENTS_PATH:-/usr/share/kaoz-clients}/style/irc-style.sh"
read OLDREV NEWREV REFNAME
BRANCH=$(echo -n "$REFNAME" | sed 's-.*/^\([^/]*\... |
02c10f247dacdcda4979a2d195c5e6cdd63ca7bf | 509 | #!/bin/sh
# Example Usage:
# ./run.sh <IMAGE> <AC_HOST> <AC_PORT> <LOG_LEVEL>
# ./run.sh libra_mint:latest ac.dev.aws.hlw3truzy4ls.com 80 info
set -ex
IMAGE="$1"
CONFIGDIR="$(dirname "$0")/../../terraform/validator-sets/dev"
docker network create --subnet 172.18.0.0/24 testnet || true
docker run -p 8000:8000 -e AC... |
10494650a14b798acb75347ccc2bb3a837386ef4 | 141 | #!/bin/sh
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower --run-
once "${1?Which container do you want?}"
|
f7643c8cfdbf3822033992fcbb714808a766fa62 | 4,150 | os=$(uname)
# Determine working directory
wd=$(pwd)
# Determine current user
user=$(logname)
who=$(whoami)
if [[ $user = "" ]]; then
user="$SUDO_USER"
fi
if [[ $user = "" ]]; then
user="$who"
fi
# TODO: replace these with version checks
if command -v git >/dev/null; then
echo "Git successfully installed."
els... |
007cf1f163c67fe715433dcd7e522a810562ff22 | 679 | #!/bin/bash
echo "******CREATING Bitbucket DATABASE******"
psql --username postgres <<- EOSQL
CREATE DATABASE bitbucketdb;
CREATE USER bitbucket WITH PASSWORD 'insert_bitbucket_db_password_here';
ALTER USER bitbucket WITH SUPERUSER;
EOSQL
echo ""
{ echo; echo "host bitbucket bitbucket 0.0.0.0/0 trust"; } >> "$PG... |
6105b5e40c8a13b09ff2d60a144dfcf6de1e2c3b | 18 | #!/bin/sh
yes omg
|
2743bc14022d0a02510a05881398d0140261627a | 303 | #!/bin/bash
set -e
psql -v ON_ERROR_STOP=1 -U postgres <<-EOSQL
CREATE USER docker;
CREATE DATABASE flask_jwt_auth;
GRANT ALL PRIVILEGES ON DATABASE flask_jwt_auth TO docker;
CREATE DATABASE flask_jwt_auth_test;
GRANT ALL PRIVILEGES ON DATABASE flask_jwt_auth_test TO docker;
EOSQL
|
15e85779423fbd9265510af8aa9999670b46ed1a | 364 | #!/bin/bash
## Downloading nginx 'default' file
if [[ $(ls play.yml | grep play.yml) ]];
then
echo "# Existing play.yml detected. Deleting and downloading a new one."
rm play.yml
wget https://github.com/jmcausing/LXCWP/raw/master/play.yml
else
echo "Downloading play.yml playbook"
wget https://github.... |
ce3541b7ce24a44c4b957f429e5d81948d3c99e0 | 157 | #!/bin/sh
# Don't debug-print executed commands, silence docker warning
set +x
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
4413451a0a74b93475f6bc326092f900b92fea6b | 185 | #!/bin/bash
yum update -y
yum install -y httpd
echo 'Hello from Terraform ' > /var/www/html/index.html
service httpd start
sudo yum install -y epel-realease
sudo yum install -y stress |
645050fe39bc7567eb678e600921f11a6b234ab6 | 223 | #!/bin/bash
sshfs rpm@192.168.14.11:/home/rpm /home/hhh/.bridgy/mounts/rpm -o auto_cache,reconnect,no_readahead -C -o TCPKeepAlive=yes -o ServerAliveInterval=255 -o StrictHostKeyChecking=no
sudo umount /home/hhh/.sshfs/rpm
|
36a3c57fb1c56bdb7bf907b5781c68956aa0a4c8 | 212 | #!/bin/bash
./run-multiple.sh read > resultD2V2-read.txt
./run-multiple.sh randread > resultD2V2-randread.txt
./run-multiple.sh write > resultD2V2-write.txt
./run-multiple.sh randwrite > resultD2V2-randwrite.txt
|
664972172019cf1cf980438279db52dbecd0ce03 | 972 | #!/bin/bash
source params.sh
SAMPLE=$1
raw=${RAW_PSMC}/${SAMPLE}.psmc
out=${TMPDIR}/${SAMPLE}.strpsmc.bed
echo "Processing PSMC for sample ${SAMPLE} ${raw} ${out}"
# Get weighted average of all intervals overlapping each STR locus
# NOTE!! looks like PSMC numbers are missing last two digits? binned by 100?
# mean... |
a13cb19695771701fdf8055df8e42547664cfeb2 | 4,022 | #! /bin/sh
PBX_HEAD=
ACCOUNT_RANGE=
DOD_RANGE=
IMS_ACCOUNT=
AA_ACCOUNT=
DATA_CONTENT=$(cat account.txt)
VIRTUAL_PBX_IDX=1
ROUTE_GROUP_NO=5
ROUTE_PLAN_NO=10
NAME_MAP=$(cat << EOF
100,109,ywj
110,119,chy
120,129,wky
130,139,wty
140,157,zcc
158,178,ywj
179,199,chy
200,220,wky
221,241,zcc
242,399,chy
EOF
)
function conv... |
4c58d2d9361e88abc957377e0a872a10b0276b03 | 379 | #!/bin/bash
# Author:fairylly
#执行脚本时,未输入参数,提示:please input call number!,并退出
if [[ $# -eq 0 ]]
then
echo "please input call number!"
exit 1
fi
#m变量使用命令行传递的第一个位置参数
m=$1
./sipp -i 192.168.101.22 -sf uac.xml -inf uac_my.csv 192.168.101.8:5060 -l $m -trace_screen -trace_err -p 12345 -m $m -aa
|
e58c4f0185587f6299cbffa0953756a3bc6203e6 | 99 | OVERNIGHT_LOGGER_MODE=CONSOLE
GAME_TYPE=LIVE
SERVER_PORT=3000
SOCKET_PORT=5000
USERNAME=
PASSWORD=
|
6408285328572373ad7e07c686383b9918d17b9e | 3,549 | #!/usr/bin/env bash
#===============================================================================
#
# FILE: nltk-download-data.sh
#
# USAGE: ./nltk-download-data.sh
#
# DESCRIPTION: Script to download the items found in the nltk.txt file
# as defined by the user.
#
# OPTIONS: ... |
aef1773382ae1ec2e499f63344a9ee224f473084 | 214 | source ~/cambieri.it/work/workspace-django/virtualenvs/ironika-fondstamp/bin/activate
cd ~/cambieri.it/work/workspace-django/projects/ironika-fondstamp/fondstamp/
fab live prepare_deploy
fab live deploy
deactivate
|
26d7da0d8e58942a22d15a00d0268ac4d3a74068 | 1,252 | #!/bin/bash
function generate () {
MAX_VARS=$((RANDOM % 49 + 1))
MAX_CLAUSES=$((RANDOM % 99 + 1))
TIMES=$((RANDOM % 99 + 1))
echo $MAX_VARS $MAX_CLAUSES >> $1
for ((i=0; i<$MAX_CLAUSES; i++)); do
for ((j=0; j<(RANDOM % 49 + 1); j++)); do
if [ $j -gt 0 ]; then
ec... |
8511e7cde6a9bef304e15414b24fe68b72e0afaa | 1,798 | #!/bin/bash
DATE=$(date +%Y-%m-%d-%H-%M-%S)
NR_SECS=$1
VM_start=11
VM_end=22
VM_cnt=0
bw=$2
if [[ -z "$NR_SECS" ]] || [[ -z "$bw" ]]
then
echo "Error: usage: $0 <nr_secs_iperf(t)> <bw in Mbit>"
exit 1
fi
echo "Seconds count (-t for iperf): $NR_SECS"
# Check every 10 secs for 400 secs if aps are already done or if ... |
e3347bd1807ed8ba667eff9c43671ac418e51e77 | 771 | #!/bin/bash
TIME_LEFT=$(ruby -e "require 'time'; puts ((Time.parse('$AWS_EXPIRATION') - Time.now) / 60).floor")
if [ "$TIME_LEFT" -lt "0" ]; then
echo "Role has expired ($AWS_EXPIRATION), please exit this shell and start another"
exit -1
fi
function var_file_path() {
if [ -z "$VAR_FILE" ]; then
echo "-var-f... |
71b071eff544e83620a61d3880c6a9b03c966ff5 | 1,069 | #/bin/bash
function make_link()
{
if [ $# -eq 1 ];then
_fromfilename=$1
_tofilename=$1
fi
if [ $# -eq 2 ];then
_fromfilename=$1
_tofilename=$2
fi
if [ $# -eq 1 -o $# -eq 2 ];then
echo "ln -hfs $FROM/$_fromfilename $TO/$_tofilename"
ln -hfs $FROM/$_fromfilename $TO/$_tofilename
fi
}
... |
ae0062897f5c01057143ad5da6d4679f844727b8 | 108 | #!/bin/bash
sudo minikube start --vm-driver=none
sudo chown -R $USER $HOME/.kube $HOME/.minikube
helm init
|
e58e6296c08dfdd89960cc54ea1d109ecc235795 | 42 | VUE_APP_MID = 80241
// VUE_APP_MID = 80242 |
3c83d14bc5c806a05c2deff7f1c1ddd5f36906ce | 12,342 | #!/bin/sh -x
# nc -l [-p] {port} > file ## nc -w3 {host} {port} < file # netcat xfr
# ssh user@ipaddr "su -c 'sh -xs - arg1 argN'" < script.sh
# ssh user@ipaddr "sudo sh -xs - arg1 argN" < script.sh # w/ sudo
#sh /tmp/disk_setup.sh part_format sgdisk std vg0 pvol0
#sh /tmp/disk_setup.sh mount_filesystems std vg0
#... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.