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 |
|---|---|---|---|---|---|
#!/usr/bin/env bash
# Usage example:
# PLot the chirp signal and its frequency domain presentation:
# (while true; do echo line; sleep 0.01; done)| \
# awk 'BEGIN{PI=atan2(0,-1);t=0;f0=1;f1=32;T=256;k=(f1-f0)/T;}{print sin(2*PI*(t*f0+k/2*t*t));t+=0.1;fflush()}'| \
# tee >(bin/dsp/fft.sh 64 "w1;0.5;0.5"|bin/dsp/fftab... | flux242/dotfiles | .bin/dsp/fft.sh | Shell | gpl-2.0 | 3,368 |
#!/usr/bin/env bash
# This file is part of RetroPie.
#
# (c) Copyright 2012-2015 Florian Müller (contact@petrockblock.com)
#
# See the LICENSE.md file at the top-level directory of this distribution and
# at https://raw.githubusercontent.com/petrockblog/RetroPie-Setup/master/LICENSE.md.
#
rp_module_id="disabletim... | free5ty1e/RetroPie-Setup | scriptmodules/supplementary/disabletimeouts.sh | Shell | gpl-3.0 | 582 |
#!/bin/sh
#
# Build and test mocpy in a 32-bit environment with python3
#
# Usage:
# testing_py3_ubuntu32.sh
#
# Update packages to the latest available versions
linux32 --32bit i386 sh -c '
apt update > /dev/null &&
apt install -y curl pkg-config libfreetype6-dev \
python3 python3-pip >/dev/null &&
# S... | tboch/mocpy | travis/testing_i686.sh | Shell | gpl-3.0 | 1,050 |
#!/bin/sh
# AwesomeTTS text-to-speech add-on for Anki
# Copyright (C) 2010-Present Anki AwesomeTTS Development Team
#
# 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 version 3 of the Li... | AwesomeTTS/awesometts-anki-addon | tools/symlink.sh | Shell | gpl-3.0 | 2,285 |
#!/bin/bash
cd output_tfi
rm "h_mz_E_D=2_chi=20.dat"
rm "h_mz_E_D=2_chi=20_pm.dat"
rm "h_mz_E_D=3_chi=30.dat"
rm "h_mz_E_D=3_chi=30_pm.dat"
for f in `ls D=2_chi=20_*_trotter2_itebd.dat`
do
h=`echo $f | cut -f 3 -d "_" | cut -f 2 -d "="`
mz=`tail -n 1 $f | cut -f 3 -d " "`
E=`tail -n 1 $f | cut -f 5 -d " "... | kingfisher1337/itebd | tfi_gs_gather.sh | Shell | gpl-3.0 | 1,332 |
#!/usr/bin/env bash
# Copyright © 2019 by The qTox Project Contributors
#
# This file is part of qTox, a Qt-based graphical interface for Tox.
# qTox is libre 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,... | Diadlo/qTox | bootstrap.sh | Shell | gpl-3.0 | 6,740 |
#!/bin/sh
yum update
| Taywee/dod-stig-scripts | linux/V-38481/fix.sh | Shell | gpl-3.0 | 23 |
# Only run if this is an interactive text bash session
if [ -n "$PS1" ] && [ -n "$BASH_VERSION" ] && [ -z "$DISPLAY" ]; then
echo "Press enter to activate this console"
read answer
# The user should have chosen their preferred keyboard layout
# in tails-greeter by now.
. /etc/default/locale
. /etc/def... | kolohe/amnesia | config/chroot_local-includes/etc/profile.d/setup_console.sh | Shell | gpl-3.0 | 354 |
#!/usr/bin/env bash
INTERFACE="${INTERFACE:-wlo1}"
systemctl enable netctl-auto@$INTERFACE
systemctl --user enable maintenance.timer
systemctl --user enable battery.timer
| AliGhahraei/scripts | arch-install/config/enable-systemd-timers.sh | Shell | gpl-3.0 | 172 |
#!/bin/sh
declare -x PATH_TO_SOURCE=`dirname $0`/..
cd $PATH_TO_SOURCE
bsc -e "(module-compile-to-standalone \"ensanche-core\" 'main)"
| alvatar/caad-research | __scripts/build.sh | Shell | gpl-3.0 | 137 |
#!/bin/bash
version=$1
out=${2:-"copyq-${version}.tar.gz"}
version_file="src/common/version.cpp"
set -e
die () {
echo "ERROR: $*"
exit 1
}
grep -q '^# v'"$version"'$' "CHANGES.md" ||
die "CHANGES file doesn't contain changes for given version!"
grep -q '"'"$version"'"' "$version_file" ||
die "String... | hluk/CopyQ | utils/create_source_package.sh | Shell | gpl-3.0 | 717 |
#! /bin/sh
dirs="$*"
if test _"$dirs" = _
then dirs="."
fi
for dir in $dirs
do
if test -d $dir
then
aclocal=""
autoconf=" && autoconf"
autoheader=""
automake=""
if test -f $dir/Makefile.am
then
aclocal=" && aclocal -I build-aux"
automake=" && automake --copy --add-missing"
if egrep 'A[CM]_PROG_... | virtuald/webdma | autogen.sh | Shell | gpl-3.0 | 724 |
#!/bin/sh
# split must fail when given length/count of zero.
# Copyright (C) 2003-2019 Free Software Foundation, Inc.
# 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 version 3 of the Li... | komh/coreutils-os2 | tests/split/fail.sh | Shell | gpl-3.0 | 2,809 |
#!/bin/bash
#
# Copyright 2013 - Bavo De Ridder <http://www.bavoderidder.com/>
#
# This file is part of mysql-backup.
#
# Mysql-backup 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 version 3 of the ... | CoderSpotting/mysql-backup | src/main/bash/backup_mysql.sh | Shell | gpl-3.0 | 2,016 |
#!/bin/bash -e
. ../../../blfs.comm
build_src() {
srcfil=URI-1.65.tar.gz
srcdir=URI-1.65
build_standard_perl_module
}
gen_control() {
cat > $DEBIANDIR/control << EOF
$PKGHDR
Description: Uniform Resource Identifiers (absolute and relative)
This module implements the URI class. Objects of this class represent
"Unifo... | fangxinmiao/projects | Architeture/OS/Linux/Distributions/LFS/build-scripts/blfs-7.6-systemv/p/perl-modules/URI-1.65/build.sh | Shell | gpl-3.0 | 865 |
#!/usr/bin/env bash
. test_common.sh
id=process
rm -f $id.out
ln -s "$test_base/test/$id.data.in" . 2>/dev/null
test_server_start $id test
pid=$!
hector_client_set PE_test.run 1
hector_client -c "PROCESS PE_test" $HECTOR_HOST <$id.data.in >$id.data.out
hector_client_wait M_simple[0].items 1000
hector_client_set PE_te... | qiq/hector_core | test/process.sh | Shell | gpl-3.0 | 475 |
#!/bin/bash
#Coded by:FadyHazem/V2.0 Support:LinuxMint-Ubuntu-Debian.
#You can recodeing this script but yo must typing the own of this script(FadyHazem).
echo "Welcome i will help you to update your system."
sleep 4
echo "This script support:LinuxMint-Ubuntu-Debian"
sleep 2
read -p "What's your distro name?:" DISTRO
e... | FadyHazem/Linux-Sytem-Update | system_updating.sh | Shell | gpl-3.0 | 430 |
#!/usr/bin/env bash
set -e
if [ ${TARGET} = "win64" ]; then
EXTENSION=zip
else
if [ ${TRAVIS_OS_NAME} = "linux" ]; then
EXTENSION=tar.gz
else
EXTENSION=dmg
fi
fi
curl -T OpenPSTD-${OPENPSTD_MAJOR_VERSION}.${OPENPSTD_MINOR_VERSION}.${TRAVIS_BUILD_NUMBER}-${TARGET}.${EXTENSION} ${WEBDAV}... | openPSTD/openPSTD | build/upload_webdav.sh | Shell | gpl-3.0 | 321 |
mkdir -p "$1" && $2 rm -rf "$1"/* && mkdir -p "$3"
| Wyliodrin/wyliodrin-app-server | source/libraries/project/run.sh | Shell | gpl-3.0 | 51 |
#! /bin/bash
BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
TMP_DIR="$BASE_DIR""/.tmp"
BASE_DIR_NAME="$(basename $BASE_DIR)"
HTDOCS="$BASE_DIR"'/htdocs'
EXPORT_DIR="$BASE_DIR"'/exported-html'
FILE_SUFFIX=".html"
PATH_TYPE='relative'
if [[ ! -d "$EXPORT_DIR" ]]; then
echo "Creating export directory: ... | jxn/protoforge-twig | export-html-headless.sh | Shell | gpl-3.0 | 1,537 |
#!/bin/bash
#change to develop branch
git checkout develop
#create new branch from develop
git checkout -b feature/dummy
git add dummy.py
git commit -m"added dummy.py"
#push to remote
git push -u origin feature/dummy
#after that is sufficient
git push | vuchetichbalint/useful_python_scripts | etc/git/simple_branching.sh | Shell | gpl-3.0 | 256 |
#!/bin/bash
#
# SLURM batch script to launch BLAST
#
#SBATCH -p nbi-medium # partition (queue)
#SBATCH -N 1 # number of nodes
#SBATCH -n 1 # number of cores
#SBATCH --mem 30000 # memory pool for all cores
#SBATCH -t 2-00:00 # time (D-HH:MM)
#SBATCH -o /nbi/Research-Groups/NBI/Cristobal-Uauy/PB_AFLF/control_timecourse/T... | philippaborrill/AFLF_timecourse_control | run_extract_by_pattern.sh | Shell | gpl-3.0 | 937 |
#!/bin/bash
APP_DIR=`pwd`/books/
LOCALE_DIR=$APP_DIR/locale/
echo $APP_DIR
pushd $APP_DIR
echo `pwd`
for lang in `ls $LOCALE_DIR`; do
echo "Setting up locale for $lang"
django-admin.py makemessages -l $lang
done
echo "*************************"
django-admin.py compilemessages
popd
| datakid/dj-library | locale.sh | Shell | gpl-3.0 | 294 |
#!/bin/sh -xe
if [ "$1" = "ci" ]; then
armloc=$(brew fetch --bottle-tag=arm64_big_sur libomp | grep -i downloaded | grep tar.gz | cut -f2 -d:)
x64loc=$(brew fetch --bottle-tag=big_sur libomp | grep -i downloaded | grep tar.gz | cut -f2 -d:)
cp $armloc /tmp/libomp-arm64.tar.gz
mkdir /tmp/libomp-arm64 ||... | solvespace/solvespace | .github/scripts/install-macos.sh | Shell | gpl-3.0 | 701 |
#!/bin/bash
#SBATCH --job-name=heatwave_projections_py_mpi # Job name
#SBATCH -p batch # partition (this is the queue your job will be added to)
#SBATCH --ntasks=4 # Number of MPI ranks
#SBATCH --nodes=2 # Number of nodes
#SBATCH --mem-per-cpu=3000mb # Memory pe... | jeffrey-newman/Heatrisk_South_Australia_GoyderProjections | PhoenixHeatwaveJobSmall.sh | Shell | gpl-3.0 | 1,038 |
#!/bin/bash
# Created by Nahuel Barrios on 27/3/16.
# shellcheck disable=SC1091
preInstallationLog "Gnome System Tools"
sudo apt-get -fy install gnome-system-tools
postInstallationLog "Gnome System Tools"
logInfo "Available programs: network-admin, shares-admin, time-admin, users-admin"
logInfo "Installing packages ... | barriosnahuel/efu | Ubuntu/core.sh | Shell | gpl-3.0 | 1,549 |
#!/bin/sh
STAGING_DIR=$PWD/9ML-toolkit.d
mkdir -p $STAGING_DIR
mkdir -p $STAGING_DIR/bin
${CHICKEN_HOME}/bin/chicken-install -init $STAGING_DIR
rm $STAGING_DIR/setup-download.* $STAGING_DIR/tcp.* $STAGING_DIR/srfi-18.*
$CHICKEN_HOME/bin/chicken-install -deploy -prefix $STAGING_DIR \
datatype typeclass regex mak... | iraikov/9ML-toolkit | scripts/deploy-linux.sh | Shell | gpl-3.0 | 786 |
#!/bin/bash
gnuplot temp/TermodinamicalStat_L=14_PP=4/*.plot
gnuplot temp/DensityStat_L=14_PP=4/*.plot
| nlare/Landau-Wang-omp | plot_graph_L=14_PP=4.sh | Shell | gpl-3.0 | 103 |
#!/bin/bash -f
# Vivado (TM) v2015.4.2 (64-bit)
#
# Filename : design_TEST.sh
# Simulator : Cadence Incisive Enterprise Simulator
# Description : Simulation script for compiling, elaborating and verifying the project source files.
# The script will automatically create the design libraries sub-direct... | pemsac/ANN_project | ANN_project.ip_user_files/sim_scripts/design_TEST/ies/design_TEST.sh | Shell | gpl-3.0 | 29,644 |
#!/bin/csh
# ---------------------------------------------------------------------------
#
# Script to Read in a new substructure file to the database
#
# ---------------------------------------------------------------------------
#set verbose on
if ( $#argv != 1 ) then
echo "Usage: $0 FileRoot"
echo " FileROOT... | blurock/REACT | programs/scripts/readsubs.sh | Shell | gpl-3.0 | 1,817 |
code --install-extension brian-anders.sublime-duplicate-text
code --install-extension britesnow.vscode-toggle-quotes
code --install-extension dbaeumer.vscode-eslint
code --install-extension dinhlife.gruvbox
code --install-extension eamodio.gitlens
code --install-extension editorconfig.editorconfig
code --install-extens... | huntie/dotfiles | vscode/install.sh | Shell | gpl-3.0 | 609 |
#!/bin/bash
set -e
echo "$(whoami)"
if [ "$(whoami)" == "root" ]; then
chown -R scrapy:scrapy /home/scrapy/backup
chown --dereference scrapy "/proc/$$/fd/1" "/proc/$$/fd/2" || :
exec gosu scrapy "$@"
fi | IDEES-Rouen/Flight-Scrapping | flight/docker-entrypoint.sh | Shell | gpl-3.0 | 215 |
#!/usr/bin/execlineb -P
with-contenv
s6-envuidgid www-data
foreground {
if { s6-test -n $WP_RESET }
foreground { ln -s /resetter /public/resetter }
foreground { chmod +x /public/resetter/*.sh }
}
# if [[ $(echo $ROOT_DOMAIN | grep "cyberspaced" | wc -c) > 0 ]]; then
# cd /app/website/scripts/
# chmod +x *.sh
... | TayloredTechnology/basal | wordpress/cont-init.d/05-cyberspacedtesting.sh | Shell | mpl-2.0 | 325 |
#!/bin/bash
# Automatic build script
# Uses zed and zip command
build_dir="./build"
project="mpdq"
version_file="./src/util.c"
bundled_files="README.md LICENSE"
function build_failed
{
echo "Make returned errors, aborting..."
sed -i -e 's/$version/@VERSION@/g' "$version_file"
exit
}
if test -d $build_dir; then
e... | UniversalLP/mpdq | build.sh | Shell | mpl-2.0 | 1,054 |
#!/bin/sh
echo "Source Statistics:"
wc `find . -regextype posix-basic -iregex '.*\.\(scm\|h\|c\|y\|l\)' | grep -v 'test\/test_eyeball\|CMake\|build\|vendor'`
echo
echo "Commit Count: " `git log | grep '^commit' | wc -l`
echo
| arlaneenalra/Bootstrap-Scheme | count.sh | Shell | agpl-3.0 | 227 |
#!/bin/bash
# cve <file1> [<file2> ...]
#
# Pour éditer un ou plusieurs fichier(s) existant(s) sous CVS.
# - fait un "cvs update" si besoin (status "Needs patch")
# - fait un "cvs edit" pour déclarer aux autres users qu'on édite le fichier
# (voir la commande "cvs editors")
# - utilise l'éditeur préféré déclaré dans l... | PixEye/PixShellScripts | cvs-edit.sh | Shell | agpl-3.0 | 2,128 |
#!/bin/bash
# Copyright 2021 Collabora Ltd.
# SPDX-License-Identifier: LGPL-2.0-or-later
set -euo pipefail
. $(dirname $0)/libtest.sh
skip_without_bwrap
echo "1..16"
setup_repo
install_repo
cp -a "$G_TEST_BUILDDIR/try-syscall" "$test_tmpdir/try-syscall"
# How this works:
# try-syscall tries to make various sysca... | flatpak/flatpak | tests/test-seccomp.sh | Shell | lgpl-2.1 | 2,389 |
#!/bin/bash -i
tmp=`pwd`
source ~/.bashrc
module purge
# Ensure that there is not multiple threads running
export OMP_NUM_THREADS=1
# On thul and interactive nodes, sourching leads to going back
cd $tmp
unset tmp
# We have here the installation of all the stuff for gray....
source install_funcs.sh
# Use ln to lin... | zerothi/bash-build | custom/valgrind.sh | Shell | lgpl-3.0 | 1,457 |
#!/bin/bash
# Usage: ./grab_core_on_segfault.sh <firmeare.elf> \
# <piksi_dev> <bmp_dev> \
# <seconds-to-sleep>
#
# Intended to be called from HITL log capture:
# if [ -e $MD_EXTERNAL_RESOURCES_LOCKED_BMP1 ]; then
# ./grab_core_on_segfault.sh ../../... | henryhallam/piksi_tools | piksi_tools/testing/grab_core_on_segfault.sh | Shell | lgpl-3.0 | 1,075 |
#!/bin/bash
#
# RktCopyHosts
#
# Function: RktCopyHosts
# Params: $1 - Host's '/etc/hosts' location
# $2 - Container's '/etc/hosts' location
# Output: (Normal acbuild output)
function RktCopyHosts
{
local HOSTS="/etc/hosts"
local RKT_HOSTS="/etc/hosts"
if [ "${1}" != "" ]; then
HOSTS="${1}"
fi
... | nicrohobak/BashLib | Functions/Rkt/CopyHosts.sh | Shell | lgpl-3.0 | 584 |
#PBS -S /bin/bash
#PBS -N mnakao_job
#PBS -A XMPTCA
#PBS -q tcaq-q1
#PBS -l select=1:ncpus=1:host=tcag-0001-eth0+1:ncpus=1:host=tcag-0002-eth0+1:ncpus=1:host=tcag-0003-eth0+1:ncpus=1:host=tcag-0004-eth0+1:ncpus=1:host=tcag-0005-eth0+1:ncpus=1:host=tcag-0006-eth0+1:ncpus=1:host=tcag-0007-eth0+1:ncpus=1:host=tcag-0008-et... | omni-compiler/omni-compiler | samples/XACC/HIMENO-C/Global-view/job_scripts/HA-PACS/TCA/tcaq-q1-4x2nodes.sh | Shell | lgpl-3.0 | 989 |
#!/bin/zsh
export PATH="${HOME}/bin:${HOME}/script:${PATH}"
export HISTSIZE=1000000
if [[ -z "${HOSTNAME}" ]] ; then
export HOSTNAME="${HOST:-$(hostname)}"
fi
if [[ -d "${MYSHELL}/plugins" ]]; then
for i in "${MYSHELL}/plugins/"* ; do
source "${i}"
done
fi
function prompt_char() {
if [ $UID -eq 0 ]; then echo... | tsaikd/bash | zsh/tsaikd.zsh | Shell | lgpl-3.0 | 2,879 |
#!/bin/sh
#cabal install msgpack-rpc
ghc --make ping.hs
| turkia/msgpack_rpc_server | examples/haskell/compile.sh | Shell | lgpl-3.0 | 56 |
#!/bin/bash
##
## Copyright (c) 2019 alpha group, CS department, University of Torino.
##
## This file is part of pico
## (see https://github.com/alpha-unito/pico).
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU Lesser General Public License as published b... | alpha-unito/PiCo | examples/word-count/run_wordcount.sh | Shell | lgpl-3.0 | 1,148 |
#!/bin/bash
echo -e "\n\n\n\n\nYOU REALLY SHOULD BE USING ys.auto or better yet -sploit
BUT IF YOU MUST USE $0 at least use /current/bin/nc.YS instead of just nc.
Packrat now has an option to do just that:
packrat -n /current/bin/nc.YS
"
sleep 4
usage ()
{
echo "Usage: ${0}
-l [ IP of attack machine (NO DEFA... | DarthMaulware/EquationGroupLeaks | Leak #4 - Don't Forget Your Base/EQGRP-Auction-File/Linux/bin/wrap-hpux.sh | Shell | unlicense | 1,801 |
#!/bin/sh
ring_col=`echo White`
convert=`echo /usr/local/bin/convert`
c=`cat ~/Documents/CIRCLE/CONFIG | grep 'WEATHER_CODE' | tail -n1 | awk '{print $2}'`;
url=`echo "http://xml.weather.yahoo.com/forecastrss?p=$c&u=c"`;
strx=`curl --silent "$url" | grep -E '(Current Conditions:|C<BR)' | sed -e 's/Current Condition... | jtligon/bearded-tyrion-circles | WEATHER/TEXT/White/weather-text-ring.sh | Shell | unlicense | 717 |
#!/bin/bash
#
# ++++ Raspberry Pi Temperature script ++++
#
# By woftor (GitHub)
#
# This script shows the temperature of the ARM CPU of you Raspberry Pi: current, mean, lowest and highest.
# You can choose between Celcius of Fahrenheit.
# It uses three text files to store data:
# - pitemps_file for the last temperat... | woftor/pitemps | pitemps.sh | Shell | unlicense | 12,490 |
#!/usr/bin/env bash
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$CURRENT_DIR/helpers.sh"
print_battery_percentage() {
# percentage displayed in the 2nd field of the 2nd row
if command_exists "pmset"; then
pmset -g batt | grep -o "[0-9]\{1,3\}%"
elif command_exists "upower"; then
lo... | Quarkex/dotfiles | tmux/tmux-battery/scripts/battery_percentage.sh | Shell | unlicense | 812 |
#! /bin/bash
## Test of SIMPLI provisionning module
source ../../../../test/test_common.sh "webstorm module provisionning - manual"
## load simpli which will do apt-get update
export SIMPLI_SKIP_APT_UPDATE=1
export SIMPLI_SKIP_APT_UPGRADE=1
source "${SIMPLI_DIR}/bin/index.sh"
OSL_EXIT_abort_execution_if_bad_retcode ... | Offirmo/simpli | modules/offirmo/webstorm/test/run_me_to_install_oss_on_current_machine.sh | Shell | unlicense | 488 |
#!/bin/bash
#
./srmgor_2conn 2>&1 | tee runlog${1}.txt
| gmallard/stompngo_examples | srmgor_2conn/run.sh | Shell | apache-2.0 | 56 |
#!/bin/bash
# Copyright 2016 - 2020 Crunchy Data Solutions, 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 applicabl... | the1forte/crunchy-containers | examples/docker/custom-config-ssl/run.sh | Shell | apache-2.0 | 2,347 |
#!/bin/sh
./fingerprints ethernet-bus-reconnect.csv ethernet-hub-reconnect.csv ethernet-hub.csv ethernet-switch.csv ethernet-twohosts.csv examples.csv multi.csv $*
| StarStuffSteve/masters-research-project | Simulation/OMNeT++/inet/tests/fingerprint/runDefaultTests.sh | Shell | apache-2.0 | 164 |
#!/bin/bash
exec puppet agent --no-daemonize --server puppet --logdest console --verbose
| ungerts/docker-puppet | agent/scripts/puppet.sh | Shell | apache-2.0 | 89 |
#!/bin/bash -e
#
# Copyright 2014 The Kythe Authors. 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 required ... | bzz/kythe | kythe/go/platform/tools/indexpack_test.sh | Shell | apache-2.0 | 1,213 |
#!/bin/bash
# Note: this requires the fix from:
# https://github.com/kubernetes/kubernetes/pull/24299
(
# Clean-up from previous run
kubectl delete rc app
kubectl delete secret creds
kubectl delete ServiceBroker mongodb-sb
kubectl delete ServiceInstance mongodb-instance1
kubectl delete ServiceBinding mongodb-instanc... | MHBauer/servicebroker | k8s/sample.sh | Shell | apache-2.0 | 2,869 |
# wc [option] command
# -l, --lines : 打印行数
# -L, --max-line-length : 打印最长行的长度
# -w, --words : 打印单词数
# -m, --chars : 打印字符数
# -c, --bytes : 打印字节数
# 文件信息,包括行数,单词数,字节数
wc dstFile
cat dstFile | wc
# 文件行数与文件名
wc -l dstFile
# 文件行数
cat dstFile | wc -l
# 单词数与文件名
wc -w dstFile
# 单词数
cat dstFile | wc -w
# 字节数及文件名
wc -c dstF... | WeAreChampion/notes | shell/common/wc.sh | Shell | apache-2.0 | 1,709 |
#!/bin/sh
#
# 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 to ... | googlestadia/PorQue4K | src/app/shaders/build_shaders.sh | Shell | apache-2.0 | 2,135 |
#!/bin/bash -xe
# 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
# di... | citrix-openstack/project-config | jenkins/scripts/propose_translation_update_horizon.sh | Shell | apache-2.0 | 1,316 |
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. $DIR/.gr8_env.sh
if [ "$#" -ne 2 ]; then
echo "Usage: " `basename $0` "job_id [success_status|job_id|run_status]"
exit 0
fi
curl -s -X GET \
-H "X-Auth-Token: $GR8_BI_TOK" \
$GR8_BASE_URL/current/$GR8_BI_ACT/job/$1/stats/$2 | tee $DIR/.las... | nagoodman/gr8bi_extras | cli/gr8_statsJob.sh | Shell | apache-2.0 | 330 |
./clean.sh
javac -d build/modules \
--module-source-path src \
`find src -name "*.java"`
jar --create --file=mlib/com.acme.bids.db@1.0.jar \
--module-version=1.0 -C build/modules/com.acme.bids.db .
jar --create --file=mlib/com.acme.bids.service@1.0.jar \
--module-version=1.0 \
--main-class=com.acme.bids.service.ap... | codetojoy/talk_maritimedevcon_java_9_modules | eg_05_java_9_jlink/compile.sh | Shell | apache-2.0 | 531 |
# ----------------------------------------------------------------------------
#
# Package : filebeat
# Version : 7.2.0
# Source repo : https://github.com/elastic/beats.git
# Tested on : RHEL 7.5
# Script License: Apache License Version 2.0
# Maintainer : Edmond Chan <ckchan@hk1.ibm.com>
#
# Discla... | ppc64le/build-scripts | f/filebeat/filebeat_7.2.0_redhat_7.sh | Shell | apache-2.0 | 1,000 |
#!/bin/bash
echo "bootstrap"
service ssh restart
cd /MapRouletteAPI
# Delete any RUNNING_PID file on restart
rm RUNNING_PID || true
./setupServer.sh > setupServer.log 2>&1
while true; do sleep 1000; done
| mgcuthbert/maproulette2-docker | api/bootstrap.sh | Shell | apache-2.0 | 208 |
#!/usr/bin/env bash
systemctl stop fuseki
systemctl stop marple
#general vars
echo ">>>> Updating Fuseki"
export TC_USER=fuseki
export TC_GROUP=fuseki
# set erb vars
# endpoint name for fuseki
export EP_NAME=core
export SVC=fuseki
export SVC_DESC="Jena-Fuseki Tomcat container"
export MARPLE_SVC=marple
export MARPLE_S... | BuddhistDigitalResourceCenter/buda-base | conf/fuseki/update.sh | Shell | apache-2.0 | 2,560 |
#!/usr/bin/env bash
echo "Puppet6 Platform Detection and Installation"
/usr/bin/wget -O - https://raw.githubusercontent.com/petems/puppet-install-shell/master/install_puppet_6_agent.sh | /bin/sh
echo "Install R10k and Hiera-Eyaml"
/opt/puppetlabs/puppet/bin/gem install r10k hiera-eyaml
echo "Retrieve Puppetfile from pu... | ppouliot/puppet-maas | files/scripts/bootstrap_puppet_to_maas.sh | Shell | apache-2.0 | 1,017 |
#!/bin/bash
# Clone pinned Kuberay commit to temporary directory, copy the CRD definitions
# into the autoscaler folder.
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
DIR=$(mktemp -d -t "kuberay-XXXXXX")
pushd "$DIR" || exit
git clone https://github.com/ray-project/kuberay/
... | ray-project/ray | python/ray/autoscaler/kuberay/init-config.sh | Shell | apache-2.0 | 1,600 |
#/bin/bash
set -x
#wget --user linzhbj@cn.ibm.com --password New=1baby --no-check-certificate -c -r -np -k -L -p \
wget -c -r -np -k -L -p \
http://rchgsa.ibm.com/projects/e/emsol/ccs/build/driver/osee-liberty/rhel7.1/openstack/latest-bld/
| linzhaolover/myansible | remote/liberty.sh | Shell | apache-2.0 | 254 |
#!/usr/bin/env bash
sudo apt-get update
sudo apt-get -y install curl git vim
git clone https://github.com/openstack-dev/devstack.git -b stable/icehouse devstack/
cd devstack/
wget https://gist.githubusercontent.com/everett-toews/3cbbf4c3d059848ac316/raw/6a18ded87190c87ac981e8682b783bb25aa9e844/local.conf
./stack.sh
| everett-toews/devstack-vagrant | devstack.sh | Shell | apache-2.0 | 318 |
#! /bin/bash
# Runs the linters against dendrite
# The linters can take a lot of resources and are slow, so they can be
# configured using two environment variables:
#
# - `DENDRITE_LINT_CONCURRENCY` - number of concurrent linters to run,
# gometalinter defaults this to 8
# - `DENDRITE_LINT_DISABLE_GC` - if set the... | gperdomor/dendrite | scripts/find-lint.sh | Shell | apache-2.0 | 1,179 |
#!/bin/bash
rm -rf php-5.3.29
if [ ! -f php-5.3.29.tar.gz ];then
wget http://zy-res.oss-cn-hangzhou.aliyuncs.com/php/php-5.3.29.tar.gz
fi
tar zxvf php-5.3.29.tar.gz
cd php-5.3.29
./configure --prefix=/alidata/server/php \
--with-config-file-path=/alidata/server/php/etc \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd ... | HollenMok/pandoraf_v1.0 | docs/linuxServer/linux_setup_1.4.3/sh-1.4.3/php/install_nginx_php-5.3.29.sh | Shell | apache-2.0 | 2,961 |
#!/usr/bin/env bash
echo "STABLE_K8S_CLUSTER MyCluster"
echo 'COMPLEX_JSON { nested: { secret: "top" } }'
| bazelbuild/rules_jsonnet | tools/stamping/workspace_status.sh | Shell | apache-2.0 | 107 |
if [ -z "$1" ]
then
echo "Usage: startup_node.sh <id_for_node>"
exit
fi
num_gpus=$2
if [ -z "$2" ]
then
num_gpus=1
echo "num_gpus not specified. Defaulting to 1"
fi
gcloud compute --project "visualdb-1046" disks create "hackinstance-$1" --size "20" --zone "us-east1-d" --source-snapshot "hacksnapsho... | scanner-research/scanner | scripts/startup_node.sh | Shell | apache-2.0 | 1,265 |
#!/bin/bash
if [[ $# -eq 2 ]] && [[ "x$2" = "xadMin" ]] ; then
/bin/rm -rf $1
fi
| OpenVnmrJ/OpenVnmrJ | src/scripts/vcmdr.sh | Shell | apache-2.0 | 86 |
#!/usr/bin/env sh
set -e
exit 0
SCALA_VERSION=${SCALA_VERSION:-2_12}
sbt \
grpcRuntimeJVM${SCALA_VERSION}/mimaReportBinaryIssues \
lensesJVM${SCALA_VERSION}/mimaReportBinaryIssues \
runtimeJVM${SCALA_VERSION}/mimaReportBinaryIssues \
compilerPluginJVM${SCALA_VERSION}/mimaReportBinaryIssues
| trueaccord/ScalaPB | mima.sh | Shell | apache-2.0 | 294 |
#!/usr/bin/env bash
# Copyright 2020 The TensorFlow Authors. 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... | tensorflow/recommenders-addons | tools/testing/parallel_gpu_execute.sh | Shell | apache-2.0 | 3,086 |
#!/bin/bash
# Copyright 2015 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 applic... | giuseppereina/dataproc-initialization-actions | ipython-notebook/ipython.sh | Shell | apache-2.0 | 2,164 |
#!/bin/bash
set -e
docker version
# Install docker-compose
sudo rm -f /usr/local/bin/docker-compose
curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > /tmp/docker-compose
chmod +x /tmp/docker-compose
sudo mv /tmp/docker-compose /usr/local/bin
... | NeoCN/jaeger | travis/install-crossdock-deps.sh | Shell | apache-2.0 | 343 |
#!/bin/bash
#crosscontaminate in=<file,file,...> out=<file,file,...>
usage(){
echo "
Written by Brian Bushnell
Last modified February 17, 2015
Description: Generates synthetic cross-contaminated files from clean files.
Intended for use with synthetic reads generated by SynthMDA or RandomReads.
Usage: crossco... | CruorVolt/mu_bbmap | src/bbmap/crosscontaminate.sh | Shell | apache-2.0 | 2,864 |
#!/bin/sh
$SPARK_HOME/bin/spark-submit \
--master "local[*]" \
--deploy-mode client \
--class com.godatadriven.twitter_classifier.HdfsToKafka \
target/scala-2.10/twitter-to-neo4j-assembly-1.0.jar | rweverwijk/twitter-to-neo4j | hdfs_to_kafka.sh | Shell | apache-2.0 | 204 |
#!/bin/bash
SOURCE="${BASH_SOURCE[0]}"
while [ -h ${SOURCE} ];do
DIR=$( cd -P $( dirname ${SOURCE} ) && pwd )
SOURCE="$(readlink ${SOURCE})"
[[ ${SOURCE} != /* ]] && SOURCE=${DIR}/${SOURCE}
done
BASEDIR="$( cd -P $( dirname ${SOURCE} ) && pwd )"
cd ${BASEDIR}
docker build -t zkpregistry.com:5043/alpine-tomcat:jr... | blackfishdel/paas | docker-script/docker-alpine3.4-jre7-tomcat7/build.sh | Shell | apache-2.0 | 367 |
#!/bin/bash
# Copyright 2016 Nitor Creations Oy
#
# 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 ag... | NitorCreations/nitor-deploy-tools | n_utils/includes/deploy-serverless.sh | Shell | apache-2.0 | 3,341 |
#!/bin/sh
#------------------------------------------------------------------------------
#
# MyRPM - Rpm Utilities
# Copyright (c) Jean-Marie RENOUARD 2014 - LightPath
# Contact : Jean-Marie Renouard <jmrenouard at gmail.com>
#
# This program is open source, licensed under the Artistic Licence v2.0.
#
# Artistic Licen... | jmrenouard/jmxclient | jmxClient.sh | Shell | artistic-2.0 | 1,345 |
# Customize below path information
#TET_INSTALL_PATH=/scratchbox/TETware
CURRENT_USER=`echo $HOME`
TET_INSTALL_PATH=$CURRENT_USER/sbs/TETware
# temporary fix for SPRC
if [ "$TET_ROOT_DIR" != "" ]; then
TET_INSTALL_PATH=$TET_ROOT_DIR
fi
TET_SIMUL_PATH=$TET_INSTALL_PATH/tetware-simulator
TET_TARGET_PATH=$TET_INSTA... | tguillem/tizen_emotion | TC/_export_env.sh | Shell | bsd-2-clause | 976 |
#!/bin/bash -e
# erik reed
# runs EM algorithm on hadoop streaming
if [ $# -ne 5 ]; then
echo Usage: $0 \"dir with net,tab,fg,em\" EM_FLAGS MAPPERS REDUCERS POP
echo "2 choices for EM_FLAGS: -u and -alem"
echo " -u corresponds to update; standard EM with fixed population size"
echo " e.g. a simple ... | erikreed/HadoopBNEM | mapreduce/scripts/mr_streaming.sh | Shell | bsd-2-clause | 3,032 |
#!/bin/bash
set -x
# configure tweaks
mv /tmp/docker-* /etc/apt/apt.conf.d
chown root:root /etc/apt/apt.conf.d/docker-*
chmod 644 /etc/apt/apt.conf.d/docker-*
# make sure we're fully up-to-date
apt-get update && apt-get dist-upgrade -y
reboot
| iknite/trusty64 | src/provision/update.sh | Shell | bsd-3-clause | 246 |
ls | `cat` | wc -l | wc -c
| pbiggar/rash | b.sh | Shell | bsd-3-clause | 27 |
#!/bin/bash
# define helpers
source_dir=~/.osx-bootstrap
if [[ ! -f ~/.ssh/id_rsa ]]; then
echo ''
echo '##### Please enter your github username: '
read github_user
echo '##### Please enter your github email address: '
read github_email
# setup github
if [[ $github_user && $github_email ]... | divio/osx-bootstrap | core/github.sh | Shell | bsd-3-clause | 1,443 |
#!/bin/bash
#This program calculates the core count for each result row and updates the
#results. This is a work around due to a current limitation of
#HdpHBencher/HsBencher.
#Author: Blair Archibald
function usage {
echo "Usage: processResults.sh <resultsFile>"
exit -1
}
test -z $1 && usage
resultsFile="$1"
... | BlairArchibald/HdpHBencher | processResults.sh | Shell | bsd-3-clause | 1,154 |
./scidb2postgres -i data/fromSciDBIntDoubleString.bin -o data/toPostgresIntDoubleString.bin -f'int32_t,int32_t null,double,double null,string,string null'
| bigdawg-istc/bigdawg | src/main/cmigrator/commands_scidb2postgres.sh | Shell | bsd-3-clause | 155 |
#!/bin/bash
NAME=realtimefec
PROJ=fecreader
# This doesn't use the feed, it tests the file downloads
# This is everything to handle the files before the body rows are entered
# After the body rows are entered, the exotic ones must be superceded
source /projects/$NAME/virt/bin/activate
# /projects/$NAME/src/$NAME/$PRO... | sunlightlabs/read_FEC | fecreader/cron/load_step_1_findfilings.sh | Shell | bsd-3-clause | 788 |
#!/bin/bash
# AUTHOR: Léo Perrin <leoperrin@picarresursix.fr>
# Time-stamp: <2013-04-16 22:35:22 leo>
# Append a pdf to the end of another.
if (( $# < 1 ))
then
echo "Usage:"
echo " concat-pdf.sh 1.pdf 2.pdf"
echo "Creates a pdf called 1-2.pdf made of the concatenation of the"\
"content of 1.pd... | picarresursix/my-nautilus-actions | images/concat-pdf.sh | Shell | bsd-3-clause | 914 |
#!/bin/bash
#
# Run a shell command on all slave hosts.
#
# Environment Variables
#
# HADOOP_SLAVES File naming remote hosts.
# Default is ${HADOOP_CONF_DIR}/slaves.
# HADOOP_CONF_DIR Alternate conf dir. Default is ${HADOOP_HOME}/conf.
# HADOOP_SLAVE_SLEEP Seconds to sleep between spawning remote command... | wangxin39/yuqing | bin/slaves.sh | Shell | bsd-3-clause | 1,232 |
#!/bin/bash
export LDFLAGS="-lstdc++fs"
mkdir -p $PREFIX/lib
./configure --prefix $PREFIX
make
make install
| blankenberg/bioconda-recipes | recipes/libmaus2/build.sh | Shell | mit | 109 |
#!/bin/sh
controllerIP=`grep controller /etc/hosts | awk '{print $1}'`
#controllerIP=192.168.122.75
controllerIP=127.0.0.1
echo controllerIP $controllerIP
file=/etc/pike/cinder/cinder.conf
orig=/etc/pike/cinder/.orig-$(basename $file)
jdate=`date "+%Y_%j_%H_%M"`
orig=${orig}${jdate}
if [ ! -e $orig ] ; then
cp -p $... | OpenSciViz/cloud | openstack/src/bash/cinder-pike.sh | Shell | mit | 2,605 |
#!/bin/sh
set -e
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
install_framework()
{
if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then
local source="${BUILT_PRO... | lionsom/LXReactiveCocoa_Demo | RAC_GatherClass/Pods/Target Support Files/Pods-RAC_GatherClass/Pods-RAC_GatherClass-frameworks.sh | Shell | mit | 3,723 |
#!/bin/bash
FN="HsAgilentDesign026652.db_3.2.3.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.11/data/annotation/src/contrib/HsAgilentDesign026652.db_3.2.3.tar.gz"
"https://bioarchive.galaxyproject.org/HsAgilentDesign026652.db_3.2.3.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-hsagilentdesi... | roryk/recipes | recipes/bioconductor-hsagilentdesign026652.db/post-link.sh | Shell | mit | 1,510 |
#!/bin/bash
source ../common.sh
subsection "oh-my-zsh"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
chsh -s /bin/zsh
mv "${HOME}/.zshrc.pre-oh-my-zsh" "${HOME}/.zshrc"
| dawikur/dotfiles | scripts/oh_my_zsh.sh | Shell | mit | 230 |
#!/bin/sh
sudo apt-get install xorg-dev libglu1-mesa-dev -y
# sfml-window
sudo apt-get install libx11-dev -y
sudo apt-get install libxcb1-dev -y
sudo apt-get install libx11-xcb-dev -y
sudo apt-get install libxcb-randr0-dev -y
sudo apt-get install libxcb-image0-dev -y
sudo apt-get install libgl1-mesa-dev -y
sudo apt-ge... | P-ainters/Drawing-Board-Alpha | Utility/DependencyInstall.sh | Shell | mit | 565 |
#!/bin/sh
java -jar sprint0.jar | CSC301H-Fall2013/ultrasound-in-remote-maternal-healthcare | sprints/sprint0/runSprint0.sh | Shell | mit | 31 |
#!/bin/bash
fusermount -u ${MNT}/xiaomi
| GdZ/scriptfile | sh/umountmtp.sh | Shell | mit | 40 |
#!/bin/sh
tar -xf $INPUT_CODE && mv ping /ping
cd /ping && npm install
| di-unipi-socc/TosKeriser | data/examples/ping_pong-app/ping_pong/scripts/ping/create.sh | Shell | mit | 73 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.