code stringlengths 2 1.05M | repo_name stringlengths 5 110 | path stringlengths 3 922 | language stringclasses 1
value | license stringclasses 15
values | size int64 2 1.05M |
|---|---|---|---|---|---|
#!/bin/sh
#
# Copyright (c) 2005 Junio C Hamano
#
test_description='git apply should not get confused with rename/copy.
'
. ./test-lib.sh
# setup
mkdir -p klibc/arch/x86_64/include/klibc
cat >klibc/arch/x86_64/include/klibc/archsetjmp.h <<\EOF
/*
* arch/x86_64/include/klibc/archsetjmp.h
*/
... | haglerchristopher/automation | src/3rd_party/git/t/t4112-apply-renames.sh | Shell | gpl-2.0 | 3,448 |
#!/bin/sh
make -j17
cp arch/arm/boot/zImage ~/tftpboot
| blueskycoco/sam | b.sh | Shell | gpl-2.0 | 56 |
#!/bin/sh -u
# Architecture commands for GDB, the GNU debugger.
#
# Copyright (C) 1998-2017 Free Software Foundation, Inc.
#
# This file is part of GDB.
#
# 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 Software Fo... | totalspectrum/binutils-propeller | gdb/gdbarch.sh | Shell | gpl-2.0 | 91,253 |
convert images/OCS-172-A.png -crop 1568x874+0+0 +repage images/OCS-172-A-0.png
convert -append images/OCS-171-B-15.png images/OCS-172-A-0.png images/OCS-171-B-15.png
rm images/OCS-172-A-0.png
convert images/OCS-172-A.png -crop 1568x394+0+865 +repage images/OCS-172-A-1.png
convert images/OCS-172-A.png -crop 1568x1115+0+... | jonnymwalker/Staroslavjanskij-Slovar | scripts/findindents.OCS-172.sh | Shell | gpl-2.0 | 2,218 |
cat <<\TEMPLATEQUOTE
XDvi.grey: true
XDvi.reverseVideo: true
XDvi.expert: true
XTerm*background: black
XTerm*foreground: white
XTerm.VT100.geometry: 80x25
XTerm.VT100.scrollBar: False
XTerm.VT100.font: -*-fixed-medium-r-*-*-12-*-*-*-*-*-*-*
XTerm.VT100.colorBDMode: false
XTerm*VT100*translations: #override \
S... | wtanaka/shellfun | xresources.sh | Shell | gpl-2.0 | 14,353 |
for i in *.[ch]
do
cat head.txt $i >$i.new && mv $i.new $i
done
| antoniofabio/MCMClib | utils/addHeader.sh | Shell | gpl-2.0 | 68 |
#!/bin/bash
vagrant ssh -c '/vagrant/server-scripts/headlessx.sh'
| orthanc/desktop-streamer | dev-scripts/run-xserver.sh | Shell | gpl-2.0 | 67 |
#!/bin/bash
set -e
IMAGES=$1
ISO=${IMAGES}/iso
mkdir -p ${ISO}/boot
cp ${IMAGES}/bzImage ${ISO}/boot/bzImage
ROOTFS=/tmp/root
mkdir -p ${ROOTFS}
tar xJf ${IMAGES}/rootfs.tar.xz -C ${ROOTFS}
cd ${ROOTFS}
find | cpio -H newc -o | xz -9 -C crc32 -c > ${ISO}/boot/initrd
mkdir -p ${ISO}/boot/isolinux
cp /usr/lib/syslin... | ailispaw/docker-root | scripts/post_image.sh | Shell | gpl-2.0 | 1,736 |
#!/bin/bash
source experiment/run-library.sh
manifest="${PARAM_manifest:-conf/contperf/manifest.zip}"
inventory="${PARAM_inventory:-conf/contperf/inventory.ini}"
private_key="${PARAM_private_key:-conf/contperf/id_rsa_perf}"
test_sync_mixed_count="${PARAM_test_sync_mixed_count:-8}"
test_sync_mixed_max_sync_secs="${PA... | redhat-performance/satellite-performance | experiment/sync-mixed-two-cv.sh | Shell | gpl-2.0 | 2,037 |
#!/bin/sh
# This test is a part of RPC & TI-RPC Test Suite created by Cyril LACABANNE
# (c) 2007 BULL S.A.S.
# Please refer to RPC & TI-RPC Test Suite documentation.
# More details at http://nfsv4.bullopensource.org/doc/rpc_testsuite.php
# TEST : RPC svc_destroy basic
# creation : 2007-05-25 revision 2007-
# *******... | anthony-kolesov/arc_ltp | testcases/network/rpc/rpc-tirpc-full-test-suite/scripts/rpc_createdestroy_svc_destroy.sh | Shell | gpl-2.0 | 2,781 |
#!/bin/bash
function log_info() {
echo "[INFO]$@"
}
function log_warn() {
echo "[WARN]$@"
}
function log_error() {
echo "[ERROR]$@"
}
#使用方法说明
function usage() {
cat<<USAGEEOF
NAME
$g_shell_name - 自动配置git环境
SYNOPSIS
source $g_shell_name [命令列表] [文件名]...
DESCRIPTION
$g_git_wrap_shell_name --自动配置git环境
-... | searKing/PrivateGitHub | auto_config_git.sh | Shell | gpl-2.0 | 12,497 |
#!/bin/bash
MYPATH=`dirname "$0"`;
cd "${MYPATH}" || exit 1
SRC_DIR="`pwd`"
rm -rf ../../../../build
mkdir ../../../../build
cd ../../../../build || exit 1
IMAGE_BUILD_DIR="`pwd`"
if [ "${CAL_AVB_FPGA_SDK_ARCHIVE}" != "" ] ; then
rm -rf cal-fpga
mkdir cal-fpga || exit 1
cd cal-fpga || exit 1
tar xzf ... | jdkoftinoff/mbbl-gpl | mbbl/boards/cal-ics/buildscript.sh | Shell | gpl-2.0 | 3,544 |
#!/bin/bash
# Copyright (c) 2015, Johns Hopkins University ( Yenda Trmal <jtrmal@gmail.com> )
# License: Apache 2.0
# Begin configuration section.
stage=0
# End configuration section
. ./utils/parse_options.sh
set -e -o pipefail
set -o nounset # Treat unset variables as an error
. ./cmd.s... | michellemorales/OpenMM | kaldi/egs/babel/s5d/local/syllab/run_phones.sh | Shell | gpl-2.0 | 1,903 |
#!/bin/bash
# mak
_ramsize="512"
diskfile="ffs.img"
_rebuild="0"
_debug="0"
_curses=""
_logtofile="stdio"
_test="0"
_test_arg=""
_vga="-vga std"
_power="-device isa-debug-exit,iobase=0xf4,iosize=0x04"
_kvm="-no-kvm"
if [ ! -e "kernel" ]; then
_rebuild="1"
fi
_test_arg_need="0"
for arg in $@
do
if [ "$_test_arg_need"... | crazyender/mos | run.sh | Shell | gpl-2.0 | 2,039 |
#! /bin/bash
_cryptotools_opts () {
local cur prev opts
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
prev=${COMP_WORDS[COMP_CWORD - 1]}
CIPHERS="caesar-shift affine-shift vigenere keyword"
case "$prev" in
"ciphers")
COMPREPLY=($(compgen -W "-d $CIPHERS" -- $cur)) ;;
... | cpascoe95/cryptotools | ct_bash_completion.sh | Shell | gpl-2.0 | 773 |
#!/bin/bash
# Installs the host package and symlinks host to hostx
back="$(pwd)"
# Install our package if needed.
emerge -u host || exit 1
ourFolder="$(dirname $(which hostx))"
if [ -z "${ourFolder}" ]; then
echo "Cannot find folder for host." >&2
exit 1
fi
# Setup the symlink if needed
echo -n "Creating ou... | tsuehpsyde/SourceKills | sys_scripts/deploy/modules/202_host.sh | Shell | gpl-2.0 | 604 |
#!/bin/bash
set -e
# Global variables:
# ${GV_LOG}: Prefix this variable in echo to log echoed string.
SCRIPT_NAME="$(basename "$(test -L "$0" && readlink "$0" || echo "$0")")"
echo "${GV_LOG}>>>>>>>>> Running ${SCRIPT_NAME} ..."
# Explicitly install dependent packages
apt-get -y install xdg-utils
apt-get -y inst... | limelime/cust-live-deb | scripts/repository/inst-xtra-games-openra/inst-xtra-games-openra.sh | Shell | gpl-2.0 | 781 |
#!/bin/bash
if [ "$#" -ne 1 ]; then
echo "One parameter (snapshot name) needed"
exit 2
fi
./tools/shutdown_all_vms
./tools/list_domains | while read virtual_machine_name; do
echo "------------------------------------------------------------"
echo $virtual_machine_name
virsh snapshot-create-as $virtual_ma... | MasterprojectOpenStack2015/sourcecode | installation/snapshot_virtual_machines.sh | Shell | gpl-2.0 | 656 |
#!/bin/bash
. ./cmd.sh
stage=1
train_stage=-10
use_gpu=true
. ./path.sh
. ./utils/parse_options.sh
if $use_gpu; then
if ! cuda-compiled; then
cat <<EOF && exit 1
This script is intended to be used with GPUs but you have not compiled Kaldi with CUDA
If you want to use GPUs (and have them), go to src/, and conf... | michellemorales/OpenMM | kaldi/egs/swbd/s5b/local/online/run_nnet2.sh | Shell | gpl-2.0 | 13,769 |
#! /bin/sh -e
# tup - A file-based build system
#
# Copyright (C) 2013-2020 Mike Shal <marfey@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distribu... | ppannuto/tup | test/t4106-different-dir-removed.sh | Shell | gpl-2.0 | 1,112 |
#!/bin/sh
#
# make-bindist.sh - make binary distribution for the QNX 6.x SDL port
#
# Written by
# Marco van den Heuvel <blackystardust68@yahoo.com>
#
# This file is part of VICE, the Versatile Commodore Emulator.
# See README for copyright notice.
#
# This program is free software; you can redistribute it and/or mo... | tojo9900/vice | src/arch/sdl/make-bindist_qnx6.sh | Shell | gpl-2.0 | 40,469 |
#!/bin/bash
######################################################################
# TrinityX
# Copyright (c) 2016 ClusterVision B.V.
#
# 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 Software Foundation; either ... | clustervision/trinityX | legacy/configuration/controller/postfix.sh | Shell | gpl-2.0 | 971 |
#!/bin/bash --login
#SBATCH --partition=ibmulticore
#SBATCH --job-name=MCSJ2K
# 1. "PTS" Progressive Transmission by Subbands.
# 2. "PTL" Progressive Transmission by Layers.
# 3. "AmPTL" Attenuation-modulated PTL.
# 4. "FS" Full Search R/D optimization.
# 5. "SR" Subband Removing R/D... | vicente-gonzalez-ruiz/QSVC | trunk/tests/paper0/scriptD1.sh | Shell | gpl-2.0 | 440 |
#!/bin/bash
. $(dirname "$0")/init.sh
# This test script calls walk on an archive not in the current directory,
# to check if the directory changes work out.
ARCHIVE='test.tar'
cd_tmpdir
echo foo > foo-file
tar -cf $ARCHIVE foo-file
rm -f foo-file
prepare_subshell <<SH
# We're now inside the unpacked archive.
... | mle86/walk | test/07-test-nonlocal.sh | Shell | gpl-3.0 | 813 |
#!/bin/bash
printf "#include \"weak.h\"\n\n// DO NOT EDIT MANUALLY: Generated from script.\n\nconst char *version = \"%s\";\n" $(git describe) > version.c
| lorenzo-stoakes/weak | genver.sh | Shell | gpl-3.0 | 156 |
#!/bin/bash
#PBS -l walltime=1:00:00
#PBS -l select=1:ncpus=2:mpiprocs=2
#PBS -o job.out
#PBS -e job.err
#PBS -A cin_staff
cd ${PBS_O_WORKDIR}
echo ${PBS_O_WORKDIR}
# modules to be loaded for petsc version 3.5.2
#module load intel/cs-xe-2015--binary
#module load intelmpi/5.0.2--binary
#module load petsc/3.5.2--inte... | sbna/CINECA-SCAI-HPC-courses | hpc-numerical-libraries-course/petsc/5_petsc_snes_poisson/solution_example/petsc_qsub_script.sh | Shell | gpl-3.0 | 647 |
#!/bin/bash
#
######################################################################
#
# Name: PW_change.sh
# Author: Chris Fedun 19/02/2017
# Description: Change Password
# Credit to http://unix.stackexchange.com/questions/76313/change-password-of-a-user-in-etc-shadow
# Copyright (C) 2017 Christopher Fedun
#
# ... | DarkPhoenix6/299-Scripts | initial_setup/PW_change.sh | Shell | gpl-3.0 | 1,381 |
#!/bin/bash
if [ $(id -u) == 0 ]; then
echo "You need to run this script as standard user, not root (pid may be 501). Type id -u in terminal to check this"
exit
fi
diskutil verifyVolume /dev/disk0
echo "Finished"
| Nan0r/Macintosh | volume_verify.sh | Shell | gpl-3.0 | 216 |
#!/bin/bash
ls
lsb_release -a
# check if gcc exists
gcc --version
# install java 8
apt-get -y install default-jdk
java -version
echo "java installed inside chroot"
# exit from chroot
exit | ahmed-dinar/JustOJ | judger/setup-chroot.sh | Shell | gpl-3.0 | 192 |
sudo apt-get update
sudo apt-get -y install build-essential xorg-dev \
python-dev python-virtualenv python-numpy \
python-pygame libglu1-mesa-dev cmake uuid-dev \
liblapack-dev mercurial libboost-all-dev \
libatlas-base-dev subversion gfortran libxml2-dev\
liblog4cpp5-dev python-numpy python-scipy
easy_insta... | nuSTORM/gnomon | doc/source/snip/snip00.bash | Shell | gpl-3.0 | 342 |
source ${prefix}/func.sh;
if [ "$grub_platform" = "efi" ];
then
map -f -g "${grubfm_file}";
else
to_g4d_path "${grubfm_file}";
if [ -n "${g4d_path}" ];
then
set g4d_cmd="map --mem (rd)+1 (fd0);map --hook;configfile (fd0)/menu.lst";
to_g4d_menu "set file=${g4d_path}\x0amap %file% (0xff) || map --mem %fi... | a1ive/grub2-filemanager | boot/grubfm/rules/iso/map.sh | Shell | gpl-3.0 | 581 |
#!/bin/bash
# This script is meant for fetching selection of books from gutenberg data using
# methods they suggest in their wiki
usage() {
cat<<-EOUSAGE
Usage: $0 [OPTIONS...] LANG...
Fetch JRC Acquis 3.0 europarl data.
LANG is ISO 639 code, such as en, de, fi etc.
EOUSAGE
}
version() {
cat<<-E... | flammie/bash-corpora | fetch-jrc-acquis.bash | Shell | gpl-3.0 | 1,199 |
pyleus submit -n 52.89.54.203 StormTest.jar
| jprawiharjo/Nerddit | Storm/submitjob.sh | Shell | gpl-3.0 | 44 |
#!/bin/bash
#
# This file is part of the Pi Entertainment System (PES).
#
# PES provides an interactive GUI for games console emulators
# and is designed to work on the Raspberry Pi.
#
# Copyright (C) 2014-2021 Neil Munday (neil@mundayweb.com)
#
# PES is free software: you can redistribute it and/or mod... | neilmunday/pes | setup/arch-common/install-rasum.sh | Shell | gpl-3.0 | 1,303 |
#!/bin/sh
#``Renaming Faces for CCNx''
#
#Copyright (C) 2012, Delft University of Technology, Faculty of Electrical Engineering, Mathematics and Computer Science, Network Architectures and Services, Niels van Adrichem
#
# This file is part of ``Renaming Faces for CCNx''.
#
# ``Renaming Faces for CCNx'' is free s... | TUDelftNAS/CCNx-RenamingFaces | tools/compile.sh | Shell | gpl-3.0 | 1,278 |
cat /var/log/dovecot.log | grep "unknown user (given password" | cut -d "," -f 2 | cut -d ")" -f 1 | sort | uniq > /root/ip-for-unknown-user
php get-all-ip-to-contry-list.php /root/ip-for-unknown-user
php -n get-all-ip-to-contry-list.php /root/ip-for-unknown-user | cut -d "," -f 3 | sort| uniq > uniq-countr... | deependhulla/powermail-debian9 | files/rootdir/usr/local/src/ip-to-location/check-log-for-unknown-user-from-dovecot-log.sh | Shell | gpl-3.0 | 746 |
#!/bin/bash
#usage
#rm_file [id_filename]
SCRIPTNAME=$(basename $0 .sh)
source ${0%/*}/config
for element in "$@"
do
#id=`sqlite3 $database "select id from files where name=\"$element\""` # Ansatz ist nicht gut da mehrereDateien den gleichen namen haben können - abhilfe würde inode ermitteln bringen
id=`basen... | msooon/infosystem | rm_file.sh | Shell | gpl-3.0 | 1,085 |
#!/usr/bin/env bash
# used in travis to:
# - build libsodium
git clone https://github.com/jedisct1/libsodium.git
cd libsodium
git checkout tags/1.0.8
./autogen.sh
./configure --prefix=$HOME/installed_libsodium && \
make -j$(nproc) && \
make install
cd ..
| ze-tox/tox-capi | scripts/bootstrap-osx.sh | Shell | gpl-3.0 | 266 |
#!/bin/sh
# Copyright (c) 2013 Mark Travis <mtravis15432+src@gmail.com>
# All rights reserved. No warranty, explicit or implicit, provided.
#
# This file is part of InfiniSQL (tm). It is available either under the
# GNU Affero Public License or under a commercial license. Contact the
# copyright holder for information... | infinisql/infinisql | scripts/benchmark/killbm.sh | Shell | gpl-3.0 | 1,258 |
#!/bin/bash
#: Set up OpenSSH client and server for Ubuntu.
#:
#: Intended for Ubuntu 18.04
#: Author: Fastily
sudo apt update && sudo apt -y install openssh-client openssh-server
## Harden sshd - disallow root login and password auth
sshdConfig="/etc/ssh/sshd_config"
sudo cp "$sshdConfig" "${sshdConfig}_BACKUP.txt... | fastily/autobots | ubuntu/installers/OpenSSH.sh | Shell | gpl-3.0 | 598 |
# 01_enter_stage_acceptable.sh
# We need to verify before entering this stage of CURRENT_STATUS="postinstall:ended"
# and EnterNextStageAllowed=""
if [ "$EnterNextStageAllowed" = "N" ]; then
Error "As the variable EnterNextStageAllowed is set to \"N\" we cannot proceed stage $stage"
fi
# clear EnterNextStageAllow... | gdha/upgrade-ux | opt/upgrade-ux/scripts/postremove/default/01_enter_stage_acceptable.sh | Shell | gpl-3.0 | 835 |
#! /bin/bash
# Usage: $0
# Create VDM specification files from source file.
function writevdm {
# $1: File name
# $2: Module name
# Remove VDM++ comments:
SLFILE=`perl -p -e 's/^-- VDM\+\+:.*\n//g' $1.src`
# Create VDMSL flat file:
cat <<EOF>$1flat.vdm
$SLFILE
EOF
# Create VDMSL module file:
cat <<EOF>$1.vdm
module... | vdmtools/vdmtools | spec/stdlib-spec/gen-libs.sh | Shell | gpl-3.0 | 909 |
#!/bin/bash
# set -x
# replace an image with a new one
function Finish() {
local rc=${1:-$?}
local pid=$$
trap - INT QUIT TERM EXIT
if [[ $rc -ne 0 ]]; then
echo
date
echo " pid $pid exited with rc=$rc"
fi
rm $lockfile
exit $rc
}
function ImagesInRunShuffled() {
(set +f; cd ~tinderbo... | toralf/tinderbox | bin/replace_img.sh | Shell | gpl-3.0 | 2,842 |
#!/bin/sh
#
# Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2005 Julien Louis <ptitlouis@sysif.net>
# Copyright (C) 2005-2006 Emmanuel Bouthenot <kolter@openics.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it an... | talisein/weechat-1 | autogen.sh | Shell | gpl-3.0 | 1,673 |
ceph pg dump --format json | json_pp | grep 'deep_scrub_stamp' | cut -c-50 | sort | uniq -c
| f3flight/openstack-tools | ceph/deep-scrub-pgs-per-hour-history.sh | Shell | gpl-3.0 | 92 |
#!/usr/bin/env sh
# Terminate already running bar instances
killall -q polybar
# Wait until the processes have been shut down
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
# Launch bar1 and bar2
polybar example &
| ilynxphysicist/dotfiles | polybar/launch.sh | Shell | gpl-3.0 | 230 |
#!/bin/bash
#argument 1 : -f make the replacement force!
shopt -s expand_aliases
source ~/.bash_aliases
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 != /*... | gabyx/GRSFramework | simulations/examples/jobs/simulationStudies/avalanche1M-Tree-SimStudy/renderJob/scene/blender/AdditionalRegexScene0.sh | Shell | gpl-3.0 | 1,144 |
#!/bin/bash
mkdir -p _build
(
cd _build
rm -f moose*.dmg
rm -rf moose-3.0.1-Linux*
cmake -DCMAKE_INSTALL_PREFIX=/Moose.app ..
make -j4
#cpack -G Bundle
cpack -G DragNDrop -V
7z x moose-3.0.1-Linux-.dmg
)
| dharmasam9/moose-core | scripts/build_macosx_bundle.sh | Shell | gpl-3.0 | 236 |
#!/usr/bin/env bash
python manage.py migrate
| wang103/AvalonSetupHelper | avalon/scripts/migrate.sh | Shell | gpl-3.0 | 47 |
#! /bin/bash
rm -rf logcat_*.log
#sleep 5
devices=`adb devices | grep 'device$' | cut -f1`
pids=""
for device in $devices
do
log_file="logcat_$device-`date +%d-%m-%H_%M_%S`.log"
echo "Logging device $device to \"$log_file\""
adb -s $device logcat -v time -d > $log_file
pids="$pids $!"
done
| intari/readingtracker | logcatCollect.sh | Shell | gpl-3.0 | 310 |
if [ -d freq ]; then FILES=$(echo ./freq/*.chk); else FILES=$(echo *.chk); fi
NAME=$(basename $FILES .chk)
/software/gaussian/g09/freqchk $FILES -o freq_tmp.dat y
TEXT=$(grep "ir-frequency" freqchk.scr | cut -d' ' -f 3 | tr '\n' ',' | sed 's/,$//')
echo "$FILES = [$TEXT]" >> frequencies.dat
rm freqchk.ent freqch... | spelliz/Various-Bash-Commands | new-freq-strip.sh | Shell | gpl-3.0 | 381 |
cd ../scriptLattes
python scriptLattes.py $1 $2 $3 $4 $5 $6 $7 $8 $9
| leobastiani/scriptLattesDiff | scriptLattes.sh | Shell | gpl-3.0 | 69 |
#!/bin/sh
export path_htsa_dir=/media/StorageOne/HTS #path to HTSA analysis dir
export path_pipeline=VirusMeta
export Project_dir=$1
export virus_index_file=$2
export case_control_id=$3 #tab delimited file: column1 - index names; column2 - 1 if case and 0 if ctrl
export NR_cases=$4
export NR_ctrl=$5
export CLUSTER_cu... | NIASC/VirusMeta | SAM_BAM/ttv_positivity_OR.sh | Shell | gpl-3.0 | 1,761 |
#!/bin/sh
hsetroot -solid '#222222'
| muchweb/dotfiles | autostart/.autostart/03hsetroot.sh | Shell | gpl-3.0 | 36 |
#!/bin/bash
# preexec.bash -- Bash support for ZSH-like 'preexec' and 'precmd' functions.
# The 'preexec' function is executed before each interactive command is
# executed, with the interactive command as its argument. The 'precmd'
# function is executed before each prompt is displayed.
# To use, in order:
# 1. ... | Falkor/dotfiles | bash/preexec.bash | Shell | gpl-3.0 | 7,527 |
#!/bin/bash
# Script to make back-up copies of files in current directory
TIME=`date +"%F"`
CURDIR=`pwd`
ORIGFILES=`ls`
UNWANTED="bak"
BACKUPFILE="backup-$TIME.tar.bz2"
DESDIR="/home/victoria/bakk" # The directory path you enter here should already exist
echo "Getting ready to back up $CURDIR"
for f in $ORIGFILES
... | JavaDevVictoria/File-Backup | dir_backup.sh | Shell | gpl-3.0 | 595 |
#!/bin/bash
#
# Copyright 2017 Marco Vermeulen
#
# 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... | vleo/vleo-notebook | test_groovy/sdkman.sh | Shell | gpl-3.0 | 11,442 |
#!/bin/sh
BOARD_DIR="$(dirname $0)"
BOARD_NAME="$(basename ${BOARD_DIR})"
GENIMAGE_CFG="${BOARD_DIR}/genimage-${BOARD_NAME}.cfg"
GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
case "${2}" in
--add-pi3-miniuart-bt-overlay)
if ! grep -qE '^dtoverlay=' "${BINARIES_DIR}/rpi-firmware/config.txt"; then
echo "Adding 'dtoverla... | lhaeffele/edufw | board/edufw/post-image.raspi.sh | Shell | gpl-3.0 | 1,175 |
#!/usr/bin/env bash
# Changing to working directory
cd $(dirname "$0")
source ../config.sh
# Temp paths and files
VERSION="stable"
export SRC_PKG="http://${VERSION}.release.core-os.net/amd64-usr/current/coreos_production_pxe.vmlinuz"
export SRC_PKG2="http://${VERSION}.release.core-os.net/amd64-usr/current/coreos_prod... | piffall/pxe-sw | scripts/exec/coreos-stable.sh | Shell | gpl-3.0 | 692 |
#!/bin/bash
#script for scripts to covertly get the mysql root password
source ~/setup_aws.conf.sh
echo "$MYSQL_ROOT_PW"
exit 0
| apccc/setup_aws | settings/get/mysql_r_pw.sh | Shell | gpl-3.0 | 128 |
#!/usr/bin/env bash
set -o errexit
VERSION=1.0.7
DOWNLOAD=https://releases.hashicorp.com/consul/${VERSION}/consul_${VERSION}_linux_amd64.zip
function install_consul() {
if [[ -e /usr/bin/consul ]] ; then
if [ "v${VERSION}" == "$(consul version | head -n1 | awk '{print $2}')" ] ; then
return
fi
fi
wget -q... | nak3/nomad | scripts/vagrant-linux-priv-consul.sh | Shell | mpl-2.0 | 460 |
#!/bin/bash
# 1st param (optional): force the target branch to update to. WILL LOSE UNCOMMITTED CHANGES. Defaults to staying on current branch.
set -ex
cd `dirname $0`
if [[ -n $1 ]]
then
git fetch origin
git checkout --force origin/$1
fi
git submodule sync
git submodule update --init --recursive
for old_symlin... | sgmap/openfisca | update.sh | Shell | agpl-3.0 | 511 |
#!/usr/bin/env bash
cd /var/www
/home/vagrant/.rvm/wrappers/epiclogger/bundle install
/home/vagrant/.rvm/wrappers/epiclogger/rake db:migrate
/home/vagrant/.rvm/wrappers/epiclogger/bundler exec rails s -d -b 0.0.0.0
/home/vagrant/.rvm/wrappers/epiclogger/bundler exec sidekiq -d -L sidekiq.log -q mailer,5 -q default
ex... | EpicCoders/epiclogger | railsbox/startup.sh | Shell | agpl-3.0 | 324 |
#!/usr/bin/env bash
# Start-up script that waits for Postgres to be ready
# Christopher Harrison <ch12@sanger.ac.uk>
set -eu
wait_for_postgres() {
local -i max_attempts="$1"
python -u <<-PYTHON
import os
from time import sleep
from cogs import config, mail
from cogs.db.interface import Database
... | wtsi-hgi/CoGS-Webapp | start.sh | Shell | agpl-3.0 | 938 |
#!/bin/bash
set -eEuo pipefail
# External dependencies:
# - https://salsa.debian.org/apt-team/apt (apt-ftparchive, packaged in apt-utils)
# - https://github.com/s3tools/s3cmd
# s3cmd expects AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY to be set in the
# environment.
# - https://gnupg.org/
# For signing the scrip... | loadimpact/k6 | packaging/bin/create-deb-repo.sh | Shell | agpl-3.0 | 4,073 |
#!/bin/sh
#
# -*- OpenSAF -*-
#
# (C) Copyright 2011 The OpenSAF Foundation
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. This file and program are licensed
# under the GNU... | kenzaburo/OpenSaf-FrameWork | tools/devel/review/submit-review.sh | Shell | lgpl-2.1 | 8,294 |
#!/bin/bash
/opt/data/tools/docker-clean.sh dd-agent &> /dev/null
etcdctl get /config/datadog/key 2>&1 > /dev/null
if [ $? -eq 0 ]; then
# Do not use our image if ES is not launched on his node
IMAGE=quay.io/nuxeoio/dd-agent
docker ps | grep elastic &> /dev/null
if [ ! $? -eq 0 ]; then
IMAGE=q... | nuxeo/nuxeo.io | systemd/datadog/start.sh | Shell | lgpl-2.1 | 761 |
#!/bin/sh
CURDIR=`pwd`
PACKAGE_NAME=`grep AppFullName AndroidAppSettings.cfg | sed 's/.*=//'`
../setEnvironment-$1.sh sh -c '\
$CC $CFLAGS -c main.c -o main-'"$1.o" || exit 1
../setEnvironment-$1.sh sh -c '\
$CC $CFLAGS -c gfx.c -o gfx-'"$1.o" || exit 1
[ -e xserver/android ] || {
CURDIR=`pwd`
cd ../../../..
git... | xyzz/vcmi-build | project/jni/application/xserver/AndroidBuild.sh | Shell | lgpl-2.1 | 2,141 |
pstree 32567
pstree -p 32567
pstree -p 32567| perl -ne 'print "$_\n" foreach /\((\d+)\)/g;'
pstree -p 32567| perl -ne '`kill -9 $_` foreach /\((\d+)\)/g;'
pstree -p 32567| perl -ne 'print "$1\n" while /\((\d+)\)/g;'
pstree -p 32567| perl -ne '`kill -9 $1` while /\((\d+)\)/g;'
| AmaranthLIS/dockerTemplates | bash-recipe/show_kill_proccess.sh | Shell | unlicense | 279 |
# ------------------------- BODY, FACE AND HAND MODELS -------------------------
# Downloading body pose (COCO and MPI), face and hand models
OPENPOSE_URL="http://posefs1.perception.cs.cmu.edu/OpenPose/models/"
POSE_FOLDER="pose/"
FACE_FOLDER="face/"
HAND_FOLDER="hand/"
# ------------------------- POSE MODELS --------... | cragwen/hello-world | py/snippet-master/openpose/getModels.sh | Shell | unlicense | 1,356 |
#!/bin/bash
wget "http://www.juliasets.dk/Quaternion-filer/quat02.jpg" && gsettings set org.gnome.desktop.background picture-uri file:///home/amnesia/quat02.jpg
gsettings set org.gnome.desktop.background show-desktop-icons false
| dosuna/conf | wallpaper.sh | Shell | unlicense | 229 |
#!/bin/bash
# must have rename (sudo apt-get install rename)
# expedia languages
declare -a expedia_languages=("en_US" "ar_SA" "da_DK" "de_DE" "el_GR" "fi_FI" "fr_FR" "hu_HU" "in_ID" "it_IT" "ja_JP" "ko_KR" "ms_MY" "nl_NL" "no_NO" "pl_PL" "pt_BR" "ru_RU" "es_ES" "sv_SE" "th_TH" "tr_TR" "zh_TW" "zh_CN")
# download th... | jmsalcido/expedia-files | expedia.sh | Shell | apache-2.0 | 4,034 |
#!/bin/bash
###############################
# sets property sonar.web.javaAdditionalOpts in sonar.properties to activate debug
###############################
set -euo pipefail
source scripts/property_utils.sh
SQ_HOME=$1
echo "enabling SQL TRACE Logs in CE"
set_property sonar.log.level.ce.sql TRACE $SQ_HOME/conf/so... | sns-seb/patches | log_trace_ce_sql.sh | Shell | apache-2.0 | 335 |
#!/bin/bash
# Install files:
function install() {
echo "Installing into “${1}” …"
# Create installation folder:
mkdir -pv $1
cd $1
# Remote repo zip file:
SOURCE_ZIP="https://github.com/mhulse/bootgeoisie/tarball/master"
# Get the zip file and extract all files:
curl -sS -#L "$SOURCE_ZIP" | tar -xzv ... | mhulse/bootgeoisie | install.sh | Shell | apache-2.0 | 1,579 |
#!/usr/bin/env bash
# Script to start hazelcast on docker
# Here we eval if some variables exists on the environment if they dont then we set them
MIN_HEAP=${MIN_HEAP:=1G}
MAX_HEAP=${MAX_HEAP:=1G}
GROUP_NAME=${GROUP_NAME=dev}
GROUP_PASS=${GROUP_PASS=devpass}
# Add docker gateway by default for the case of cassandra ru... | FlavioF/docker-hazelcast-mapstore-cassandra | src/start.sh | Shell | apache-2.0 | 599 |
#!/bin/bash
. $(dirname $0)/../testenv.sh
source=$(curl -s -H "accept: text/uri-list" ${occi_srv}/collections/compute/ | head -1)
target=$(curl -s -H "accept: text/uri-list" ${occi_srv}/collections/network/ | head -1)
id=/store/mylinks/json/networkinterfaces/$(uuidgen)
content=$(cat <<EOF
{
"links": [
{
"k... | erocci/erocci | priv/scripts/testsuite_json/003_create_link_networkinterface.sh | Shell | apache-2.0 | 842 |
#!/bin/bash
## Copyright 2009-2021 Intel Corporation
## SPDX-License-Identifier: Apache-2.0
set -e
KW_SERVER_PATH=$KW_PATH/server
KW_CLIENT_PATH=$KW_PATH/client
export KLOCWORK_LTOKEN=/tmp/ltoken
echo "$KW_SERVER_IP;$KW_SERVER_PORT;$KW_USER;$KW_LTOKEN" > $KLOCWORK_LTOKEN
mkdir -p $CI_PROJECT_DIR/klocwork
log_file=... | embree/embree | scripts/klocwork_build.sh | Shell | apache-2.0 | 917 |
#!/bin/sh
set -e
LC_COLLATE=C # Enforce known sort order
committers=$(git shortlog -se HEAD | cut -f2,3 | sort)
# Sort contributors (different systems have slightly different soting logics)
cat CONTRIBUTORS | sort > SCONTRIBUTORS
missing_authors=$(echo "$committers" | comm -13 SCONTRIBUTORS -)
missing_authors=$(echo... | pysmt/pysmt | ci/cla.sh | Shell | apache-2.0 | 1,122 |
#!/bin/sh
if [ -n "`uname | grep -i cygwin`" ] ; then
echo "Script will not work under Cygwin."
exit 1
fi
# Figure out where we are.
fullPath=$0
if [ -z "`echo $fullPath | grep '^/'`" ] ; then
fullPath=$PWD/$fullPath
fi
if [ -f "/bin/pwd" ] ; then
pwdExe=/bin/pwd
elif [ -f "/usr/bin/pwd" ] ; then
pwdExe=/... | VHAINNOVATIONS/DmD | scrubber/MIST_2_0_4/src/MAT/lib/mat/java/bin/matclient.sh | Shell | apache-2.0 | 1,224 |
#!/bin/bash
set -ev
gem install bundler --version 2.2.21
| 3scale/3scale_toolbox | .travis/setup_linux_env.sh | Shell | apache-2.0 | 59 |
#!/usr/bin/env bash
ensure_topic_exists() {
local existing_topic_descr="$("$KAFKA_BIN"/kafka-topics.sh --describe --topic "$TOPIC_NAME" --zookeeper "$ZK")"
echo "existing_topic_descr:$existing_topic_descr"
if [[ "$existing_topic_descr" == *"PartitionCount:"* ]] ; then
echo "topic already exists"
else
echo ... | usr000/outlier-detection | kafka-initializer/initialize.sh | Shell | apache-2.0 | 606 |
#!/bin/bash
if [ "$TRAVIS_REPO_SLUG" == "atomashpolskiy/bt" ] && [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ] && [ "$MAIN_BUILD" == "true" ]; then
git config --global user.email "travis@travis-ci.org"
git config --global user.name "travis-ci"
cd ... | atomashpolskiy/bt | script/travis-publish-javadoc.sh | Shell | apache-2.0 | 825 |
#!/usr/bin/env bash
#替换当前目录下文件中Id,Url这种不合规的字符
replacements="Id Url Sku Uid"
for i in $replacements; do
r=`echo $i|tr 'a-z' 'A-Z'`
find . -name "*.go"|xargs sed -ibak -E 's/'$i'(s?)([[:>:]]|[A-Z_])/'$r'\1\2/g'
done
find . -name "*.gobak"|xargs rm | LQJJ/demo | 126-go-common-master/app/common/openplatform/tool/replacer.sh | Shell | apache-2.0 | 292 |
#!/bin/bash
#-------------------------------------------------------------------------------
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICE... | snoopdave/usergrid-vagrant | install_cassandra.sh | Shell | apache-2.0 | 4,025 |
#!/bin/sh
echo `date`
echo ' stock_china_front.sh start'
/usr/bin/php /home/data/wwwroot/test/scripts/job.php -bdc -tworkflow -schina_a_finance_news -asave_sh_finance_news >/dev/null 2>&1
/usr/bin/php /home/data/wwwroot/test/scripts/job.php -bdc -tworkflow -schina_a_finance_news -asave_sz_finance_news >/dev/null 2>&1... | wozhaocai/data_center | scripts/data_stock_china_front.sh | Shell | apache-2.0 | 505 |
#!/usr/bin/env bash
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software... | mohitsethi/solum | tools/config/generate_sample.sh | Shell | apache-2.0 | 3,301 |
move_value() {
local sender=$1
local receiver=$2
local value=$3
local peers="$4"
echo "---> Move $value from account $sender to account $receiver"
invokeChaincode "$(get_token Jim org1)" businesschannel exp02 "$peers" invoke "[\"$sender\",\"$receiver\",\"$value\"]"
}
scenario() {
echo "---> request_token"
req... | Naoya-Horiguchi/hl-tools | dev_app/scenarios/yeasy/lib/simple.sh | Shell | apache-2.0 | 1,551 |
#!/bin/bash
echo "running produce_final_output.sh...";
currentOutDir=$1;
outputTexFileName="output.tex"
cd "$currentOutDir"
touch $outputTexFileName
insertTexPreambule(){
#https://bugs.launchpad.net/ubuntu/+source/tex-common/+bug/775546
printf "\usepackage{longtable}" >> "$outputTexFileName";
printf ... | wagnermarques/r-scripts | util/produce_odt_final_output.sh | Shell | apache-2.0 | 1,916 |
#!/bin/sh
(return 0 2>/dev/null) && sourced=1 || sourced=0
if [ $sourced -eq 0 ]; then
echo "this script should not be run directly but through configure.sh in the kaldi_nl root directory">&2
fi
. contrib/radboud_shared/configure_download.sh
if [ ! -e models/Lang_PR ]; then
echo "-----------------------------... | opensource-spraakherkenning-nl/Kaldi_NL | contrib/radboud_PR/configure_download.sh | Shell | apache-2.0 | 1,158 |
#!/bin/bash
OS=`uname -s`
ARCH=`uname -m`
GET=`which curl`
if [ -z "$GET" ]; then
GET=`which wget`
else
GET="$GET -Lo ./minikube"
fi
get_kube() {
echo "get"
echo $GET
if [ -z $OS ] || [ -z $ARCH ]; then
echo "could not determine OS or architecture"
exit 1
fi
if [ "$ARCH"... | cpg1111/maestrod | kube_up.sh | Shell | apache-2.0 | 775 |
#!/usr/bin/env bash
# Copyright (c) .NET Foundation and contributors. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
set -e
set -u
if [[ "${1}" =~ ^(-h|-help|--help|-\?|/\?)$ ]]; then
echo "USAGE:"
echo "build/scripts/tests.sh (Debug|R... | xasx/roslyn | build/scripts/tests.sh | Shell | apache-2.0 | 5,236 |
#!/bin/bash -x
set -o errexit
set -o errtrace
set -o nounset
set -o pipefail
export ROOT="${ROOT:-`pwd`}"
export PARALLEL="${PARALLEL:-false}"
export KILL_JAVA="${KILL_JAVA:-false}"
function setup_git() {
local git_name
git_name="${1}"
echo -e "\n\nCopying git repo to ${ROOT}/target/${git_name}\n\n"
... | spring-cloud-samples/spring-cloud-contract-samples | scripts/common.sh | Shell | apache-2.0 | 1,505 |
#!/bin/bash
#########################################################################################
### NOTE: This function will check if the Arch Linux image is present on the disk
function functionCheckForImage {
FILE="ArchLinuxARM-rpi-latest.tar.gz"
if [ -f "$FILE" ];
then
echo "File $FILE exist."
... | UMDBPP/STAR | Software/rpi-arch-builder/functions/functionCheckForImage.sh | Shell | apache-2.0 | 380 |
#!/bin/sh
make-all.sh
#html-beautify -r domelements.html
gzip -f domelements.html
gzip -f domelements.js
#scp domelements.html.gz ms:$simpl4first/client/surface/
#scp domelements.html.gz vz5:$wawidev/client/surface/
#scp domelements.html.gz domelements.js.gz vz5:$flowabledev/client/surface/
#scp domelements.html.gz d... | ms123s/simpl4-src | surface/domelements/deploy.sh | Shell | apache-2.0 | 656 |
#!/bin/bash
# Copyright 2020 Google Inc.
#
# 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 t... | FeliciaLim/oss-fuzz | projects/pigweed/build.sh | Shell | apache-2.0 | 2,770 |
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd ${DIR}
pidfile=quota.pid
if [ ! -f ${pidfile} ]; then
echo "Pid file does not exist, check if the quota is running please."
exit 1
fi
pid=`cat ${pidfile}`
ps -ef | grep $pid | grep -v grep | grep mysqlQuota.py > /dev/null
if [ $? -eq 0... | kuipertan/rdbs | src/stop.sh | Shell | apache-2.0 | 446 |
#!/usr/bin/env bash
INPUT=$1
OUTPUT=$2
TMP_PREFIX=$3
I_FILENAME=$(basename $INPUT)
O_FILENAME=$(basename $OUTPUT)
TMP_DIR=$TMP_PREFIX
INPUT_LOCAL=$INPUT
#Check if input file on S3, if yes - then copy to temporary dir
if [[ $INPUT == s3://* ]];
then
mkdir -p $TMP_DIR
aws s3 cp $INPUT $TMP_DIR/$I_FILENAME
... | outlierbio/ob-pipelines | ob_pipelines/apps/samtools/samtools-index.sh | Shell | apache-2.0 | 664 |
#!/bin/sh
#$Id: callSip.sh 424 2014-03-02 11:03:29Z gaul1 $
#2014 initial version - by lifesim.de
#2017 server address parsed from sip-adress - by lifesim.de
#
# Copyright 2017 rundekugel@github.com / gaul1@lifesim.de
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file... | rundekugel/callSip.sh | src/callSip.sh | Shell | apache-2.0 | 3,841 |
#!/bin/sh
scriptversion=2014-04-28;
# this script is used to run pngcrush
# 1. you can specify where the png locates and where reverted png locates
# 2. default "reverted" dir is created under the png source dir
# 3. {PWD} is used as the source dir if none parameter is provided
program=`xcrun -sdk iphoneos -find pngcr... | scorpiozj/iOSTreasure | scripts/pngcrush.sh | Shell | apache-2.0 | 711 |
#!/bin/bash
set -o nounset
set -o errexit
set -o pipefail
function finish {
echo "sleep 1 second to collect logs"
sleep 0.5
# kill child process fstream
pkill -P $$
sleep 0.5
}
trap finish EXIT
if [ ! -z ${LOG_COLLECTOR_URL} ]; then
touch /tmp/log.txt
/usr/bin/cyclone-toolbox/fstream -f /tmp/log.txt -s... | caicloud/cyclone | build/toolbox/resolver-runner.sh | Shell | apache-2.0 | 454 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.