blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
c41dbd54834a10e2c318c14ca6fcee5b121eb9dc | 145 | echo "====== [`date +%Y-%m-%d_%H:%M:%S`] Starting activity on device[$2] $1 ======" |& tee -a device_install.log
adb -s $1 shell am start -n $3
|
3303c5cb1378577f550035c9d4948ce71233bed9 | 696 | #!/bin/bash
# Copyright 2021 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
FLUTTER_DIR="`pwd`/flutter-sdk"
PATH="$FLUTTER_DIR/bin":$PATH
REQUIRED_FLUTTER_VERSION=$(<"flutter-version.txt")
if [ -d "$FLUTTER_DIR" ]; the... |
96376bad145e4eea4340421040e43a70839e2436 | 555 | #!/bin/bash
#author: Aryln
#SBATCH --job-name=sradownload
#SBATCH --partition=jumbo
#SBATCH --nodes=1
#SBATCH --ntasks=2
#SBATCH --cpus-per-task=1
#SBATCH --mem=16000
#SBATCH --error=%J.err
#SBATCH --output=%J.out
#workingdir
dir="/mnt/scratch/c1803625"
#seq reads without direction and without fastq.gz
seq_reads="nam... |
a89bb8e2bebd61d96fb7f43a6af7bcc1553a7373 | 98 | #!/bin/sh
"${SRCROOT}/Pods/Target Support Files/Pods-Young心理/Pods-Young心理-frameworks.sh"
|
4aad7c4400381f2a064ff82b31f7b0ae1bb8cd03 | 2,469 | #!/bin/bash
#
# Copyright (c) 2017, Carnegie Mellon University.
# 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. Redistributions of source code must retain the above copyright
# notice, ... |
6c5b4ba3ba69adf1c64da5ac648de6da14699750 | 128 | #!/bin/sh
echo "[i] running db..."
sudo docker run --name db -d -p 27017:27017 mongo
echo "[i] db is running on port 27017..."
|
6808ee7a0eb00b812147509469d11c8e5a4eaa38 | 406 | #!/bin/bash
./pat_gen SamplePat.txt
./send.exe 1 SamplePat.txt_cfeb0_tmbc.pat >& null
./send.exe 2 SamplePat.txt_cfeb1_tmbc.pat >& null
./send.exe 3 SamplePat.txt_cfeb2_tmbc.pat >& null
./send.exe 4 SamplePat.txt_cfeb3_tmbc.pat >& null
./send.exe 5 SamplePat.txt_cfeb4_tmbc.pat >& null
./send.exe 6 SamplePat.txt_cf... |
cec08f8043b133cd58aa90c3593183c7a897a286 | 424 | #!/bin/bash
EMAIL="{{ admin_email }}"
LOG=/var/log/clamav/scan.log
HOST=`hostname`
TEMPORARY_FILE=`mktemp /tmp/virus-alert.XXXXX`
clamscan --remove --recursive --suppress-ok-results --infected --log=$LOG "{{ nfs_shared_path }}" > $TEMPORARY_FILE
if [ `grep Infected $TEMPORARY_FILE | grep -v 0 | wc -l` != 0 ]; then
... |
b7000708be1840537c68e02cdd3ad61115f53aa1 | 96 | #!/bin/bash
apt-get update
apt-get -y install apache2
rm -rf /var/www
ln -fs /vagrant /var/www
|
a7f5815b0b753e5950652d25402f00677a4aa5ef | 234 | #!/bin/bash
ROOT=$(dirname $(dirname $0))
PATH="node_modules/.bin:$PATH"
COFFEE="$ROOT/node_modules/.bin/coffee"
cd $ROOT
if [ "${NODE_ENV}" == "development" ]; then
exec nodemon -w . web.coffee
else
exec $COFFEE web.coffee
fi
|
84ec1cfea181d57813b57409fc5707a80a04a770 | 1,553 | #!/bin/bash
# Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
# Author : Benjamin Trocme (LPSC - Grenoble) - 2017
# Daemon job to update daily the DQ stats
# Arguments:
# -$1 : directory when to run the daemon (a priori ~atlasdqm/w1/DeMo
# -$2 : DeMo year
# -$3 : DeMo tag
#######################... |
cbc978f933c9ab3db2293b4069630503ce5d5834 | 118 | #!/bin/sh
mkdir -p test-output
./JSDomTransform.sh dom-addclass.js test-input/test.svg test-output/test-addclass.svg
|
633bdca33cab665e230fdd86f5a6f260c1a4cb09 | 2,197 | #!/bin/bash
edit_user="mastodon"
exec_user="mastodonx"
user_home=$(sudo -iu $user pwd)
node_env=$(sudo -iu $user eval 'nvm which 6 | sed -E s@/bin/node@/bin@g | cat')
mastodon_domain="mstdn.meltytempo.tk"
mastodon_public_dir="$home_for_user/mastodon/public"
mastodon_crt="/etc/letsencrypt/live/mstdn.meltytempo.tk/fullc... |
33d000cf7f8d05b5aaea397bffb5f0c8fab88028 | 2,124 | #!/bin/bash
awk=$1 version=$2 bin_name=${3:-$1$2}
srcdir=$PWD
mkdir -p build/{bin,man/man1} &&
cd build &&
case $awk in
bwk)
wget -c -O "$srcdir/sources/bwk.tar.gz" \
http://plan9.bell-labs.com/cm/cs/who/bwk/awk.tar.gz &&
mkdir -p bwk &&
cd bwk &&
gzip -cd "$srcdir/sour... |
540208d86c2872881ed19941d6fa2b6c5d33bd81 | 596 | #!/bin/bash
# =============================================================================
# Sources a list of functions passed into the script. Functions must have a
# matching directory with *.sh files.
# =============================================================================
functions="$@"
echo "Sourcing fu... |
c034e96dce032a36b8dc6e71ca190176c8b5ef49 | 1,214 | WLAN=$1
apt-get update
apt-get install -y make isc-dhcp-server vim gcc
wget https://github.com/jenssegers/RTL8188-hostapd/archive/v2.0.tar.gz
tar xvf v2.0.tar.gz
cd RTL8188-hostapd-2.0/hostapd/
make && make install
wget https://raw.githubusercontent.com/lowet84/TravelRouter/master/dhcpd.conf -O /etc/dhcp/dhcpd.conf
ech... |
21cea9047416777fdc6b544c2f89287c88d0c92c | 132 | #!/bin/sh
path=`dirname $0`
if test -z $1; then
$path/builddev
$path/buildpkg
else
$path/builddev $1-dev
$ptah/buildpkg $1
fi
|
78de47d4670c7f5e6b3937dcda235482cfdbbfd6 | 1,554 | #!/bin/bash
# This test verifies that flags passed through gc_goopts and gc_link_opts
# attributes in go_library, go_binary, go_test, and cgo_library are actually
# passed to the Go compiler.
#
# Each of the targets listed below is expected to fail, but only if the
# "-u" flag is passed to the compiler or linker (reje... |
efe6d34a9a2a355edb282b1cfb6f2375ea3c120d | 465 | #!/bin/bash
numberFormat='^[0-9]+$'
if [ -z "$1" ]; then # if the first argument is empty or doesn't exist
ssh -Y simkomir@pdsf.nersc.gov # connect to any node automatically
elif [[ $1 =~ $numberFormat ]] ; then # check if the first argument is a number
echo connecting to ... |
4e46634b4cbcde2ce4f77babf6b4c516458a6d3d | 216 | # APP
APP_ENV=dev
APP_URL=http://localhost:5000
# JWT AUTH
JWT_SECRET_KEY=uAsBw6WxqD
JWT_EXPIRATION_TIME=3600
# DATABASE
DB_TYPE=mysql
DB_USERNAME=root
DB_PASSWORD=
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=stark
|
3b45e39529e26076353186b60aa2740776e4e3aa | 2,313 | # fzf fuzzy search
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export FZF_DEFAULT_OPTS='-x -m'
# Setting ag as the default source for fzf
# also forces FZF to respect .gitignore
export FZF_DEFAULT_COMMAND='ag -l -g ""'
# Use git ls-tree when possible
fzf() {
if [ -n "$(git rev-parse HEAD 2> /dev/null)" ]; then
FZF_D... |
e6e76b6e1b224bec1ad376a5b8c605dc1adf9908 | 92 | crab status crab_QCD1000to1500
crab status crab_QCD1500to2000
crab status crab_QCD2000toInf
|
89284be3f19141d4c7faad5ad428bc3714f3fbe9 | 260 | #!/bin/bash
log_path='/data/mysql-bridge/binlog'
cd $log_path;
# gzip 保留1天
find . -type f -mtime +1 ! -iname '*.gz' -iname "binlog-*" -exec gzip -f -v {} \;
# clean 保留3天
find . -type f -mtime +3 -iname '*.gz' -iname "binlog-*" -exec rm -f {} \;
|
49407cebbb391d6bd8270d705b137cb14f9ee33d | 447 | #!/bin/bash
OUT_ZIP_FILE="data-collection.zip"
rm -f $OUT_ZIP_FILE
zip $OUT_ZIP_FILE $(find data-collection/*/preprocessed/*.rds)
for f in $(find data-collection/*/preprocessed/*.rds) ; do
dataset_name=$(echo "$f" | sed -e 's/data-collection\/\(.*\)\/preprocessed\/.*\.rds/\1/')
echo "Renaming $f -> $dataset... |
974855bc4273c6099a300c61d0ed035f179f88c3 | 120 | #!/bin/bash
session=$(tmux list-sessions -F "#{session_name}" | fzf -1 -q "$1") || exit
tmux switch-client -t $session
|
580cbb079a1cde3889e0daa2ac78a5b14093538f | 99 | #!/bin/bash
yum install -y libICE libSM libXdmcp libXext libXi libXt libXtst redhat-lsb postgresql
|
b918470c73d5c1f400608dae35c74fdfab56b3c6 | 240 | cd /usr/local/pentaho_bi_suite/pentaho/design-tools/data-integration
./kitchen.sh -file=/usr/local/data/bi_data/ETL/Google_docs/job_f_google_doc_data_process.kjb -level=Basic > /usr/local/data/bi_data/logs/job_f_google_doc_data_process.log |
c7ee6ed9fbdb0581357008286781e4486374b2a3 | 953 | export TERM="xterm-256color"
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(host user dir)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator vcs battery time)
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens|kubectx|oc|istioctl|kogito'
# ZPlug
if [[ ! -d ~/.zplug ]];then
... |
bb93687ee12ae320b546f50f38e68b30e26b14d6 | 463 | # Remove Unnecessary Certificates
delete_certificates() {
cert_list=$(security find-certificate -c "$@" -a -Z "/System/Library/Keychains/SystemRootCertificates.keychain"| grep SHA-1 | awk '{print $NF}')
if [[ $cert_list != 0 ]] ; then
for cert in $cert_list
do
run sudo security dele... |
c9ba3fb0e5bde251454d5ed5e95643a6afe1f6fc | 740 | #!/bin/bash
# Port forward 1080 and 10433 to ports 80 and 443 of web-server
Server_ip="192.168.0.10"
web_server_ip="192.168.10.100"
interface="wlp3s0"
sudo iptables-save > /home/mohamed/.iptables.bak
sudo sysctl net.ipv4.ip_forward=1
sudo iptables -t nat -A PREROUTING -i "$interface" -p tcp -d "$Server_ip" --dpor... |
7c87c6d93dbc91db83ae0e1f89e0ff6a41ded86e | 534 | # run job scripts within the tool outputs directory
cd ${REPORT_FILES_PATH}
#========== build and run job 1 script ============
cat >curl-download.sh <<EOF
if [ $(wc -l <$X_f) -gt 2 ]; then
cp $X_f $X_O
else
if [ "$X_e" = "twobit" ]; then
cp $TOOL_INSTALL_DIR/twoBitToFa twoBitToFa
chmod +x twoBitToFa
.... |
a9438fd05f772d1f151a95b43e4e4d3b75f1bd54 | 445 | #!/bin/bash
WORK_PATH='/usr/projects/blog-c'
cd $WORK_PATH
echo "先清除老代码"
git reset --hard origin/master
git clean -f
echo "拉取最新代码"
git pull origin master
echo "编译"
yarn build
echo "开始执行构建"
docker build -t blog-c:1.0 .
echo "停止旧容器并删除旧容器"
docker stop blog-c-container
docker rm blog-c-container
echo "启动新容器"
docker contain... |
c9e9ee3a0e7796418aa54ae372917504ac078e18 | 231 | #!/bin/sh
case "$(nmcli radio wifi)" in
disabled)
nmcli radio wifi on \
&& notify-send 'wifi on'
;;
enabled)
nmcli radio wifi off \
&& notify-send 'wifi off'
;;
esac
|
77870d4f5e8000ba3b629afd5d92299ba5bd504b | 2,272 | #!/bin/bash
#
#piggyback.sh
#by Joe Hahn, jmh.datasciences@gmail.com, 3 August 2017.
#this is then executed on master after hadoop is launched.
#
#To execute: ./piggyback.sh
echo 'running piggyback.sh...'
echo $(whoami)
echo $(pwd)
#unpack the spark-one-off repo, with permissions set so that user=jupyter
#can rea... |
7d88dd7f389d049427d306f9890c4fb0202a2f63 | 969 | #!/bin/bash
pwd -P; hostname; date
export PROJECT_DIR=$PWD
cd $PROJECT_DIR
source activate force
bands=( F090W F115W F150W F182M F200W F210M F277W F335M F356W F410M F444W F430M F460M F480M)
scales=( 0.03 0.03 0.03 0.03 0.03 0.03 0.06 0.06 0.06 0.06 0.06 0.06 0.06 0.06)
psfname=psf_jwst_2022-11-25_ng5m1
... |
89e8e21efe12916a869e0d002d9e71b54b410c45 | 2,682 | #!/bin/bash
# TODO: Find way to record runner of script or check for this argument
LOCAL_USER=$1
LOCAL_HOME=/home/$1
[ "$UID" -eq 0 ] || exec sudo bash "$0" "$@"
echo $LOCAL_HOME
echo $LOCAL_USER
# Variable Declarations
TMPDIR='/tmp/setup'
FONTDIR='/usr/share/fonts/truetype'
# Make container for downloads
mkdir ... |
03ef4effeca90ef0a2286bd3de5bf5b3907885e8 | 196 | #!/bin/zsh
SSH_USERNAME="leetnews"
SERVICE="$1"
echo "Restarting ${SERVICE} ..."
ssh "${SSH_USERNAME}@marsgpl" "docker-compose up -d --build --force-recreate ${SERVICE}" || exit 1
echo "OK"
|
0e0bc14b08f249050013a598286e431483bea9ad | 182 | #!/bin/sh
# eth1のIP設定
cat << EOS >> /etc/sysconfig/network-scripts/ifcfg-eth1
BOOTPROTO=static
PREFIX0=24
DEVICE=eth1
IPADDR0=$1
ONBOOT=yes
EOS
#反映
ifdown eth1; ifup eth1 |
a2a89871683cdfb40dc7db95eb130cb139ce8952 | 19 | killall -9 yolo -q
|
8dee34c41700a9b77cb8dddb9d369db59f546858 | 137 | pip install -r requirements.txt
pip install opencv-python
apt update && apt install -y libsm6 libxext6
apt-get install -y libxrender-dev |
a5681190b6dca70774c9a12dd57954522c33b66c | 53 | cd api
yarn
cd ../verwaltung
yarn
cd ../website
yarn
|
fc634a4d16e51d0c0e4ee7476b277ceaca12a1c0 | 620 | #!/bin/bash
set -e
if [ -f .env ]; then
export $(cat .env | grep -v '#' | awk '/=/ {print $1}')
fi
echo "stop & remove old docker and starting new instance of [$HOST]"
(docker kill $HOST || :) && \
(docker rm $HOST || :) && \
docker run --name $HOST \
-e POSTGRES_USER=$UNAME \
-e POSTGRES_PASSWORD=$PWORD \
... |
6c83c6b10fcff21e9a70840f223953f01a6bcd36 | 800 | #!/bin/bash
# Will submit jobs for every sample/reference genomes
rootDir="/scratch/cguyomar/MinYS_paper"
dataDir=$rootDir/data
resDir=$rootDir/results
scriptDir=$rootDir/scripts/MinYS
fofDir=$dataDir/files_of_files
poolList=$dataDir//pools.list
indList=$dataDir/individuals.list
for ref in LSR1 rearranged schyzaph... |
eb3b2566a3cf863ffc342fba76eb28b742bfa848 | 889 | #!/bin/sh
filter_out_ignore(){
while read line
do
[ "$line" = '.' ] ||
[ "$line" = '..' ] ||
[ "$line" = '.git' ] ||
[ "$line" = '.gitignore' ] ||
[ "$line" = '.gitmodules' ] &&
continue
echo $line
done
}
DOT_FILES=`echo .* | tr ' ' '\n' | filter_out_ignore | tr '\n' ' '`
echo "Li... |
e67576361555305243345d70447d28dec2768153 | 253 | #!/bin/bash
# display usage
if [ $# -ne 1 ]
then
echo "usage: $0 username"
exit 1
fi
username=$1
#here you can use password generator, send password via email, etc.
password="password"
#echo $password
echo $password | passwd --stdin $username
|
785363a2ea0924630dd0941431fac26a751f2694 | 338 | #!/bin/sh
gsettings set org.gnome.desktop.background show-desktop-icons true
gsettings set org.gnome.nautilus.desktop home-icon-visible true
gsettings set org.gnome.nautilus.desktop trash-icon-visible true
gsettings set org.gnome.nautilus.desktop network-icon-visible true
gsettings set org.gnome.nautilus.desktop volu... |
f68c8356078ba925f9f167b1a29e082006a4bebb | 186 | #! /bin/bash
clean_(){
cat >&3 <<EOM
rm -f stdout IBZKPT CHG EIGENVAL DOSCAR PROCAR PCDAT XDATCAR \\
LOCPOT PROOUT TMPCAR REPORT vasprun.xml >& /dev/null
rm -f WAVECAR
EOM
}
|
e52bdd94612e5cc929dc1221d3c17f045bc334fa | 735 | # Maintainer: Tobias T. <OldShatterhand at gmx-topmail dot de>
pkgname=clucene-old
pkgname1=clucene
pkgver=0.9.21b
pkgrel=1
pkgdesc="A C++ port of Lucene: the high-performance, full-featured text search engine"
arch=('i686' 'x86_64')
url="http://clucene.sourceforge.net"
license=('APACHE' 'LGPL')
depends=('gcc-libs' 'z... |
689d3e69d56799c013a01c8df29ecd6e8801ea33 | 697 | #!/bin/bash
# Скрипт инициализации dvc
# ${BUCKET} Имя проекта/репозитория что бы подключиться к нужному бакету в хранилище
# инициализируем dvc
dvc init &&
# добавляем бакет стораджа
dvc remote add -d storage s3://${BUCKET} &&
# устанавливаем что доступ в localhost в minio
dvc remote modify storage endpointurl http:... |
188198918a80a893d5163c0bca65c07b7403373e | 1,154 | #!/bin/sh
test_description='Check content on rawdiff page'
. ./setup.sh
test_expect_success 'generate foo/rawdiff' '
cgit_query "url=foo/rawdiff" >tmp
'
test_expect_success 'compare with output of git-diff(1)' '
git --git-dir="$PWD/repos/foo/.git" diff HEAD^.. >tmp2 &&
sed "1,4d" tmp >tmp_ &&
cmp tmp_ tmp2
'
te... |
7a50aa736939fc0f6ac76df05a541aaa2d773993 | 719 | #!/bin/bash
status=$(git status --porcelain)
version=$(python -c "from pkg_resources import get_distribution ; print get_distribution('cement').version")
short=$(echo $version | awk -F . {' print $1"."$2 '})
dir=~/cement-${version}
if [ "${status}" != "" ]; then
echo
echo "WARNING: not all changes committed"
... |
35bbf0429f5f05f4d47d3c486d48a2e158425332 | 2,869 | #!/bin/bash
set -eo pipefail
CURRENT_DIR=$(cd $(dirname $0); pwd)
TEMP_DIR="${CURRENT_DIR}/temp"
REPO_ROOT_DIR="${CURRENT_DIR%/contrib/offline}"
: ${IMAGE_ARCH:="amd64"}
: ${ANSIBLE_SYSTEM:="linux"}
: ${ANSIBLE_ARCHITECTURE:="x86_64"}
: ${DOWNLOAD_YML:="roles/download/defaults/main.yml"}
: ${KUBE_VERSION_YAML:="roles... |
4d3cbab564a0cf42841cbf6ec171038917d1c569 | 1,920 | #!/bin/bash
# Created by Kyle Ericson
# Version 1.0
# Use this to setup Sysaid config
# Vendor Website: https://www.sysaid.com
# Vendor Manual Agent Deployment https://documentation.sysaid.com/docs/manual-agent-deployment
# serverURL arg - URL of the server SysAid is running on. This information can be found at the use... |
e776f749579bd4359ac3530be2a4a17dcf18c87c | 9,657 | #!/bin/bash
#
# Copyright (C) 2016 remot3.it
#
# This is a notification plugin for for bulk managment.
#
# The calling formats are as follows:
#
# task_notify.sh [cmd] [taskid] [api] [status]
#
# task_notify.sh 0 [taskid] [api] [status]
# returns 200 OK for
#
# task_notify.sh 1
# returns 200 OK for
#
... |
db2df7b2bece74cc46266c791a0af3d1430c4d17 | 1,016 | #!/usr/bin/env bash
__update-repo() {(
local LEN=${2:-20}
printf "%-${LEN}.${LEN}s" $(basename $1)
cd $1
git fetch --quiet
LOCAL=$(git rev-parse @)
REMOTE=$(git rev-parse @{u})
BASE=$(git merge-base @ @{u})
if [[ $LOCAL = $REMOTE ]]; then
printf "\e[32mUp to date\e[0m\n"
elif [[ $LOCAL = $BASE ]... |
3b8b0ea94e3b548605267e36d80ed5f041ccefb5 | 453 | #!/bin/bash
# host01 in ov_net01
docker run -it --name=kj_host01_ov_p --network=kj_ov_net01 --privileged kowaraj/base_it:v.0.1.0
# host02 in ov_net02
docker run -it --name=kj_host02_ov_p --network=kj_ov_net02 --privileged kowaraj/base_it:v.0.1.0
# router in between, connected to both net01 and net02
docker run -it ... |
0f06af10c1e148a830a00ffda0fc85344c1fdfc0 | 3,830 | #!/bin/bash
# ~~~~~~~~~~~~~~~~~~~~~~~
# set colours
# ~~~~~~~~~~~~~~~~~~~~~~~
red='\033[1;31m' # red
green='\033[1;32m' # Green
bold='\033[1;37m' # white bold
nc='\033[0m' # no colour
# ~~~~~~~~~~~~~~~~~~~~~~~
# get parameters from user
# ~~~~~~~~~~~~~~~~~~~~~~~
helpFunction() {
echo ""
echo -e "${bold}U... |
92b65bc62ce7ded58f1582bddde90ab3aa5f3558 | 114 | #!/bin/sh
cd build
jar cvfe motion_profile2.jar com.tigerhuang.motion_profile2.MainFrame `find . -name "*.class"`
|
4f7463182592f3491bb56069fb8bcf0a33828f86 | 288 | #!/bin/bash
if [[ "$#" -ne 1 ]]; then
echo "USAGE: ./backup.sh CONTAINER NAME"
exit 1
fi
docker run --rm --volumes-from "$1" -v $(pwd):/backup busybox tar cvf /backup/backup.tar /var/lib/mysql/emoncms \
/var/lib/phpfiwa /var/lib/phpfina /var/lib/phptimeseries /var/lib/timestore
|
e4166a8a7af157e3f79d80d1887d1a6a34b02c49 | 33 | docker push shengqh/bioinfo:base
|
7c75ab9e1842f434cf6b7a52ed4e2d4b05e779e9 | 3,102 | # ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting t... |
c311dcb0cd283bfba9a106539076c48b7c5953b1 | 1,168 | #!/bin/sh
AGAPE_DIR=/home/ubuntu/AGAPE2 ###
REF_NAME=yeast
CFG_DIR=$AGAPE_DIR/cfg_files
PROTEIN1=$CFG_DIR/yeast_protein.fasta # reference proteins in FASTA
EST1=$CFG_DIR/yeast_est.fasta # reference EST in FASTA
PROTEIN2=$CFG_DIR/fungi_protein.fasta # larger set of proteins in FASTA
EST2=$CFG_DIR/fungi_est.fasta # lar... |
dd2f50c52f886e9125382e3d077bc88d3bc4df9d | 1,224 | #!/bin/bash
#place your comment for this uptade here:
comment="* Update Config.in and build recover"
echo "-------------------------------------------------------------------------------------------------------------"
if [ `id -u` -eq 0 ]; then
clear
echo
echo "This script needs to be executed without 'su' pri... |
0542a718b7258902d62cf254c0b42dc551a9182f | 319 | #!/bin/bash
##script to set mac addresses pre-ifup
ip link list | grep eth1
if [ $? -eq 0 ]; then
eth0mac="$(fw_printenv -n ethaddr)"
eth1mac="$(fw_printenv -n eth1addr)"
ip link set dev eth1 address "$eth1mac"
else
eth0mac="$(fw_printenv -n eth1addr)"
fi
ip link set dev eth0 address "$eth0mac"
exit 0
|
706da60fcefb8b418a6fb304f2cc2e1ef6e78137 | 1,220 | #!/bin/bash
#
# Make sure the Kind local container and chart repo works as expected.
set -ex
# add the repo to helm with:
helm repo add chartmuseum-demo http://localhost/
# list the repositories
helm repo list
# build image
docker build -t helloworld:latest .
# tag and push the image
docker tag helloworld:latest l... |
64f8d2266658ff65db6a54b17da08cf9fb71ce53 | 216 | set -Eeumo pipefail
DIR=$(dirname "$(command -v greadlink >/dev/null 2>&1 && greadlink -f "$0" || readlink -f "$0")")
go run . \
-c "$DIR/example/app-config.yaml" \
-i "$DIR/example/io-config.yaml" \
-v debug
|
78297de0291711df738b77e86ca7580bf8b123c7 | 1,201 | xtensa-esp32-elf-c++ -std=gnu++11 -Og -ggdb -Wno-frame-address \
-ffunction-sections -fdata-sections -fstrict-volatile-bitfields \
-mlongcalls -nostdlib -Wall -Werror=all -Wno-error=unused-function \
-Wno-error=unused-but-set-variable -Wno-error=unused-variable \
-Wno-error=deprecated-declarations -Wextra -Wno-unused-... |
3d1309476c17fb36996dc35db26f8d4b9c6b8144 | 69 | #!/bin/bash
docker build -t headwirecom/aemsolrsearch:solr-5-cloud .
|
e838b6cc19a50f97bcca777b8e2cd695c36f7836 | 156 | #!/usr/bin/env sh
set -ex
. opam.deps.sh
opam pin add -y -n git+https://github.com/ocaml/ocaml-lsp
opam install \
"merlin" \
"ocamlformat" \
"odoc"
|
a843aba45f208c40f9e3072a03f537add21cbc2f | 1,372 | #!/bin/bash
if [ -z ${1+x} ] || [ -z ${2+x} ] ; then
echo "Usage: $0 [track-to-play] [target-date]"
exit 1
fi
target_date=$2
echo "testing date validity:"
date -d "$target_date"
if [ $? -ne 0 ] ; then
echo error parsing date
exit 1
else
echo date successfully parsed!
fi
target_file=$1
if [ -f "$target_file" ] ; t... |
ff6ecff4cb2e8347b7ce5616d5434fdb97f40586 | 745 | #!/bin/sh
set -e
# export VSINSTALLDIR="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community"
# export VisualStudioVersion="15.0"
docfx ./docs/docfx.json
SOURCE_DIR=$PWD
cd ..
TEMP_REPO_DIR=$PWD/bubble-shooter-vr-docfx-temp
echo "remove existing temp dir $TEMP_REPO_DIR"
rm -rf "$TEMP_REPO_DIR"
echo "create... |
de45388fee5d4fa0d28f9717b3dfe1f4073453c1 | 829 | pushd `dirname $0` > /dev/null
SCRIPTPATH=`pwd`
popd > /dev/null
cd $SCRIPTPATH
. "./config.sh"
export GIT_SOURCE_FOLDER="source_git"
export GIT_DEPLOY_DIR="dist"
function generate_package_template() #platforms
{
local _platforms=${1}
local _template=${2}
eval "cat <<EOF
$(<./${_template})
EOF
" 2> /dev/null
}
i... |
ddbbd97cb6d78e4051a2dcc25d22d21ec3ea5936 | 666 | #!/bin/bash
tmpdir=`tempfile`
final_lib=$1
shift
rm -f $final_lib
for i in "$@"
do
echo $i
if [[ "$i" =~ ^.*\.a$ ]]; then
rm -rf $tmpdir
mkdir -p $tmpdir
cur_path=$PWD
cp $i $tmpdir
cd $tmpdir
arn=`basename $i`
ar x $arn >/dev/null
rm -f $arn
arn_tmp=`echo $arn | sed 's/.a$//g'`
l=`ls`
for j i... |
fbe8f93aff948fe171baa467a99b1a392aa26dfc | 49 | #!/bin/zsh
sudo nohup $1 --allow-root > $2.log &
|
5d359b7b1751d6b1d52c90a71555bd8c0f1a8786 | 4,333 | #! /bin/bash
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... |
8d57eb8e4d7f18221eae3e39a4eb0e5a5d7c5919 | 829 | # af-magic.zsh-theme
# Repo: https://github.com/andyfleming/oh-my-zsh
# Direct Link: https://github.com/andyfleming/oh-my-zsh/blob/master/themes/af-magic.zsh-theme
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
# primary prompt
PROMPT='$FG[237]... |
7e648da4dd89b3d9ef39627027cb39593d0e2a12 | 227 | #! /bin/bash
address="AA:BB:CC:DD:EE:FF"
while (sleep 1)
do
connected=`sudo hidd --show` > /dev/null
if [[ ! $connected =~ .*${address}.* ]] ; then
sudo hidd --connect ${address} > /dev/null 2>&1
fi
done
|
c0537e9cd24aca53c6d5034d1d947b26184e698f | 106 | #!/bin/bash
git rebase -i --autosquash -x 'git clang-format main && git commit -a --amend --no-edit' main
|
1699f11435d6fb1b325d3f9b5b77ac0696cd40c2 | 171 | #!/bin/bash
DATE=`date +%Y-%m-%d-%I%p`
NAME="$DATE-database.sql.gz"
BK_LOCATION="./"
ssh user@ip mysqldump --all-databases -u user -p123 -h localhost | gzip -9 > $NAME |
4d061ad463c3102219d3687e64361a922cba7149 | 2,401 | # Maintainer: Uroš Vampl <mobile.leecher at gmail dot com>
pkgname=tigervnc-svn
pkgver=5002
pkgrel=1
_xorgver=1.13.0
pkgdesc="suite of VNC servers and clients. Based on the VNC 4 branch of TightVNC."
arch=('i686' 'x86_64')
url="http://www.tigervnc.org"
license=('GPL')
depends=('fltk-snapshot' 'pam' 'gnutls' 'libxtst' ... |
3b22f18ef201c348477acf71c28bca30e8738b0c | 8,545 | #!/bin/sh
export VISUAL=vim
export EDITOR=$VISUAL
if [ -f ~/.term ]; then
term=$(cat ~/.term)
export TERMINAL="$term"
else
export TERMINAL=uxterm
fi
export GPG_TTY=$(tty)
export GPG_AGENT_INFO=${HOME}/.gnupg/S.gpg-agent:0:1
source <(gopass completion bash)
export BROWSER=url-open
export TIMEZONE="Europe/Rome"
ex... |
13d5e7b6b487c772dbe96cdfa0c3ed19ce3c3337 | 672 | #!/usr/bin/env bash
set -e
renew_signature(){
rdn=$1
file_name=$2
dir_name=./tests/files/signatures
/opt/cprocsp/bin/amd64/cryptcp -creatcert \
-rdn "$rdn" \
-cont '\\.\HDIMAGE\cont1' \
-sg -ku -du -ca http://cryptopro.ru/certsrv
/opt/cprocsp/bin/amd64/cryptcp -signf \
... |
4b15355bb30cb37e55ae257dfcb51fbb2ef85bca | 1,250 | #!/bin/bash
function checkDependencies {
dpkg --get-selections | grep '^ipset' >/dev/null
if [[ $? = 1 ]]; then
apt-get install ipset -y
fi
dpkg --get-selections | grep '^xtables-addons-source' >/dev/null
if [[ $? = 1 ]]; then
apt-get install xtables-addons-source -y
fi
dpkg --get-s... |
90f5198dc6c55e798f4e9ba40f992e0f74c0f506 | 38 | echo "5 * * * 6 script2.sh" | crontab
|
d3e9b13d7421a2d1a9c9b3ed3f5e01136b307971 | 263 | #!/bin/sh
# Remove old releases
rm -rf _build/prod/*
# Build the image
docker build --rm -t log_lady-build -f Dockerfile.build . --no-cache
# Run the container
docker run -it --rm --name log_lady-build -v $(pwd)/_build/prod:/opt/app/_build/prod log_lady-build
|
09514ba3be007e4132937a4dc38707c4abf9e168 | 245 | #!/bin/bash
echo 1016 > /sys/class/gpio/unexport
echo 1016 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio1016/direction
echo 0 > /sys/class/gpio/gpio1016/value
sleep 1
echo 1 > /sys/class/gpio/gpio1016/value
./ssd1306_demo /dev/i2c-2
|
c7bd5a4a713136bd48afab3464f06be35f919ab6 | 878 | query=/home/nick/uni/rotation_paleovirology_2018/dataset_collection/virus/all_cds_w_speciesheader_cd-hit_c_097_pluslineage_filter_less_80aa_header_wo_whitespace.fa
for i in ./*_*/
do
cd $i
echo $i
for j in *.fa
do
if [ ! -f ${j}_blast.out ]; then
echo "blastn -query $query -db $j -t... |
698f4766bcd109d70a2e555f9c08fdb17de2396c | 299 | #!/bin/sh
#PBS -l walltime=00:10:00
#PBS -N TOUGHPlus
#PBS -l nodes=1:ppn=16
module load intel
#export USE_CPP=1
#export USE_TIMER=1
#export USE_OMP=1
#cd ../
#make clean
#make
#cd FracGrid
export OMP_NUM_THREADS=4; ./../FTSim.exe < Test_B2 > 4.out
rm ALLOC GENER INCON SAVE VERS Plot_* LINEQ
|
ac9c3e4d5de6fa2f6ee50f198a5b8d767111ea94 | 187 | #!/bin/sh
xcursorgen hand1.cursor hand1
xcursorgen hand1.cursor hand2
cp hand1 9d800788f1b08800ae810202380a0822
cp hand2 e29285e634086352946a0e7090d73106
cp hand1 hand
|
547e02416d6c1914131bb475c1eefc0017e3f9f8 | 512 | #!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/..
DOCKER_IMAGE=${DOCKER_IMAGE:-xebecproject/xebecd-develop}
DOCKER_TAG=${DOCKER_TAG:-latest}
BUILD_DIR=${BUILD_DIR:-.}
rm docker/bin/*
mkdir docker/bin
cp $BUILD_DIR/src/xebecd docker/bin/
cp $BUILD_DIR/src/xebec-cli docker/bin/
cp... |
0f9645aefbe7db2da4a332ab72152969260f2fe2 | 1,877 | # Maintainer: Tim S <stahta01@gmail.com>
# Contributor: Paul Hentschel <aur at hpminc.com>
# Based on work from https://github.com/hpmachining/os9-dev
_realname=cmoc_os9
_machine=m6809
_target=${_machine}-unknown
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}-git"
pkgver=r85.9f9dfda
pkg... |
4ddab03d2a83a67e8f1bdc2a805594d255942ad9 | 387 | #!/bin/bash
# Script written by W. Al Maawali
# (c) 2016 Founder of Eagle Eye Digital Solutions
# http://www.digi77.com
# http://www.om77.net
# script starts here:
# check if user has logged in
if [[ $(who |grep 'kodachi'|cut -d : -f 1| awk 'NR==1') = *kodachi* ]]; then
sudo killall cairo-dock;
notify-send "Dock... |
c22c9ada5f13e534f457e960c174deefae8328f6 | 68 | wp_schema_site=https://exmaple.com/wp-json/
wp_schema_insecure=true
|
51429e096b96673d169a02c659251a45c1a7b9ce | 644 | #!/bin/bash
set -e
# non interactive
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
# install system deps
echo " ---> Updating ubuntu"
apt-get -y -qq --force-yes update
apt-get -y -qq --force-yes install apt-utils aptitude
apt-get -y -qq --force-yes upgrade
apt-get -y -qq --force-yes i... |
c14fd53cbde9a93d3a57ee85e785c64586d6a823 | 128 | #!/bin/bash
#activate virtual env
. /appenv/bin/activate
#pass command line arguments to execute in same shell process
exec $@ |
8e4d34c1d0fb2d9324157c3f92e8bc8c218cc216 | 1,374 | #!/bin/sh
set -e
version=$(`dirname $0`/osv-version.sh)
name=$1
image=$2
description=$3
out=build/standalone/$name
build="make image=$image"
function usage()
{
echo "Usage: scripts/build-standalone-img [name] [image] [description]"
exit 1
}
if [ $# -ne 3 ];then
usage
fi
### Build image
echo "==> Building '$name'... |
566a2d4b2ee842dbd08bd4285523486f7929168d | 60 | dexy -x example/templates dist
cp -r output/docsrc/* docs/
|
80c8a76129c2c5c0d494abe27a060e09c08f0034 | 28 | brew cask install diashapes
|
fa4d39cf4da9b3eaebda33d260b5056e1bc658e5 | 1,033 | #!/bin/bash
set -ev
export MSYS_NO_PATHCONV=1
docker-compose -f docker-compose.yml down
docker-compose -f docker-compose.yml up -d ca.example.com orderer.example.com peer0.org1.example.com cli
export FABRIC_START_TIMEOUT=10
sleep ${FABRIC_START_TIMEOUT}
docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_... |
2e7b782a9601f1b01921d5bce3ccbdbf47373e38 | 1,897 | #!bin/bash
EVENT_DIS_CONFIGDIR="$( cd $( dirname $BASH_SOURCE[0]) && pwd)"
EVENT_DIS_BASEDIR="$( dirname $EVENT_DIS_CONFIGDIR)"
#echo $EVENT_DIS_CONFIG
#echo $EVENT_DIS_BASEDIR
# Get default PATH and PYTHONPATH
PYTHONPATH_backup=$PYTHONPATH
PATH_backup=$PATH
# Check for PyQt4
if ! $(python -c "import PyQt4" &> /dev... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.