blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
6539b7a07420a189066c1b124cd0fe048b545ee0 | 414 | curl -X POST "https://api.clarifai.com/v2/users/meta/apps/Llama-2/models/Llama2-7b-chat/versions/e52af5d6bc22445aa7a6761f327f7129/outputs" \
-H "Authorization: Key YOUR_PAT_HERE" \
-H "Content-Type: application/json" \
-d '{
"inputs": [
{
"data": {
"text": {
... |
a52ef6c3aa60d647528934650f7bb302cc729c7e | 25 | #!/bin/bash
. zip.ini
|
fe1667fd4f69ff193320bad3a47d215344507d75 | 174 | #!/bin/bash
rm -r _site
dune exec specl
rm -r ../docs
mv _site/snark-challenge ../docs
cd ..
tar -czf snark-challenge.tar.gz docs/
# rsync -Ar _site/snark-challenge/ ../docs
|
9f421a1bdc1d2df8937df2ef0e8083934df54427 | 38 | sudo rpm -Uvh thingsboard-2.4.3pe.rpm
|
7fb8aa32863debd04907eadc8d9ccc9b76b85f7c | 124 | #!/bin/sh
for a in $@
do
echo -n "$a "
curl -I /dev/null $a 2>&1| egrep -i server: |cut -d ":" -f2| cut -c 2-
done |
d3df856e0ebb22dac076a8f740108615d3a03dbb | 649 | #!/bin/bash
#bench_cublas or bench_clblas
CMD=$1
function bench_oneshape() {
NAME=$1
M=$2
N=$3
K=$4
#forward
RESULT=`$CMD $M $N $K N N`
echo "$NAME,0,$RESULT"
#backward
RESULT=`$CMD $M $K $N N T`
echo "$NAME,1,$RESULT"
#gradient
RESULT=`$CMD $K $N $M T N`
echo "$NAME,2,$RESULT"
}
bench_ones... |
929505c6bdb57a8549b45f3fc7cb61b249898ace | 130 | NODE_ENV=production
PORT=5000
MONGO_URI=mongodb+srv://OMW:OMW123@omw.vqfw4.mongodb.net/expense-tracker?retryWrites=true&w=majority |
4bb944a9feb0d70ccf159b813bc3f7c7a2b63c08 | 671 | #!/bin/bash
#Maria Hito(mh4wt)
#file name: averagetime.sh
echo "What is the name of the dictionary file?"
read dict
echo "What is the name of the grid file?"
read grid
time1=`./a.out $dict $grid | tail -1`
time2=`./a.out $dict $grid | tail -1`
time3=`./a.out $dict $grid | tail -1`
time4=`./a.out $dict $grid | tail ... |
a5b54e04c544271b107fafe2161281002ce978a7 | 298 | FIREBASE_API_KEY=AIzaSyCIvHWuoX9wzO2ok2uewyIl6QYaleuiV_I
FIREBASE_AUTH_DOMAIN=auth-register-dca66.firebaseapp.com
FIREBASE_PROJECT_ID=auth-register-dca66
FIREBASE_STORAGE_BUCKET=auth-register-dca66.appspot.com
FIREBASE_SENDER_ID=82988133754
FIREBASE_APP_ID=1:82988133754:web:24635e1d054fc4e1cf7ac3
|
13751d352f1f808bffa065dd1259689424b05eaa | 106 | ATLAS_URI = mongodb+srv://Hexiao:ReactTest@jobinfor.r2hn1.mongodb.net/jobInfor?retryWrites=true&w=majority |
a6f7b56670cd5dd21b25d03a36fe73bb75f51ef2 | 158 | #!/bin/sh
set -e
groupadd -r cardboardci
useradd --no-log-init -r -g cardboardci cardboardci
mkdir -p /home/cardboardci
chown cardboardci /home/cardboardci |
c204bb5b27d2f77b93230a0183c3114d6027b907 | 158 | #!/bin/bash
# Install common packages with brew
# standard formulae
brew install \
mosh \
the_silver_searcher
# cask installs
brew cask install iterm2
|
8bdefc2c3e541434144c591c85f5b4461fcc1a63 | 236 | #!/bin/bash
echo "Starting Fortify ScanCentral Sensor"
echo "FORTIFY_SCA_HOME='${FORTIFY_SCA_HOME}'"
echo "FORTIFY_SCANCENTRAL_URL='${FORTIFY_SCANCENTRAL_URL}'"
${FORTIFY_SCA_HOME}/bin/scancentral -url ${FORTIFY_SCANCENTRAL_URL} worker
|
5a87203cebf7b86728879a4c8ccf477fc46159fb | 342 | #!/usr/bin/env bash
set -e
base_dir=$(readlink -nf $(dirname $0)/../..)
source $base_dir/lib/prelude_apply.bash
source $base_dir/lib/prelude_bosh.bash
echo 'Overriding for Control-Alt-Delete'
mkdir -p $chroot/etc/init
echo 'exec /usr/bin/logger -p security.info "Control-Alt-Delete pressed"' > $chroot/etc/init/contro... |
6fad46b76ade5f66485343ee1f297b0f20cdf713 | 700 | #!/bin/bash
#SBATCH --nodes=2
#SBATCH --ntasks-per-node=1
#SBATCH --error=ani_mvapich.%J.err
#SBATCH --output=ani_mvapich.%J.out
echo " program started"
cd /home/sgopalak/133079005/
sleep 5
##Importing variable for openmpi####
export I_MPI_CPUINFO=proc
export PATH=/home/sgopalak/mvapich2new/bin:$PATH
export LD_LIBRAR... |
ef325dbdb2ca23e039f0fbb63724786d53858ddc | 130 | cd /apdcephfs/share_47076/alenfei/dstc10/new-MOD-GPT-C-D
python -m torch.distributed.launch --nproc_per_node=8 parallel_train.py
|
d215d27f9bc5f8e17f3224b6392a491b8b404206 | 1,858 | # Maintainer: Marti Raudsepp <marti@juffo.org>
pkgname=reconnoiter-svn
pkgver=1275
pkgrel=1
pkgdesc="Software for monitoring, trending and fault analysis of servers or data centers"
arch=(i686 x86_64)
url="https://labs.omniti.com/trac/reconnoiter"
license=('BSD')
depends=('ncurses' 'libxml2' 'libxslt' 'apr' 'pcre')
ma... |
1c7c9b22d3e456acafb557c581e4f2fd2be92abf | 615 | #!/usr/bin/env bash
usage() {
echo "Usage: $0 -u <User> -p <Password>" 1>&2;
exit 1;
}
while getopts "u:p:" o; do
case "${o}" in
u)
USER=${OPTARG}
;;
p)
PASSWORD=${OPTARG}
;;
*)
usage
;;
esac
done
if [ -z ${USER+x} ] ... |
b0d260038e34bb949f9a496adbc3250121df3301 | 146 | #!/usr/bin/env bash
pushd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null
bats/bin/bats test
exit_code=${?}
popd &> /dev/null
exit ${exit_code}
|
924b493cfa1a5bae33119e313e1a48db4eece320 | 939 | alias ,='cd -';
alias .='cd ..';
alias ..='cd ../..';
alias ...='cd ../../..';
alias ....='cd ../../../..';
alias l='ls -alF';
alias la='ls -la';
alias ll='ls -al --color=tty';
alias lx='ls -lhBX --color=auto';
alias lz='ls -lhrS --color=auto';
alias lt='ls -lhrt --color=auto';
alias egrep='egrep --color=... |
55c5804462b53388c44219b8b2731f1e7ea675fa | 132 | NODE_ENV=development
PORT=5000
MONGO_URI=mongodb+srv://dixit:dixit@cluster0-pccb2.mongodb.net/devCamper?retryWrites=true&w=majority |
e878004fdc02e46f6afa906057bfe7d2a0312294 | 1,105 | # Maintainer: jsteel <mail at jsteel dot org>
# Contributor: Alan Young <harleypig@gmail.com>
pkgname='perl-text-glob'
pkgver='0.09'
pkgrel='3'
pkgdesc="match globbing patterns against text"
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl')
url='http://search.cpan.org/dist/Text-Glob'
... |
cd50b0bc5c9c14034c43dbe80c50153dece2b473 | 278 | sudo apt-get update
sudo apt-get -y install python-software-properties
sudo add-apt-repository -y ppa:rquillo/ansible
sudo apt-get -y install ansible
sudo apt-get dist-upgrade -yq
echo localhost > /etc/ansible/hosts
sudo ansible-playbook /ansible/main.yml --connection=local
|
a03c7865e16a537e0325b48f99d1e0c0f5e04613 | 832 | #!/bin/bash
echo #################################################
echo Start port-forwarding for servicegraph
echo -------------------------------------------------
echo Navigate to servicegraph:
echo .
http://localhost:8088/force/forcegraph.html
echo ..
http://localhost:8088/dotviz
echo ...
http://localhost:8088/do... |
97d137d4fbb7667d1bd2d9d2c9fa578713d6068a | 213 | EMAIL=admin@example.com
DOMAIN=poney.com
USERNAME=admin
PASSWORD=pizza
# HASHED_PASSWORD=$(openssl passwd -apr1 $PASSWORD)
HASHED_PASSWORD=$apr1$cjCw8yx4$k5c8VGxK1EpI3rG3xZ6t20
CONSUL_REPLICAS=0
TRAEFIK_REPLICAS=1 |
91999503f8248142b61a972d39bacec76da69969 | 392 | #!/bin/bash
#Author: Jesimar da Silva Arantes
#Email: jesimar.arantes@gmail.com
#Date: 07/04/2021
echo "========== Script quebra arquivo em instancias menores =========="
#existem 167 instances na base de dados
for i in $(seq 167); do
s=$((3*$i+1))
head -n $s database.csv | tail -n 3 > instance-$i.csv
done
ech... |
22c3e21212cbb5a76bf10aa1ea9ecb4b0cb10ee4 | 244 | #!/bin/bash
cat > /boot/grub/grub.cfg << "EOF"
# Begin /boot/grub/grub.cfg
set default=0
set timeout=5
insmod ext2
set root=(hd0,2)
menuentry "GNU/Linux, Linux 5.5.3-lfs-9.1" {
linux /boot/vmlinuz-5.5.3-lfs-9.1 root=/dev/sda2 ro
}
EOF
|
04e51d698f2da199bcb09944d86b5579e3c42b39 | 21 | #!/bin/bash
ls -aFpm
|
8db732af8759f67fc243f8417054c9738d5b82fa | 90 | gcc -c countingSort.c -o countingSort.o
gcc -c main.c -o main.o
gcc countingSort.o main.o |
837c4c38ef73f47e2a8c08b391102bfe646f0d4c | 95 | #!/bin/sh
[ -z "$NODE_ENV" ] && export NODE_ENV=development
node_modules/gulp/bin/gulp.js dev
|
36e73eb51e47366f6f01f48984e2edd42d6187e7 | 746 | #!/bin/bash
# fail on errors
set -e
# import functions
source variables_and_helpers.sh
# build images
build_docker_image "base" $__image_upstream_oracle
build_docker_image "base" $__image_upstream_cdh5
build_docker_image "base" $__image_upstream_python
build_docker_image "base" $__i... |
2985cc71bd08c0d457bb77b10b90299456e5121d | 674 | #!/bin/bash
echo "###################################################################"
echo "# install-lxde-vnc.sh"
echo "# Installing softwares"
echo "## Install lxde xorg and tightvncserver"
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y lxde xorg tightvncserver
echo "# Disable screensaver"
sudo sed -i '/@x... |
ee0dbb0284a5a8fe281afc77d0116f95c7a8289b | 91 | #!/bin/bash
filename='/etc/hosts'
while read myline
do
echo "$myline"
done < $filename
|
8939ccdee7d0a516e345d4755ced367cb12ff8e3 | 1,069 | alias gsm='git status --untracked-files=no --ignore-submodules'
alias gds='git diff --stat'
alias gdp='git diff HEAD~1 --'
alias gdps='git diff --stat HEAD~1 --'
alias gls='git ls-files -t'
alias l='ls $LS_OPTIONS'
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias la='ls $LS_OPTIONS -lA'
alias lrt='ls -lrt'
... |
41368f9373486ffb333de7ef6e749aa337f88553 | 145 | #!/bin/bash
sudo apt-get install gcc make git wget && git clone https://gitlab.com/akihe/radamsa.git && cd radamsa && make && sudo make install
|
c74c7a4643222406f5d592bf93c70b9bbcc50432 | 885 | #!/bin/bash
SEPARADOR=";@;"
# = 1 --> SI tienes udevadm
# = 0 --> NO tienes udevadm
function comprobarTienesUDEV()
{
test -x /sbin/udevadm
return $?
}
for i in $(awk 'NR>2 {print "/dev/" $4}' /proc/partitions);
do
MAGICO=`head --bytes=4 $i 2> /dev/null`;
LEGIBLE=`echo $MAGICO | wc -c`;
# Si hay 5 caracteres = W... |
89ae1e5336e3d794a01ba4e01836c2279d487785 | 52 | convert -resize 1920x \
-density 72 \
$1 $1.jpg
|
b267c932bca577ded2e24958be0b86421c55f991 | 1,064 | #!/usr/bin/env bash
set -euo pipefail
# Terminal Control codes
# see: https://stackoverflow.com/a/5947802
COLOR_GREEN='\033[0;32m'
COLOR_RESET='\033[0m'
function log() {
echo -e "${COLOR_GREEN}[$(date +'%Y-%m-%dT%H:%M:%S%z')]: $*${COLOR_RESET}"
}
BUCKET_NAME=hadoop-data
log "Create buckets"
./aws-cli.sh s3 rm --... |
c1735f4c0fb629b50b9c086f85eae46b636cde31 | 68 | JENKINS_USERNAME=
JENKINS_USER_TOKEN=
JENKINS_URL=
JENKINS_JOB_NAME= |
63ec50951d50b0101aca18a3b4e6aa69dfe22175 | 1,582 | #!/bin/bash
#SBATCH --mail-type=FAIL
#SBATCH --time=02:10:00
eval 'source /users/PCON0003/cond0068/.bash_profile_pitzer_cvmfs'
cd /users/PAS0654/osu8354/ARA_cvmfs/source/AraRoot/analysis/
./v2_analysis_filter ${ISSIM} ${STATION} ${YEAR} ${SUMMARYDIR} ${OUTDIR} /fs/scratch/PAS0654/jorge/ARA_data/10pct/A2/2014/1124/ru... |
0701418b555c9c160c7c1bfe5c9e2074f3eab5b4 | 1,324 | #!/bin/bash
VERSION=$1
BRANCH=$(git rev-parse --abbrev-ref HEAD)
if [[ -n $VERSION && $BRANCH == 'develop' ]]; then
ROOT=$(git rev-parse --show-toplevel)
cd $ROOT
yarn build
if [[ $? != 0 ]]; then
echo
echo "Unsuccessful build... Bailing"
echo
exit 1
fi
yarn test
if [[ $? != 0 ]]; ... |
023c44c264bf11f5417ca1e0b1be2410977e124b | 1,451 | #!/bin/bash
#Autor: Malte Garmhausen
arg=$1
if [ "$arg" == "up" ]
then
forever start --uid "serve" node_modules/@angular/cli/bin/ng serve --host 192.168.23.229 --public-host http://econbil01.abatgroup.de --port 8002 --prod
elif [ "$arg" == "down" ]
then
forever stop serve
rm /home/econ/.forever/serve.log
elif [... |
22c875235ae5990c362fadbc29dadda8310d9c8e | 820 | #!/bin/sh
set -e
#sh -c '/bin/sed -i "s/^Listen 80.*/Listen 8083/g" /etc/apache2/ports.conf'
#sh -c '/bin/sed -i "s/Listen 443$/Listen 44383/g" /etc/apache2/ports.conf'
#sh -c '/bin/sed -i "1s/.*/<VirtualHost *>/g" /etc/apache2/sites-enabled/000-default.conf'
#sh -c '/bin/sed -i "1s/.*/<VirtualHost *>/g" /etc/... |
6dff3a8aff72a8e226c906554f303f1f55fb38e9 | 319 | #!/bin/bash
##
# Installs QEmu from source.
#
cc=/usr/bin/gcc-4.2
tmp_dir=/tmp/qemu
mkdir -p $tmp_dir
cd $tmp_dir
curl http://wiki.qemu.org/download/qemu-0.15.1.tar.gz > qemu-0.15.1.tar.gz
tar -xf qemu-0.15.1.tar.gz
cd qemu-0.15.1
./configure --cc=$cc --disable-darwin-user --disable-bsd-user
make
sudo make install
|
a050fed90492db0d128a287878c454ca87419cfe | 240 | #!/bin/bash
# Pushes a built Docker image to Docker Hub.
#
# Cargo culted from the Travis documentation:
#
# https://docs.travis-ci.com/user/docker/
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
docker push "$DOCKER_REPO"
|
2f7645bb36a8cfb0bdc321ec14693a24748a6806 | 467 | #!/bin/bash
usage() {
echo
echo "Usage: $0 [-h header-element] [-e encoding] [-m maxcount] sgml-files..."
echo
exit 1
}
HDR="teiheader"
ENC="UTF-8"
MAX="0"
while getopts "e:m:h:" opt
do
case $opt in
e) ENC="$OPTARG" ;;
m) MAX="$OPTARG" ;;
h) HDR="$OPTARG" ;;
esac
done
shift $((OPTIND-1))
... |
6ca3f900bd787f53d59652b3adf2a8c8c700f306 | 83 | #!/bin/bash
DIR=`dirname $0`
curl ${URL}/oom?count=1000000
${DIR}/../get_pods.sh
|
f70abb545c6dd0d179755feda4698165fccbaf42 | 59 | #!/bin/sh
## set -x
TRANSPORT="tcp"
. notebook_setup_2
|
b7bcaf687013133a7d97aab26e8f86f1d0d8efb1 | 800 | #!/usr/bin/env bash
set -euo pipefail
function main {
local sshHost="${1:?Must provide an ssh host}"
local containerName="${2:?Must provide an image name (org/image:version)}"
shift
shift
local additionalFlags="$@"
local org
local image
local version
IFS=: read -r tmp version <<< "$containerName"
IFS=/ r... |
af98d05a1c4c679755b8f0f79c686977e3ce3ffe | 1,870 | #!/usr/bin/env bash
#/*******************************************************************************
# Copyright (c) 2012 IBM Corp.
# 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
# htt... |
b615e1772409ef61abf3adc4d63f6674878ed275 | 237 | #!/bin/zsh
WORD="Start"
while [ "$WORD" != "" ]; do
echo -n "Word: "
read WORD
case "$WORD" in
"Foo") echo "Bar" ;;
"Bar") echo "Foo" ;;
"FooBar") echo "No Way" ;;
"") ;;
*) echo "FooBar" ;;
esac
done
|
054788bf47db4d2eb7678c9dff3b665e802762b7 | 1,308 | #!/bin/bash
#
# Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
#
# 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 req... |
62fd786c89d6bd4508337dd99343416593a304bb | 4,128 | #!/bin/sh
# pi scripts.sh
#
#
# Created by Mateusz Babczynski on 09/09/2019.
#
##########################################
############## docker set up ###########
curl -sSL https://get.docker.com | sh
sudo gpasswd -a pi docker
##########################################
#########################################... |
a275c825790e6bd4273af7e3e0e84e14afce3fd6 | 1,282 | #!/bin/bash
#
# Wrapper script to run the rust language server, ensuring that the correct version is run.
#
# Usually I want the stable toolchain and the stable RLS.
#
# But sometimes I have projects using nightly and in that case I want to use nightly RLS.
#
# But sometimes nightly is broken, so I use some slightly-ol... |
79609f2b0cf1a643a67f3ffed03406699536639b | 151 | #Definir o ambiente da aplicação: production ou development
NODE_ENV=
VUE_APP_TITLE=Projeto base
VUE_APP_API=https://jsonplaceholder.typicode.com/
|
1cc1188ec7688fbac310a616908b6c2f1a049be0 | 129 | Subdirectory checkout
Upstream (tracking) shorthand
The golden rule of rebasing
Checkout the previous branch
Cherry-pick a commit |
3b6bd3a5794399d3489a4ac45065272e1c4a0169 | 521 | #!/bin/bash
echo "Test starting"
./supervisor 8 &> supervisor.log &
z=$!
echo "Supervisor started and servers created"
sleep 2
for (( i = 0; i < 10; ++i )); do
./client 5 8 20 >> client.log &
./client 5 8 20 >> client.log &
sleep 1
done
for (( i = 0; i < 6; ++i )); do
kill -SIGINT $z
echo "SIGINT... |
e8a40c44703e9f893667e3a5240bfc21c06df73e | 1,005 | #!/bin/bash
# !! Updata the path to the dataset and directory to
# !! save your trained models with your own local path !!
carla_dataset_type=Carla
carla_root_path_test_data=path_to_carla_rs/test
fastec_dataset_type=Fastec
fastec_root_path_test_data=path_to_fastec_rs/test/
model_dir=../experiments/pretrained_models... |
8410076dc03370e1382ceebf3d7b5c0d014970e9 | 114 | #!/bin/bash
mkdir build || exit 1
cp fileWithData build || exit 2
cd build && cmake .. || exit 3
make || exit 4
|
67fb4b9269806f283fe5aa6d2b3f5de6c9fa5ec8 | 12,966 | #!/usr/bin/env bash
cat /home/<username>/.htpasswd-credentials | htpasswd -i -c /etc/nginx/htpasswd.users <username>
rm /home/<username>/.htpasswd-credentials
sed -i '/^\s*server_name/a auth_basic_user_file \/etc\/nginx\/htpasswd\.users;' /etc/nginx/sites-available/default
sed -i '/^\s*server_name/a auth_basic "Res... |
3097599bcb2ac6428d5f359b124a5a3f3748319b | 2,252 | #!/bin/bash
# ./files.sh [-l location] [--location location] [-e extension] [--extension extension] [h] [--help] [-s --stats]
function usage() {
echo "USAGE: $0 [-l location] [--location location] [-e extension] [--extension extension] [h] [--help] [-s --stats]"
echo "Examples:"
echo "$0 -l /etc/ -e txt -... |
f3cf5fcda78ba2bb323565600453d84b615dd2e5 | 1,801 | #!/bin/sh
set -e
if [[ "$USER" != "root" ]]; then
echo "This script needs to be run as root"
exit 1
fi
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != ... |
cb9cf173a11954c3995512967b2aa6bb71066fe4 | 106,870 | 2to3 -h | cat > Aux0/2to3.txt
2to3-2.7 -h | cat > Aux0/2to3-2.7.txt
2to3-3.7 -h | cat > Aux0/2to3-3.7.txt
[ -h | cat > Aux0/[.txt
aarch64-linux-android-ar -h | cat > Aux0/aarch64-linux-android-ar.txt
aarch64-linux-android-clang -h | cat > Aux0/aarch64-linux-android-clang.txt
aarch64-linux-android-clang++ -h | cat > Aux... |
073a49e7f66264f7e9e8e1064fc5c881b0e1535e | 232 | #!/bin/bash
echo "Entered"
cd ./bundle
sudo apt-get update
sudo dpkg -i *.deb
# sudo apt-get -y install -f
# checkin if ceph is installed
ceph --version
if [ $? = 0 ]; then echo "ceph installed!!"; else echo "FAILED!!!";fi
|
ebc60a6a8197dbd4309a265a14e7ad57b787c79f | 80 | #!/bin/bash
su; rm file; su "$USER"
su foo; something; exit
whoami; su; whoami
|
50e7bebf9f753a577ef9d31ba1b65c9dbf44510d | 23 | ln -s NESpad ../NESpad
|
6df84463bf2aa55444eb5cd10385045d2cff27f1 | 521 | #!/bin/bash -x
read -p "Enter Any Value : " digit
if [[ digit -eq 0 ]]
then
echo "Zero";
elif [[ digit -eq 1 ]]
then
echo "One";
elif [[ digit -eq 2 ]]
then
echo "Two";
elif [[ digit -eq 3 ]]
then
echo "Three";
elif [[ digit -eq 4 ]]
then
echo "Four";
elif [[ digit -eq 5 ]]
then
echo "Five";
elif [[ digit -eq... |
dab2f8d3c330fa7fc00b77816b321e4b69538069 | 549 | #!/bin/bash
case `/usr/local/bin/SwitchAudioSource -c` in
# switchaudio-osx lacks enumeration in case of duplicate source names; suppress output of
# first two source changes so that notification shows correctly
'Line-out (Green Rear)')
/usr/local/bin/SwitchAudioSource -s "Digital-out (HDMI)" > /de... |
c26e690260bb1323c31249bb33a16f8cc21561d7 | 1,230 | #!/bin/bash
# Currently not working
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. $DIR/../extras/functions.sh
# NOT WORKING
# Tips for the installation on Ubuntu 16.04 LTS
# https://cgcvtutorials.wordpress.com/2017/05/31/install-mitsuba-on-linux-16-04/
$PACKAGE_INSTALL build-essential scons qt4-dev-tools ... |
ac8287d0fc9bc0e64766bd18ddd2268072577180 | 305 | #!/usr/bin/env bash
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export DOMAIN_NAME="improvanywhere"
export DOMAIN_IDN="org"
export DOMAIN_BASE="${DOMAIN_NAME}.${DOMAIN_IDN}"
export DOMAIN_MAIL="mail.${DOMAIN_BASE}"
export DC_DOMAIN="dc=${DOMAIN_NAME},dc=${DOMAIN_IDN}"
|
5e3d27997e4332ebf1d70e849f2973f4aed2155a | 640 |
pkgname=libice
pkgver=1.1.1
pkgrel=1
pkgdesc="X11 Inter-Client Exchange library"
arch=('x86_64')
url="https://xorg.freedesktop.org/"
depends=('glibc' 'xorgproto')
makedepends=('pkgconfig' 'xtrans')
options=('!libtool')
source=("https://xorg.freedesktop.org/releases/individual/lib/libICE-${pkgver}.tar.xz")
license=('cu... |
e697559addecadded4086d91ceed8698aa8bd3a3 | 204 | docker stop test1 && docker rm test1
docker run -d \
--cpuset-cpus 0-29 \
--name test1 \
-v /home/jenkins:/root \
-v /home/jenkins:/home/jenkins \
-p 23:22 \
zapbranigan/openjdk-7-jdk:latest
|
643956d60a98faafa43a38a088f3be7781eb6b5f | 383 | #!/usr/bin/env bash
# This sqoop import introduces the Hive Overwrite switch. This is used to
# overwrite a table that is already available in the database.
sqoop import \
--connect jdbc:mysql://db.hostname.com:3306/db \
--username user \
-P \
--table table_name \
--hive-import \
--hive-database karthik_test \
... |
473e4e36fddcd6a0f93cbc8edbf8652b546db518 | 5,413 | #!/bin/bash
# Erzeugt die RUPI Dateien für Sygic
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
cd $DIR
. ./env.sh
cd $BASE
export PATH=/usr/local/bin:$PATH
export OPTS="-XX:+UseParallelGC -Xmx1500M -Dorg.slf4j.simpleLogger.defaultLogLevel=info"
export ENCODING=utf-8
export CAT_PATH="categories/ru... |
a9925bec4eb41cefeba37f2beef0449e9e119d0a | 105 | DATABASE=escolaa
DATABASE_HOST=localhost
DATABASE_PORT=5432
DATABASE_USERNAME=postgres
DATABASE_PASSWORD= |
fd876b8c7f843feb2a7d2709fdcd1705ebcfbb80 | 1,871 | # python cifar_train_eval.py --model_name vgg \
# --wbit_code 1 8 1 1 4 1 \
# --abit_code 1 8 1 1 4 1 \
# --ratio_code 1 1 1 1 1 1
# python cifar_train_eval.py --model_name vgg \
# --wbit_code 1 4 4 1 4 4 \
# --abit_code 1 4 4 1 4 4 \
# --ratio_code 1 1 1 1 1 1
# python... |
eeb85182ef71fc81beb31a038f4b18247ac64055 | 5,277 | #!/bin/bash
sed -i "0,/ H ??? 1/s/ H ??? 1/ H ARG A 96/g" pdb
sed -i "0,/ C ??? 1/s/ C ??? 1/ C ARG A 96/g" pdb
sed -i "0,/ H ??? 1/s/ H ??? 1/ H ARG A 96/g" pdb
sed -i "0,/ H ??? 1/s/ H ??? 1/ H ARG A 96/g" pdb
sed -i "0,/ N ??? 1/s/ N ??? 1/ N ... |
88296f18505ec78922bc56468b9d3c0e75bc148e | 865 | #!/bin/bash
#This extracts a bam from a sra file using their toolkit
#http://eutils.ncbi.nih.gov/Traces/sra/?view=software
if [ ! $# == 1 ]; then
echo "Usage: `basename $0` <PATH>"
echo "You must specify the data path for the sra files (e.g. /home/me/files)"
exit
fi
PDATA=$1;
PCODE="/net/isi-... |
29746eb48ee972bc6217bcfbc7da29dc2864ec9f | 291 | # Remove folders of the previous run
rm -rf ../../spark-local-output/streamingTest
# Run application
spark-submit --class it.polito.gjcode.stramingTest.SparkDriver --deploy-mode client --master local[10] ../../jars/streamingTest.jar ../../spark-local-output/streamingTest/out.csv 2>log.txt |
62d5544693b3d9a02d75a6f42d8b5c398dbbf89b | 480 | #!/bin/bash
curl -L https://istio.io/downloadIstio | sh -
REL=$(curl -L -s https://api.github.com/repos/istio/istio/releases | \
grep tag_name | sed "s/ *\"tag_name\": *\"\\(.*\\)\",*/\\1/" | \
grep -v -E "(alpha|beta|rc)\.[0-9]$" | sort -t"." -k 1,1 -k 2,2 -k 3,3 -k 4,4 | tail -n 1... |
c50fc073577660504310cd85ae45ed537d49284f | 1,339 | #===============================================================================
# File: run_case.sh
# Created: 05/30/2017, 14:50
# Author: Bernie Roesler
#
# Description: Run VLM data case and store output
# Usage: ./run_case matlab_file.m
#
#==================================================================... |
69bf11224004b9fbdb45e8e4d56c2de2d03f5b24 | 50 | #!/usr/bin/env bash
upload "$1" | clipboard-copy
|
af54c4b0bee11c66efddcf8af0adbd9f69504af3 | 63 | curl -d "hello world" 'http://127.0.0.1:4151/pub?topic=nsqtest' |
be8528eb32431a3fb90aa8311cb3eee7911d9865 | 420 | #!/bin/bash
KMLDIR='/var/www/maps'
TMPDIR='/tmp/tormap'
BINDIR='/usr/local/bin'
if [ ! -d $TMPDIR ]; then
mkdir -p $TMPDIR
fi
cd $TMPDIR || exit 1
rm -f relays.json
curl -sH 'Accept-encoding: gzip' "https://onionoo.torproject.org/details" -o /tmp/tormap/relays.json.gz
gunzip relays.json.gz
python $BINDIR/tormap.py
... |
04e4d1fed854646c0abebf611c53d364f5bee6a3 | 262 | #!/bin/bash
let max=$1-1
f1=1
f2=2
sum=2
if [ $# -ne 1 ]; then
let max=4000000
fi
while [ $f2 -lt $max ]; do
a=$f2
let f2=$f1+$f2
let f1=$a
if [ $((f2%2)) -eq 0 ] ; then
let sum=$sum+$f2
fi
done
echo The sum is $sum
|
c1cbec71771090ee46bd7e24a1f86c103596fb0a | 272 | #!/bin/bash
#takes two arguments string & number
clear
echo
X=`echo -n $1 | wc -c` #computes number of characters
Y=4;
let R="$X + $Y"
for num in `seq $R`; do
printf "*"
done
echo
for num in `seq $2`; do
echo "* $1 *"
done
for num in `seq $R`; do
printf "*"
done
echo
|
33ba3cfd19bf5602b87cfb8b347d8aa060db0cf3 | 2,511 | #!/bin/bash
#
#
# Generate an instance of the queen cover problem
#
#1 : i
#2 : j
#3 : N
cover()
{
printf "\n// Make sure we cover square %d,%d\n\n" $1 $2
# check column
i="1"
while [ $i -le $3 ]; do
if [ $i -ne $1 ]; then
printf "(q_%d_%d>0) | " $i $2
fi
i=$[i + 1]
done
printf "\n"
# check... |
25bd85931fc17651db8c263b9aaff7de5ef173ce | 315 | #!/bin/bash
from=genpdf/*.png
dest=../../docs/horseir/types/
list=(lt eq plus minus mul mod logic append like compress indexof order member vector)
#list=(eq)
for func in ${list[@]}
do
echo generating $func.png
./run.sh $func
echo copying genpdf/$func.png to $dest
cp genpdf/$func.png $dest
done
|
e987f6af7ba36cbf57c9be7f39b1974a5fc19820 | 20 | curl wttr.in/Berlin
|
5dc276c22a2e46383428aea8a45d4e2053f9fb26 | 38 | #!/bin/bash -norc
cvs log $* | less
|
65b19eb091975264c8c01787ae57aa92bd904aca | 50 | postgres://zhaoyue:000000@127.0.0.1/actix_web_dev
|
81ba608688c12ed57bed06825dc90eaf3fd78427 | 927 | #! /bin/sh
cd proto
sh __cpp_class.sh
cd ../
\cp *.pb.* ../../Server/KFContrib/KFProtocol/
rm -f *.pb.*
# make proto version
function makeversion()
{
oldmd5client=`cat .md5list | grep "$1" | cut -d ":" -f 2`
newmd5client=`md5sum ./proto/$1 | awk '{print $1}'`
declare -i version=`cat .md5list | grep "$1" | cut ... |
73fa96d9470f6b114d527c651566f8cf9f622e52 | 158 | #!/usr/bin/env zsh
echo "Starting android-studio..."
(cd /tmp; _JAVA_AWT_WM_NONREPARENTING=1 nohup /usr/local/android-studio/bin/studio.sh >/dev/null 2>&1 &)
|
ae171ab2efde3f444fb96db2154f069c2e22be5f | 1,003 | #!/usr/bin/env bash
#
# -------------------------------------------------------------
# 获取系统类型
# -------------------------------------------------------------
#
UNAME_PATH=`which uname`
PLAFORM=`$UNAME_PATH`
case $PLAFORM in
HP-UX)
OS=HP-UX;;
AIX)
OS=AIX;;
SunOS)
OS=SunOS;;
Dar... |
2d052c95510b9645ca73258fc8063ac194bde0db | 192 | XDG_CONFIG_HOME="$HOME/.config"
export XDG_CONFIG_HOME
export PATH=~/.local/bin:$PATH
if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
exec startx
fi
|
0199a2ddbcbe89ed8bd5ba26bfc20f1f33525769 | 40 | #!/bin/bash
xfwm4 &
eval $CLOUDWARE_CMD
|
208800cfffc49932244e823c750eabefcb9af377 | 69 | zip -or jupyter_notebook_bg_changer.zip jupyter_notebook_bg_changer
|
513334986021f8aa3745909a69f610842aa26e53 | 178 | #!/bin/bash
ss=""
[[ -n $1 ]] && ss="-s $1"
while true;
do
result = "`adb $ss logcat |grep "success"`"
if [ -n "$result" ];then
sleep 1
adb $ss shell input tap 731 525
fi
done
|
082e636c5c01558fbc29b238983069879639e8ff | 52 | #!/bin/bash
/usr/bin/date > /home/ansible/date.log
|
04c8341c8434735fee906df9293de057b90160e2 | 252 | #!/bin/sh -
cp /etc/letsencrypt/live/{{ domain }}/chain.pem /etc/swanctl/x509ca/
cp /etc/letsencrypt/live/{{ domain }}/privkey.pem /etc/swanctl/private/
cp /etc/letsencrypt/live/{{ domain }}/fullchain.pem /etc/swanctl/x509/
/usr/sbin/swanctl --load-all |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.