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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
d3b60702b5451c522877fabbff7c68ad7a8acf06 | Shell | suckowbiz/fuel | /fuelservice/display-coverage.sh | UTF-8 | 163 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
URL="target/jacoco/index.html"
if which xdg-open > /dev/null
then
xdg-open $URL
elif which gnome-open > /dev/null
then
gnome-open $URL
fi
| true |
e8224b81f3873bf4c5863424fb2e74d95fda4d24 | Shell | cirosantilli/softcover_vagrant | /check-install.sh | UTF-8 | 688 | 3.1875 | 3 | [] | no_license | #!/usr/bin/env bash
set -v
# TODO replace by euv once Softcover bugs are fixed:
#set -euv
projects_dir="/vagrant/projects"
# Binary dependencies.
softcover check
# Unit tests.
cd /vagrant
if [ ! -d softcover ]; then
git clone https://github.com/softcover/softcover
fi
cd softcover_book
bundle install
bundle exec r... | true |
59165447026e23de47ea153f8fee4f28a02785cc | Shell | maxild/dotfiles | /.bash_profile | UTF-8 | 4,743 | 3.390625 | 3 | [
"MIT"
] | permissive | # Read about dotfiles projects at:
# http://code.tutsplus.com/tutorials/setting-up-a-mac-dev-machine-from-zero-to-hero-with-dotfiles--net-35449
# Add `~/bin` (users private bin) to the `$PATH`
if [ -d "$HOME/bin" ]; then
export PATH="$HOME/bin:$PATH";
fi
# ghcup environment setup: $HOME/.cabal/bin and $HOME/.ghcu... | true |
e5fd1ac64f8f70ffc6f4bad92c82766a84cb5a6c | Shell | yszk0123/shell-examples | /src/colors.sh | UTF-8 | 893 | 2.6875 | 3 | [
"MIT"
] | permissive | #!/bin/zsh
# cf. [ใทใงใซ - echoใงๆๅญใซ่ฒใใคใใ ใใฎ1 - Miuran Business Systems](http://www.m-bsys.com/linux/echo-color-1)
color_black='\e[30m'
color_red='\e[31m'
color_green='\e[32m'
color_yellow='\e[33m'
color_blue='\e[34m'
color_magenta='\e[35m'
color_cyan='\e[36m'
color_white='\e[37m'
background_color_black='\e[40m'
backgrou... | true |
edc3963be2179a2d693aca8222d9a23cd2840fb9 | Shell | peleduri/baby-steps | /baby steps/linuxfun/EX15 - Scripting tests and loops (4) | UTF-8 | 260 | 3.15625 | 3 | [] | no_license | #!/usr/bin/env bash
#Ex15:scripting tests and loops
#4 Write a script that uses a while loop to count from 3 to 7
UNTIL=8
until [ $UNTIL -eq 4 ]; do
echo The counter is $UNTIL
let UNTIL=UNTIL-1
done
| true |
4f3486833b34da4fcc8eacdd5f02f313cf828e8d | Shell | TennisGazelle/docker-utils | /docker-jenkins/restart_jenkins.sh | UTF-8 | 426 | 2.796875 | 3 | [
"MIT"
] | permissive | #/bin/bash
# you might need to run this as admin
if [ ! -d "/opt/docker/jenkins/jenkins_home" ]; then
mkdir -p /opt/docker/jenkins/jenkins_home
fi
if [ ! -w "/opt/docker/jenkins/jenkins_home" ]; then
chmod 777 /opt/docker/jenkins/jenkins_home
fi
docker stop jenkins;
docker rm jenkins;
docker run --name jenkin... | true |
7b6c83b3de4a703a190030fd0ba87083bbfca89d | Shell | costinm/istiod | /samples/docker/sshd_in_docker/run.sh | UTF-8 | 2,664 | 2.90625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Startup for the dev image
# This includes tools to help debug and even source code to make changes.
# It includes a sshd server, to allow access even without kube.
cd /
env
echo Starting $*
#export PROXY_CONFIG="{"discoveryAddress": "istiod-costin-asm1-big1-xds-icq63pqnqq-uc.a.run.app:443","proxyBoot... | true |
3690239dc02ecd8d7b043ce22424ce2621e53beb | Shell | simon-anthony/DBAtools | /sbin/cmvgpkg.sh | UTF-8 | 5,326 | 3.3125 | 3 | [] | no_license | #!/bin/sh -
#ident $SVNHeader: TASdba/trunk/sbin/cmvgpkg.sh 875 2014-05-20 14:21:11Z hz2rv4 $
# vim:syntax=sh:sw=4:ts=4:
################################################################################
#
# cmvgpkg: wrapper for cmvgpkg command
#
###########################################################################... | true |
965ce4513967f9c7006e046516fa9ec9d3bb56d8 | Shell | Vinotha16/WIN_ROLLBACK | /templates/linux_actualfacts/oracle7/sysdisable_4123_actual.fact | UTF-8 | 665 | 2.796875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
a=$(grep "^space_left_action = email" /etc/audit/auditd.conf 2> /dev/null)
b=$(grep "^action_mail_acct = root" /etc/audit/auditd.conf 2> /dev/null)
c=$(grep "^admin_space_left_action = halt" /etc/audit/auditd.conf 2> /dev/null)
cmd="${a}","${b}","${c}"
if [ $(grep "^space_left_action = email" /etc/audit/au... | true |
df1f7bf24b010a861e285d914d5de767fab6a7c5 | Shell | dreadlord1984/caffe_benchmarking | /mpi_benchmarks/run_benchmark_interactive_loopNumNodes.sh | UTF-8 | 540 | 2.71875 | 3 | [] | no_license |
#qsub -I -q debug -l nodes=128 -l walltime=1:00:00 -A CSC103
#aprun -n 8 -d 16 ./allreduce_benchmark
probSize=7000000 #28MB / 4 -> in bytes. NiN param file size
nRuns=10 #there's also an nRuns inside of the 'allreduce_benchmark' file... this is just for "meta-variance" analysis
for ((nProcs=2; nProcs<=128; nProc... | true |
c856b01ff0a53ebd9cf52892f57a20a980633512 | Shell | lucaswannen/source_code_classification_with_CNN | /dataset_v2/bash/8941874.txt | UTF-8 | 769 | 2.640625 | 3 | [] | no_license | #!/usr/local/bin/bash -x
touch /usr/local/p
touch /usr/local/rec
DATA_FULL=`date +%Y.%m.%d.%H`
CHECK=`netstat -an | grep ESTAB | egrep '(13001|13002|13003|13004|13061|13099|16001|16002|16003|16004|16061|16099|18001|18002|18003|18004|18061|18099|20001|20002|20003|20004|20061|20099|13000|16000|18000|20000)' | awk '{ pri... | true |
775c0a1ff52e08aa6ed0619004c3a714979695af | Shell | tenc3nt/.files | /.config/bin/spotplay | UTF-8 | 1,059 | 3.140625 | 3 | [] | no_license | #!/bin/sh
sleep 0.1
status=$(playerctl status)
if [ "$status" = Playing ]; then
albumart=$(playerctl metadata mpris:artUrl)
albumartfetch=$(curl -s --output /tmp/large_cover.png $albumart)
random_name=$(mktemp --suffix ".png")
cp /tmp/large_cover.png "$random_name"
# Needed for ueberzug album art script
size=42... | true |
30771cfe72d9a32aff4237a3abb8ba4464a1f125 | Shell | egyshell/dotfiles-4 | /backups/install.sh | UTF-8 | 5,691 | 2.984375 | 3 | [] | no_license | #!/bin/sh
echo " โโโโโโ โโโโโโโ โโโโโโโโโโ โโโ โโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโ โโโ โโโ " && sleep 0.3
echo " โโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโ โโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโ " && sleep 0.3
echo " โโโโโโโโโโโโโโโ... | true |
585a8172241266405000ecc1c1021d2fa61aecb3 | Shell | Jimmy-Xu/packaging | /obs-packaging/wait-obs.sh | UTF-8 | 5,424 | 4.03125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright (c) 2019 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
set -o errexit
set -o nounset
set -o pipefail
set -o errtrace
script_name="$(basename "${BASH_SOURCE[0]}")"
OBS_PROJECT=${OBS_PROJECT:-"home:katacontainers:"}
# Project to wait for
project=""
handle_error() {
local exit_co... | true |
d70101c38c797a9e4e9475f6e1194177dc69af22 | Shell | tylerjl/pkgbuilds | /ganglia-web/PKGBUILD | UTF-8 | 1,034 | 2.546875 | 3 | [
"MIT"
] | permissive | # Maintainer: Tyler Langlois <ty |at| tjll |dot| net>
pkgname=ganglia-web
pkgver=3.7.2
pkgrel=1
pkgdesc="Web front-end to Ganglia (see ganglia package)"
arch=('any')
url="http://ganglia.sourceforge.net/"
license=('BSD')
depends=('ganglia')
options=('!libtool' '!strip')
install='ganglia-web.install'
source=("http://dow... | true |
adeeba46e64245bfd7e0d3dd1e8a02a5f905edec | Shell | RomanAndronov/RomanAndronov.github.io | /pdpic/src/decorator/mklib.sh | UTF-8 | 860 | 2.65625 | 3 | [] | no_license | #!/bin/ksh
MDMLRTF=""
FPCKGTP=$1
if [ ${FPCKGTP} = MLRTF ]
then
MDMLRTF="-DIO_MLRTF"
fi
gcc -D_GNU_SOURCE ${MDMLRTF} -g -c -fPIC -I . libbio.c
gcc -g -c -fPIC -I . libbiofile.c
gcc -g -c -fPIC -I . libbiotcpipv4.c
gcc -g -c -fPIC -I . libbiotcpipv6.c
gcc -g -c -fPIC -I . libbiosr.c
gcc -g -c -fPIC -I . libbiocf.c
... | true |
2cef21daf3940f14b8bd51468b6dc4f8e6e55559 | Shell | maacl/blender-hylang-live-code | /blender-livecode.sh | UTF-8 | 208 | 2.890625 | 3 | [] | no_license | #!/usr/bin/env bash
if [ "$1" == "" ]
then
echo "Watches HYLANGFILE for changes and reloads in Blender"
echo "Usage: $0 HYLANGFILE"
echo "e.g. $0 entry.hy"
else
blender --python entry-py-watcher.py $1
fi
| true |
f12cc873a98fe4d74668b34c287ba2551fbfac06 | Shell | kapouer/vigilante | /vigilante | UTF-8 | 1,279 | 3.25 | 3 | [
"MIT"
] | permissive | #!/bin/sh
limit=1
. /etc/vigilante.conf
counter=0
funTail() {
if [ "$tailArgs" != "" ]; then
tail -q -n 0 $tailArgs | while read line; do
if [ "$(echo "${line}" | grep "${search}")" != "" ]; then
if [ $counter -lt $limit ]; then
... | true |
03e8c0d4eb76b345da43912a3a7cac5f69ee5156 | Shell | apache/pulsar-helm-chart | /scripts/pulsar/prepare_helm_release.sh | UTF-8 | 4,162 | 3.8125 | 4 | [
"Apache-2.0",
"LicenseRef-scancode-protobuf"
] | permissive | #!/usr/bin/env bash
#
# 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 this file
# to you under the Apache License, Version 2.0 (the
# "Li... | true |
ba691f1e1f16b1bfc7661f50eeec15c81b6f0346 | Shell | snitram/docker-ionic | /loader | UTF-8 | 591 | 3.765625 | 4 | [] | no_license | #!/bin/bash
set -ueo pipefail
# setup a user with the same userid as /myapp/config.xml
VERB="${1:-}"
case "$VERB" in
bash)
cat <<dog
ionic(){
docker run --rm -t -i \
-e "DISPLAY=unix\$DISPLAY" \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v "\$PWD:/myapp" \
-u "\$UID:\$GID" \
\$([ "\$1" = "serve" ] && echo "-p 810... | true |
911cd98511f4f5e5510a9322e3ec8efef5c3ad1d | Shell | queer1/wii | /out.cgi | UTF-8 | 253 | 3.109375 | 3 | [] | no_license | #!/bin/sh
RANGE=$(echo $HTTP_RANGE | sed -Ene 's/^bytes=([[:digit:]]*)-$/\1/p')
DIFF=0
while [ $DIFF -eq 0 ]; do
sleep 0.5
DIFF=$(($(stat -Lf '%z' out) - $RANGE))
done
echo Content-Length: $DIFF
echo Content-type: text/plain
echo
tail -c $DIFF out
| true |
16d76c993990baca4e106d3c3895d6a7e9b4cd0d | Shell | arpsabbir/TorServiceFirefoxNetwork | /ADRun.sh | UTF-8 | 419 | 2.515625 | 3 | [] | no_license | #!/usr/bin/bash
echo "127.0.0.1:9050"
service tor start
echo "Please wait....."
sleep 10
lightgreen='\e[1;32m'
echo -e "$lightgreen" ""
while true; do
service tor reload
sleep 15
curl --socks5 127.0.0.1:9050 https://check.torproject.org |& grep -Po "(?<=strong>)[\d\.]+(?=</strong)"|sed 's/^/IP Changed withโโโโโโโโโโโ... | true |
d7db82af1a117be8ff8dd2dc1460966b2a0b88fd | Shell | carlosdumar/uicore | /scripts/docs-cleanup.sh | UTF-8 | 222 | 2.78125 | 3 | [] | no_license | #!/bin/bash
#
# This script cleans up all running uikit pods
#
pods=$(kubectl get pods --namespace=jenkins | grep "^uikit-" | awk '{ print $1 }')
for pod in $pods; do
kubectl --namespace=jenkins delete pod $pod;
done
| true |
e41e47dfdc0b5b8055e3ab60c684a4c343bc76b7 | Shell | waltermarbel/WSAGAScript | /unmount_images.sh | UTF-8 | 793 | 2.828125 | 3 | [
"Unlicense"
] | permissive | #!/bin/bash
. ./VARIABLES.sh
echo "Unmounting product.img"
umount $MountPointProduct
echo "Unmounting system_ext.img"
umount $MountPointSystemExt
echo "Unmounting system.img"
umount $MountPointSystem
echo "Unmounting vendor.img"
umount $MountPointVendor
echo "chk product.img"
e2fsck -f $ImagesRoot/product.img
ec... | true |
667263e4e6e3800cab9d617d07faa8d804b59b05 | Shell | fireworm0/Rubber-Duck | /scritp.sh | UTF-8 | 1,360 | 2.921875 | 3 | [] | no_license | #!/usr/bin/env bash
distro=`awk '{print $1}' /etc/issue`
pwned='python pw_exec.py'
if [ $(id -u) != "0" ]; then
echo [!]::[cek root] ;
sleep 2
echo [โ]Check User = $USER ;
echo [โ]Distro = $distro ;
sleep 1
echo Hellow harus dalam Mode Root ;
echo ""
sleep 1
... | true |
4d73dfd14bd2cd684a2762090e30a5f7d8aae7e9 | Shell | bacherfl/neoload-service | /installer/defineNeoLoadWebCredentials.sh | UTF-8 | 1,632 | 3.765625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
YLW='\033[1;33m'
NC='\033[0m'
CREDS=./creds_nl.json
rm $CREDS 2> /dev/null
echo -e "${YLW}Please enter the credentials as requested below: ${NC}"
read -p "NeoLoad Web host Web URL (by default neoload.saas.neotys.com for SaaS (default=$NLWEB): " NLWEBC
read -p "NeoLoad Web host API URL (by default neol... | true |
9fa65ee37e2f933619017ca4b2bd54c338441c0a | Shell | git-for-windows/MINGW-packages | /mingw-w64-python-numexpr/PKGBUILD | UTF-8 | 2,714 | 2.84375 | 3 | [
"BSD-3-Clause"
] | permissive | # Contributor: Runar Tenfjord < runar dot tenfjord at gmail dot com >
_realname=numexpr
pkgbase=mingw-w64-python-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-python2-$_realname" "${MINGW_PACKAGE_PREFIX}-python3-$_realname")
pkgver=2.6.2
pkgrel=1
pkgdesc="Fast numerical array expression evaluator for Python, NumPy, P... | true |
2b6af61be679e362c477196fdcc42d5f0500d933 | Shell | Roderick019/sistemas | /t6/act6.sh | UTF-8 | 184 | 2.734375 | 3 | [] | no_license | #!/bin/bash
numero=`ls $1/*.txt |wc -w`
echo"Tenemos $numero ficheros con extension txt que vamos a borrar de $1"
rm $1/*.txt
echo"Contenido de $1 tras borrado de ficheros,txt"
ls-l $1 | true |
af018f6b8460f92ba4b36a0b52188c9c1ce817e6 | Shell | utexas-bwi/segbot | /segbot_sensors/sendmail_configure.sh | UTF-8 | 2,685 | 2.921875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
#this configures sendmail to use gmail's smtp with the account utexas.bwi@gmail.com
#note that this method prevents the need for storing the password of the file in plain text on the filesystem
#this only needs to be done when you'd like to change the configuration.
if ! [ $(id -u) = 0 ] ; then
echo "You mu... | true |
31c6a2f1d717b693328c305efd0d3342dda01ab6 | Shell | Hermann-SW/pico-webserver | /regen-fsdata.sh | UTF-8 | 292 | 2.90625 | 3 | [
"BSD-3-Clause",
"MIT",
"Unlicense",
"LicenseRef-scancode-public-domain"
] | permissive | #!/bin/sh
if [ ! -f makefsdata ]; then
# Doing this outside cmake as we don't want it cross-compiled but for host
echo Compiling makefsdata
gcc -o makefsdata -Ilwip/src/include -I. lwip/src/apps/http/makefsdata/makefsdata.c
fi
echo Regenerating fsdata.c
./makefsdata
echo Done
| true |
6c43bb79343064aae443e5e522c60c6be5521914 | Shell | duoduo369/django-scaffold | /tools/pre_install.sh | UTF-8 | 998 | 3.296875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
echo "config pip"
mkdir -p ~/.pip/
if [ -e ~/.pip/pip.conf ];then
mv ~/.pip/pip.conf ~/.pip/pip.conf.old
fi
echo "[global]" >> ~/.pip/pip.conf
echo "index-url = http://pypi.douban.com/simple" >> ~/.pip/pip.conf
deactivate
echo "config virtualenv"
mkdir -p ~/python_env
cd ~/python_env
if [ -e /... | true |
a299e2d0678bd8c41a04ca840cbadf69af30521b | Shell | baidu/OASP | /verify.sh | UTF-8 | 702 | 3.6875 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
if [ $# -ne 1 ]
then
echo "Please specify the apk to be verified"
echo "Example: ./verify.sh sample.apk"
exit
fi
unzip -q $1 -d tmp
# Step 0, assuming that the apk has been installed to Android,
# so META-INF/*.SF should have already been verified by Android
# Step 1, verify OASP cert
opens... | true |
b1405b39652dafe9f864073eea6b431a55ddb451 | Shell | rguloztrk/Blacklist_Check | /dns-service-check.sh | UTF-8 | 233 | 3.375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
source $(dirname $0)/common.sh
host=$1
if [ $# -lt 1 ]
then
echo "Deficient parameter entered."
exit 1
fi
fqdn $host
dns=$(dig $host A |grep "ANSWER SECTION")
if [ -z "$dns" ]; then
echo "DNS error!!"
fi
| true |
dfc2d178d82376f4a3aa1b691b60c77d786eda91 | Shell | ashleymulford/BIOI_500_TWAS_Benchmarking | /tigar_format_sum_stats.sh | UTF-8 | 2,018 | 2.53125 | 3 | [] | no_license | #uc gwas sum stats to tigar input
awk '{print $1 FS $3 FS $2 FS $4 FS $5 FS $7/($8+0.001)}' uc_anderson_2011_21297633_uc_efo0000729_1_gwas.sumstats.tsv > uc_tigar_anderson_2011_21297633_uc_efo0000729_1_gwas.sumstats.tsv
#split by chr
grep "1 rs" uc_tigar_anderson_2011_21297633_uc_efo0000729_1_gwas.sumstats.tsv > uc_ti... | true |
fca2813fd6cad2def774b2d4f192ca26c1375034 | Shell | github188/SmartCamera | /rootfs/rootfs_onvif/usr/sbin/anyka_ipc.sh | UTF-8 | 1,091 | 3.34375 | 3 | [] | no_license | #! /bin/sh
### BEGIN INIT INFO
# File: camera.sh
# Provides: camera service
# Required-Start: $
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description:web service
# Author: gao_wangsheng
# Email: gao_wangsheng@anyka.oa
# Date: 2012-8-8
### END INIT INFO
MODE=$1
PATH=$PATH:/bi... | true |
01a9a84a37995e694b9c0c2d9bbe5bf3d745259d | Shell | packy/maccfg | /bin/run_mysql | UTF-8 | 1,235 | 4.15625 | 4 | [] | no_license | #!/usr/bin/env bash
if [[ $BASH_VERSION < 4.0 ]]; then
echo $0 requires bash 4 or later; exit 1
fi
PASSWORD_FILE=$HOME/.mysql_passwords
if [[ -f $PASSWORD_FILE ]]; then
if [[ "$(stat -f %Sp $PASSWORD_FILE | sed 's/\(....\)//')" = "------" ]]; then
source $PASSWORD_FILE
else
echo $PASSWORD... | true |
620b72b5da722c14f0184a81fea887e06f939758 | Shell | dlandon/logitechmediaserver | /init/30_firstrun.sh | UTF-8 | 692 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#
# 30_firstrun.sh
#
# Create prefs directory if it doesn't exist
if [ ! -d /config/prefs ]; then
mkdir /config/prefs
mkdir /config/prefs/plugin
fi
# Create logs directory if it doesn't exist
if [ ! -d /config/logs ]; then
mkdir /config/logs
fi
# Create cache directory if it doesn't exist
if [ ! -d /c... | true |
947130e2a463df7ee1de332ab159bd605eee42b3 | Shell | telefonicaid/fiware-cosmos-platform | /cosmos-api/scripts/cosmos-api | UTF-8 | 3,062 | 3.6875 | 4 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
#
# Copyright (c) 2013-2014 Telefรณnica Investigaciรณn y Desarrollo S.A.U.
#
# 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
#
# Unl... | true |
8a4913146d5019db47b6b2342f7b37f13fdc4115 | Shell | mc2259/event-extraction-oneie | /preprocessing/rams/get_rams.sh | UTF-8 | 816 | 3.4375 | 3 | [] | no_license | # Download the raw RAMS dataset and run through the pre-processing script
# and put them in the `data` folder
# Usage: From the main project folder (/oneie), run `bash preprocessing/rams/get_rams.sh`
# Need to explicitly export path because
export PATH=$PATH
echo $PATH
out_dir=./data/rams
process_path=./preprocessi... | true |
2dddefa0da068ba965c922e99daf8b8253f00886 | Shell | tro3373/dotfiles | /bin/change_git_protocol | UTF-8 | 841 | 3.703125 | 4 | [] | no_license | #!/usr/bin/env bash
get_origin() {
git remote get-url origin
}
main() {
local _git_root=$(get_git_root)
if [[ -z $_git_root ]]; then
echo "=> Excute in git repository." 1>&2
exit 1
fi
local _origin=$(get_origin)
if [[ $_origin =~ ^git@.*$ ]]; then
echo "=> Already git protocol used."
retur... | true |
d5ff30a52f1b50ef476e9b5653003ac1c229d4ae | Shell | druplar/dotfiles | /zshenv.example | UTF-8 | 1,243 | 3.265625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env zsh
# Uncomment this variable definition to enable tmux support in
# your login shell. This will cause tmux to be loaded as part of
# login and replace the login shell completely, starting up a
# subshell in a new window, or reusing an existing one if it
# has already been created. Perfect for remote SS... | true |
a20a51b6ed5a1de2a93febc03ae0d2df315e12c9 | Shell | tano-systems/meta-tanowrt | /meta-tanowrt/recipes-core/busybox/busybox/files/watchdog.init | UTF-8 | 1,906 | 3.28125 | 3 | [
"MIT",
"LicenseRef-scancode-unknown"
] | permissive | #!/bin/sh /etc/rc.common
# Copyright (C) 2019, Anton Kikin, <a.kikin@tano-systems.com>
START=00
STOP=99
USE_PROCD=1
WATCHDOG_BIN=/sbin/watchdog
validate_procd_section()
{
uci_validate_section watchdog procd "${1}" \
'timeout:uinteger:30' \
'frequency:uinteger:5'
}
validate_watchdog_section()
{
uci_validate_se... | true |
9c7a96e21b2732ffa62aae8c69b46901e1f4a941 | Shell | tufora/ShellToSlack.sh | /ShellToSlack.sh | UTF-8 | 2,920 | 3.96875 | 4 | [] | no_license | #!/bin/bash
#
# Tufora.com
# https://github.com/tufora/ShellToSlack.sh.git
#
# Feel free to use this script for your own projects
#
ServerName=$HOSTNAME
function help {
ShellToSlack=$0
echo -e ""
echo -e "SCRIPT DETAILS"
echo -e "Use script to post messages to a specific Slack channel\n"
echo -e... | true |
5e74a2b0e25f21db457932d318d0ab4ac8f098b0 | Shell | xyy15926/home_config | /todo/actions.d/xdd | UTF-8 | 793 | 3.953125 | 4 | [] | no_license | #!/usr/bin/env sh
action=$1; shift
DEFAULT_PRI=E
[ "$action" = "usage" ] && {
echo " $(basename $0) add date, priority and check if unique"
echo " Function:"
echo " 1. Check if the task has been added today"
echo " 2. Add date and default priority for a task."
exit
}
# sed to clear the characters for termina... | true |
892f786c2fc094b180ceb6e70ece44b44485efc9 | Shell | bsc-dom/dataclay-demos | /hpc/quantum/stop.sh | UTF-8 | 1,780 | 3.859375 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash -e
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
#-----------------------------------------------------------------------
# Helper functions (miscellaneous)
#-----------------------------------------------------------------------
cyan=$'\e[1;36m'; end=$'\e[0m'
function printMsg { ... | true |
669056da197ce44c2ba49ab0d8e0cb05412833ef | Shell | dru0pa/MRTG | /disk-io.sh | UTF-8 | 214 | 2.71875 | 3 | [] | no_license | #!/bin/sh
UPTIME="/usr/bin/uptime"
HOSTNAME="/bin/hostname"
IOSTAT="/usr/bin/iostat"
D0=`$IOSTAT -dk | grep mmcblk0 | gawk '{print $2}' | cut -d "." -f 1`
echo $D0
$UPTIME | awk '{ print $3, $4, $5 }'
$HOSTNAME
| true |
faebad538fc18fbbcefd0bcbe531339556adf3ae | Shell | qixin5/debloating_study | /expt/script/rdsfuzz_utilprog/create_fuzzed_testscript_forallinputsets.sh | UTF-8 | 1,008 | 3.6875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
BENCH=$1
PROGNAME=$2
fuzznum=$3
forwhat=$4
if [ -z $BENCH ] || [ -z $PROGNAME ] || [ -z ${fuzznum} ] || [ -z ${forwhat} ]; then
echo "Missing arguments!"
exit 1
fi
scriptdir=$(pwd)
logd=${scriptdir}/../debaug/log/$BENCH/$PROGNAME
if [ ! -d ${logd} ]; then
mkdir -p ${logd}
fi
logf=${logd}/cre... | true |
53137fbe2900c82618e7f75ff37392ca8e228558 | Shell | nielsgl/dotfiles | /ssh/setup.sh | UTF-8 | 454 | 4.0625 | 4 | [
"MIT"
] | permissive | #!/bin/sh
#
# Setup SSH Key
#
function setup_ssh() {
ask_for_confirmation "Do you want to generate SSH keys if they don't exist?"
if answer_is_yes; then
if [ ! -f ~/.ssh/id_rsa.pub ]; then
ask "Enter email address:" email
ssh-keygen -t rsa -b 4096 -C "$email"
ssh-add ~/.ssh/id_rsa
fi
... | true |
d296461217987172509baa989ef8d20e87560b4c | Shell | shou3301/PAFS | /FusionFS/hycache/singlerun.sh | UTF-8 | 238 | 2.71875 | 3 | [] | no_license | #!/bin/sh
if [ $# -lt 1 ]
then
echo Usage: $0 proc_idx
exit 1
fi
# echo -n 'Proc '$1' starts at' >> iozone.log
# date >> iozone.log
iozone -apew -f testfile$1 -s 1g -r 4k -i 2
echo -n 'Proc '$1' : ' >> iozone.log
date >> iozone.log
| true |
6c1b478aca1d9e262eeb8abbef2d0b88ffa030c3 | Shell | TannerCoon/snowbuffs3308 | /ProjectMilestone3/shellscripts/makeScript.sh | UTF-8 | 159 | 2.875 | 3 | [] | no_license | #! /bin/bash
for i in {1..26}
do
read NAME API <<< $( awk 'FNR == "'${i}'" {print $3" "$4}' reports.csv )
python addScripts.py $NAME $API > $NAME.sh
done
| true |
19269b58f922b9ff13f9fa11aa357d5d2324529b | Shell | scriptlib/sh | /unchmfolder | UTF-8 | 1,729 | 3.78125 | 4 | [] | no_license | #!/bin/bash
APPNAME="unchmfolder"
APPAUTHOR="xiaoranzzz"
APPDATE="2007-01-13"
APPVER="0.1"
APPDESC="unchm a chm file to a folder,\nwhich's name based on the chm filename,and under current directory"
APPUSAGE="(chm filename)"
APPEXAMPLE="unchmfolder foo.chm"
source `APPLIB "AppUsage"` || exit -1
if [ -z "$*" ] ; then A... | true |
3987934a6a14a6275f9de93d272f6a21539fcbe8 | Shell | h0tbird/docker-openldap | /rootfs/init | UTF-8 | 1,272 | 3.21875 | 3 | [] | no_license | #!/bin/bash
#------------------------------------------------------------------------------
# Configure the service:
#------------------------------------------------------------------------------
CONFIG_FILE='/etc/openldap/slapd.conf'
# File containing recognized CA certs:
: ${CA_CERT_PATH:-/etc/ssl/certs} && \
sed... | true |
96e4d4a6de01e7bf151d30c773d38968d54bb018 | Shell | ianbstewart/catalan | /scripts/data_processing/old_scripts/generate_dates.sh | UTF-8 | 818 | 3.84375 | 4 | [] | no_license | # generate all files corresponding
# to dates in range
# assume Month{3}-Day{2}-Year{2} format
# e.g. Jan-22-17
function generate_date_files {
START_STR=$1
END_STR=$2
DATE_FMT='+%b-%d-%y'
START_DATE=$(date -d $START_STR $DATE_FMT 2>/dev/null)
END_DATE=$(date -d $END_STR $DATE_FMT 2>/dev/null)
D... | true |
003c5ab62d8876e8687fca2af649cc0746cf6609 | Shell | xuwei-k/dotty | /.github/workflows/scripts/triggerUnmanagedCommunityBuild.sh | UTF-8 | 1,192 | 4.03125 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# This is script for triggering unamanged community build upon releasing nightly version.
# Script sends request to CB Jenkins instance to start the build for given released Scala version
# Prints url of created job to stdout
#
# Requirement:
# - the latest (nightly) version of scala should be pu... | true |
33d2c13fff266e1c8c32e00a29a00acdfc695542 | Shell | blacky77/OpenELEC.tv | /tools/mkpkg/mkpkg_xbmc-dharma-pvr | UTF-8 | 2,450 | 2.78125 | 3 | [] | no_license | #!/bin/sh
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2011-2011 Gregor Fuis (gujs@openelec.tv)
#
# This Program is free software; you... | true |
d65b00ee40a91bfb0c4c036e1ed69212d25fd69d | Shell | spcmd/Scripts | /vimphint.sh | UTF-8 | 1,457 | 3.1875 | 3 | [] | no_license | #!/bin/sh
# _
# ___ _ __ ___ _ __ ___ __| |
# / __| '_ \ / __| '_ ` _ \ / _` |
# \__ | |_) | (__| | | | | | (_| |
# |___| .__/ \___|_| |_| |_|\__,_|
# |_|
# Created by: spcmd
# http://spcmd.github.io
# https://github.com/spcmd
# vimphint.sh lists the custom commands
# and key map... | true |
c1f95d4109e2e028a5be9e2aeb8f89af4f8172ba | Shell | PengHao/docker | /basedocker/Project/make.sh | UTF-8 | 270 | 2.625 | 3 | [] | no_license | basepath=$(cd `dirname $0`; pwd)
REGISTRY=registry.wolfpeng.com:5000
echo $1
timestamp=`date +%s`
echo $timestamp
docker build -t wolfpeng/$1:${timestamp} .
#docker tag wolfpeng/$1:${timestamp} ${REGISTRY}/wolfpeng/$1:latest
#docker push ${REGISTRY}/wolfpeng/$1:latest
| true |
4a85b22140651bcb6b90402d9a19f63b18e0ddd5 | Shell | yeoman-projects/generator-jhipster-angular-datatables | /travis/scripts/05-run.sh | UTF-8 | 1,776 | 3.65625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#-------------------------------------------------------------------------------
# Functions
#-------------------------------------------------------------------------------
launchProtractor() {
retryCount=1
maxRetry=10
httpUrl="http://localhost:8080"
rep=$(curl -v "$httpUrl")
status=$... | true |
bb5529c91651aca3092763d2c781201c10da588f | Shell | sijpesteijn/bblaser | /bblaser-arm/bb_setup.sh | UTF-8 | 1,870 | 3.15625 | 3 | [] | no_license | #!/bin/bash
echo Update ubuntu
apt-get update
apt-get -y upgrade
apt-get -y install parted
apt-get -y install cmake
apt-get -y install libssl-dev
# Format sd card
(maybe: apt-get install parted)
parted /dev/mmcblk0 -s "mklabel GPT"
parted /dev/mmcblk0 -s "mkpart primary 0% 100%"
mkfs.ext2 /dev/mmcblk0p1
echo Mount... | true |
5fbc0507376040206cc09cb5f27ae3bf8cbdc159 | Shell | irisjae/nephyrite | /source/meta/make/webapp/, | UTF-8 | 356 | 2.953125 | 3 | [] | no_license | #!/usr/bin/env bash
use_deps && as_make $@ || {
echo "please compile $0"
exit 1
} && use_node || (fail
) && use_file "$source" || (fail
) && {
rm -r "$out/*"
ln -s "$source/*" "$out"
find merges -mindepth 1 -maxdepth 1 | while read file; do
rm -r "$out/$file" 2> /dev/null
ln -s "merges/$file" "$out" ;done
} |... | true |
1834b55df7b76d1ba549620d0b37c302b705fdf5 | Shell | Bch91/Glassy-physics-simulations | /datatransform.tcl | UTF-8 | 13,072 | 4.03125 | 4 | [] | no_license | #!/bin/sh
# tricking... the line after these comments are interpreted as standard shell script \
exec $ESPRESSO_SOURCE/Espresso $0 $*
#
# ESPResSo simulation script with smart command line parser.
# Copyright (c) Kaigrass, 2007
# Problem description:
# This script can be used to simulate ...
#########################... | true |
3e26dfce891a02e3f82fb717519e701e2ab75219 | Shell | jonathancrabtree/Chiron | /bin/hmp_client_interactive | UTF-8 | 211 | 2.65625 | 3 | [] | no_license | #!/bin/bash
if [[ "$(docker images -q umigs/chiron-core 2> /dev/null)" == "" ]]; then
echo "Docker image for the HMP Client not found. Downloading first ..."
fi
docker run -i -t umigs/chiron-core /bin/bash
| true |
3f1af7410cc7239928fe37b0a98fd22c57728296 | Shell | briefgw/fzi_icl_can | /install_pcan_module.sh | UTF-8 | 572 | 3.21875 | 3 | [] | no_license | #!/bin/bash
# This script compiles the peak linux driver with chardev support and installs it.
# Note that you need sudo rights to execute this.
PKG_NAME="peak-linux-driver"
PKG_VER=8.3
TARBALL=${PKG_NAME}-${PKG_VER}.tar.gz
TARBALL_URL=http://www.peak-system.com/fileadmin/media/linux/files/${TARBALL}
KERNEL_VER=/us... | true |
4649bc5d526c19bc4ecb57a1eaff78e3f4eafa22 | Shell | MatanYemini/node-sqs | /utils/post_rsync.sh | UTF-8 | 1,685 | 4.03125 | 4 | [
"MIT"
] | permissive | #!/bin/bash -x
# Script for running post rsync to get service to run:
# * runs npm install
# * optionally sets up systemd for service
# * restarts service
# TODO: automate creation of config/local.yml
set -e
cd $(dirname $0)
cd ..
APP_NAME=$(whoami)
function usage() {
cat << EOF
Usage: $0 [-i] [-n <api app name>... | true |
8d9877b46ad265c824c30624ca3e912c6daa06b7 | Shell | prataprajr/hadoop-bdr-s3 | /backupreport.sh | UTF-8 | 1,541 | 3.796875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Author: Pratap Raj
# Purpose: Send backup reports as email
############ User configuratble variables #############
#_mailaddress is recipient email address.
_mailaddress=''
########## User configuratble variables end ###########
#Validate number of arguments
if [ $# -ne 3 ];then
echo ... | true |
e57df46414ad0e1c1a4b3f24b9ae88a15e766c6d | Shell | ilventu/aur-mirror | /lensfun-svn/PKGBUILD | UTF-8 | 914 | 3.203125 | 3 | [] | no_license | pkgname=lensfun-svn
pkgver=127
pkgrel=1
pkgdesc="Database of photographic lenses and a library that allows advanced access to the database"
arch=(i686 x86_64)
url="http://lensfun.berlios.de/"
license=('LGPL3')
depends=('glibc' 'glib2')
makedepends=('python2' 'libpng')
provides=('lensfun')
conflicts=('lensfun')
_svntrun... | true |
af3ae30aba2626a1af649c68d7d340a4f2110d36 | Shell | YutoMizutani/Wishwipe | /scripts/general/ruby/bundle-install.sh | UTF-8 | 473 | 3.28125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
source $(dirname $0)/source-bundle-cmd.sh
# Install Bundler
if !($BUNDLE_CMD -v > /dev/null 2>&1); then
sh $(dirname $0)/install-bundler.sh
fi
GEMFILE_PATH="$(dirname $0)/../../.."
NUMBER_OF_CPU=`expr $(sysctl -n hw.ncpu) - 1`
CONFIG_KEY_JOBS_COUNT="BUNDLE_JOBS"
# Install Gems
$BUNDLE_CMD install --gemf... | true |
b9e0e0d46afbb31967ce9a3a0e5298bcd8a52ceb | Shell | mappakkoe09/debian | /antiddos/install.sh | UTF-8 | 1,176 | 3.234375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
if [ -d '/usr/local/ddos' ]; then
echo; echo; echo "Please un-install the previous version first"
exit 0
else
mkdir /usr/local/ddos
fi
clear
echo; echo 'Installing DOS-Deflate 0.6'; echo
echo; echo -n 'Downloading source files...'
wget -q -O /usr/local/ddos/ddos.conf https://raw.githubusercontent.com/deeni... | true |
a4595764affc753fb51434cff14aad4c68641242 | Shell | AymanMagdy/Problem-Solving | /autoCommit.sh | UTF-8 | 872 | 3.984375 | 4 | [] | no_license | # /bin/bash
# The function to commit all the files.
function auto_commit(){
for (( counter=0; counter < $num_files; counter++ ))
do
add="$(git add ${files[$counter]})"
commit="$(git commit -m autoCommit.sh)"
echo $commit
push="$(git push origin master)"
echo $push
done
}
# intialzing the git and then getting the unco... | true |
51c728e392a93a6e5794eab6d5cbba5de61b4c1a | Shell | ornl-ndav/Binner | /binner/script/gmesht2b.sh | UTF-8 | 507 | 3.59375 | 4 | [] | no_license | #!/bin/bash
# use: gmesht2b.sh directory
if [ ! -e "$1" ] && [ ! -d "$1" ] # test if target directory exists
then
echo "$1 is not a valid directory"
exit 127 # error code 127
fi
echo -n "deleting all *.inb files ... "
rm -rf $1/*.inb
echo "done"
for f in $1/*.in
do
echo -n "$f --> ${f}b: "
gmesht2b < $f > ... | true |
84e65bda811952715f3ee315ce1f5e34f79b12ac | Shell | ebox/ebox | /extra/anste/tests/firewall/basic/start-servers/test | UTF-8 | 248 | 3.265625 | 3 | [] | no_license | #!/bin/bash
# Start servers based on netcat on ports 788 and 8500-8510 which won't die
# and will always answer with "foo"
for port in 7888 $(seq 8500 8510); do
sh -c "while true; do echo 'foo' | nc.traditional -q 1 -l -p $port; done"&
done;
| true |
ea5b12391f4ca976e78df8660cf9abac97021951 | Shell | qwerty1023/wive-rtnl-firmware | /etc/scripts/config-l2tp.sh | UTF-8 | 5,431 | 3.828125 | 4 | [] | no_license | #!/bin/sh
#################################################
# config-l2tp.sh - configure L2TP client helper #
#################################################
# include global config
. /etc/scripts/global.sh
# stop all pppd/xl2tpd daemons
service vpnhelper killall_vpn
LOG="logger -t vpnhelper-l2tp"
get_param() {
... | true |
ac5296db1def65db02dba18601ae33f6b1fb57da | Shell | GNU-Pony/miscellaneous | /scripts/dice | UTF-8 | 556 | 3.578125 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"WTFPL"
] | permissive | #!/bin/sh
n=1
s=6
ok=1
if test $# = 2; then
n="$1"
s="$2"
elif test $# = 1; then
s="$1"
elif test $# = 0; then
:
else
ok=0
fi
if test -z "$n" || test -z "$s"; then
ok=0
elif test -n "$(echo "$n" | tr -d 0123456789)"; then
ok=0
elif test -n "$(echo "$s" | tr -d 0123456789)"; then
ok=0
... | true |
14f913f13f77c8ad9e726bb9ee459f8002735b96 | Shell | sonecabr/docker-alpine-jetty | /resources/jetty_upstart.sh | UTF-8 | 681 | 3.3125 | 3 | [] | no_license | #! /bin/bash
#
# Wrapper script to start Jetty and bypass an integration problem with
# salt stack (java process was not dettaching)
#
### BEGIN INIT INFO
# Provides: jetty
# Required-Start: $all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Jetty Servlet Con... | true |
fecb13d9cdd5131898455ad16cfbe30115b5d503 | Shell | viliyam2811/termux-insta-downloader | /termux-url-opener | UTF-8 | 685 | 3.265625 | 3 | [] | no_license | #!/bin/bash
# Script : termux-url-opener
# Script Path : $HOME/bin/
# easymux-insta-video-downloader
echo $1 | grep instagram > /dev/null
if [[ $? == "0" ]]; then
wget $1 -O idata
url_container=$(cat idata | \
grep video_url)
if [[ $? == '0' ]]; then
rm idata
url=$(echo $url_container | \
grep -oP '... | true |
b18eb5ea597b82675b35e410dff1a0149a5a9042 | Shell | linh97abc/jenkins | /sanitycheck.sh | UTF-8 | 2,042 | 3.84375 | 4 | [] | no_license | #!/bin/bash
device_serial="/dev/ttyUSB0"
platform="s32r45_cortex_m7"
testcase="all"
mode="build"
helpFunction()
{
echo ""
echo "Usage: $0 [OPTIONS]"
echo ""
echo "Options:"
echo -e "\t-p , --platform platform"
echo -e "\t-T , --testcase Test case"
echo -e "\t-d , --device Device serial."
ech... | true |
3517688c0e15ccae0698b7338ae5427e45efd0b9 | Shell | marcomaccio/devpaas-vm | /packer/scripts/docker/docker-ubuntu.sh | UTF-8 | 1,092 | 3.25 | 3 | [] | no_license | #!/bin/bash -e
echo "Remove older version ..."
sudo apt-get remove -y docker docker-engine docker.io
echo "Setup the repository ..."
sudo apt-get update -y
echo "Install package to allow apt to use a repository over HTTPS"
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
e... | true |
442625c6b668a77d3eca2fd572a35bfc3bd273b6 | Shell | ltstriker/disaggregation | /rmem/get_log.sh | UTF-8 | 625 | 2.921875 | 3 | [] | no_license | ctrl_c()
{
version=$(cat /proc/sys/fs/rmem/version)
overflow=$(cat /proc/sys/fs/rmem/overflow)
readbytes=$(cat /proc/sys/fs/rmem/read_bytes)
writebytes=$(cat /proc/sys/fs/rmem/write_bytes)
linecount=$(cat /proc/sys/fs/rmem/line_count)
echo "version: $version overflow: $overflow readbytes:$readbytes ... | true |
7330811a4ba771d61926d89ffc18993b01921828 | Shell | geyunxiang/mmdps | /pipeline/DWI/DWI_wyh/dwi_native_gen_atlas.sh | UTF-8 | 669 | 3.125 | 3 | [] | no_license | #!/bin/bash
# individual space
# apply inv transform, transform template in MNI to template in individual
# Example: ./individual_gen_template.sh ../../../commonfiles/brodmann_lr_2.nii.gz brodmann_lr_2
ATLASNAME=$(basename $PWD)
echo "atlasname: ${ATLASNAME}"
FILEPATH_template=$MMDPS_ROOTDIR/atlas/$ATLASNAME/"${ATLA... | true |
3dff4a55a347e46d5feea9ad9872f466a2116d17 | Shell | treely-app/treely-platform | /fix-permissions.sh | UTF-8 | 587 | 3.921875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Check if your a sudo user
if [ "$EUID" -ne 0 ]
then
echo "Please run as root."
exit
fi
if [ -z "$1" ]
then
echo "No user supplied!"
exit
fi
# Set your user as owner
chown -R $1:www-data ./
find ./ -type f -exec chmod 664 {} \;
find ./ -type d -exec chmod 775 {} \;
# Give the we... | true |
1d86c62d5c52b59881eab006b36e3a9891607887 | Shell | wltjr/gentoo-cvs-contributions | /sys-libs/glibc/files/glibc-sec-hotfix-20040804.patch | UTF-8 | 4,319 | 2.796875 | 3 | [] | no_license | #! /bin/sh -e
# All lines beginning with `# DP:' are a description of the patch.
# DP: Add grsecurity enhancements to glibc
# DP: * Adds Stefan Esser's unlink sanity check
# DP: * Removes LD_DEBUG for suid apps
# DP: * Fixes a glibc bug where certain envvars are interpreted
# DP: even if UNSECURE_ENVVARS says to dro... | true |
263ecfe6f003d5fa6788d3edeb71041b1acc42f3 | Shell | mapnik/mapnik-packaging | /osx/scripts/package_dmg.sh | UTF-8 | 1,086 | 2.859375 | 3 | [
"ICU",
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/usr/bin/env bash
set -e -u
set -o pipefail
echo '...packaging DMG'
#install_name_tool -id ${MAPNIK_BIN_SOURCE}/lib/libmapnik.dylib ${MAPNIK_BIN_SOURCE}/lib/libmapnik.dylib
rm -f ${ROOTDIR}/installer/*dmg
rm -rf ${ROOTDIR}/installer/build/*pkg
freeze ${ROOTDIR}/installer/Mapnik.packproj
FOUND_VERSION=$(${MAPNIK_CONFI... | true |
e21dc16f8d98637efce9bbb02f05843a18898c24 | Shell | Stuartlab-UCSC/cell-atlas-env | /bin/investigate_all_attributes.sh | UTF-8 | 610 | 3.28125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Go through all the attributes in the clustered scanpy objects and
# print a summary of them so we can decide which ones should go into the
# attribute enrichment analysis.
ATTRI_SCR=/projects/sysbio/users/cellAtlas/bin/attributes/attribute_investigate.py
CLUSTERDIR=/projects/sysbio/users/cellAtlas/data/cl... | true |
4c1e666bc415dfe691fb1e0378e1b0ef04b78a8b | Shell | wgordon17/openshift-tools | /docker/oso-host-monitoring/src/root/autoheal-check-ovs-socket.sh | UTF-8 | 265 | 3.3125 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/bin/bash
# Loop checking whether socket is available
TESTLOCATION=/var/run/openvswitch/db.sock
while true
do
sleep 600
if [ ! -S ${TESTLOCATION} ]; then
echo "${0} : ${TESTLOCATION} does not exist!"
/root/kill-container.sh
fi
done
| true |
1acd8f4200b61cca24987fd7fefdb679692450db | Shell | annProg/learn | /cmdb/yourcmdb/gen-object-xml/csv2dot.sh | UTF-8 | 2,624 | 3.515625 | 4 | [] | no_license | #!/bin/bash
############################
# Usage:
# File Name: csv2dot.sh
# Author: annhe
# Mail: i@annhe.net
# Created Time: 2015-10-21 13:22:57
############################
dir="object_csv_cmdb"
tmpfile=dot.file.tmp
function func1()
{
echo -e "digraph cmdb {\n label=\"CMDBๅฏน่ฑกๅฎไนๅพ็คบ\"; \nfontsize=25;\n rankdir=TB;"... | true |
629595f863eadbe52b9cff93ab95a9aa39afeb20 | Shell | iahmad-khan/ai-tools | /t_functional/aiinstallhost.sh | UTF-8 | 1,614 | 3.09375 | 3 | [] | no_license | #!/bin/bash
# This is a not very nice bash script to do some kind
# of naive functional testing for ai-installhost.
source "$(dirname "$0")/common.sh"
CONF=$(mktemp)
cat > $CONF << EOF
[foreman]
foreman_hostname = ${FOREMAN_HOSTNAME}
foreman_port = 8443
foreman_timeout = 60
[roger]
roger_hostname = woger.cern.ch
rog... | true |
e37844c25505e0e039547b67c8e52f79d1157bd5 | Shell | rbaddam/circuit-oneops-1 | /components/cookbooks/enterprise_server/templates/default/initd_to_systemd.erb | UTF-8 | 518 | 3.90625 | 4 | [] | no_license | #!/bin/bash
start() {
echo "Starting enterprise-server"
systemctl start enterprise-server
}
stop() {
echo "Stopping enterprise-server"
systemctl stop enterprise-server
}
restart() {
echo "Restarting enterprise-server"
stop
start
}
status() {
echo "Checking status of enterprise-server"
systemctl st... | true |
411dc5d6cfc7a6fd280caa09d6d0b3d2adf51661 | Shell | jshcodes/stuff | /sbp-demo/showcode.sh | UTF-8 | 1,319 | 3.234375 | 3 | [] | no_license | #!/bin/bash
help(){
echo "You must specify the command that you wish to review. (ex: help agent-install)"
}
if [ -z "$1" ]
then
help
else
case "$1" in
agent-install ) echo -e "\nSource code for $1\n"
cat /usr/local/bin/$1
;;
agent-uninstall ) echo -e "\nSource code... | true |
517275c4ff9c678c782a1e7ee9b12823066cf10c | Shell | toke/dotfiles | /scripts/.local/bin/statusbar/timewarrior | UTF-8 | 2,292 | 3.59375 | 4 | [] | no_license | #!/usr/bin/env sh
# POSIX shell compliant
#set -e
#set -x
: "${timew:=timew}"
: "${TIMEW_SIGNAL:=SIGRTMIN+7}"
: "${BAR_NAME:=i3blocks}"
## Setup
__file="${0##/*/}"
cmd="${1:-}"
[ $# -gt 0 ] && shift
## defaults
: "${debug:="0"}"
: "${isactive:-}"
datediff() {
d1=$(date "$1" +%s)
d2=$(date -d "$2" +%s)
... | true |
333b823fcdcdbd6097452f4cc8bf4e9074d52caa | Shell | flaviojcg/kontomatik-help-kit | /data.sh | UTF-8 | 664 | 3.5 | 4 | [] | no_license | ################################
# #
# GET /v1/data.xml #
# #
################################
#!/bin/sh
# put your api key string inside the double quotes:
APIKEY=""
sendGetRequest() {
ARGS="-G -d apiKey=$APIKEY -d sessionId=$1 -d sessionId... | true |
cc8207ec483257704e1fa897cb477f1b8f85e523 | Shell | joseph-long/dotfiles | /.profile.d/local-prefix.sh | UTF-8 | 81 | 2.609375 | 3 | [] | no_license | if [[ -d "$HOME/.local/bin" ]]; then
export PATH="$HOME/.local/bin:$PATH"
fi
| true |
0b482bc93af93bc6c25bcdefec10e06e43f16b65 | Shell | chyh1990/myconfig | /pinyin/lspy | UTF-8 | 356 | 3.609375 | 4 | [] | no_license | #!/bin/bash
while getopts "f" opt; do
case $opt in
f)
FULL="-f"
;;
-)
break;;
\?)
echo 'usage: lspy [-f] [pinyin]' >&2
exit 1
;;
esac
done
shift $(($OPTIND - 1))
[[ -n "$1" ]] && FILE=$1 || FILE="*"
IFS="
"
ls -1 | chinese2pinyin -o $FULL | (
while read -r line; do
read -r pinyin
[[ "$pinyin" ... | true |
ed6fa9a2230c23925037174880105e29cb822376 | Shell | gdaisukesuzuki/PKGBUILD_Rapids | /python-llvmlite/PKGBUILD | UTF-8 | 1,158 | 2.5625 | 3 | [] | no_license | # Maintainer: Michael Schubert <mschu.dev at gmail>
pkgname=python-llvmlite
pkgver=0.36.0dev0
# pkgver=0.35.0rc2
#pkgver=0.34.0
pkgrel=0
pkgdesc="Lightweight LLVM python binding for writing JIT compilers"
url="https://github.com/numba/llvmlite"
arch=('i686' 'x86_64')
license=('BSD')
#depends=('python' 'llvm-libs>=7.0.0... | true |
b2332816d98581875e4f516a6226e279007193e4 | Shell | cspace-deployment/cspace-webapps-common | /uploadmedia/streaming_tools/makeStreamingVersions.sh | UTF-8 | 2,392 | 4 | 4 | [] | no_license | #!/bin/bash
# makeStreamingVersions.sh jobnumber
#
# e.g.
# time /var/www/ucjeps/uploadmedia/makeStreamingVersions.sh /tmp/image_upload_cache_ucjeps/2015-11-10-09-09-09
FFMPEG="cp"
# this should be the fully qualified name of the input file, up to ".original.csv"
JOB="$1"
IMGDIR=$(dirname "$1")
TRACELOG="$JOB-streami... | true |
5180796047562bed983a7b26a2f22827d894a38b | Shell | cy20lin/cmmsh | /lib/cmmsh/action.bash | UTF-8 | 4,551 | 3.703125 | 4 | [] | no_license | if test ! -z "${CMMSH_ACTION_BASH_INCLUDED}"
then
return 1
fi
CMMSH_ACTION_BASH_INCLUDED=1
# CMM_ACTION_OPTION_source=
# CMM_ACTION_OPTION_destination=
# CMM_ACTION_OPTION_argument=
# CMM_ACTION_OPTION_argument=
cmmsh_core_include cmmsh/fs
cmmsh_core_include cmmsh/git
cmmsh_action_git_clone() {
local url="${... | true |
37b905c8f48d15a7d5d821bb1c83ceeafe1cb55a | Shell | wjcarey/apache2-certbot-add-domain | /apache2-certbot-add-domain.sh | UTF-8 | 521 | 3.34375 | 3 | [
"Apache-2.0"
] | permissive | #! /bin/bash
if [ -z "$1" ]
then
echo "enter the webroot of your website ..."
read INSTALL_PATH
echo "enter the domain name of your website ..."
read DOMAIN_NAME
else
INSTALL_PATH=${1}
DOMAIN_NAME=${2}
fi
INSTALL_PATH=$(realpath -s --canonicalize-missing $INSTALL_PATH)
... | true |
b17c46e919f14497782d5602c899f17c43853057 | Shell | mvicha/todo-list-aws | /terraform/resources/get-ssh-key.sh | UTF-8 | 382 | 3.15625 | 3 | [] | no_license | #! /bin/bash
user=${1}
mkdir -p resources/${user}
echo "-----BEGIN RSA PRIVATE KEY-----" > resources/${user}/key.pem
cat ${user}_key_pem | tr " " "\n" | awk '{print $1}' | tail -n +5 | egrep -v "^(-----END|RSA|PRIVATE|KEY-----)$" >> resources/${user}/key.pem
echo "-----END RSA PRIVATE KEY-----" >> resources/${user}/k... | true |
d6f2b5d9efb13e2a3f7be331ca64a2a5090708c7 | Shell | cppforlife/kafka-release | /tests/run.sh | UTF-8 | 1,190 | 2.78125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e # -x
echo "-----> `date`: Upload stemcell"
bosh -n upload-stemcell "https://bosh.io/d/stemcells/bosh-warden-boshlite-ubuntu-trusty-go_agent?v=3541.9" \
--sha1 44138ff5e30cc1d7724d88eaa70fab955b8011bd \
--name bosh-warden-boshlite-ubuntu-trusty-go_agent \
--version 3541.9
echo "-----> `date`:... | true |
11747dddbe5b97a0eb1fa4a22f7567fc54d524f9 | Shell | camwebb/akflora | /dataflow/GBIF/yt_extension/README.sh | UTF-8 | 2,929 | 2.890625 | 3 | [] | no_license | # Getting species list for Ecosystems extension of Alaska into the Yukon
# 5 Blocks with low dimensional jaggedness needed for GBIF queries:
# https://www.google.com/maps/d/viewer?mid=1JgKNK6-DVAgrsWOow2lSlFTg1U0D1Lft
# 2021-10-02 & 2022-03-16
function qgbif() {
POLY=`gawk 'BEGIN{FS=","}{gsub(/ /,"",$0);x=x $1 "... | true |
98b5a839606c576e1217107a839375db1a710838 | Shell | victoriousxd/blackbox | /client_scripts/benign | UTF-8 | 153 | 3.046875 | 3 | [] | no_license | #!/bin/bash
key="$1"
case $key in
-s|--server_ip)
SERVER_IP="$2"
;;
esac
while true; do
wget -O/dev/null -q $SERVER_IP
sleep 5
done
| true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.