blob_id stringlengths 40 40 | language stringclasses 1
value | repo_name stringlengths 4 115 | path stringlengths 2 970 | src_encoding stringclasses 28
values | length_bytes int64 31 5.38M | score float64 2.52 5.28 | int_score int64 3 5 | detected_licenses listlengths 0 161 | license_type stringclasses 2
values | text stringlengths 31 5.39M | download_success bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|
3b1a6f912997ef481245fa11286e13742120e55e | Shell | overo/overo-oe-natty | /recipes/wlan-ng/wlan-ng-utils/wlan.agent | UTF-8 | 2,586 | 3.328125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
#
# p80211/wlan hotplug policy agent.
#
# wlan hotplug params include:
#
# ACTION=%s [register|remove|shutdown|startup|suspend|resume]
# INTERFACE=%s
# NSDNAME=%s
#
cd /etc/hotplug
# must have ./ here or busybox shell barfs
. ./hotplug.functions
#DEBUG=yes export DEBUG
if [ "$INTERFACE" = "" ]; then... | true |
d828d2187cb58188e300157751b798a60e5ddd13 | Shell | Banbeucmas/patchart | /hakurei_reimu | UTF-8 | 7,689 | 2.6875 | 3 | [] | no_license | #!/bin/sh
# Made by Banbeucmas
# Dotfiles: https://github.com/Banbeucmas/banbeucmas-dotfiles
initializeANSI()
{
esc=""
reset="${esc}[0m"
border="${esc}[38;5;232m"
greyd="${esc}[38;5;234m"; grey="${esc}[38;5;235m"; greyl="${esc}[38;5;240m"
red="${esc}[38;5;160m"; redd="${esc}[38;5;124m"
whited="${esc}... | true |
7ec43252b05d825600085b6bef9e4e62235f967f | Shell | jedavies-dev/community | /community/postgresql/files/postgresql.run | UTF-8 | 728 | 3.53125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
. /etc/default/postgresql
PGDATA="${PGDATA:-"$PGROOT/data"}"
if [ "$PGROOT" != "/var/lib/postgresql" ]; then
# Remove /var/lib/postgres if empty dir, but not if symlink
if [ ! -L /var/lib/postgres ] && [ -d /var/lib/postgres ]; then
rmdir /var/lib/postgres
fi
ln -sf "$PGROOT" /var/... | true |
51748fd5c15980fcefe1de098e281695e31c648f | Shell | sciactive/pines-tools | /sandbox/hperrin/gource-viz/make-gource-video.sh | UTF-8 | 1,526 | 2.828125 | 3 | [] | no_license | #!/bin/bash
# Clone all the repos.
git clone git://github.com/sciactive/pines-core.git
git clone git://github.com/sciactive/pines-components.git
git clone git://github.com/sciactive/pines-tools.git
git clone git://github.com/sciactive/pform.git
git clone git://github.com/sciactive/pnotify.git
git clone git://github.co... | true |
e9a223845ed7b0a3b966b232afd3ed062b7af5f4 | Shell | zdennis/bin-git | /bin/git-anim | UTF-8 | 188 | 2.703125 | 3 | [] | no_license | #!/usr/bin/env bash
main_branch=$(git get-main-branch)
echo "Branches merged into acceptance that are not in $main_branch:" && git log "$main_branch..acceptance" | grep -i 'Merge branch'
| true |
b32784cb1575bf9a25e7b8a7ed86513abebb754a | Shell | thatpixguy/chromakey | /chromakey.bash | UTF-8 | 2,202 | 2.875 | 3 | [] | no_license | #!/bin/bash
#Xephyr :1 -reset -terminate & while ! xprop -display :1 -root ; do false ; done ; xterm
BACKGROUND_RES="800x600"
KEY_RES="640x480"
# the larger of BACKGROUND_RES and KEY_RES
MIX_RES="800x600"
OUTPUT_RES="1024x768"
OFFSET="+0+0"
KEY_R=22
KEY_G=41
KEY_B=63
KEY_ANGLE=20
BACKGROUND_GEOMETRY="${BACKGROUND... | true |
fc8e3f03815a3e89a191cd70b562d79669ed2f9c | Shell | IsaacElenbaas/dotfiles | /bin/cleanpkgclean | UTF-8 | 296 | 3.203125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
pup="$(comm -23 <(sort <(cat ~/.config/cleanup/system ~/.config/cleanup/essentials ~/.config/cleanup/ignore ~/.config/cleanup/per-system)) <(pacman -Qqe | sort))"
if [ -z "$pup" ]; then
echo "No unwanted entries!"
else
echo "Potentially unwanted entries:"
printf "%s\n" "$pup"
fi
| true |
75d50c99178e4ad81cfd6901d51559c9b78e4a33 | Shell | gh-tony/repository | /devops/shell/xcall.sh | UTF-8 | 209 | 2.625 | 3 | [] | no_license | #!/usr/bin/env bash
shell=$1
for server in flink-cluster-01 flink-cluster-02 flink-cluster-03 flink-cluster-04 flink-cluster-05; do
echo '----------'${server}'---------'
ssh ${server} ${shell}
done | true |
dea132182d6ab1a089d6ea656d79cde9d6b9e7a5 | Shell | hawkpatrick/nextcloud | /send_mail.sh | UTF-8 | 575 | 3.203125 | 3 | [] | no_license | #!/bin/bash
email_status=$1
echo "email_status is $email_status"
source secrets.sh
if [[ "$email_status" = 'success' ]]; then
curl -s -X POST --user "$MAILJET_USER_DATA" https://api.mailjet.com/v3.1/send -H 'Content-Type: application/json' -d @backup_success_mail.json
exit 0
elif [[ "$email_status" = 'failed'... | true |
b2f8bee2f575f41fc37e8b03194c00a94b2bac17 | Shell | youtous/docker-mailserver-traefik | /test/swarm/traefik.v1.file.bats | UTF-8 | 3,214 | 3.265625 | 3 | [
"MIT"
] | permissive | load '../libs/bats-support/load'
load '../libs/bats-assert/load'
load '../test_helper/common'
function setup() {
DOCKER_FILE_TESTS="$BATS_TEST_DIRNAME/../files/docker-compose.swarm.traefik.v1.file.yml"
run_setup_file_if_necessary
}
function teardown() {
run_teardown_file_if_necessary
}
@test "first" {
ski... | true |
7c047b0b2fa66ff85e48e663eb862df9048d3298 | Shell | madhav2302/database_implementation | /SyncProjectWithVM.sh | UTF-8 | 933 | 2.828125 | 3 | [] | no_license | echo "$#"
PARAM="-anv"
if [ "$#" -eq 1 ]; then
PARAM="-av"
fi
rsync ${PARAM} \
--delete \
--exclude='.git' \
--exclude='.gitignore' \
--exclude='cmake-build-debug' \
--exclude='.idea' \
--exclude='*.bin' \
--exclude='*.o' \
--exclude='*.bin.*' \
--exclude='*.out' \
--exclude='lex.yy.*' \
--ex... | true |
d8e30e3204c1ed7f49cb294a2beda9052b04b7da | Shell | Michael78912/SMNW | /game/linux_install.sh | UTF-8 | 876 | 3.953125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# install stickmanranger on the machine.
echo "stickmanranger installation for linux... "
installer='a'
if [ "$(whoami)" != "root" ]
then
echo please enter your password to install stickmanranger
sudo su -s "$0"
exit
fi
function copy_dir(){
dir_install=/opt/stickmanranger
custom_dir=$dir_insta... | true |
568a4f9596fed3e39f757e7e9ebf3efde9ab9b07 | Shell | kongqinglong1121/useful-scripts | /tomcat-access-counter | UTF-8 | 168 | 2.890625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
echo "ๆๅฐๆถ็ป่ฎก" $1 "ๆไปถ่ฎฟ้ฎ้"
awk -F":" '{count[$2]++} END{for(i=0; i<24; i++){if(i<10){bb=0""i;}else{bb=i;} print bb"\t"count[bb]}}' $1
| true |
b1c565ce683e23e2c5aeaf4032f088bcf5e416b9 | Shell | whxwhx/codeforces | /three_arrays_checker.sh | UTF-8 | 244 | 2.828125 | 3 | [] | no_license | #!/bin/bash
t=0
while [ $t -lt 100 ]
do
let "t=$t+1"
echo $RANDOM|./three_arrays_gen>3a.in
./three_arrays<3a.in>3a.out
./three_arrays_baoli<3a.in>3ab.out
if diff 3a.out 3ab.out; then
echo "AC $t";
else
echo "WA $t";
break;
fi
done | true |
82f6ede1ff8cb1289638cd794ee96661d692f8e4 | Shell | hunterpaulson/fprime | /cmake/support/wrapper/enumgen.sh | UTF-8 | 862 | 4.0625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
####
# Note:
####
if [ $# -lt 1 ] || [ $# -gt 2 ]
then
echo "[ERROR] Incorrect arguments.\nUsage:\n\t${0} <Ai.txt> [<output dir>]"
exit 1
elif [ ! -d ${2} ]
then
echo "[ERROR] ${2} is not a directory."
exit 2
elif [[ ${1} != *Ai.txt ]]
then
echo "[ERROR] ${1} must be an Ai.txt file"
... | true |
1c3dcecc061125384868acae3d22b40a7757bbf3 | Shell | marstra/dotfiles | /zsh/.zshrc | UTF-8 | 4,951 | 2.6875 | 3 | [] | no_license | # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block, everything else may go below.
# if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]... | true |
6fde77943e84c9a327959f513c9c8d3d68931632 | Shell | munirwanis/EstruturaDeDadosTrabalho | /Trabalho Antigo para Referรชncia/Ordenada/autoseqord.sh~ | UTF-8 | 266 | 2.640625 | 3 | [] | no_license | #!/bin/bash
for ((i = 100; i <=10000;i += 100))
do
gcc gerador.c -o gerador -D N=$i
./gerador > entrada.txt
gcc trabalhoISEQUENCIALORDENADA.c -o trabalhoISEQUENCIALORDENADA -D NUM_MAX_ALUNOS=$i
./trabalhoISEQUENCIALORDENADA < entrada.txt
echo "$i"
done
| true |
bd68cacc91a25ad5007b68116f36fccc3d949f76 | Shell | kingkongmok/kingkongmok.github.com | /bin/mw/kafka_check.sh | UTF-8 | 1,919 | 3.65625 | 4 | [
"MIT"
] | permissive | #!/bin/bash -
# =======
# ่ๆฌ่ฏดๆ
# ๆฃๆตๅไธชoffset checkportๆไปถ๏ผๅฆๆ็ธๅ
ณtopic็ๆฐ้ๆ ๅๅๅๆฅ่ญฆใ
# ๆฃๆตzookeeper็zookeeper.outๆฏๅฆๆๆดๆฐ
# =======
#mail_user="moqingqiang@richinfo.cn fengxy@richinfo.cn"
mail_user="moqingqiang@richinfo.cn"
local_ip=`/sbin/ip ro | grep 'proto kernel' | awk '{print $9}' | tail -1`
#ErrorMsg="some logs is NOT chan... | true |
df42aeb9345cd9ac2cbb87ec1dba4d5b5911fb25 | Shell | jamesqj/jexus | /netcore3.0.sh | UTF-8 | 643 | 2.9375 | 3 | [
"MIT"
] | permissive | #!/bin/bash -e
ARG REPO=mcr.microsoft.com/dotnet/core/runtime-deps
# Install .NET Core
ENV DOTNET_VERSION 3.0.3
curl -SL --output dotnet.tar.gz https://dotnetcli.azureedge.net/dotnet/Runtime/$DOTNET_VERSION/dotnet-runtime-$DOTNET_VERSION-linux-x64.tar.gz \
&& dotnet_sha512='3d1f0ba2f293f43e087a8940a0f4736561f43b9f... | true |
35cd38c6bc9cf283a53cd27c4e0f65ea60da5b11 | Shell | t301000/xoops-easy-dock | /restore_xoops.tpl | UTF-8 | 2,843 | 4.09375 | 4 | [] | no_license | #!/bin/bash
####################
# ้ๅ
####################
#######################
# ่ฎๆธๅ
#######################
# xoops ๅฎ่ฃ็ฎ้
INSTALL_PATH=_INSTALL_PATH
# ๅไปฝๆช็ฎ้๏ผๅฎ่ฃ็ฎ้ๅไธๅฑค็ xoops_backup ็ฎ้
BACKUP_DIR="$(dirname ${INSTALL_PATH})/xoops_backup"
# docker-compose ๅท่กๆช่ทฏๅพ
DOCKER_COMPOSE="/usr/local/bin/docker-compose"
# ไฝฟ... | true |
c12bd157a2b3625fc8db62a03e9336caeec8558a | Shell | JiangYouxin/git-mg | /git-mgfile | UTF-8 | 227 | 2.9375 | 3 | [] | no_license | #! /bin/sh
BRANCH=$1
BASE=$2
FILE=$3
FILEBRANCH="$FILE.branch"
FILEBASE="$FILE.base"
git show $BRANCH:$FILE > $FILEBRANCH
git show $BASE:$FILE > $FILEBASE
git mergefile -L local -L base -L branch $FILE $FILEBASE $FILEBRANCH
| true |
1c7d4bd492d088735c177e220972c764861acd57 | Shell | sundarsrd/ardeim | /docs/tools/reveal.ex2pdf.sh | UTF-8 | 651 | 3.03125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# purpose:
# create a PDF from the html presentations (using decktape.js over phantomjs - running in docker)
#
# usage instructions
# ./reveal.export.2.pdf.sh "`pwd`" "/Users/sivaramasundar:/Users/sivaramasundar" "2017.08/2017.08.22.i.html"
# ./reveal.export.2.pdf.sh "`pwd`" "~:/Users/sivaramasundar" "2017.0... | true |
15eb13d14fb0630618a0bd77c1ac343cff252726 | Shell | mkoryak/dotfiles | /config/ubuntu/ubuntu.sh | UTF-8 | 1,825 | 3.71875 | 4 | [] | no_license | # Abort if not Ubuntu
[[ "$(cat /etc/issue 2> /dev/null)" =~ Ubuntu ]] || return 1
source ~/.dotfiles/config/utils.sh
###############################################################################
# Install suoders file
###############################################################################
e_header "Install... | true |
0349678440f2d5b5570f9a908acef186acd5ac84 | Shell | leosumi/GFP-tag | /script.sh | UTF-8 | 572 | 3.53125 | 4 | [] | no_license | #!/bin/sh
# Generate data.csv
data_dir="data"
# All the dmpcas files
dmpcas="${data_dir}/dmpcas.*"
# Header
echo length,GFP,box,time,mean-ee-length,sd-ee-length > data.csv
for f in $dmpcas ; do
length=$(echo $f | cut -d "." -f 2)
tag=$(echo $f | cut -d "." -f 3)
has_GFP="FALSE"
if [ "$tag" = "GFP" ]; then
has... | true |
bd65afc7292c4be1f9b8e1ed5bef2d1623b5c16c | Shell | shivam-63/CloudComputingAssignment2 | /Docker/src/read-save.sh | UTF-8 | 841 | 3.3125 | 3 | [] | no_license | #!/bin/sh
nginx_path=$1
mem_path=$(dirname /data/measure-mem.sh)
cpu_path=$(dirname /data/measure-cpu.sh)
disk_path=$(dirname /data/measure-disk-random.sh)
fork_path=$(dirname /data/measure-fork.sh)
flush_cache() {
rm -rf /etc/nginx/cache/*
}
for i in `seq 1 48`; do
flush_cache
echo $(printf "%s\n" $(date +%s... | true |
177754db054f71da1c72a5a2d071f289bf7a3799 | Shell | Christopher-Bradshaw/legacyhalos | /bin/SGA/SGA-shifter | UTF-8 | 1,456 | 3.21875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Load the legacyhalos Docker container using shifter.
#-c 'PATH=/mnt/code/legacyhalos/bin/legacyhalos:$PATH'
if [[ -z "$NERSC_HOST" ]]; then
DOCKER=legacysurvey/legacyhalos:v0.0.5
echo 'Updating and loading the Docker container '$DOCKER
echo 'Load the environment with: '
echo ' source /... | true |
66825be0f4b34a80cb6e20a0c4382c0b9018bc0c | Shell | jonathoma/pagecomp | /dom/shell/run_live_comp.sh | UTF-8 | 705 | 3.46875 | 3 | [] | no_license | #!/bin/bash
get() {
echo "FETCHING LIVE SAMPLES"
numSamples=2
for site in replay_data/modified/*; do
url=${site##*/}
node get_samples.js --url $url --numSamples $numSamples --filename output/live/
wait
echo $url $?
done
}
compare() {
echo "COMPARING LIVE SAMPLES"
... | true |
5f845415e053d0d4b567a79662253ab54e8d6efb | Shell | macox/buildstack-boshrelease | /jobs/confluence/templates/bin/confluence_ctl | UTF-8 | 677 | 3.53125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e # exit immediately if a simple command exits with a non-zero status
set -u # report the usage of uninitialized variables
# Setup env vars and folders for the webapp_ctl script
source /var/vcap/jobs/confluence/helpers/ctl_setup.sh 'confluence'
export PORT=${PORT:-5000}
export LANG=en_US.UTF-8
case... | true |
4482050f9f27101e18ac77e8992caf94740921d8 | Shell | lz-purple/Source | /app/src/main/java/com/syd/source/aosp/external/toolchain-utils/crosperf/experiment_files/telemetry_perf_perf | UTF-8 | 2,487 | 3.734375 | 4 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
# Copyright 2016 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# Script for generating and running telemetry benchmarkes via crosperf with
# different perf command lines in order to measure the impact of ... | true |
900affd51a1a5a063075b504dccb6c3bfd1ab8a1 | Shell | valery-barysok/gnome-garden-game-nodejs | /scripts/generate-firebase-env.sh | UTF-8 | 4,357 | 4.09375 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright 2020 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 in... | true |
e7f47339bdf88e64369fc3c36eeff503a77002a9 | Shell | erikbelusic/homestead-plus | /scripts/custom-provision.sh | UTF-8 | 1,026 | 3.609375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#
# is the the extra software is installed?
#
if [ ! -f /usr/local/extra_homestead_software_installed ]; then
echo 'installing some extra software...'
#
# install zsh
#
apt-get install zsh -y
#
# install oh my zhs
# (after.sh is run as the root user, but ssh is the... | true |
b5137ba3c720ee1e1362caa5a1a7fb8afb34b1df | Shell | delkyd/alfheim_linux-PKGBUILDS | /cl-vectors/PKGBUILD | UTF-8 | 1,178 | 2.5625 | 3 | [] | no_license | # Maintainer: Dacoda Strack <dacoda.strack@gmail.com>
pkgname=cl-vectors
pkgver=0.1.5
pkgrel=1
pkgdesc="Pure Common Lisp anti-aliasing rasterizer"
arch=('any')
url="http://projects.tuxee.net/cl-vectors/"
license=('MIT')
depends=()
# makedepends=()
# checkdepends=()
# optdepends=()
provides=()
conflicts=()
# replaces=(... | true |
9a6373dd916c7bd514ad263cd9361292c8c0c61d | Shell | fenollp/erl-mk | /samples/erldocs_other/pu.sh | UTF-8 | 425 | 3.546875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
[[ $# -ne 2 ]] && echo "Usage: $0 โนgit dirโบ โนcommit messageโบ" && exit 1
dir="$1"
msg="$2"
apps=apps.js
cd "$dir" \
&& echo 'apps = [' >$apps \
&& find . -name meta.txt | cut -c3- | sed 's/.........$/",/' | sed 's/^/"/' | tr -d '\n' >>$apps \
&& echo '];' >>$apps \
&& git pull origin gh-p... | true |
c1c1e1e57518b96cd402da52cea1e6ad3106a02e | Shell | Goldie643/sukap_starter_kit | /mcwit/process_file_multi.sh | UTF-8 | 539 | 3.25 | 3 | [] | no_license | # $1 is mrg file
# $2 is prefix of the .root files (filename up to numbers)
export mcwit_dir=/disk01/usr4/goldsack/mcwit/
export process_file=${mcwit_dir}/src_noskip/process_file
n_files=`ls -dq $2* | wc -l`
n_digits=`echo "${#n_files}"`
echo $n_files
for i in $(seq 1 $n_files)
do
in_file=`printf "%0${n_digits}d"... | true |
c1a5214dd52964affbf5d95f1d252c7c436bece8 | Shell | IoanaBrannstrom/Pcanceri_MRO | /b.runKAT_plotGC_and_hist.sh | UTF-8 | 1,550 | 3.21875 | 3 | [
"MIT"
] | permissive | #author: Ioana Onut Brรคnnstrรถm
module load bioinfo-tools
module load KAT/2.4.2_py3.7.2
READ1=$1
READ2=$2
OUTPUT= # give the name of the output file
Append1=Hist.$OUTPUT
Append2=GC.$OUTPUT
# !!!! change zcat to cat if your files are not zipped
#### run KAT hist
# it will give you a histog... | true |
6687153ee399436b276ee1dd453a558e86f838d6 | Shell | sjabber/Linux_Shell | /test/EDU1.sh | UTF-8 | 839 | 3.359375 | 3 | [] | no_license | #!/bin/bash
echo -e "select one"
echo -e "1. start"
echo -e "2. stop"
echo -e "3. restart"
echo -e "4. end"
echo -e "==================\n"
echo -n "SELECT> "
read word
if [ $word -eq 1 ];
then
echo "you selected 1. start"
sh ../edu3/while1.sh &
echo -e "Process Start!!\n"
elif [ $word -eq 2 ];
then
echo "you sel... | true |
a1dc0585771d823c23b88ec1ba3c73213bf2cf0b | Shell | partitio/docker-glpi | /root/start.sh | UTF-8 | 3,085 | 4.03125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
set -e
basedir="${GLPI_PATHS_ROOT}"
## Configure timezone
if [ -n "${TZ}" ]; then
echo "Configuring timezone to ${TZ}..."
if [ ! -f "/usr/share/zoneinfo/${TZ}" ]; then
echo "...#ERROR# failed to link timezone data from /usr/share/zoneinfo/${TZ}" 1>&2
exit 1
fi
ln -snf /usr/share/zoneinfo/$... | true |
3be5d8e40e713f335959acdde2e89526e8a33b9b | Shell | martinsch/buildem | /patches/qt4-create-symlinks.sh | UTF-8 | 210 | 3.171875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
BUILDEM_DIR=$1
FRAMEWORKS=$(ls ${BUILDEM_DIR}/lib | grep framework$)
for i in ${FRAMEWORKS}
do
ln -s ${BUILDEM_DIR}/lib/$i/Headers ${BUILDEM_DIR}/include/`echo \$i | sed 's/.framework//g'`
done | true |
8d076ee000b7c0a3a4e902c95d18d47576bfdd01 | Shell | cleanunicorn/labs | /scripts/test.sh | UTF-8 | 208 | 3.28125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
for D in `find . -maxdepth 1 -type d \( ! -name . \)`
do
cd $D
if [ -f package.json ]; then
echo "Running tests from $D"
npm test
[[ $? -ne 0 ]] && exit
fi
cd ..
done
| true |
28e42250d2d3e50e0a1a3e868c716525cbfdf260 | Shell | Seeed-Studio/seeed-ambd-sdk | /project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/gnu_utility/gnu_script/SetupGDB_FPGA.sh | UTF-8 | 1,549 | 3.234375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
#===============================================================================
CURRENT_UTILITY_DIR=$(pwd)
FLASHDLIMGDIR=$1
IMAGE_TARGET_FOLDER=$CURRENT_UTILITY_DIR/image
echo "..."
echo $CURRENT_UTILITY_DIR
echo $IMAGE_TARGET_FOLDER
GDBSCPTFILE="$FLASHDLIMGDIR/rtl_gdb_flash_write.txt"
GDBSCPTFILE_ALL="$FL... | true |
3173c21ebd7eaa1e3d1c566e4cf62b1dbf8e89ab | Shell | Grimler91/termux-packages | /packages/irssi/build.sh | UTF-8 | 2,075 | 2.546875 | 3 | [
"Apache-2.0"
] | permissive | TERMUX_PKG_HOMEPAGE=https://irssi.org/
TERMUX_PKG_DESCRIPTION="Terminal based IRC client"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.2.3
TERMUX_PKG_REVISION=5
TERMUX_PKG_SRCURL=https://github.com/irssi/irssi/releases/download/$TERMUX_PKG_VERSION/irssi-$TERMUX_PKG_VERSION.tar.xz
TE... | true |
95413b57642fd590488c3eee1275c11c9d76e724 | Shell | Parrot-Developers/alchemy | /scripts/codecheck/clang-format-check.sh | UTF-8 | 1,223 | 4.03125 | 4 | [
"GPL-2.0-only",
"BSD-3-Clause"
] | permissive | #!/bin/bash
SCRIPT_PATH=$(cd $(dirname $0) && pwd -P)
FILES=$1
MODULE_DIR=$2
# If no .clang-format file, skip the tests
CLANG_FORMAT_CFG=$(${SCRIPT_PATH}/../codeformat/find_clang_format.sh ${MODULE_DIR})
if [ -z "${CLANG_FORMAT_CFG}" ]; then
exit 0
fi
# From now, exec everything from the directory where CLANG_FORM... | true |
ed1d342a25c4cb2edb41e5c549b21cb69d52ce6b | Shell | kmarzec97/bashScripts | /panel.sh | UTF-8 | 749 | 3.328125 | 3 | [] | no_license | #!/bin/bash
getTime()
{
timeValue=" ๏ณ `date +%H:%M:%S`"
}
getFreeRam()
{
ramValue=" ๏ RAM:`free --si -h | ./awk/parseRam.awk -`"
}
getSystemLoad()
{
loadValue=" ๏ณ `cat /proc/loadavg | ./awk/load.awk`"
}
getGPUTemp()
{
gpuValue=" ๏ GPU:`sensors 2> /dev/null | ./awk/gpuTemp.awk`"
}
getCPUTemp()
{
cpuValue=" ๏ C... | true |
e1872dc1ac1b565856f1af5646d4a44a7024ee83 | Shell | zhaos/Samba-Autoinstall | /samba-install.sh | UTF-8 | 4,863 | 3.921875 | 4 | [] | no_license | #!/bin/bash
if [ "$(whoami)" != "root" ]; then
echo "This script must be run as root"
exit
fi
if [ -e /etc/debian_version ]; then
if [ -e /etc/samba/smb.conf ]; then
clear
while :
do
echo "Samba File Server is already installed"
echo ""
echo " 1) Add a new user"
echo " 2) Change user password"
... | true |
22248ef9c031751587b7a2c790539509d0e431ff | Shell | pivotal-cf/cf-rabbitmq-release | /spec/bash/ensure_dir_with_permissions_test.bash | UTF-8 | 2,246 | 3.90625 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
if [ "$(uname -s)" != "Linux" ]; then
echo "WARNING: This test can only be run on Linux plaftorms... skipping!"
exit 0
fi
# basht macro, shellcheck fix
export T_fail
# shellcheck disable=SC1091
source spec/bash/test_helpers
# Creates a new test user for each run
# We expect the container to ... | true |
433a8409ad5c873fe489d8c388f0cbce8bf04a57 | Shell | Xorpereira/ScriptsRega | /rcbak.local | UTF-8 | 745 | 3.046875 | 3 | [] | no_license | #!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Print the IP addres... | true |
b13a2b6b9ee9d13a28e44dbfbf66e1cd6994be17 | Shell | matt-hayden/stowport | /obsolete/nerd-fonts/quick-install.sh | UTF-8 | 174 | 2.609375 | 3 | [
"Unlicense",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #! /usr/bin/env bash
set -e
SETUP_DIR="$PWD"
FONT_DIR="$HOME/.local/share/fonts"
mkdir -p "$FONT_DIR"
cd "$FONT_DIR"
wget -i "$SETUP_DIR"/raw.urls
fc-cache -f "$FONT_DIR"
| true |
f095a960bb82c33551f05b4532e2ded25e0b57eb | Shell | j-/dotfiles | /src/home/.profile | UTF-8 | 3,979 | 3.859375 | 4 | [] | no_license | #!/bin/sh
### ## #### ### ###### ######## ######
## ## ## ## ## ## ## ## ## ## ##
## ## ## ## ## ## ## ## ##
## ## ## ## ## ## ###### ###### ######
######### ## ## ######### ## ## ##
## ## #... | true |
b6a272303f2ff4b3b85a321f11f23f8102de9d3e | Shell | michaelspalmer/dotfiles | /rebuild.sh | UTF-8 | 1,320 | 3.125 | 3 | [] | no_license | #!/bin/bash
echo
echo
echo REBUILDING ENVIRONMENT
echo start
echo
GIT="https://github.com/"
GITCLONE="git clone --depth=1"
AUTOLOAD="/home/michael/.vim/autoload/"
BUNDLE="/home/michael/.vim/bundle/"
TMUX="/home/michael/.tmux/"
TPOPE="tpope/"
SCROOLOOSE="scrooloose/"
VIMAIRLINE_D="vim-airline/"
ERIKW="erikw/"
RUSTLAN... | true |
509b93214c11912f18f03d13eb4a62be984d7169 | Shell | SliTaz-official/wok-stable | /xz/stuff/lzma | UTF-8 | 2,938 | 4.15625 | 4 | [] | no_license | #!/bin/sh
#
# Wrapper to accept lzma_alone or lzma_utils arguments
#
usage()
{
status=$?
cat 1>&2 <<EOT
Usage: LZMA <e|d> inputFile outputFile [<switches>...]
e: encode file
d: decode file
<Switches>
-a{N}: set compression mode - [0, 2], default: 1 (max)
-d{N}: set dictionary - [12,30], default: 23 (8MB)
... | true |
4221f1f46032f5a1a212cacf5e23c76c50866502 | Shell | evanlinde/prtg_push | /prtg_push | UTF-8 | 4,064 | 4.3125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#
# Send sensor data to PRTG via HTTP Push. Use either directly specified
# values or output from existing sensor scripts.
#
# This script should be compatible with the HTTP Push Data and HTTP Push
# Count sensors.
#
# Requires: bash >= 4.2, curl >= 7.18.0, sed
#
show_help(){
cat << END_HELP
Send sensor d... | true |
62f2351d7d6c5c2022384f4311b453c0f0f36ee6 | Shell | zxlhhyccc/my_package | /serverchan/src/serverchan.sh | UTF-8 | 8,109 | 3.453125 | 3 | [] | no_license | #!/bin/sh
#Author: monokoo <realstones2012@gmail.com>
server=http://sc.ftqq.com
CONFIG=/etc/config/serverchan
config_t_get() {
local ret=$(uci get $CONFIG.$1.$2 2>/dev/null)
#echo ${ret:=$3}
[ -z "$ret" -a -n "$3" ] && ret=$3
echo $ret
}
check_network() {
curl -s $server
if [ "$?" = "0"... | true |
3e89f1c8dcda49580cee58a4b38b095a707f4bcb | Shell | besn0847/arm-monitor | /startup.sh | UTF-8 | 213 | 2.890625 | 3 | [] | no_license | #!/bin/bash
if [ ! -f /bootstrap/.bootstrapped_mon ]
then
mv /bootstrap/* /conf/
echo 1 > /bootstrap/.bootstrapped_mon
fi
cd /conf/
while(true)
do
python monitor.py
sleep 5
done
| true |
9f413cc201788e16c7b919866c61b33b942df6f9 | Shell | patrykko7/setProfile | /packages | UTF-8 | 1,079 | 2.53125 | 3 | [] | no_license | #!/bin/bash
apt-get update && apt install -y \
jq \
tmux \
tilda \
python3 \
python3-pip \
python3-virtualenv \
git \
openvpn \
tcpdump \
net-tools \
dnsutils \
curl \
gnome-session-common \
gnome-settings-daemon \
gnome-settings-daemon-common \
gnome-shell \
gnome-shell-common \
gnome-shell-extension... | true |
0da1b32788de73fecce7fceeb96e17357da4b5af | Shell | genvmunix/ganbarou-vendor | /patches/ganbarou.sh | UTF-8 | 18,545 | 3.015625 | 3 | [] | no_license | echo ============================================
echo 'set goo ROM version'
echo ============================================
export gooversion_n="0"
export gooversion_t="0"
export goobuild_n="11"
export goobuild_t="11"
echo gooversion Note=$gooversion_n.$goobuild_n
echo gooversion Tablet=$gooversion_t.$goobuild_t
ech... | true |
24d67c88f95c5e5eb1c3b1057002b21732a022d8 | Shell | neovim/nvim-lspconfig | /.github/ci/run_sanitizer.sh | UTF-8 | 632 | 3.078125 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/usr/bin/env bash
set -e
REF_BRANCH="$1"
PR_BRANCH="$2"
# checks for added lines that contain search pattern and prints them
SEARCH_PATTERN="(dirname|fn\.cwd)"
if git diff --pickaxe-all -U0 -G "${SEARCH_PATTERN}" "${REF_BRANCH}" "${PR_BRANCH}" -- '*.lua' | grep -Ev '(configs|utils)\.lua$' | grep -E "^\+.*${SEARCH_... | true |
2197a57a99e75855685f02580f59ed7c4eb77c6e | Shell | ashikjm/socli | /publish-brew-formula.sh | UTF-8 | 777 | 2.90625 | 3 | [
"BSD-3-Clause"
] | permissive | # Generate formula
pip install homebrew-pypi-poet==0.10.0
poet -f socli > socli.rb
patch socli.rb formula-changes.patch
echo "Generated formula:"
echo "------------------------------------------------------------------------------------"
cat socli.rb
echo ""
echo "-------------------------------------------------------... | true |
e93873f0167821c63000085d70cfed307f2c79eb | Shell | highspeedmp/dotfiles | /install.sh | UTF-8 | 3,629 | 3.25 | 3 | [] | no_license | #!/bin/bash
# Lazy, but any argument will set desktop to true to trigger some linux desktop specific customziations
echo "Is this a Linux Desktop? Type Y, otherwise type something else"
read is_desktop
system_type=$(uname -s)
dot_backup=~/.olddotfiles
mkdir $dot_backup
if [ "$system_type" = "Darwin" ]; then
# inst... | true |
55fd01c195f232e42cf233a55c1aaa7dc748350b | Shell | mnlescobar/paramonte | /install.sh | UTF-8 | 30,539 | 3.046875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
####################################################################################################################################
####################################################################################################################################
####
#### MIT License
####
#### ParaMo... | true |
1543ba76faab60dbcdbd5e07aeb2ab89f2a70d79 | Shell | binbincivil/git-new-flow | /git-nflow-feature | UTF-8 | 19,514 | 3.609375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
init() {
require_git_repo
require_gitnflow_initialized
gitnflow_load_settings
PREFIX=$(git config --get gitnflow.prefix.feature)
}
usage() {
echo "usage: git nflow feature [list] [-v]"
echo " -v: verbose"
echo " git nflow feature start [-nfl] <name> [<base>]"
echo " -n:... | true |
e6fb8a3218db35a011b401b3ee3fd1c3cc904cd0 | Shell | MoBoo/ubuntu_fresh_install | /install.sh | UTF-8 | 1,531 | 2.953125 | 3 | [] | no_license | #!/bin/bash
set -ex
# Updates
apt update
apt upgrade -y && apt dist-upgrade -y
snap refresh
apt install -y curl
# add current user to 'vboxsf' group to allow shared folder access
usermod -aG vboxsf $SUDO_USER
# Install git
apt install -y git
# Python
## Install pip
apt install -y python3-pip
## install virtualen... | true |
facf5020bea68426e3ac35e976234e39fe748469 | Shell | hipay/hipay-fullservice-sdk-magento1 | /bin/tests/casper_run_gitlab.sh | UTF-8 | 2,043 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
if [ "$2" != "" ]; then
BASE_URL=$2
else
BASE_URL=$MAGENTO_URL
fi
if [ "$URL_MAILCATCHER" = "" ];then
URL_MAILCATCHER="http://smtp:1080/"
fi
cd bin/tests/000_lib
bower install hipay-casperjs-lib#develop --allow-root
cd ../../../;
header="bin/tests/"
if [ "$1" = "0" ];then
echo "... | true |
a426d00cd7a1614519b5154c2853e08214424fca | Shell | kakamband/vanced-automatic-installer | /src/legacyInstall.sh | UTF-8 | 566 | 3.609375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
DEVICE_DETECTED="No"
COMMAND="adb install-multiple youtube.apk config.x86.apk config.xxxhdpi.apk "
LANGUAGES=$(echo $1 | tr "," "\n")
adb get-state 1>/dev/null 2>&1 && DEVICE_DETECTED="Yes" || DEVICE_DETECTED="No"
if [ $DEVICE_DETECTED == "Yes" ]
then
echo 'Device Detected'
echo 'Continuing install... | true |
05b7fcdbb972ee7f995c054ab6ee0e9aa98dea18 | Shell | gutschke/dnstools | /pdns-auto-roll-zsk | UTF-8 | 2,170 | 3.640625 | 4 | [
"MIT"
] | permissive | #!/bin/bash -e
# On a regular basis, the domain ZSK keys must be rolled. This script
# performs the necessary operations to do so while making sure that the
# DNS system stays consistent throughout the entire time.
# Copyright 2016, Markus Gutschke
export LC_ALL=C
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin... | true |
538244dad9a4b1674403fb86ff388ec2c5a467d4 | Shell | JasonMKurtz/env | /bash/bashrc | UTF-8 | 624 | 3.203125 | 3 | [] | no_license | # .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
export brc=1
# User specific aliases and functions
#ssh() {
# if [ "$(ps -p $(ps -p $$ -o ppid=) -o comm=)" = "tmux" ]; then
# if [[ $* == *@* ]]; then
# title=$(echo "$*" | awk -F "@" '{print $2}')
# else
# title=$*
# fi
# ... | true |
e960dec36e63f3f7c1a401176bb0a3dc6c9a1b87 | Shell | yuvals41/layerci | /services/web/download.sh | UTF-8 | 446 | 2.6875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -eu -o pipefail
cd public
mkdir -p static
cd static
rm -rf feather-font-*
curl -fSsL -o /tmp/feather-font.zip https://github.com/AT-UI/feather-font/archive/master.zip
unzip /tmp/feather-font.zip && rm /tmp/feather-font.zip
rm -rf feather-font
mkdir feather-font
mv feather-font-*/src/{css,font... | true |
8663358009f23c1ef07c540335678807b6318fb7 | Shell | mdotcarter/ARA-Networks | /src/preprocess.sh | UTF-8 | 731 | 2.84375 | 3 | [] | no_license | #$ -S /bin/bash
s=$SUBJECT
echo $s
DATADIR=${TOP}/experiment/data/$s
WORKINGDIR=${TOP}/experiment/working_preprocess/$s
# prepare working directory
mkdir -p $WORKINGDIR
# move to working dir
cd $WORKINGDIR
# drop the first 3TR
fslroi $DATADIR/rest raw_roi 3 -1
# slice timing correction
slicetimer -i raw_roi -o... | true |
9811928fe3844784b08eada7cf07af1feaae5a5f | Shell | WilliamQLiu/timetracker | /datasite/config/sample_long.sh | UTF-8 | 258 | 2.671875 | 3 | [] | no_license | #/bin/bash
# Assuming this location: /usr/local/bin/sample_long.sh
# Make sure to chmod +x /usr/local/bin/sample_long.sh
while true
do
# Echo current date to stdout
echo `date`
# Echo 'error!' to stderr
echo 'error!' > &2
sleep 1
done
| true |
3c5294c0069608b2b651e8bab372e3c82e30e4ac | Shell | paul-rogers/drill-test-framework | /framework/resources/Datasources/schema_change_empty_batch/text/lfs/setup.sh | UTF-8 | 665 | 3.203125 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
source conf/drillTestConfig.properties
set -x
set -e
if [ ! -d /tmp/schema_change_empty_batch/psv/part ]
then
echo "Creating directory /tmp/schema_change_empty_batch/psv/part"
mkdir -p /tmp/schema_change_empty_batch/psv/part
echo "Creating source files"
split -l 500... | true |
d18006846084c4436022ed0bc94e31e2225ef807 | Shell | nereine/shs | /unix-eine/sh-tools/bin/cattmp | UTF-8 | 1,172 | 4.28125 | 4 | [
"Unlicense",
"BSD-3-Clause"
] | permissive | #!/bin/sh
# cattmp - stupid cpu temperature monitor utility
watch_cat() {
# Our tempperature file
f='/sys/class/thermal/thermal_zone0/temp';
if [ -f $f ]; then
watch cat $f;
else
printf "%s not found\n" "$f";
fi
}
main() {
case "$(uname)" in
'Darwin')
if [ -n "$(command -v osx-cpu-temp)" ]; then
w... | true |
43abbe9e4584312a752adc9c42d305f7fb6f9902 | Shell | CERIT-SC/cerit-hwconfig | /bmc/user_ipmitool.sh | UTF-8 | 2,824 | 3.859375 | 4 | [
"WTFPL"
] | permissive | #!/bin/bash
#TODO: help
# arguments processing
while getopts ":h:d:u:U:p:P:" opt; do
case "${opt}" in
h) HOST="${OPTARG}" ;;
d) DEV="${OPTARG}" ;;
u) D_USER="${OPTARG}" ;;
U) USER="${OPTARG}" ;;
p) D_PSWD="${OPTARG}" ;;
P) PSWD="${OPTARG}" ;;
\?)
echo "Invalid option: -${OPTARG}" >&2
exit 1
;;
:)
echo... | true |
0eac8853a3548d1db3d6ae6ce01e0034108ddf80 | Shell | Grey1991/shell-perl-and-js | /lab/lab08/backup.sh | UTF-8 | 171 | 3.28125 | 3 | [] | no_license | #!/bin/sh
file=$1;
i=0;
backup=".$file.$i"
while test -e "$backup"; do
((i++));
backup=".$file.$i";
done
cp $file $backup;
echo "Backup of '$file' saved as '$backup'"
| true |
40e2bdfacb48a2d254540b09df75560c6510c930 | Shell | Nouar-Sid-ahmed/Tinyinfra | /scripts/manager/main.sh | UTF-8 | 6,863 | 3.40625 | 3 | [] | no_license | #!/bin/bash
# Petite introduction a la mise en place:
echo "===== Bonjour, et bienvenue dans la mise en place de votre intraNet sur votre manager. ====="
echo ""
# Installation des prรฉs requit
echo "==> Installation des prรฉs requit:"
echo ""
echo "=> update apt"
apt update
echo ""
echo "=> installation ssh"
echo ""... | true |
b0c6fd3f3cfda6eee34710e34c0284c83eb70703 | Shell | qxia1991/offline | /.svn/pristine/b0/b0c6fd3f3cfda6eee34710e34c0284c83eb70703.svn-base | UTF-8 | 2,728 | 3.75 | 4 | [] | no_license | #!/bin/sh
prefix=@prefix@
exec_prefix=@exec_prefix@
includedir=@includedir@
libdir=@libdir@
cflags=`cat <<EOF
@CPPFLAGS@ @CCFLAGS@
EOF
`
cflags=`echo " $cflags" | sed -e 's/\([*\?]\)/\\\\\1/g; s/(/"(/g; s/)/)"/g' `
cflags2=`echo " $cflags" | sed -e 's/\(["()*\?]\)/\\\\\1/g'`
ldflags="@LDFLAGS@ @LIBS@"
all_libs=`cd $li... | true |
f3007e09cab47ef0a82616d0b40b6e2b6bcc9556 | Shell | ccFiona/data-analyse | /5.104 xiaofei/getExpmStatMain2.sh | UTF-8 | 1,759 | 2.71875 | 3 | [] | no_license | ############################################################################
##
## Copyright (c) 2013 hunantv.com, Inc. All Rights Reserved
## $Id: getExpmMacList.sh,v 0.0 2016ๅนด05ๆ25ๆฅ ๆๆไธ 14ๆถ26ๅ34็ง <tangye> Exp $
##
############################################################################
#
###
# # @file getEx... | true |
efb089b6a9434860dbba402904c0530029c1ecf4 | Shell | ht8279/hpc | /ipython-localhist | UTF-8 | 1,323 | 3.8125 | 4 | [] | no_license | #!/bin/bash
#
# ipython's sqlite history has problems using NFS filesystems (version
# 0.13.1)
#
# This is a wrapper to ipython to use a local disk (/scratch) instead
#
# Has some checks to handle multiple concurrent sessions, but
# race conditions could still possibly happen.
#
# https://github.com/ipython/ipython/iss... | true |
82b540084bdc4b4e4e2711ec341d174e6750953a | Shell | TouK/nussknacker | /engine/lite/runtime-app/src/universal/bin/nu-engine-entrypoint.sh | UTF-8 | 1,633 | 3.4375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -e
if [ "$JAVA_DEBUG_PORT" == "" ]; then
JAVA_DEBUG_OPTS=""
else
JAVA_DEBUG_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:$JAVA_DEBUG_PORT"
fi
NUSSKNACKER_DIR=`dirname "$0" | xargs -I{} readlink -f {}/..`
CONF_DIR="$NUSSKNACKER_DIR/conf"
LIB_DIR="$NUSSKNACKER_DIR/l... | true |
f092810ea9c6e098aa16c4e78baafd00ba0905bb | Shell | XuHahn/kaolin | /tools/linux/build_docker.sh | UTF-8 | 581 | 3.390625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env sh
set -e
script_root="$( cd "$(dirname "$0")" ; pwd -P )"
cd "$script_root/../.."
image_name=kaolin
if [ $# -gt 0 ]; then
image_name=$1
shift
fi
docker build \
--network host \
-f tools/linux/Dockerfile \
-t ${image_name} \
$@ \
.
docker run --rm "${image_name}" cat cond... | true |
9d0af9d9fe382bd33bedf71c82d1268e11888e1c | Shell | jeremybobbin/thunpren | /5/5-16b | UTF-8 | 173 | 2.78125 | 3 | [] | no_license | #!/bin/sh
awk '
BEGIN {
FS=":"
}
{
if ($3 > highest)
highest = $3;
users[$3]=NR
}
END {
i=0
while (++i)
if (!(i in users)) {
print i
exit
}
}' /etc/passwd
| true |
d6f5d6bc4e86eac23e1ae2421561e3de16e40a14 | Shell | delkyd/alfheim_linux-PKGBUILDS | /libmathview-git/PKGBUILD | UTF-8 | 1,070 | 2.5625 | 3 | [] | no_license | # $Id$
# Maintainer: Yue Liu <yue.liu@mail.com>
pkgname=libmathview-git
_gitname=libmathview
pkgver=r1278.a007fd2
pkgrel=1
pkgdesc="A library for rendering MathML documents"
arch=('i686' 'x86_64')
url="https://github.com/khaledhosny/libmathview"
license=('LGPL3')
conflicts=('libmathview')
provides=('libmathview')
make... | true |
3adaf63764342eba7a68cc669707757d97954a48 | Shell | lexlapax/dockerfile-riak | /fixconfigs.sh | UTF-8 | 1,376 | 2.859375 | 3 | [] | no_license | #!/bin/bash
sed -i.bak 's/127.0.0.1/0.0.0.0/' /etc/riak/app.config
# switch to leveldb as the riak backend
sed -i -e s/riak_kv_bitcask_backend/riak_kv_eleveldb_backend/g /etc/riak/app.config
# enable search. the sed command below only replaces the first line it matches
sed -i -e 0,/"enabled, false"/{s/"enabled, false... | true |
ad74bbf6766cf73345183b941077faa96a26631e | Shell | mariouhrin/react-express-mongo-ts | /backend/scripts/run-mongo.sh | UTF-8 | 250 | 2.8125 | 3 | [
"MIT"
] | permissive | #! /bin/bash
if [ "$(docker ps -a | grep mongo-db)" ]; then
echo "stop container"
docker stop mongo-db
echo "remove container"
docker rm mongo-db
fi
echo "create new mongo-db container"
docker run -d -p 27017:27017 --name mongo-db mongo
| true |
98934914cae75cd3ed64875c2c312960feaf69e4 | Shell | aaronott/AtticPi | /Software/fan_on.sh | UTF-8 | 564 | 4.15625 | 4 | [] | no_license | #!/bin/sh
FRONT=17;
BACK=22;
if [ -z "$2" ] ; then
echo "USAGE $0 <front|back> <SECONDS-TO-RUN>"
exit;
fi
FAN=''
SECONDS=${2}
if [ ${1} == 'front' ] ; then
FAN=$FRONT
FILE=".front"
elif [ ${1} == 'back' ] ; then
FAN=$BACK
FILE=".back"
fi
if [ -z "$FAN" ] ; then
echo 'ERROR: FAN MUST BE front OR back'... | true |
2e934f096a47f49c6a6b477ebcf79b935b06353d | Shell | semiologic/scripts-sem | /sem_db | UTF-8 | 597 | 3.453125 | 3 | [] | no_license | #!/bin/bash
#
# Author: Denis de Bernardy <http://www.mesoconcepts.com>
# Version: 0.1
# BSD licensed
#
if [[ $# == 2 ]];
then
db=$1
sql=$2
elif [[ $# == 1 ]];
then
db=sem
sql=$1
elif [[ $# == 0 ]];
then
db=sem
sql=
else
echo 'Usage: sem [db_name] [sql_dump]'
exit -1
fi
mysql -u root -t <<SQL
DROP DATABASE IF... | true |
5cc062b6f148dce5851e01ee99d709e938131e08 | Shell | alffajardo/PREEMACS | /Modules/pathFile.sh | UTF-8 | 1,556 | 3.109375 | 3 | [] | no_license | #/bin/bash
#Arun Garimella
#9 Nov 2021
# Check installation of the following programs
fslOut=/home/inb/lconcha/fmrilab_software/fsl_5.0.6
freesurferOut=/usr/local/freesurfer/bin
matlabOut=/usr/local/MATLAB/R2021a/bin/matlab
mrtrixOut=/home/kilimanjaro2/anaconda3/envs/mrtrix/bin
antsOut=/opt/ANTs/bin
#Do not change ... | true |
d138cc6155cd0c5c1396eb8643eaf681462449d3 | Shell | mtekman/ngs_sequencing_pipeline | /linkage/linkage_all.sh | UTF-8 | 736 | 3.78125 | 4 | [] | no_license | #!/bin/bash
usage(){
echo "Filters based upon a bed file (i.e. linkage)
`basename $0` <output folder> <linkage.bed> <group>
or `basename $0` <output folder> <linkage.bed> <[FILES]>
" >&2
exit
}
folder=$1
bed=$2
vcfs=""
if [ $# = 3 ];then
group=$3
checkStepDone $folder 100 linkage # Has to look 4 subdirs to fi... | true |
789b77f384670f932bbe5d55e9a1b4bd8a00feca | Shell | balbes/antique | /profiles/live/image-scripts.d/init1-rm-boot-dir | UTF-8 | 395 | 3.4375 | 3 | [] | no_license | #!/bin/sh
# DESCRIPTION
#
# Remove kernel and initrd from /boot directory in squashfs image
# We need more free space!
# REQUIRES
#
# Nothing
# INFO
#
NAME="init1-rm-boot-dir"
verbose()
{
if [ -n "$GLOBAL_VERBOSE" ]; then
echo "HOOK: $NAME: $@"
fi
}
verbose "has started"
verbose "Em... | true |
8015256e7fe4aba41eb6cba721e2ea0387f8a9c6 | Shell | MAWSpitau/timer-sh | /timer.sh | UTF-8 | 1,542 | 3.640625 | 4 | [] | no_license | #!/bin/bash
# Quick'n'Dirty Timer
# MAWSpitau 2018-05-17
# Idee von https://superuser.com/questions/611538/is-there-a-way-to-display-a-countdown-or-stopwatch-timer-in-a-terminal
# Hier auskommentieren fรผr debugging.
# DEBUG="=====>>>- DEBUGGING:"
# USAGE:
# [[ $DEBUG ]] && echo ${DEBUG} "Nachricht"
figlet=`which figl... | true |
15ec3a96685f543adb089783dea68c803ac1f436 | Shell | eerosales/deployment | /an_reqmgr/deploy | UTF-8 | 2,381 | 2.875 | 3 | [] | no_license | # vim: set ft=sh sw=2 ts=8 et :
deploy_an_reqmgr_variants="default prod preprod dev"
deploy_an_reqmgr_deps()
{
deploy backend
deploy wmcore-auth
deploy couchdb
}
deploy_an_reqmgr_prep()
{
mkproj
}
deploy_an_reqmgr_sw()
{
case $variant in prod ) secrets= ;; preprod ) secrets=Preprod ;; * ) secrets=Dev ;; es... | true |
a67de1af450c7e71aaa8740bf6385dd8f7f0f457 | Shell | JustinTulloss/config_files | /install.sh | UTF-8 | 259 | 3.734375 | 4 | [] | no_license | #!/bin/sh
for name in *; do
target="$HOME/.$name"
if [ -e $target ]; then
echo "Backing up old file"
mv $target $target.bak
fi
if [ $name != 'install.sh' ]; then
echo "Creating $target"
ln -s "$PWD/$name" "$target"
fi
done
| true |
abc99c75af9eac639285438b5dd7f8d60a105576 | Shell | entelecheia/dotfiles | /chezmoi/dot_config/ssh/modify_authorized_age_keys.tmpl | UTF-8 | 1,068 | 3.9375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -euo pipefail
# read authorized_keys from stdin
keys=$(cat /dev/stdin)
# if authorized_keys is empty, set it to empty string
if [[ -z "${keys}" ]]; then
keys=''
fi
# read from ${HOME}/.config/ssh/authorized_age_keys if it exists
# if [[ -f "${HOME}/.config/ssh/authorized_age_keys" ]]; then
# key... | true |
ea8324aa3e54a9af827576af31d194f2d6825bf3 | Shell | MRCIEU/eczema_gwas_fu | /final_integration/01_input_preparation_lookups.sh | UTF-8 | 111,563 | 2.5625 | 3 | [] | no_license | #!/bin/bash
HOME=/panfs/panasas01/sscm/qh18484
analysis=$HOME/final_integration/lookups
scripts=$HOME/bin/eczema_gwas_fu/final_integration
data_manipulation=$HOME/analysis/annotation/data_manipulation
data_manipulation_scripts=$HOME/bin/eczema_gwas_fu/annotation/data_manipulation
datasets=$HOME/working/data/Datas... | true |
17cc6ac9edf6ca4d436f9bbe408bcf332f42ee24 | Shell | andrew-ls/misc-sh | /gnome-shell-keybindings | UTF-8 | 4,820 | 3.734375 | 4 | [] | no_license | #!/bin/sh
# Copyright (c) 2018 Andrew Steel <copyright@andrewsteel.net>
#
# SPDX-License-Identifier: GPL-3.0-only
#
# The GNU General Public License Version 3 only:
#
# This is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License Version 3
# as published by the Fr... | true |
a767de27299b0aa8bada353062ce4c35e765e250 | Shell | osolmaz/fee-market-simulator | /examples/generate_demand_profiles.sh | UTF-8 | 333 | 3.0625 | 3 | [] | no_license | #!/bin/bash
# Finds all the files called generate_demand_profile.rs, compiles them, runs them, and deletes the binary
for i in `find . -iname "generate_demand_profile.rs"`;
do
echo Running $i
(cd $(dirname $i);
rustc generate_demand_profile.rs;
./generate_demand_profile;
rm -f generate_demand_p... | true |
05330dcc0f10de5f8038928eb4bdcdd98e6afeb1 | Shell | gray-m/character-lstm-mal | /html_processing/build_dataset.sh | UTF-8 | 545 | 3.125 | 3 | [] | no_license | #!/bin/bash
genre=$1
dirname=$genre
dirname+="_data"
data_dir=../data/$dirname
seq_len=$2
if [ -d $data_dir ]; then
rm -rf $data_dir
fi
mkdir $data_dir
python consolidate_directory.py ../html_raw $data_dir/$genre.out \
--genre=$genre \
--verbose
python build_vocabulary.py $data_dir/$genre.out $data_di... | true |
a91acc0b08d2f2706bf45ac43367b30694606a0a | Shell | prakritichauhanpuresoftware/kaniko | /scripts/minikube-setup.sh | UTF-8 | 1,915 | 2.6875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright 2020 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 i... | true |
1dd1bee7d3a5d851f318f5e0c6a57632480e8481 | Shell | aluinoderwin85/cd-5-minutes-tracks | /build-5-minutes-cd-tracks.sh | UTF-8 | 757 | 3.609375 | 4 | [] | no_license | #!/bin/bash
if [ $# -ne 2 ]
then
echo "Syntax: $0 <file.mp3> <time-in-minutes>"
exit
fi
file=$1
minutes=$2
# cdrdao blank --device /dev/scd0 -n -v 2
cd=cd-5-minute-tracks-without-gaps.wav
toc=cd-5-minute-tracks-without-gaps.txt
# many voice mp3 just have one channel and 22.5MHz or less
# we must "expand" it
mpl... | true |
be9e30e98acd161b3120a9d36ac26438f4326a21 | Shell | Trista-Sie/Kafka_Services_Script | /Each_Service/zookeeper.sh | UTF-8 | 258 | 2.65625 | 3 | [] | no_license | #!/bin/bash
printf "ๅๅZookeeper...\n"
#้ฒๅฐconfluent platform 5.5.1่ณๆๅคพ
cd ~/confluent-5.5.1
#ๅๅzookeeper(ๅท่กๆช๏ผzookeeper-server-start๏ผๅๆธๆช๏ผzookeeper.properties)
./bin/zookeeper-server-start ./etc/kafka/zookeeper.properties &
| true |
81add786d1696db50c65f35f216683fe9cf23953 | Shell | filebot/filebot-docker | /node/opt/filebot-node/task | UTF-8 | 695 | 3.71875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash -u
export FILEBOT_NODE_DATA="$HOME/node"
export FILEBOT_NODE_TASK="$1"
# sanity check
if [ ! -f "$FILEBOT_NODE_DATA/task/$FILEBOT_NODE_TASK.args" ]; then
echo "$0: Task $FILEBOT_NODE_TASK does not exist"
exit 1
fi
# import user environment
if [ -f "$FILEBOT_NODE_DATA/environment.sh" ]; then
source "... | true |
118787f0090b1b6b5f74668d87427705c033265b | Shell | BackupTheBerlios/vermont-svn | /trunk/libpcap-mmap/bootstrap | UTF-8 | 4,378 | 3.796875 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
# This is where I keep the versioning information. It is transfered to files
# in this hierarchy. The REVISION file contains the year, month, and date of
# the tcpdump.org distribution. The REVISION variable below is associated with
# the revision component of autoconf versioning information.
CURRENT=0
R... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.