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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
8559e22aa52e3e4ae8156bcb17d79791c010e467 | Shell | haithemsekri/MyTools | /nas-disks/wait_until_idle.sh | UTF-8 | 520 | 2.609375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
while true;
do
echo "wait until idle"
#/usr/bin/wait_until_idle 95 32768 100 #Delay time until sleep 10x100=16.6mins
/usr/bin/wait_until_idle 95 2048 60 10 100
echo "idle"
systemctl stop smbd nmbd
/usr/bin/udev-disk-attach.sh --cmd poweroff --dev all --keep no
ethtool -s enp2s0 wol g
systemctl hybrid-s... | true |
c030131faa0e80faf85dd0042fb4b9a161f194de | Shell | the-bugs-bunny/core-php | /.scripts/composer_post_install_cmd.sh | UTF-8 | 155 | 2.921875 | 3 | [] | no_license | #!/bin/bash
DIR="$PWD/.git/hooks/"
if [ -d "$DIR" ]; then
cp ./.scripts/git_pre_commit.sh .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
fi
| true |
e59cc7301324c6634c2ab7fa43846ec2a2232dfb | Shell | intrig-unicamp/ixp-ptt-br | /analysis/Adjacencies/peeringMatrixByProfile/runPeeringMatrix.sh | UTF-8 | 1,173 | 3.453125 | 3 | [
"CC-BY-4.0"
] | permissive | #!/bin/bash
if [ $# -ne 1 ]; then
echo "Usage $0 <state>"
echo "e.g., $0 sp"
exit
fi
read -p "Confirm that you have profile_separator, data and order folders and press [Enter] key ..."
state=$1
if [ ! -f data/ptt_$state.txt ]; then
echo Data file not found!
echo Expected: data/ptt_$state.txt
exit
fi
if... | true |
2da1d429365493937466056674b10c381eab2152 | Shell | Junch/ios-cmake | /toolchain/build-gtest.sh | UTF-8 | 3,804 | 4.21875 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
if ! type cmake > /dev/null; then
echo "cmake is not installed. Please install it first."
exit
fi
echo "$(tput setaf 2)"
echo "###################################################################"
echo "# Preparing to build Google Test for iOS"
echo "####################################################... | true |
fe017154f99109b394ee6727133709b6cf668b96 | Shell | geodis/tools | /monitoreo-servers_tmux.sh | UTF-8 | 2,227 | 2.734375 | 3 | [] | no_license | #!/bin/bash
# Paneles
# +---------------------+-----------------------+
# | 0 | 1 |
# +---------------------+-----------------------+
# | 2 | |
# +---------------------+ 4 |
# | 3 | ... | true |
56c508c725c55508bebccaa0ac5cd36f3456e975 | Shell | Yagami2013/scripts | /operate_app.sh | UTF-8 | 814 | 3.046875 | 3 | [] | no_license | #/bin/bash
pkg="com.zfdang.zsmth_android";
getStartTime(){
[ -n "$1" ]&& pkg=$1;
local MainPage=${pkg}"/.MainActivity";
startTime=`adb shell am start -W $MainPage | grep "TotalTime"|awk -F: '{print $2}'`;
echo $startTime;
}
getFlow(){
uid=`adb shell dumpsys package $pkg | grep userId|awk -F '=' '{print $2}'`;
fl... | true |
3c4a28bdadd69c18135104661bca23f0c6357017 | Shell | sanketshahc/deeplearning_cnns | /organize_classes.sh | UTF-8 | 271 | 3.375 | 3 | [] | no_license | #!/bin/bash
MYDIR="${PWD}";
for FLE in ${MYDIR}/resources/test_images/*.jpg;
do
FNAME=$(echo $(basename ${FLE}) | sed 's/_[0-9].*//g');
# echo $FLE
DEST="${MYDIR}/resources/test_images/${FNAME}"
# printf $FLE
mkdir -pv ${DEST};
# echo ${DEST}
mv ${FLE} ${DEST};
done
| true |
ee6b99b774c505fa0d445af94bb93b29fd00a5c3 | Shell | jinahya/jinahya | /com.googlecode.jinahya.test/basic-restful-webapp/items.sh | UTF-8 | 3,924 | 2.859375 | 3 | [] | no_license | #!/bin/sh
item_xml_size=$(stat -c%s "src/test/resources/item.xml")
item_json_size=$(stat -c%s "src/test/resources/item.json")
echo ------------------------------------ creating on /items with an xml content
curl -i -X POST http://localhost:58080/items -H "Content-type: application/xml" --data "@src/test/resources/item... | true |
262d836f374a03516081ae948d7947a0b3be2667 | Shell | kylemarsh/broodmon | /netmon.sh | UTF-8 | 679 | 2.984375 | 3 | [] | no_license | #!/bin/sh
# Hacky little script to check if the network connection is working and
# kick the wifi interface if it's not. Hopefully this fixes some of the
# dropout issues I see sometimes.
if ! ping 192.168.1.1 -c2
then
echo -n "Network down at `date`.." >> /home/pi/monitoring/pingmon.log;
ifdown wlan0; echo -n "drop... | true |
a390c58bf012806d4a556241a4717e0e1d881f2f | Shell | jamalansari84/ubuntu-setup | /extras/mysql.sh | UTF-8 | 1,794 | 2.9375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
function update {
sudo apt update
sudo apt upgrade -y
sudo apt autoremove -y
}
function status {
sudo ufw status
sudo systemctl restart apache2 mysql
sudo systemctl --no-pager status apache2 mysql
}
# Variables
# --------------------------------------
MYSQL_USER_NAME="admin"
MYSQL_USER_PASSWORD="se... | true |
f90b1b4b6fd84a7024feb46f18bcbdb7ecbf74fc | Shell | hxin/OntoSuite-Miner | /lib/ensembl-api/ensembl-functgenomics/scripts/environments/config.sequencing.example | UTF-8 | 2,011 | 2.78125 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/local/bin/bash
# Copyright [1999-2013] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
#
# 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:/... | true |
6bf9b717c116b71f58d1a785a76e4b2183ac4135 | Shell | berrym/zsh-config | /.zsh/third-party/third-party.zsh | UTF-8 | 322 | 2.859375 | 3 | [] | no_license | local autosuggest=zsh-autosuggestions/zsh-autosuggestions.zsh
local syntax-highlighting=zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
third-party-scripts=(
${ZDOTDIR:-$ZSH_THIRD_PARTY_DIR}/$autosuggest
${ZDOTDIR:-$ZSH_THIRD_PARTY_DIR}/$syntax-highlighting
)
for f in $third_party_scripts; do
. $f
don... | true |
a879eb1179e9d91c4414beac077db35a28565ba9 | Shell | alidad1401/OpenNeuro_analyses | /reuse_analyses/reuse_identification/check_no_match.sh | UTF-8 | 515 | 3.609375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
cat no_match.txt | while read line; do
file="$(echo "$line"| gsed 's/[^[:alnum:][:space:]]\+//g' | tr -s ' ' )"
file_no_trailing_space="${file%% }.pdf"
file_no_outer_spaces="${file_no_trailing_space## }"
open "papers/all_papers/$file_no_outer_spaces"
echo "$line"
read -p "If you need to re-download ... | true |
2eab1b9f8d798c81a05faf66b93fc33570d03545 | Shell | jakethekoenig/personal-site | /backend/deploy.sh | UTF-8 | 407 | 2.828125 | 3 | [] | no_license | #!/bin/bash
RUN_DIR=$(pwd)
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $SCRIPT_DIR
# Deploy lambda endpoint that catches comments
cd catchcomments
code="cloudtmp.zip" # TODO: ensure this doesn't already exist
zip $code -r *
aws lambda update-function-code --function-name arn:aws:lambda:us-east-2... | true |
3de529c0da57fd191797d8d81310e589df0aa456 | Shell | wookayin/tensorflow-io | /.travis/python.release.sh | UTF-8 | 2,707 | 2.890625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Copyright 2018 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... | true |
efde33520be71c50b23d096c76a6e6ef4645a18b | Shell | luc-zago/exercicios-trybe | /Módulo 1 - Fundamentos de desenvolvimento web/Bloco 1 - Unix, Bash e Shell Script/exercicio4.sh | UTF-8 | 505 | 3.640625 | 4 | [] | no_license | #!/bin/bash
echo "Programa que verifica se o caminho até um arquivo existe e, caso o caminho exista, verifica se você tem permissão para editar o arquivo"
echo "O caminho para qual diretório você gostaria de verificar?"
read arq
if [ "`pwd` $arq"=true ]
then echo "O caminho para $arq está habilitado!"
else
ec... | true |
5c7317bbf1d0401e4d564053115c54ee0e1f07bc | Shell | redis/redis-py | /dockers/stunnel/create_certs.sh | UTF-8 | 1,102 | 3.34375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
DESTDIR=`dirname "$0"`/keys
test -d ${DESTDIR} || mkdir ${DESTDIR}
cd ${DESTDIR}
SSL_SUBJECT="/C=CA/ST=Winnipeg/L=Manitoba/O=Some Corp/OU=IT Department/CN=example.com"
which openssl &>/dev/null
if [ $? -ne 0 ]; then
echo "No openssl binary present, exiting."
exit 1
fi
openssl genrsa -out ca-key... | true |
2da1d8ee6181cbd5832863c878098f7e79df06ca | Shell | stormlovetao/rnaSeq | /Align2ViralGenS1.sh | UTF-8 | 942 | 3.375 | 3 | [] | no_license | #!/bin/bash
#########################
#
#This script aims to align all unmapped samples to Viral/Bacterial genomes.
# version: V-0.0.0
# 1. Download Viral/Bacterial genomes from NCBI(ftp://ftp.ncbi.nlm.nih.gov/genomes/Viruses/) to local server
# 2. Use Bowtie/SNAP to build index of reference genomes.
# 3. Use Bowt... | true |
eac126819c1a6d780d861d972c1cc32aee0cbc04 | Shell | AG7GN/hamapps | /updatepi.sh | UTF-8 | 13,305 | 3.390625 | 3 | [] | no_license | #!/bin/bash
# YAD/shell script to install or update certain ham applications, as well as
# update Raspbian OS and apps.
VERSION="1.77.7"
function Help () {
BROWSER="$(command -v chromium-browser)"
declare -A APPS
APPS[fldigi]="http://www.w1hkj.com/FldigiHelp"
APPS[flmsg]="http://www.w1hkj.com/flmsg-help"
APPS[... | true |
16a007ea0f810335e0666f92b385d117a6e3d3b1 | Shell | petronny/aur3-mirror | /uade-git/PKGBUILD | UTF-8 | 820 | 3.046875 | 3 | [] | no_license | # Author: Enverex <ben@xnode.org>
pkgname=uade-git
pkgver=20130205
pkgrel=1
pkgdesc="Unix Amiga Delitracker Emulator"
arch=('i686' 'x86_64')
url="http://zakalwe.fi/uade"
license=('GPL')
depends=('libao')
makedepends=('pkgconfig' 'git' 'bencode-tools-git')
conflict=('uade')
provides=('uade')
install=uade.install
_gitr... | true |
86b349ff69de034dbd411badc7247e220b5d0b6e | Shell | PexMor/tooldock | /loopForEver | UTF-8 | 226 | 3.265625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
PARAM=$1
echo "Param: $1"
if [ "x$PARAM" != "x" -a "x$PARAM" != "xparam1" ]; then
shift
/usr/local/bin/$PARAM $*
exit
fi
echo
echo "Welcome to the docker"
echo
while true; do
date
sleep 30
done
| true |
8af6e2ff28e12b815d0e05b49b359b3146e99089 | Shell | elenst/mariadb-toolbox | /git_template/hooks/post-commit | UTF-8 | 3,316 | 3.671875 | 4 | [] | no_license | #!/bin/sh
#
# Copyright (c) 2014 SkySQL Ab
#
# 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; version 2 of
# the License.
#
# This program is distributed in the hope that it will be useful,
# but... | true |
a841bf1a831ea1b7cd56c5cf4a236e8da1b18bb6 | Shell | dapeng-soa/cs-agent-client | /dist/agent.sh | UTF-8 | 9,584 | 3.703125 | 4 | [] | no_license | #!/bin/bash
# run in Unix
ip=$(ifconfig eth0 2>/dev/null|grep "inet "|awk '{print $2}')
if [ ! $ip ];then
ip=$(ifconfig eno1 2>/dev/null|grep "inet "|awk '{print $2}')
fi
if [ ! $ip ];then
ip=$(ifconfig en0 2>/dev/null|grep "inet "|awk '{print $2}')
fi
getServerInfoResp(){
if [ $# -lt 2 ];then
echo "inv... | true |
d4e857ae11e3db2e4024ec56ba409b410ece2aea | Shell | jcccookie/cs344 | /program1/calc | UTF-8 | 275 | 3.234375 | 3 | [] | no_license | #!/bin/bash
#a=5
#b=2
#c=1
##a=$(( 3 * ( $b + $c ) ))
##d=$(( 3 / $b ))
##echo $a
##echo $d
#
#
#
#result=$(( ($a + ($b/2)*( ($a>0)*2-1 )) / $b ))
#echo $result
a="a b c"
b="1 2 3"
for i in $a; do
for j in $b; do
[ "$i" -eq "$j" ] && continue
echo "$i + $j"
done
done
| true |
27e011e22fb6e2ec7817186463beaf0e745696d8 | Shell | zangwanshun/osquery-wazuh-response | /ip-customblock.sh | UTF-8 | 792 | 3.5625 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# Custom OSSEC block / Easily modifiable for custom responses (touch a file, insert to db, etc).
# Expect: srcip
# Copyright (C) 2015-2020, Wazuh Inc.
# Author: Daniel B. Cid
# Last modified: Feb 16, 2013
ACTION=$1
USER=$2
IP=$3
LOCAL=`dirname $0`;
cd $LOCAL
cd ../
PWD=`pwd`
# Logging the call
echo "`date... | true |
2b84792842be72453666ab38cab8a3d8c514a52c | Shell | sumanjs/suman | /dev-scripts/checkout-new-feature-branch.sh | UTF-8 | 318 | 2.75 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e;
git fetch origin
git checkout dev
git merge origin/dev
time_millis=$(node -e 'console.log(Date.now())');
NEW_FEATURE_BRANCH="feature_${USER}_${time_millis}"
git checkout -b "${NEW_FEATURE_BRANCH}"
git push -u origin HEAD # makes sure git is tracking this branch on the primary remote
| true |
93d9cdd74b862d2a4bd2c85749a6a1a17686eda0 | Shell | lumeng/repogit-mengapps | /file_system/warn-about-low-disk-space.sh | UTF-8 | 623 | 3.453125 | 3 | [] | no_license | #!/usr/bin/env bash
df -lg | grep -vE '^Filesystem' | grep -vE '/private/var/vm$' | awk '{print $9 " " $4 }' | while read RESULT;
do
DISK_SPACE=$(echo $RESULT | awk '{ print $2}' | cut -d'%' -f1 )
MOUNTING_PATH=$(echo $RESULT | awk '{ print $1 }' )
if [[ $DISK_SPACE -le 5 ]]; then
say "${DISK_SPACE}GB di... | true |
dd4a923c87e87783dd9503f22d70f3c2f67a687c | Shell | hidepin/elkb-training | /reindex.sh | UTF-8 | 883 | 2.75 | 3 | [] | no_license | #!/usr/bin/env bash
remote_host="192.168.0.xx"
dest_host="192.168.0.yy"
for index in `curl -XGET "http://${remote_host}:9200/_cat/indices?h=index&s=index"`
do
if [[ $index =~ "metric" ]]; then
curl -XPUT "http://${dest_host}:9200/${index}" -H 'Content-Type: application/json' -d'{
"settings": {
... | true |
ad70c31701063ab264ae81f0997291bb4737ec43 | Shell | HemilModi/Hemil_Modi | /Lab_3/Shell_script_7.sh | UTF-8 | 388 | 3.40625 | 3 | [] | no_license | count=1
while [ $count -eq 1 ]
do
echo "Enter a string related to january"
read a
case $a in
"Jan")
echo "January" ;;
"Janu")
echo "January" ;;
"Janua")
echo "January" ;;
"January")
echo "January" ;;
*)
echo "Can not understand" ;;
esac
echo " Do you want to continue [1/0] : "... | true |
828d64b3df44ef6014a47a5a7317de26741e26fb | Shell | aetherise/aetherise | /plot_signal3d.sh | UTF-8 | 994 | 3.359375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if [[ $# -eq 0 ]]; then
echo "$0 <filename> [title] [output-filename] [gnuplot-terminal]"
exit 1
fi
title=$2
if [ "$3" = "" ]; then
term="qt 0"
else
if [ "$4" = "" ]; then
# fontsize 8pt and width 16.9cm on a 96dpi display
# 10.67*72/96=8pt, 640/96*2.54=16.9cm
term="svg font 'Sans,8' size ... | true |
645ed70c337a91e73d60a36c8ea166c5fb468af2 | Shell | yejiayu/canary-release | /hack/make-rules/docker.sh | UTF-8 | 519 | 3.46875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Exit on error. Append "|| true" if you expect an error.
set -o errexit
# Do not allow use of undefined vars. Use ${VAR:-} to use an undefined VAR
set -o nounset
# Catch the error in case mysqldump fails (but gzip succeeds) in `mysqldump |gzip`
set -o pipefail
PRJ_ROOT=$(dirname "${BASH_SOURCE}")/../..
V... | true |
c32acd34446bf11ce9f1b66df4974d7317a0cd8e | Shell | gpetters94/unixmailtools | /src/bin/sudo_teardown.sh | UTF-8 | 955 | 3.578125 | 4 | [] | no_license | #!/bin/bash
################################################################################
# File: sudo_teardown.sh
# Path: /usr/lib/mailtools/bin
# Language: Bash
# Author: Nathaniel Lao (nlao@terpmail.umd.edu)
#
# Teardown script that runs when mailtools in uninstalled from the system.
# Undoes the actions of user_... | true |
3a70d2dbea397b7a74da90e88825b8500c2a8acf | Shell | ykitamura-mdsol/sumologic-lambda-extensions | /scripts/zip.sh | UTF-8 | 2,655 | 3.921875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash -x
# Assuming the zip.sh script is run from inside the scripts folder
# clean up of old target directories
cd ..
TARGET_DIR=target
if [ -d "$TARGET_DIR" ]; then
echo "removing old ${TARGET_DIR}"
rm -r ${TARGET_DIR};
fi
# Add GO packages to GOPATH. Not needed if you are using Go modules
# export GOPATH... | true |
082cb8af8d66aca2cbad872109919aa561337e24 | Shell | legato-project/FinalSoftwareStack | /Samples/matmul-cuda-opencl/configure.sh | UTF-8 | 3,023 | 3.53125 | 4 | [] | no_license | #!/bin/bash -ex
ROOTNAME=$(readlink -f $(dirname ${BASH_SOURCE[0]}))
if [ "X$1" == "X--pack" ];
then
pushd $ROOTNAME
git archive --format=tar.gz --output=ompss-ee.tar.gz --prefix=ompss-ee/ HEAD \
|| { echo >&2 "Option --pack requires git. Aborting"; exit 1; }
popd
exit 0
fi
if [ "X$1" == "X--wipe"... | true |
1f7c99d73de08f63bac1b48f1b5a89a2379f17ad | Shell | webee/rc | /scripts/mytmux.sh | UTF-8 | 403 | 3.40625 | 3 | [] | no_license | #!/bin/bash
if [ "$1" == '.' ];then
shift;
exec tmux $*
exit 0
fi
name=$1
n=$2
if [ "$name" == "" ];then
name="work"
fi
if tmux ls|grep -q "^$name";then
tmux attach-session -t $name
exit 0
fi
if [ "$n" == "" ];then
n=4
fi
tmux new-session -s $name -d
while [ $n -gt 1 ];do
tmux neww -... | true |
56454e5f831731342641ec31b42e901cea1c529f | Shell | ycc0804/test | /route-dns | UTF-8 | 40,516 | 3.140625 | 3 | [] | no_license | #!/bin/bash
# 用于在长宽8台dns上添加到ICP DNS服务器的路由
# When you add a DNS server, these need to be added:
# IP_dns?=
# GW_dns?=
# get_my_ip() - add a match variable
# 'case `get_my_ip` in' part.
LOG=`realpath $0`.log
MANUAL_MODE=1
NXIP="127.126.125.124
124.14.10.117
124.14.8.196
"
case ${HOSTNAME} in
dns[7]) NIC="eno1";;
dns[4... | true |
801fbf2269952e2965b37002fe04ea285a42f3c8 | Shell | byteorgshiva/scripts | /update-kindle-work-first.sh | UTF-8 | 552 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#FROM=/cygdrive/c/cygwin64/home/RKurr/BitTorrentSync/Todd/mobi/
#FROM=/cygdrive/i/BitTorrenSync/Todd/mobi/
#FROM=/cygdrive/i/BitTorrenSync/Todd\ Books/Apps/
FROM=/cygdrive/d/BitTorrent\ Sync/Apps/
TO=/cygdrive/e/documents/transparent-language
CMD="rsync --verbose --recursive --checksum --delete --prune-em... | true |
0aee24eec4d6fe5c56c9c7d43a3a89711f406036 | Shell | 6donote4/debian-scripts | /OTHER/pxec.sh | UTF-8 | 4,540 | 3.6875 | 4 | [] | no_license | #!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
#========================================
# Linux Distribution: Manjaro/Debian 8+/
# Author: 6donote4 <mailto:do_note@hotmail.com>
# Dscription: Config pxe server for openwrt.
# Version: 0.0.1
# Blog: https://www.d... | true |
99c835e8918f5d9693b1cd9c3294724f10e1c8d5 | Shell | near-feign/pcapdb | /core/runserver | UTF-8 | 242 | 3.28125 | 3 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | #!/bin/sh
HTTP_PORT=$(grep ^http_port ../etc/pcapdb.cfg | awk -F= '{{ print $2 }}' | tr -d '[[:space:]]')
if [ -z "${HTTP_PORT}" ]; then
URI=$(hostname)
else
URI=$(hostname):${HTTP_PORT}
fi
../bin/python manage.py runserver ${URI}
| true |
ec0ed5a8aa32d1d1e00b64834ea0135d069e352e | Shell | vaibhav016/FILRCN | /scripts/create_transcripts_from_data.sh | UTF-8 | 1,429 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
echo "This will create transcripts for you, Kindly change the datapaths accordingly"
INPUT_DIR_1="Datasets/train-clean-100/LibriSpeech/train-clean-100"
OUTPUT_FILE="Datasets/train-clean-100/LibriSpeech/transcripts.tsv"
python3 create_librispeech_trans.py -d $INPUT_DIR_1 $OUTPUT_FILE
INPUT_DIR_1="Datasets/de... | true |
89ad49821175b9b86088eaafe6e092504a70d319 | Shell | mmalter/widukind-docker | /redis-docker/docker-entrypoint.sh | UTF-8 | 304 | 2.703125 | 3 | [] | no_license | #!/bin/bash
set -e
sysctl -w net.core.somaxconn=65535
sysctl -w vm.overcommit_memory=1
[ -f /sys/kernel/mm/transparent_hugepage/enabled ] && echo never > /sys/kernel/mm/transparent_hugepage/enabled
if [ "$1" = 'redis-server' ]; then
chown -R redis .
exec gosu redis "$@"
fi
exec "$@"
| true |
c177229d96bf647554cfd247a20d20f3b9d2ae55 | Shell | kukrimate/toolchain | /src/prepare | UTF-8 | 866 | 4.15625 | 4 | [
"ISC"
] | permissive | #!/bin/sh
# Exit on error
set -e
# download and check a file
download_file() {
FILE=`basename $1`
if [ ! -f $FILE ]; then
curl -L $1 > $FILE
else
echo "$FILE already exists"
fi
if [ x"$2" != x`sha256sum $FILE | cut -d ' ' -f 1` ]; then
echo "SHA256 mismatch for $FILE" >&2
exit 1
fi
}
# check if clean... | true |
23172345c6df02c86783dd587741cbb215785357 | Shell | kuedan/Debian-Live-config | /webconverger/config/includes.chroot/etc/init.d/webconverger | UTF-8 | 3,167 | 3.75 | 4 | [
"MIT"
] | permissive | #!/bin/bash
### BEGIN INIT INFO
# Provides: webconverger
# Required-Start: $local_fs $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Webconverger Live environment setup
### END INIT INFO
# PATH should only include /usr/* if it runs after the mountnf... | true |
4d5f52758a665f8f700fbaa38aeaa34bb5c983ba | Shell | davidandreoletti/dotfiles | /install/utils/debug.sh | UTF-8 | 309 | 2.953125 | 3 | [] | no_license | ###############################################################################
# Debug related functions
###############################################################################
is_debug_on() {
env | grep -q "^DEBUG=";
return $?
}
is_debug_off() {
is_debug_on && return 1
return 0
}
| true |
e6da0b4a685e0c70f1d868eaec94e8f3e6b5258e | Shell | dhabyx/slackbuilds | /newPackage.sh | UTF-8 | 2,803 | 3.78125 | 4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/bash
# Script helper for make slackbuild directory structure
# Copyright 2015 Dhaby Xiloj <slack.dhabyx@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script... | true |
059e67bb685d39f0338ebd29238698c7e290356d | Shell | ssoudan/pyGP | /BUILD.sh | UTF-8 | 451 | 3.671875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
function build() {
cmd=$1
c=${cmd/_}
container=${c/.py/}
if [ ! -e "src/main/python/$cmd" ]; then
echo "[E] invalid command: $cmd"
exit 1
fi
docker build --build-arg cmd=${cmd} -t pygp-${container} .
}
#
# main-like
#
cmd=${1:-all}
if [ "all" != "$cmd" ];
then
... | true |
4b42ed932299393a660db6650bd13ddb949405d8 | Shell | erbth/tslegacy | /ncurses/install_split.sh | UTF-8 | 1,288 | 3.65625 | 4 | [] | no_license | #!/bin/bash
set -e
function install_licensing_info
{
install -dm755 $1/usr/share/doc/$2
cp ${BUILD_DIR}/${SRC_DIR}/COPYING $1/usr/share/doc/$2
}
# Clean the packaging target
declare -a PKG_DIRS
for DIR in ${PACKAGING_LOCATION}/{ncurses,ncurses-${ncurses_ABI},ncurses-dev}/${DESTDIR}
do
PKG_DIRS+=($DIR)
... | true |
5c140d92a927d98500ca20e8bad25c5cf2d280c7 | Shell | bsrushti/bin_files | /find.sh | UTF-8 | 130 | 2.984375 | 3 | [] | no_license | #! /bin/bash
keyWord=$1;
grep $keyWord -r * > filePaths
path=`cat filePaths | cut -d':' -f1 | sort -u `
echo $path | tr ' ' '\n'
| true |
f20d394578cce61df8c282070340ad13fd984af0 | Shell | ox3e223c/toolkit | /screen/hyperpixel4/etc/rc.local | UTF-8 | 1,481 | 3.734375 | 4 | [] | 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 |
250385a7dc126992ab7ba5f9fffe11b27d702051 | Shell | sbobovyc/ARMA | /server/arma3serverscript | UTF-8 | 3,038 | 3.703125 | 4 | [] | no_license | #!/bin/bash
#=======================================================================
#======== CONFIGURATION PARAMETERS ========
#======== MUST BE EDITED MANUALLY TO FIT YOUR SYSTEM PARAMETERS ========
#=======================================================================
ARMA_DIR=/medi... | true |
94a4cb66521253defb3999f330f5c8834a5b023b | Shell | Chadi7781/pinned-git | /bin/pin-existing-git | UTF-8 | 1,046 | 3.6875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Usage: pin-existing-git */.git
GIT=/usr/bin/git
SELF=$(dirname "$(readlink -f -- "$0")")
SHARE=$(readlink -f -- "$SELF/../share/pinned-git")
set-pin() {
local git_dir=$1
local cert_name=$2
shift
shift
echo "Pinning $git_dir -> $cert_name"
"$GIT" "--git-dir=$git_dir" config http.sslcapath "$... | true |
fcbb98175344debb557bbfda22c92fdb8d3bafe8 | Shell | dune-universe/dune-universe | /packages/ocamlformat.0.19.0/tools/build-mingw64.sh | UTF-8 | 897 | 3.40625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Script to build `ocamlformat' under Windows, using the `mingw64' toolchain.
# All it requires is a standard Cygwin installation with the `mingw64'
# toolchain.
set -euo pipefail
opam_url=https://github.com/fdopen/opam-repository-mingw/releases/download/0.0.0.2/opam64.tar.xz
opam_archive=$(basename ${op... | true |
e284b9859d50a3b0b95b2841ca745419736a1848 | Shell | vmi/InstallCert | /stub.sh | UTF-8 | 244 | 2.953125 | 3 | [] | no_license | #!/bin/sh
self=`which "$0" 2>/dev/null`
test $? != 0 -a -f "$0" && self="./$0"
test "$OSTYPE" = cygwin && self="$(cygpath -am "$self")"
java=java
test -n "$JAVA_HOME" && java="$JAVA_HOME/bin/java"
exec "$java" $JAVA_OPTS -jar $self "$@"
exit 1
| true |
6e8a0acfce33adceb42059b40f4cc12316a8c016 | Shell | ulimartinez/dotfiles | /polybar/scripts/polybar.sh | UTF-8 | 236 | 2.65625 | 3 | [] | no_license | #!/bin/bash
killall -q polybar
# Wait until the processes have been shut down
while pgrep -x polybar >/dev/null; do sleep 1; done
for i in $(polybar -m | awk -F: '{print $1}'); do MONITOR=$i polybar custom -c ~/.polybar/config & done
| true |
b5e51533dfbd0fb2e122cc7da8371280da6ed2f4 | Shell | legends-ai/legends.ai-ts | /scripts/update_geodata.sh | UTF-8 | 272 | 3.375 | 3 | [] | no_license | #!/usr/bin/env bash
ROOT=$(dirname $0)/..
GEODATA=$ROOT/geodata/
if [ ! -d $GEODATA ]; then
tar xzvf <(curl http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz) -C $ROOT && \
mv GeoLite* $GEODATA
else
echo "Geodata already downloaded."
fi
| true |
3810d460ce5a179236870ae2ce5ae0a31028c3ac | Shell | riddick5g/Bash | /flog | UTF-8 | 594 | 2.75 | 3 | [] | no_license | #!/bin/bash
#Christopher Rogers
#Lab 3
header='<html>
<body>
<h1> Failed Login Attempts Report as of'
footer='</html>
</body>'
endhead='</h1>'
echo $header >> ~/public_html/flog.html
date '+%A, %B, %d, %Y' >> ~/public_html/flog.html
echo $endhead >> ~/public_html/flog.html
awk '{ print $6 " " $7 " " $8 " " $9 " " $... | true |
b39c697c3eaa902bdde569602372f2088b78a9ff | Shell | segfaultsoftware/ordial | /pair | UTF-8 | 169 | 2.703125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
toggle=$(($RANDOM % 2))
if [[ $toggle -eq 0 ]]; then
GIT_DUET_AUTHORS_FILE=./.pairs git-duet ao ss
else
GIT_DUET_AUTHORS_FILE=./.pairs git-duet ss ao
fi
| true |
14ddb5401a0e39a465e7aa5e4abebbf306c7c42e | Shell | kevinpark1217/CSAW-CTF-Quals-2020 | /webRTC/turner-master/try.sh | UTF-8 | 190 | 2.609375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
for i in $(seq 2 255); do
./turner -server web.chal.csaw.io:3478 2>&1 | grep channel &
A=$!
sleep 0.25
proxychains curl 172.17.0.$i:5000
kill $A &>/dev/null
sleep 0.25
done
| true |
942e8b7ada665a1a7543095390b2c7b74e201cc1 | Shell | stolati/slant_online | /bin/copy-prod-db.bash | UTF-8 | 422 | 3.515625 | 4 | [] | no_license | #!/usr/bin/env bash
set -eux -o pipefail
script_path="$(cd "$(dirname "$0")" ; pwd)"
# Required env variables
EC2_HOST="${EC2_HOST:-slant_aws}"
DB_PATH="$script_path/../db"
TIMESTAMP="$(date +%Y%m%d_%H%M%S)"
destination="$DB_PATH/db.json"
destination_save="$DB_PATH/save/db.prod.$TIMESTAMP.json"
# Copy to current d... | true |
3d1a09f249228367349bbd8bbc73446fd9ab2ce0 | Shell | clearos/app-firewall-custom | /deploy/upgrade | UTF-8 | 1,249 | 3.4375 | 3 | [] | no_license | #!/bin/sh
configlet="/etc/clearos/firewall.d/custom"
# Replace instances of [/usr/sbin/]iptables with $IPTABLES constant
#------------------------------------------------------------------
sed -i -e 's/\/usr\/sbin\/iptables/$IPTABLES/' $configlet
sed -i -e 's/iptables/$IPTABLES/' $configlet
# Modify fw script to ha... | true |
58fa73118a44eb91cce2f28951852b6e2fac4f3f | Shell | devkitPro/pacman-packages | /switch/curl/PKGBUILD | UTF-8 | 1,378 | 2.515625 | 3 | [] | no_license |
# Maintainer: WinterMute <davem@devkitpro.org>
pkgname=switch-curl
pkgver=7.69.1
pkgrel=5
pkgdesc='An URL retrieval utility and library'
arch=('any')
url='http://www.zlib.net/'
license=('zlib')
options=(!strip libtool staticlibs)
depends=('switch-zlib' 'libnx')
makedepends=('switch-pkg-config' 'dkp-toolchain-vars')
so... | true |
33890d0f22e8601aa8d9937434466ea07210a1c8 | Shell | respeecher/benchmarks | /run_suite.sh | UTF-8 | 2,092 | 3.515625 | 4 | [] | no_license | #!/bin/bash
matmul () {
SIZE=$1
ITER=$2
echo -e "\n\nmatmul@${SIZE}:" | tee -a $LOGFILE
python super_burner.py --framework pytorch \
--task matmul \
--matrix-size $SIZE \
--iterations $ITER | tee -a $LOGFILE
}
rnn () {
... | true |
547944229c237397967bdc4fe13cb5afd590a1ec | Shell | apache/bookkeeper | /bookkeeper-server/src/test/resources/networkmappingscript.sh | UTF-8 | 1,437 | 2.796875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
#
#/**
# * Copyright 2016 The Apache Software Foundation
# *
# * Licensed to the Apache Software Foundation (ASF) under one
# * or more contributor license agreements. See the NOTICE file
# * distributed with this work for additional information
# * regarding copyright ownership. The ASF licenses ... | true |
d89158c847cbe6189a48ce5a04a9885ee4b35a08 | Shell | todo-assert/rootfs | /V3s/v3s_rootfs_other/etc/init.d/rcS | UTF-8 | 1,357 | 3.125 | 3 | [] | no_license | #!/bin/sh
export ZLIB_LIBS=/usr/local/dfb_suports/zlib/lib
export LIBPNG_LIBS=/usr/local/dfb_suports/libpng/lib
export LIBPNG_CFLAGS=/usr/local/dfb_suports/libpng/include
export LIBJPEG=/usr/local/dfb_suports/libjpeg/lib
export LIBJPEG_CFLAGS=/usr/local/dfb_suports/libjpeg/include
export FREETYPE_LIBS=/usr/local/dfb_... | true |
5451db4217f8cc972707e1d1510510181ea9d8cc | Shell | openlibraryenvironment/mod-rs | /okapi-scripts/canRequest.sh | UTF-8 | 782 | 2.875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Set where this directory lives in relation to where it is being run from
SCRIPT_DIRECTORY=`dirname "$0"`
#echo Script directory: ${SCRIPT_DIRECTORY}
# setOkapiUrl sets the variable OKAPI_URL
. ${SCRIPT_DIRECTORY}/setOkapiUrl
#echo OKAPI URL: ${OKAPI_URL}
# Get hold of an auth token
AUTH_TOKEN=`${SCRIPT... | true |
0fcf5be5d6bdc699a81fa0e8c04b19e2b026301b | Shell | atweiden/voidpkgs | /srcpkgs/tor/template | UTF-8 | 1,594 | 2.59375 | 3 | [
"Unlicense",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain"
] | permissive | maintainer="nox"
pkgname="tor"
version=0.4.7.14
revision=1
short_desc="Anonymizing overlay network"
depends+=" ca-certificates"
depends+=" torsocks"
makedepends+=" libcap-devel"
makedepends+=" libevent-devel"
makedepends+=" liblzma-devel"
makedepends+=" libscrypt-devel"
makedepends+=" libseccomp-devel"
makedepends+=" l... | true |
16597cdb7ec5da4833e125224e77149bd3a1b7a1 | Shell | mathewHatch/Scripts | /Dictionary.bash | UTF-8 | 180 | 2.890625 | 3 | [] | no_license | #!/bin/bash
RUN=$(exec ps au | grep -v "grep" | grep sdcv)
SDCV=$(exec pidof sdcv)
if [ -z $RUN ]
then
exec urxvt -title Dictionary_Drop_Down -e sdcv --color
else
kill $SDCV
fi
| true |
2b1d28a639c572ab759edfd6ae63ce5209e6940d | Shell | SkyN9ne/routopsy | /playground/FHRP/vulnerable_vrrp_network.sh | UTF-8 | 618 | 3.453125 | 3 | [] | no_license | #!/bin/bash
if [[ -z "$1" ]]; then
echo "Specify 'up' to create docker network and vrrp containers or"
echo "Specify 'down' to delete docker network and vrrp containers"
exit 1
fi
case $1 in
up)
docker-compose -f vulnerable_vrrp_network.yml up -d
docker exec -it vrrp_master iptables -t nat -A POSTROUTING -o e... | true |
815f2711a338e46e5336a6789d53f2739f06de26 | Shell | MeterianHQ/meterian-github-action | /delete-release-from-github.sh | UTF-8 | 1,538 | 3.53125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
set -u
set -o pipefail
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
TARGET_REPO="MeterianHQ/meterian-github-action"
RELEASE_VERSION="$(cat ${CURRENT_DIR}/version.txt)"
TAG_NAME="v$(cat ${CURRENT_DIR}/version.txt)"
if [[ -z ${METERIAN_GITHUB_TOKEN} ]]; then
echo "METERIAN_GITH... | true |
a46c9b68712ff8675b82572aabfb88fecd1f78a2 | Shell | mc-b/bigdata | /spark/spark | UTF-8 | 317 | 3.25 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Startet den Docker Container und dann das CLI
#
export CONTAINER=spark01
export IMAGE=spark
export CMD=bash
b=`docker ps -a -q --filter "name=${CONTAINER}"`
if [ "${b}" != "" ]
then
docker stop ${b}
docker rm ${b}
fi
docker run -it --net=host --name ${CONTAINER} --entrypoint ${CMD} ${IMAGE}
| true |
4511e5b0d910757b8c2400f90f156e4b6507101c | Shell | tankhuu/pipelines-as-code | /jenkins/scripts/bash/copy_db_site2site(1).sh | UTF-8 | 6,035 | 3.28125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
src_db=$1
src_dbpw=$2
dst_db=$3
dst_dbpw=$4
bk_date=$5
db_name="Athena"
user="edulog"
schema=""
bk_file=${db_name}.${bk_date}.bak
export PGPASSWORD=$src_dbpw;
pg_dump -U postgres -h $src_db ${db_name} > $bk_file
if [ $? -gt 0 ]; then
exit 1
echo $bk_file
fi
echo $dst_db
echo $dst_dbpw
export PG... | true |
0451e7448779a9204e2e2d98d30e4e5ec70eecf3 | Shell | mehidou/INEUCE | /vagrant/shell/install-site.sh | UTF-8 | 245 | 3.078125 | 3 | [] | no_license | #!/bin/bash
export DRUSH_PHP="/usr/bin/php"
export PATH=$PATH:/vagrant/bin
if [[ ! -d /vagrant/www ]]; then
echo "Installing site ..."
cd /vagrant
phing build
echo "Site installed."
else
echo "Site already installed."
fi
| true |
528cb53a0e5629c1e5e9f2cbbe30527eaecc3b59 | Shell | hewei1983/fabric-chaincode-evm | /scripts/check_docker_deps.sh | UTF-8 | 629 | 2.5625 | 3 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | #!/bin/bash
#
# Copyright IBM Corp All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
#
docker inspect hyperledger/fabric-buildenv:latest &>/dev/null
if [ '$?' == '1' ]; then
# TODO: use below once fabric-buildenv images published
# docker pull hyperledger/fabric-buildenv:latest
echo "ERROR: hyperledger/f... | true |
d2b4dc09ca63527b75e55f9c14f8aefcdf63f0e2 | Shell | matthewbednarski/work-dotfiles | /sync-java-env | UTF-8 | 715 | 3.640625 | 4 | [] | no_license | #!/bin/bash
declare -a dirs
declare -a dist
i=0
for x in ~/java/*/*-[0-9]*
do
dir=${x%\/*}
has_dir=0
j=0
for d in ${dirs[*]}
do
if [[ "$d" == "$dir" ]]; then
has_dir=1
echo has dir
if [[ ${dist[$j]} > $x ]]; then
echo "${dist[$j]} > $x"
fi
if [[ ${dist[$j]} < $x ]]; then
echo "${dist[$j]... | true |
02281b13503cf20a616f29d1a5f4684192612230 | Shell | illicitonion/binaries | /build-yarnpkg.sh | UTF-8 | 1,051 | 3.609375 | 4 | [] | no_license | #!/bin/bash -exuo pipefail
VERSION=${1:-"v1.2.0"}
CURRENT_MAC_VERSION="10.12"
ADDITIONAL_MAC_VERSIONS=(
10.6
10.7
10.8
10.9
10.10
10.11
)
ARCH_DIRECTORIES=(
linux/x86_64
mac/${CURRENT_MAC_VERSION}
)
wget https://github.com/yarnpkg/yarn/releases/download/${VERSION}/yarn-${VERSION}.tar.gz
mv yarn-${... | true |
472281f58a53398877ee86d5bdcfa9461764c56a | Shell | letees/Letees | /Raspberry Pi/piCAST/server.sh | UTF-8 | 1,266 | 3.6875 | 4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/sh
############################################
# PiCAST Server/Listener
# ------------------------------------------
# Setup: chmod +x server.sh
# Start Command: sh /server.sh
############################################
########### Start PiCAST Networking ###########
# Pi IP/Port (Optional)
address="127.0.0.1... | true |
b29f3723ac25d16f3b34c0f3db645f39387bec60 | Shell | vert-x3/vertx-mysql-postgresql-client | /vertx-mysql-postgresql-client-scala/src/test/resources/docker/start-postgres-ssl.sh | UTF-8 | 543 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
export POSTGRES_DB=testdb
export POSTGRES_USER=vertx
export POSTGRES_PASSWORD=password
docker run -d \
-e POSTGRES_USER \
-e POSTGRES_PASSWORD \
-e POSTGRES_DB \
--name "some-postgres-ssl" \
-v $(pwd)/src/test/resources/ssl-docker/server.crt:/docker-entrypoint-initdb.d/server.crt \
... | true |
556020afffd46d42b2dd44299fc66668614de7f6 | Shell | takshingchan/citm | /similarity/experiment-1 | UTF-8 | 676 | 3.234375 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
#
# experiment-1
#
# This shell script calculates the distance between all 26 Bach
# motives and the two prototypes in Cambouropoulos (2001).
#
# Copyright (C) 2006 Tak-Shing Chan
#
# Running the experiment
mkdir -p results/cambouropoulos
for i in dist1 dist2 dist3; do
rm -f results/cambouropoulos/... | true |
799a4ebcdf37ad911df2fd816f31b23be0fc02c0 | Shell | johnraff/google-translate | /devscripts/bump_version.sh | UTF-8 | 844 | 4.21875 | 4 | [
"Unlicense"
] | permissive | #!/bin/bash
# Script to bump the version and update the README.md & docs/*
# Last-Revision: 2016-12-09
#
# Usage: ./bump_version.sh <new-version>
FILES=`cat <<EOF
google_translate/version.py
README.md
docs/intro.rst
docs/conf.py
EOF`
function update_version {
echo "Updating file: $3"
sed -i "s/$1/$2/g" $3
}... | true |
a48ffb8e3fc7aac216459ded53b70e1c2c53c1d4 | Shell | sebaofshanxi/MathEquInspect | /etc/mathinspect_svc.sh | UTF-8 | 1,477 | 3.765625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
echo "Service [$APP_NAME] - [$1]"
export APP_HOME=/opt/mathinspect
export APP_NAME=mathinspect
export APP_PORT=9001
echo " JAVA_HOME=$JAVA_HOME"
echo " APP_HOME=$APP_HOME"
echo " APP_NAME=$APP_NAME"
echo " APP_PORT=$APP_PORT"
function start {
if pkill -0 -f $APP_NAME.war > /dev/null 2>&1... | true |
2bcc016189a36ab3c7e00ff07d77c1b486abc432 | Shell | petronny/aur3-mirror | /otf-dejavusansmono-powerline-git/PKGBUILD | UTF-8 | 1,094 | 3.140625 | 3 | [] | no_license | # Maintainer: Thomas Ruoff <tomru@ido.cassiopeia.uberspace.de>
pkgname=otf-dejavusansmono-powerline-git
pkgver=20130413
pkgrel=1
pkgdesc="Pre-patched and adjusted version for usage with the new Powerline plugin"
arch=('any')
url='https://github.com/Lokaltog/powerline-fonts/tree/master/DejaVuSansMono'
license=('unknown... | true |
e55e6b24e71ec6df4139834796dbbd18f30ab836 | Shell | jhhwang4195/zinst_making_tool | /package_listup | UTF-8 | 2,450 | 3.4375 | 3 | [] | no_license | #!/bin/bash
BaseRoot=`cat /usr/bin/zinst |grep "^ZinstBaseRoot=" | awk -F'=' '{print $2}' | sed -s 's/"//g'`
DistDir=$BaseRoot/dist
cd $DistDir
List=`ls -l |egrep "\.zinst" |awk '{print $9}'`
Listup=`echo $List`
ListupNum=`echo $Listup | awk '{print NF}'`
echo "======================================================"... | true |
cd5f07816f96b81162b34259f8d11d5dc41c1109 | Shell | wilke/M5nr-deprecated | /ReleaseTools/mkworkdir | UTF-8 | 3,171 | 3.9375 | 4 | [] | no_license | #!/bin/sh
########################################################################
# mkworkdir
#
# Makes a work area in which to check out packages, build, test, etc.
# This simply makes a directory, copies a top-level makefile into it from
# the release, and installs a set of directories and a config file assumbed
# ... | true |
d42e51734c3d05acef999a7feefdb80ea578ad64 | Shell | youm59/dotfiles | /post-kaos-install.sh | UTF-8 | 1,202 | 3.484375 | 3 | [] | no_license | #!/bin/bash
# Small personnal script to run just after kaos install
# VARIABLES
Savef=mermouy.dot
Sext=tar.bz2
Source=/media/Remise/save
Wkdir=/tmp
# Gist files to retrieve
Pkgbproto=https://gist.githubusercontent.com/kaos-addict/0a8b0f46713a9dadd4c2/raw/f0a1afb05d7f7a53889bb3847c0f860f1035318a/kaos-pkgbuild-commente... | true |
2264139b1a74163b8980f3f62f248acb25f31361 | Shell | sosokill59/Spoofer | /spoofer.sh | UTF-8 | 2,991 | 3.609375 | 4 | [] | no_license | #!/bin/bash
function liste() {
sudo arp-scan --interface=$interface --localnet > listeip.txt
nb=$(grep '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' listeip.txt | grep -v $(route -n | tail +3 | head -n1 | awk '{print $2 }') | grep -v $(hostname -I | cut -d " " -f 1) | wc -l )
echo "$nb Machines dans le rése... | true |
f3a0741d50a7674919f27a0d18f9da6e0183d764 | Shell | jandado/hass-smartbox | /scripts/pre-commit-check.sh | UTF-8 | 824 | 3.109375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env zsh
function manifest_version() {
sed -n -e 's/^.*"version": "\([0-9\.]\+\)".*$/\1/p' custom_components/smartbox/manifest.json
}
function changelog_version() {
sed -n -e 's/^.*## \([0-9\.]\+\).*$/\1/p' CHANGELOG.md | head -1
}
function manifest_smartbox_version() {
sed -n -e 's/^.*\(smartb... | true |
5280766f96e40a2ed77dadd4d1bb78da149df1b9 | Shell | rynge/ariella | /jetstream/salt/htcondor/master_shutdown_script.sh | UTF-8 | 317 | 3.09375 | 3 | [] | no_license | #!/bin/bash
# ignore shutdown in the beginning of the uptime - let's the system settle down
UPTIME=`cat /proc/uptime | sed 's/[\. ].*//'`
if [ $UPTIME -lt 1800 ]; then
exit 0
fi
if [ -e /tmp/do-not-shutdown ]; then
exit 0
fi
logger "Shutting down node due to lack of work!"
/sbin/shutdown -h now
exit 0
| true |
6945d3b6f895c58cb6e41f70863dad67389ae48f | Shell | Cloudxtreme/dotfiles-26 | /scripts/backup.sh | UTF-8 | 7,106 | 3.625 | 4 | [
"Unlicense"
] | permissive | #!/bin/sh
mountables=(
"/mnt/vortex"
"/mnt/raidstorage"
"/mnt/xfsmedia"
)
backup_source_dirs=(
"/home/panther/docs"
"/home/panther/docs"
"/home/panther/media/pictures"
"/home/panther/media/pictures"
"/mnt/raidstorage/media/audio"
"/mnt/raidstorage/media/video"
"/mnt/ssdstorage/m... | true |
98850ccf6738791af8f2f7eab1e82b6c1001717c | Shell | gregoryjjb/cs160 | /install.sh | UTF-8 | 2,343 | 3.34375 | 3 | [] | no_license | # start from inside cs160 folder.
# Will add a directory at the same level as the cs160 folder for OpenFace
cd ..
# Exit script if any command fails
set -e
set -o pipefail
if [ $# -ne 0 ]
then
echo "Usage: install.sh"
exit 1
fi
# install FFMPEG
sudo apt-get -y install ffmpeg
# Install OpenFace and all ... | true |
d93a98c0a1a29c1763f0de788c7c658a7977d4f2 | Shell | pseudoPixels/SciWorCS | /app_collaborative_sci_workflow/GalaxyToolBase/phenotype_association/lps_tool_wrapper.sh | UTF-8 | 1,142 | 2.96875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# script for execution of deployed applications
#
# Sets up the MCR environment for the current $ARCH and executes
# the specified command.
#
export PATH=$PATH:$(dirname $0)
MCRROOT=${MCRROOT:-/galaxy/software/linux2.6-x86_64/bin/MCR-7.11/v711}
MWE_ARCH=glnxa64
if [ "$MWE_ARCH" = "sol64" ] ; the... | true |
7de8549932dc0dcd9949c394183fdd895c7152d5 | Shell | DaemonDave/CFront-3.0.3.1 | /bat/00-CLEAN.sh | UTF-8 | 859 | 2.515625 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/bash
rm LOG.0? 2> /dev/null
rm cfront cfront.old munch munch.old libC.a libC.a.old 2> /dev/null
[ -L incl ] && rm incl
make -C src clean 2> /dev/null
make -C scratch clean 2> /dev/null
rm lib/mk/*.o lib/mk/*..c 2> /dev/null
rm lib/complex/mk/*.o lib/complex/mk/*.a lib/complex/mk/*..c 2> /dev/null
D=demo/hell... | true |
d1e3f5a9db8e61195753b6558eab5c130c7ff132 | Shell | allan-zhou/shelldemo | /docker/rm-container.sh | UTF-8 | 574 | 3.9375 | 4 | [] | no_license | #! /bin/bash
# 删除所有的docker container
COUNT=0
function rmContainers(){
CONTAINER_IDS=$(docker ps -aq)
echo
if [ -z "$CONTAINER_IDS" -o "$CONTAINER_IDS" = " " ]; then
echo "========== No containers available for deletion =========="
else
for container_id in $CONTAINER_IDS
... | true |
82282f321fde25ad123c3b73ad9330b6d294ff92 | Shell | techiaith/docker-marytts | /voicebuilder/egs/lleisiwr/build.sh | UTF-8 | 485 | 2.953125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
CWD_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
while getopts u: flag
do
case "${flag}" in
u) userid=${OPTARG};;
esac
done
${MARYTTS_HOME}/target/marytts-${MARYTTS_VERSION}/bin/marytts-server &
rm -rf /voices/${userid}_cy
mkdir -p /voices/${userid}_cy/data
cp ... | true |
2a398a838b8728711723d49fe17a5228e64d377a | Shell | syncthing/website | /build.sh | UTF-8 | 418 | 2.984375 | 3 | [] | no_license | #!/bin/bash
set -euo pipefail
mkdir -p functions
pushd functions-src
for d in * ; do
pushd "$d"
go build -o "../../functions/$d"
popd
done
popd
pushd script
go run . > ../themes/default/layouts/partials/github-sponsors.html
popd
rel=$(curl -s https://api.github.com/repos/syncthing/syncthing/releases/latest \
| g... | true |
1ada9c994c86b7566c61eb5ceb64a685fc1bc7d0 | Shell | mrdnewman/bash | /lck_SysAccts.sh | UTF-8 | 392 | 3.109375 | 3 | [] | no_license | #!/usr/bin/env bash
# -- Lock down system accounts ...
# -- lksysacct.sh
SCRIPT_NAME=`basename $0`;
for user in `awk -F: '($3 < 500) {print $1 }' /etc/passwd`; do
if [ $user != "root" ]; then
/usr/sbin/usermod -L $user
fi
if [ $user != "sync" ] && [ $user != "shutdown" ] && [ $user != "h... | true |
f12f45dc8209127407937846b44ef7c432872c32 | Shell | dmlb2000/torque-cookbook | /test.sh | UTF-8 | 715 | 2.53125 | 3 | [] | no_license | #!/bin/bash -x
DIST=${1:-centos-72}
berks install
rm -rf test/integration/playground/cookbooks/*
berks vendor test/integration/playground/cookbooks
pushd test/integration/playground
knife upload --server-url http://192.168.121.1:8889 cookbooks data_bags environments roles
popd
for i in 0 1 ; do
echo "sudo chef-cl... | true |
3b7647044078cdcf96c47c21b688cf064b06e536 | Shell | ii-lo/pelp | /install-ruby.sh | UTF-8 | 227 | 2.84375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
source /home/vagrant/.rvm/scripts/rvm # changed, used to be /usr/local/rvm/scripts/rvm
rvm use --default --install $1 # changed, used to not set --default
shift
if (( $# ))
then gem install $@
fi
| true |
4e7eaca030f4a43a77b336007d94f2a26965a48c | Shell | gman999/bitrig-ports | /net/smokeping/pkg/smokeping_fcgi.rc | UTF-8 | 406 | 2.546875 | 3 | [] | no_license | #!/bin/sh
#
# $OpenBSD: smokeping_fcgi.rc,v 1.1 2014/11/05 15:42:09 sthen Exp $
daemon="${TRUEPREFIX}/bin/smokeping_cgi"
daemon_flags="${SYSCONFDIR}/config"
. /etc/rc.d/rc.subr
pexp="/usr/bin/perl ${daemon}${daemon_flags:+ ${daemon_flags}}"
rc_reload=NO
rc_start() {
${LOCALBASE}/bin/spawn-fcgi -s /var/www/run/smok... | true |
94d73c27e5e0296be6e2dfdd5f80450a7e797544 | Shell | hanwei7788/LM-auto | /automatedtesting/linkmotion-dev-tools/hardware-setup/write_usb_image.sh | UTF-8 | 1,123 | 3.90625 | 4 | [] | no_license | #!/bin/bash
# params:
# - image file <for example imx6-nightly-20150514-0112.ext4fs.xz>
# - usb device <for example /dev/sdc>
IMAGE_FILE=$1
USB_DEVICE=$2
if [ ! -f "$IMAGE_FILE" ]; then
echo "Image file $IMAGE_FILE doesn't exist!"
exit 1
fi
if [ ! -b "$USB_DEVICE" ]; then
echo "Device file $USB_DEVICE d... | true |
4c0a94ce63bfd5fe0ba2366e7b29ce80dceb2479 | Shell | dhinilkv956/Libelium | /waspmote/Lorawan/soil_monitor data extraction | UTF-8 | 2,016 | 2.59375 | 3 | [] | no_license | #!/bin/bash
tail -n 10 /tmp/dhinil | grep '"deveui":"30-52-bc-32-c8-91-3e-88"' | tail -n 1 > /tmp/30-52-bc-32-c8-91-3e-88_new.txt
diff /tmp/30-52-bc-32-c8-91-3e-88_new.txt /tmp/30-52-bc-32-c8-91-3e-88.txt
result=`echo $?`
cp /tmp/30-52-bc-32-c8-91-3e-88_new.txt /tmp/30-52-bc-32-c8-91-3e-88.txt
data64=`tail -n 1 /tmp... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.