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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
ed5502e9e0475fada1f1732fbc8b70f632c573a0 | Shell | 3683/sjohnso | /ansible/proxy/alpine/connect-to-bmns | UTF-8 | 1,241 | 4.1875 | 4 | [] | no_license | #!/bin/bash
SELF=$(basename $0)
usage() {
cat << USAGE
Usage: ${SELF} [OPTION]... [OPTION]...
Options:
-h|--help show this help message and exit
-c|--config CONFIG path to ssh config file to use
-b|--bmn BMN name of BMNs to initiate connects to
(use multiple -... | true |
a6834960c6835765ca6197477ca439b1c543f57b | Shell | eemperor/ash-linux-formula | /ash-linux/el6/STIGbyID/cat1/files/V38491.sh | UTF-8 | 760 | 3.203125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
#
# STIG URL: http://www.stigviewer.com/stig/red_hat_enterprise_linux_6/2014-06-11/finding/V-38491
# Finding ID: V-38491
# Version: RHEL-06-000019
# Finding Level: High
#
# There must be no .rhosts or hosts.equiv files on the system. Trust
# files are convenient, but when used in conjunction with the... | true |
103fc2af7d0fea0ac219bb321de366cddc9e9176 | Shell | gabrielecerami/khaleesi | /run.sh | UTF-8 | 2,185 | 3.8125 | 4 | [] | no_license | #! /usr/bin/env bash
set -e -u
source functions.bash
collect_logs() {
local cmdline="ansible-playbook -i local_hosts \
playbooks/collect_logs.yml \
--extra-vars @settings.yml \
--extra-vars @nodes.yml \
-u $REMOTE_USER -s"
if [[ ! -z $skip_tags_collect ]]; t... | true |
0b496cf21e6e795cf92be2599e47339c8d9a67c7 | Shell | triton/triton | /nixos/maintainers/scripts/ec2/create-amis.sh | UTF-8 | 8,988 | 3.71875 | 4 | [
"MIT"
] | permissive | #! /bin/sh -e
set -o pipefail
#set -x
stateDir=${TMPDIR:-/tmp}/ec2-image
echo "keeping state in $stateDir"
mkdir -p $stateDir
version=$(nix-instantiate --eval --strict '<nixpkgs>' -A lib.nixpkgsVersion | sed s/'"'//g)
echo "NixOS version is $version"
rm -f ec2-amis.nix
for type in hvm pv; do
link=$stateDir/$t... | true |
f19e6217bd2e0ce160b212843618cd91297e03d4 | Shell | moj3ve/TheosScript | /setup.sh | UTF-8 | 3,706 | 3.734375 | 4 | [] | no_license | #!/bin/sh
# heavy thanks to kritanta for the baseline of this script.
NC='\033[0m' # No Color.
VI='\033[0;95m' # Violet.
YE='\033[1;93m' # Yellow.
CYA='\033[0;96m' # Cyan.
GR='\033[0;32m' # Green... | true |
84b1ef64a6976fed2ab5c982b7f63ba3c57a71ff | Shell | christophercook/host-profiles | /setup-node.sh | UTF-8 | 780 | 3.65625 | 4 | [] | no_license | #!/bin/bash
# Check if running as root
if [ "$EUID" -ne 0 ]; then
echo "This script must be run as root"
exit 1
fi
# Ubuntu specific
if [ "$(lsb_release -si)" = "Ubuntu" ]; then
# Install nodejs 8.x if not found
if [ -z "$(which node)" ]; then
curl -sL https://deb.nodesource.com/setup_8.x | bash -
... | true |
94370ca352549dbaad4d43ef9e0f7408128d4904 | Shell | pyj6767/parkyj6767_linux_Scirpt | /write_atomlabel | UTF-8 | 2,157 | 3.765625 | 4 | [] | no_license | #!/bin/sh
#Script Name : write_atomlabel | Made by Young-Jun Park, yjpark29@postech.ac.kr
#Description
#: write_atomlabel (for CONTCAR)
#Condition : there is CONTCAR file in current directory
#Specifying linenumber
#------------------------------------------------------------------------
#Direct/Cartesian Check
Direct... | true |
62f939d0ab27ecf32135a53bfce0515dd65da540 | Shell | FreeWebOS/luna-service2 | /src/libluna-service2/test/run_unit_tests | UTF-8 | 1,044 | 3.96875 | 4 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | #!/bin/sh
BASE_DIR=${HOME}/luna-desktop-binaries/staging
LIB_DIR="${BASE_DIR}/lib;${BASE_DIR}/usr/lib"
LOG_DIR="$1"
LOG_XML=${LOG_DIR}/unittests.xml
LOG_HTML=${LOG_DIR}/unittests.html
function usage()
{
cat <<EOF
Usage: `basename $0` PATH_TO_BUILD_DIR
Run all unit tests and generate test report (${LOG_HTML})
P... | true |
473135267ae9ceeae21438256a751a686e4b9e01 | Shell | senycorp/studiz | /build/publisher | UTF-8 | 503 | 3.421875 | 3 | [
"MIT",
"Apache-2.0"
] | permissive | #!/bin/bash
#################################################
# This script is used by phpStorms FileWatcher #
# to automatically update package assets in #
# public folder. #
#################################################
# Get source file
source="$(pwd)/$1"
# Build target pat... | true |
61ea54fa4a42b79bad78679dee2a87ffc8f08b1d | Shell | jesperfj/hk-gh | /setup | UTF-8 | 2,861 | 3.984375 | 4 | [] | no_license | #!/bin/bash
function usage {
cat <<EOF
setup 1: sets up a new Heroku app for branch
Usage: hk setup [-b branch] [app name]
Example:
hk setup
hk setup -b my-topic-branch
hk setup my-app-name
EOF
}
if [ "$HKPLUGINMODE" = info ]; then
usage
exit 0
fi
if [ ! -e "$HOME/.heroku/github" ]; then
echo ... | true |
2c31503089eac2be40fd476bac8aa4edeb084f09 | Shell | somic/puppet-monitoring_check | /files/remediation.sh | UTF-8 | 1,339 | 4.3125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Takes a check command, and an action command
# If the action doesn't return a 0, the action is run and the output is returned
RETRIES=1
while getopts "n:c:a:r:" arg; do
case $arg in
n)
# The name of the check we're running
NAME=$OPTARG
;;
c)
# The check that we're running
CHECK=... | true |
dddb791125e0626cfd09e099187bbdc2d7997ebd | Shell | xwmhmily/miniSwoole | /shell/process.sh | UTF-8 | 210 | 2.796875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Heartbeat the process
# Usage: sh process.sh
PHP=`which php`
PARENT_PATH=$(dirname "$PWD")
PROCESS_HEARTBEAT_FILE=$PARENT_PATH"/Boostrap.php"
cat logo.txt && $PHP $PROCESS_HEARTBEAT_FILE process | true |
24a17b2e354783815f0e905178d36e06b56e6a28 | Shell | tmarble/gtalkice | /entrypoint.sh | UTF-8 | 1,253 | 3.65625 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# entrypoint.sh
set -x
echo "YOU SAID $@"
# NOTE test will work for bash AND dash
# if test "X$@" = "X"; then
if [ "X$@" = "X" ]; then
cmd="iceweasel"
else
cmd=$@
fi
USER=${DOCKER_USER:-browser}
USER_UID=${DOCKER_UID:-1000}
USER_GID=${DOCKER_GID:-100}
# create user, if needed
if getent passwd $USER... | true |
5e0e8918566e507bb7ea7c9b4edf598d6a54b40a | Shell | Biazid/Sports-Equipment-Management-System | /12.8/unixjobs/Base/Shell/Index Maintenance/rebuild_index_tablespace.sh | UTF-8 | 1,562 | 3.421875 | 3 | [] | no_license | #!/bin/sh
#-------------------------------------------------------
# File: rebuild_index_tablespace.sh
# Desc: Rebuild Indexes - Single Tablespace
# Runs: Noon Every Sunday = 0 12 * * 0
# Parm: 1 - Tablespace for which to Rebuild Indexes
# Parm: 2 - Parallel Degree (default 4)
#----------------------------------------... | true |
2e00101144dc3c7e84dff1669ef420be4155e861 | Shell | l3e0x7b/MyPrecious | /ShellScripts/st3_pc_channel_auto_update.sh | UTF-8 | 705 | 3.453125 | 3 | [] | no_license | #!/bin/bash
##
## Description: 定时推送最新 Sublime Text 3 package-control channel 文件到 GitHub。
##
## Author: l3e0x7b, <lyq0x7b@foxmail.com>
##
script_path='/opt/MyPrecious/ShellScripts' # 此脚本所在路径
repo='/opt/MyPrecious' # GitHub 仓库路径
cd ${repo} || exit
git pull
curl -Ssl https://packagecontrol.io/channel_v3.json ... | true |
57c45276100e9dd11702f0e50a7d8b4148f8010f | Shell | tewksbum/amazon-chime-media-capture-pipeline-demo | /deploy.sh | UTF-8 | 2,977 | 3.71875 | 4 | [
"MIT-0"
] | permissive | #!/bin/bash
if ! [ -x "$(command -v node)" ]; then
echo 'Error: node is not installed. https://nodejs.org/en/download/' >&2
exit 1
fi
NODEVER="$(node --version)"
REQNODE="v12.0.0"
if ! [ "$(printf '%s\n' "$REQNODE" "$NODEVER" | sort -V | head -n1)" = "$REQNODE" ]; then
echo 'node must be version 12+ https://n... | true |
a73c447153ce4c75201fa044688c114be89a5f54 | Shell | whylu/cronMs | /cronMs.sh | UTF-8 | 1,580 | 4 | 4 | [] | no_license |
# the install path
cronMs_path=$(pwd)
# the config path
config=$cronMs_path/config
# the pid file folder path of running process
startpid=$cronMs_path/startpid
# the status file path
status=$cronMs_path/status
# $1 => pid
# $2 => call interval time in second
# $3 => command
function addStatus() {
echo pid: $1... | true |
c9a48523a2131bafb86a863899f066ca206a2b08 | Shell | stewrav/opensuse-mods | /usr/local/bin/deadlinks | UTF-8 | 702 | 4 | 4 | [] | no_license | #!/usr/bin/sh
# Show dead symbolic links
# Checks only current directory, not subdirectory
# hence quicker
# Specify local variables
typeset dir
[[ $# -gt 1 ]] && {
print -u2 "Usage: ${0##*/} <directory>"
exit 1
}
# Specify default directory as home
if [[ $1 = "" ]]; then
dir=$HOME
else
dir=$1
fi
[[ -a "$dir" ... | true |
6fdb603057324dda5b306862582014a0df3c1fd9 | Shell | ArbitratorDAO/escrow-contract | /travscripts/AfterScript.sh | UTF-8 | 350 | 2.890625 | 3 | [] | no_license | #!/bin/bash
if [[ $TRAVIS_BRANCH =~ (feature/test-?(\/[a-zA-Z0-9/._-]*)?) ]]; then
echo " ==> Detected a CONTRACT(S) branch"
#jump back to root
cd $TRAVIS_BUILD_DIR
echo " ==> JUMPING LOCATIONS: NOW IN $TRAVIS_BUILD_DIR"
#run solcover
echo " ==> RUNNING solidity-coverage" &&
npm run coverage && cat cove... | true |
2c01ee15e2686013c0649e485f893569651d942b | Shell | jhsu802701/generic_app_old | /gem_test.sh | UTF-8 | 277 | 2.53125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
gem uninstall generic_app
DIR_GENERIC_APP=$PWD
DIR_PARENT="${PWD%/*}"
mkdir -p log
echo '=============='
echo 'bundle install'
bin/setup >/dev/null
echo '===='
echo 'rake'
rake
echo '======================'
echo 'bundle exec rubocop -D'
bundle exec rubocop -D
| true |
a75c962fd2df915f56a03a66f96e035a447026a5 | Shell | alanplatt/osimage-builder | /scripts/common/virtualbox.sh | UTF-8 | 1,044 | 3.546875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh -eux
HOME_DIR="/home/vagrant"
pubkey_url="https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub";
case "$PACKER_BUILDER_TYPE" in
virtualbox-iso|virtualbox-ovf)
#Install VBOX tools
VER="`cat /home/vagrant/.vbox_version`"
ISO="VBoxGuestAdditions_$VER.iso"
mkdir -p /tmp/vb... | true |
5d7b5fa2a8d331f3bb5ee49c8407f7ac114012b7 | Shell | jianyuh/cpu_gpu_profiling | /mkl/setfreq.sh | UTF-8 | 508 | 2.65625 | 3 | [] | no_license | #!/bin/sh
#export freq=2300000
#for i in $(seq 0 1 0)
#do
# echo ${i}
# cpufreq-set -c ${i} -g userspace
# cpufreq-set -c ${i} -f ${freq}
#done
#for x in /sys/devices/system/cpu/cpu[0-3]/cpufreq/;do
#for x in /sys/devices/system/cpu/cpu[0-71]/cpufreq;do
for i in $(seq 0 1 7)
do
echo /sys/devices/system/cpu/cpu... | true |
b762a663795a5aeeef9bde3610f4df7d39e9d6c4 | Shell | petronny/aur3-mirror | /liferea-ext4/PKGBUILD | UTF-8 | 1,395 | 2.765625 | 3 | [] | no_license | # Maintainer: Alex Weil <ajonat at gmail dot com>
_pkgrealname=liferea
pkgname=${_pkgrealname}-ext4
pkgver=1.7.4
pkgrel=2
pkgdesc="A GTK desktop news aggregator for online news feeds and weblogs patched for ext4 filesystem to improve speed"
arch=('i686' 'x86_64')
url="http://liferea.sourceforge.net/"
license=('GPL')
d... | true |
adffeb12ced9bdd856246f4aaebe7c31a46e44c4 | Shell | zyex1108/SWARM-Gravity-Inversion | /scripts/gnv2gps.scr | UTF-8 | 1,280 | 3.4375 | 3 | [
"MIT"
] | permissive | #! /bin/bash
if [ $# -lt 3 ]
then
echo "usage: $0 year month day"
exit
fi
DIR=..
#DIR=$HOME/my_packages
if [ ! $INPUTexe ]; then
export INPUTexe=$DIR/bin
fi
if [ ! $INPUTdata ]; then
export INPUTdata=$DIR/data
fi
year=$1; month=$2; day=$3
ver=02
###############################################
i... | true |
339ada90c09eafef455e6e664b2657f92620f7e1 | Shell | a-vaniev/ubuntu-scripts | /thumbnailer/libreoffice/lo-thumbnailer-install.sh | UTF-8 | 2,630 | 3.234375 | 3 | [] | no_license | #!/bin/sh
# LibreOffice thumbnailer
# test Ubuntu distribution
DISTRO=$(lsb_release -is 2>/dev/null)
[ "${DISTRO}" != "Ubuntu" ] && { zenity --error --text="This automatic installation script is for Ubuntu only"; exit 1; }
# install tools
sudo apt-get -y install libfile-mimeinfo-perl gvfs-bin unzip netpbm
# install ... | true |
18ddb3d27bf9bbd9da16f1f1bdc74fb2668262a1 | Shell | d2bilisim/httpry | /sbin/httpry-logrotation | UTF-8 | 499 | 3.375 | 3 | [] | no_license | #!/bin/sh
# DansGuardian logrotation script for version 2.12.0.0
# httpry için modifiye edildi
LOG_DIR=/var/log
NUM_LOGS=4
LOG=$LOG_DIR/httpry.log
/usr/local/etc/rc.d/httpry stop
# Keep a maximum of $NUM_LOGS logs around.
if [ -f $LOG.$NUM_LOGS ]; then rm -f $LOG.$NUM_LOGS; fi
n=$(( $NUM_LOGS - 1 ))
while [ $n -gt 0... | true |
5f2d652d375f5d76cfd1996d475954621a43b2b6 | Shell | uuie/utilities-uuie | /ios-image-define-script/emotion_gen.sh | UTF-8 | 1,039 | 3.53125 | 4 | [] | no_license | #!/bin/sh
echo $SOURCE_ROOT
EMOTIONSDIR=$SOURCE_ROOT/Resources/emotions
TARGETFILE=$SOURCE_ROOT/emotions.plist
TEMPTARGET=$SOURCE_ROOT/emotions.plist.tmp
EMOTIONLIST=$SOURCE_ROOT/emotionlist.tmp
find $EMOTIONSDIR -name "*.gif"|awk '{print "\""$0"\""}' | xargs basename >$EMOTIONLIST
echo '<?xml version="1.0" encoding... | true |
c71f51fdce63bc709c15522dc4d6c7838fadcf27 | Shell | S10MC2015/cms-django | /dev-tools/code_style.sh | UTF-8 | 194 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# This script can be used to run both our code style tools black and pylint.
cd $(dirname "$BASH_SOURCE")/..
# Run black
pipenv run black .
# Run pylint
pipenv run pylint_runner
| true |
30013f4581152e42c4c001b977b5796169de2db0 | Shell | efrecon/docker-images | /binenv/hooks/build | UTF-8 | 1,908 | 3.84375 | 4 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env sh
# Set good defaults to allow script to be run by hand. The two variables below
# will never be used when run from within the Docker hub.
DOCKER_REPO=${DOCKER_REPO:-"efrecon/binenv"}
SOURCE_COMMIT=${SOURCE_COMMIT:-$(git log --no-decorate|grep '^commit'|head -n 1| awk '{print $2}')}
# Minimum version ... | true |
3de498d34adfac7e0b7ad1c81191fd8e1f00ffd2 | Shell | bugfix82/slackbuilds | /qemu/doinst.sh.in | UTF-8 | 395 | 3.203125 | 3 | [] | no_license | #!/bin/sh
user=kvm
group=kvm
/usr/bin/getent group ${group} > /dev/unll 2>&1 || (echo "Group ${group} not found, creating.."; /usr/sbin/groupadd -r ${group})
/usr/bin/id ${user} > /dev/null 2>&1 || (echo "User ${user} not found, creating.." ; /usr/sbin/useradd -r -s /sbin/nologin -g ${group} ${user})
echo -e "\n \
B... | true |
7938686a49baccf3232a3ca95cc68defe11f967f | Shell | simon-mo/inferline-models | /model_containers/old_containers/build_td2_docker_images.sh | UTF-8 | 589 | 3.078125 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
set -u
set -o pipefail
unset CDPATH
# one-liner from http://stackoverflow.com/a/246128
# Determines absolute path of the directory containing
# the script.
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Build RPC base images for python/anaconda and deep learning
# models
cd $DIR... | true |
904bea8390da9e9fad37924c6fc5fcc144db695f | Shell | Vaishnav-P/SEM4 | /system/lab2/armstrong.sh | UTF-8 | 527 | 4.09375 | 4 | [] | no_license | nofdigits()
{
count=0;
number=$1;
while [ $number != 0 ]
do
number=$(($number/10));
count=$(($count + 1));
done
return $count;
}
armstrong()
{
echo " Enter the number "
read num
`nofdigits $num`
count=$?
echo $count
temp=$num
sum=0
while [ $num != 0 ]
do
rem=$(( $num % 10 ))... | true |
ff2a46919f8035cee353aa5c80f8ab01e4ee5e76 | Shell | Dmdv/ecs-workshop-blue-green-deployments | /bin/scripts/destroy.sh | UTF-8 | 1,614 | 2.921875 | 3 | [
"MIT-0"
] | permissive | #!/usr/bin/env bash
######################################################################
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. #
# SPDX-License-Identifier: MIT-0 #
######################################################################
GREEN="\033[1;... | true |
08c67024bf5693f07e0d4caf57d78805656622f3 | Shell | KINGgemeenten/websitecrawler | /scripts/local/run.sh | UTF-8 | 2,814 | 3.578125 | 4 | [] | no_license | #!/bin/bash
(
# Obtain an exclusive lock, give up if unable (non-block)
if flock -x -n 200
then
# Check for updated inject URL's and domain URL filter
echo Downloading updated seed.txt
if curl -s -f http://example.org/ > seed.txt.new
then
# Check it has changed
if ! diff -q inject_url... | true |
b38513035b19a8ebdd2e673e4f8efe5041e9ff0f | Shell | dams946/TP_RT801 | /TP_801/creaion_dest_contener/test_create.sh | UTF-8 | 1,782 | 3.265625 | 3 | [] | no_license | if [ $# -ne 6 ]
then
echo "le nombre d'argument manquante"
exit 1
fi
echo "---creation du conteneur---"
lxc-create -n $2 -t $1
if [ $? -ne 0 ]; then
echo "la creation du conteneur a échoué "
exit 1
fi
echo "Creation du Conteneur OK"
echo "-------------------------------------------------"
echo " Parame... | true |
5a31214f688ed6a25a280c9c4f5025e8595ada0c | Shell | simontime/vgmstream | /version.sh | UTF-8 | 90 | 2.8125 | 3 | [
"ISC",
"LicenseRef-scancode-public-domain"
] | permissive | #!/bin/sh
DIR="`dirname "$0"`"
VERSION="`git describe --always | tr : _`"
echo "$VERSION"
| true |
14688dc2388466d3bd2a0bcb616698e93f1a36ec | Shell | pallocate/tedit | /build/bin/build-scripts/plugins | UTF-8 | 1,061 | 3.578125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
clear
cd /home/projects/plugins/plugins
# Print usage
printUsage () {
echo "Usage: $0 task"
echo
echo "Tasks:"
echo "all tests api"
}
PLUGINS_DIR="build/dist/platform/jvm/plugins"
DEPENDENCIES=$JNA:$PEN:$EXPOSED
task="all"
if [ $1 ]; then
task=$1
fi
### All (default) ... | true |
cf12de93c3657df665034fafbe9905bad5cbe9b7 | Shell | sgseo/hlshell | /install | UTF-8 | 1,715 | 2.625 | 3 | [] | no_license | #!/bin/bash
#希望你能尊重开发者的作品如果您转载请【保留本版权信息】
#狐狸脚本官网 http://www.hlshell.com
#————————————————————————————————————————
# ╦ ╦╦ ╔═╗╦ ╦╔═╗╦ ╦ ╔═╗╔═╗╔╦╗
# ╠═╣║ ╚═╗╠═╣║╣ ║ ║ ║ ║ ║║║║
# ╩ ╩╩═╝╚═╝╩ ╩╚═╝╩═╝╩═╝o╚═╝╚═╝╩ ╩
# Copyright © 2015-2016 狐狸脚本官网版权
#————————————————————————————————————————
files="/etc/s-hell"
source... | true |
3b4f5828001a8a39d9aa8eee06d28e259510d128 | Shell | devops-life/shell_python | /doc/Service/nagios/nrpe/check_http_status.sh | UTF-8 | 209 | 3.046875 | 3 | [] | no_license | #!/bin/sh
check=`curl -o /dev/null -s -m 10 --connect-timeout 10 -w %{http_code} $1`
if [ "$check" == "200" ]
then
echo "$1 is ok"
exit 0
else
echo "$1 Status: $check"
exit 2
fi | true |
b83def040719a4d36333f84da19573bf3ab7d165 | Shell | rainmaple/paraflow | /paraflow-1.0-alpha1/bin/paraflow-run-class.sh | UTF-8 | 2,765 | 3.59375 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
if [ $# -lt 1 ];
then
echo "USAGE: $0 [-daemon] [-name serviceName] [-loggc] classname [opts]"
exit 1
fi
# get base dir
base_dir=$(dirname $0)
# add local jars into classpath
for file in "$base_dir"/../libs/*.jar;
do
CLASSPATH="$CLASSPATH":"$file"
done
if [ "x$PARAFLOW_HOME" = "x" ]; then
... | true |
a449147c0d572ff1a55e5120b210ce657dc2edc8 | Shell | apolonio/regex | /modulo3/modulo3_ex2.1.sh | UTF-8 | 664 | 3.453125 | 3 | [] | no_license | #!/bin/bash
#Scritp que verifica vários IPs com base nos IPs que estao dentro do arquivo hosts.txt
#Autor: Apolonio Santiago Junior (apolocomputacao@gmail.com)
#Versao 1.1
#Acrescentado uma variavel que recebe um arquivo
#Utilização ./modulo3_ex2.1.sh hosts.txt
lista=$(cat hosts.txt)
#A variavel $lista nao pode estar... | true |
5ca136f143f0cac354482eff7e900a3dbdf62edf | Shell | umair-uas/performane_toolkits_sh | /tools/write_emmc | UTF-8 | 1,818 | 3.328125 | 3 | [] | no_license | #!/bin/bash
logfile=write_emmc.log
echo "####################64k##############################"|tee $logfile
data_avail=`adb shell df -k|awk '/\/data/{if(match($6,"/data"))print $4;}'`
#data_avail=$1
echo "$data_avail"|tee -a $logfile
count_64k=0
count_64k=$(($data_avail/64))
echo "count_64k=$count_64k"|tee -a $logf... | true |
48980e0ab321c701e9c51ce3c23de5fad296e5fc | Shell | mikew-lunarg/Vulkan-Builder | /MOVE_BUILD.txt | UTF-8 | 389 | 2.921875 | 3 | [] | no_license | #! /bin/bash -x
exit 1
# MOVE_BUILD : move build/install directories to a common dir
# TODO make this a cmdline arg
DIR="."
# capture the state of local branches per repo
ivr g bb > "$DIR/g_bb.txt"
mv ~/VK_INSTALL/ "$DIR"
mv ~/kvh/BUILD/ "$DIR/kvh"
mv ~/kvl/BUILD/ "$DIR/kvl"
mv ~/kvt/BUILD/ "$DIR/kvt"
mv ~/kvv/BUIL... | true |
0b73611a7a6820246af7d651dfd6be92dd42ab1a | Shell | scriptzteam/SCENE-SCRiPTS | /Others/Other/glftpd_scripts/ip/keygen.Archive.sh | UTF-8 | 922 | 3.609375 | 4 | [
"WTFPL"
] | permissive | #!/bin/sh
# iP Keygen Only Archive (v0.2)
#
# This script copies keygen.only releases to an archive dir.
#
# Author: ip
#
# Disclamer: This code carries no warranty ..use at own risk...blah
#
# Best run from your freespace script.
#
# Ex.: ./keygen.Archive.sh /glftpd/site/0107
#
# $1 = Path of Dated Dir to Archiv... | true |
73a4c583709ae4cbe1625dfd19376232b965b784 | Shell | ajaypb-eci/ECI | /ShellCode/EqualNumbers.sh | UTF-8 | 167 | 3.25 | 3 | [] | no_license | echo "Enter the a number:"
read a
echo "Enter the b number:"
read b
if [ "$a" == "$b" ]; then
echo "Two numbers are equal"
else
echo "Two numbers are Not equal"
fi | true |
d61b4ad7ff8e44b26d74cbfd304d7833b2021986 | Shell | gnfisher/manjaro-dotfiles | /zshrc | UTF-8 | 1,242 | 2.9375 | 3 | [] | no_license | # The following lines were added by compinstall
zstyle ':completion:*' completer _expand _complete _ignored _correct _approximate
zstyle :compinstall filename '/home/greg/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
export PATH=$HOME/.bin:/usr/local/bin:$PATH
[ -f ~/.fzf.zsh ] && source... | true |
f427428ecbe5bb92809e1ccd5df17c5bc4b492b6 | Shell | fedor-git/openvpn-server-route-add | /updown.sh | UTF-8 | 670 | 3.421875 | 3 | [] | no_license | #!/bin/bash
openvpn_config_dir="/etc/openvpn"
# static = true
# dynamic = false
static=true
# ./route-static.sh username [ up/down ]
# ./route-dynamic.sh username user_ip [ up/down ]
if $static ; then
script='route-static.sh'
else
script='route-dynamic.sh'
fi
case "$1" in
"connect" )
if $static ; then
eval "$openv... | true |
5566089ae771244ca3bcc2220847b7af43974adc | Shell | Harvard-MolSys-Lab/dynamic-workbench | /meta/setup/bootstrap.sh | UTF-8 | 4,417 | 3.328125 | 3 | [] | no_license |
# Add MongoDB Package
echo 'Add MongoDB Package...'
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
sudo apt-get update
echo 'MongoDB Package added.'
# Update System... | true |
4abbfc52325af842c831183ff4803e9bfce801b0 | Shell | zioncoin2100/js-zion-sdk | /bower_publish.sh | UTF-8 | 301 | 2.890625 | 3 | [
"Apache-2.0",
"MIT"
] | permissive | #!/bin/bash
git clone "https://zion-jenkins@github.com/zion/bower-js-zion-sdk.git" bower
if [ ! -d "bower" ]; then
echo "Error cloning"
exit 1
fi
cp dist/* bower
cd bower
git add .
git commit -m $TRAVIS_TAG
git tag -a $TRAVIS_TAG -m $TRAVIS_TAG
git push origin master --tags
cd ..
rm -rf bower
| true |
9b7a05d81b156c29f911cbbd8cf299c0a6da4137 | Shell | tox2ik/local-bin | /ctorrent-pwd-fd | UTF-8 | 466 | 3.46875 | 3 | [] | no_license | #!/bin/bash
param=$1
param="${param%.torrent}.*\.torrent"
found=$(fd "${param}")
c=$( echo -e "$found" | wc -l)
if [[ $c -eq 1 ]] && [[ -n $found ]]; then
dirname "$found" >&2
ctorrent-pwd "$found"
else
echo '# 1:' $1
echo '# p:' $param
echo '# c:' $c
echo -e "$found" | sed 's/^/# /'
if echo -e "... | true |
d07cdd97e584e855297c2717053a2a77c2c81e05 | Shell | ijleesw/data-compression | /test.sh | UTF-8 | 14,941 | 2.875 | 3 | [] | no_license | echo "Building executables"
echo ""
rm result/tunstall/* > /dev/null 2>&1
rm result/golomb/* > /dev/null 2>&1
rm result/arithmetic/* > /dev/null 2>&1
rm result/gzip/* > /dev/null 2>&1
rm result/bzip2/* > /dev/null 2>&1
rm result/xz/* > /dev/null 2>&1
rm result/static_huffman/* > /dev/null 2>&1
rm result/adaptive_huffma... | true |
90fc4b96ba3301987b8fb60d71802f317c36d4e6 | Shell | Thlr/dotfiles-arch | /scripts/.local/bin/statusbar/updates | UTF-8 | 111 | 2.515625 | 3 | [] | no_license | #!/bin/sh
case $BUTTON in
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
esac
paru -Sy
echo "$( paru -Qu | wc -l)"
| true |
defb281c6e9355d6623dfb40726c7c7559a9d255 | Shell | leodh/RPython-internship | /Interpreters/AE/scriptTests.sh | UTF-8 | 675 | 3.265625 | 3 | [] | no_license | #!/bin/sh
#To compare performances of AE-interpreter
export i=5
export name=""
export begin=0
export end=0
exporte time=0
until [ "$i" -gt 50 ];
do
echo "Generating an example of depth $i"
name="exampleDepth$i"
python writeExpr.py -i $name $i
echo "Interpreting with python and interpreter.py"
# beg... | true |
e27bed9273864e36deb51481fdd8a7c54932445d | Shell | zahirekrem09/Bash_Script | /bashscript_notebook/fordongu.sh | UTF-8 | 280 | 3.390625 | 3 | [] | no_license | #!/bin/bash
for i in 1 2 3 4 5
do
echo $i
done
for i in ls pwd
do
echo "-----------$i----------------"
$i
echo
done
for i in {1..10..2}
do
echo $i
done
for (( i=0 ; i<=10 ; i++ ))
do
if [ $i -gt 5 ]
then
break
fi
echo $i
sleep 1
done
| true |
bdd6561f538cab266952b84b5b887243047c7fac | Shell | rlacerda83/common-sdk | /bin/init.sh | UTF-8 | 451 | 3.296875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# @Date: 2016-07-08T08:56:28-03:00
# @Modified at 2016-07-08T08:57:32-03:00
# {release_id}
commonSdk="$(dirname $0)/../";
PW=`pwd`;
CURRENT_BRANCH=`git branch | grep '\*' | awk '{print $2}'`
if [ $# -eq 0 ]
then
echo "No arguments supplied";
exit 1;
fi
PROJECT_NAME=$1;
size=${#PROJECT_NAME}
... | true |
f88efe1dfa1855371e57a984f3e60d09b3d22f9d | Shell | laggardkernel/spacezsh-prompt | /lib/utils/+vi-hg-untracked | UTF-8 | 539 | 2.84375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env zsh
# vim: ft=zsh fdm=marker foldlevel=0 sw=2 ts=2 sts=2 et
#
# spacezsh/sections/hg_status
# hg: Show marker if there are untracked files in repository
# Make sure you have added unstaged to your 'formats': %u
function +vi-hg-untracked {
[[ -n "${hook_com[index]}" ]] || hook_com[index]=$(command hg ... | true |
475db6966d5a9eaa34949e51f320b4b43731a2de | Shell | CESNET/perun-services | /slave/process-k5login-root/bin/process-k5login_root.sh | UTF-8 | 703 | 3.5625 | 4 | [
"BSD-2-Clause",
"BSD-2-Clause-Views"
] | permissive | #!/bin/bash
PROTOCOL_VERSION='3.0.0'
function process {
if [ -z "$DST_FILE" ]; then
DST_FILE="/root/.k5login"
fi
### Status codes
I_CHANGED=(0 "${DST_FILE} updated")
I_NOT_CHANGED=(0 "${DST_FILE} has not changed")
E_CHOWN=(50 'Cannot chown on ${FROM_PERUN}')
E_CHMOD=(51 'Cannot chmod on ${FROM_PERUN}')
F... | true |
582d8fcfb79c77803c840dad280a73378467de9f | Shell | achaphiv/ppa-fonts | /ppa/bin/build-cairo | UTF-8 | 822 | 3.453125 | 3 | [] | no_license | #!/bin/bash
set -ex
starting_dir=$(pwd)
version=$1
ppa_version=$2
package='cairo'
dist=$(lsb_release -s -c)
new_version=${version}${ppa_version}
build_dir=build-${package}-${dist}
rm -rf ${build_dir}
mkdir ${build_dir}
cd ${build_dir}
apt-get source ${package}=${version}
cd ${package}*/
for patch in $starting_... | true |
235ea00d89c1b7125411695c9068430980ae5475 | Shell | Vzlentin/boisseau-de-riz | /.bashrc | UTF-8 | 668 | 2.75 | 3 | [] | no_license | #
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
alias la='ls -la'
alias vim='nvim'
alias locate='plocate'
alias p='sudo pacman'
(cat ~/.cache/wal/sequences &)
source ~/.cache/wal/colors-tty.sh
LF_ICONS=$(sed ~/.config/core/diricons \
... | true |
2f7752b3d9d683c67ee26ba5031b30b36ab93d59 | Shell | ilpan/six | /mac.sh | UTF-8 | 1,302 | 2.625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# install brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# install required apps
brew install axel curl wget zsh git
# configure git
git config --global user.name "ilpan"
git config --global user.email "pna.dev@outlook.com"
# install oh-my-zsh and... | true |
24c500ca2c1c4f678ec98a74d0cde484a439869e | Shell | BamaComputationalBiology/Applied-Bioinformatics | /dontpanic.sh | UTF-8 | 211 | 2.59375 | 3 | [] | no_license | #!/bin/bash
# Escaping the apostrophe can be tricky in awk
awk 'BEGIN { print "Don\47t Panic!" }' # POSIX awk version
awk 'BEGIN { print "Don\047t Panic!" }' # if followed by an octal digit, \047 is required
| true |
78826458e3df795a4d85b25b578f2dafffb1ad9c | Shell | ReMalone/CSCE-Old-College-Assignments- | /CSCE3600/bash/minor4/minor4.sh | UTF-8 | 490 | 2.984375 | 3 | [] | no_license | #Robert E Malone
#Minor 4
#Couldn't get my duplicate to work in time
#Also had trouble trying to get my SIGINT to register 3 times before
#closing
#!/bin/bash
echo "$(date) ) intial users logged in"
num1=$(users | wc -w)
#Manage to set trap comment to exit when Ctrl-c
trap '' INT
#Used a forloop to check how many ... | true |
228d936cddd4966c0155346a67b96c8c02cc9e4e | Shell | j-bowe/panosh | /paloalto-inventory.sh | UTF-8 | 3,183 | 3.5 | 4 | [] | no_license | #!/bin/bash
#not using the central var file as it creates loops in the inventory check
subfolder="inventory"
today=$(date +%m-%d-%Y)
vendor="paloalto"
win="success.txt"
fail="error.txt"
final="$vendor$subfolder.txt"
bounce="${HOME}/$vendor/reboots"
dump="${HOME}/$vendor/$subfolder/$today"
inventory="${HOME}/panosh/$ve... | true |
e5255b601e9db7dd2930c78d7e937b372bc0493d | Shell | cjaganmohan/Testing-AI-Systems | /deepTest-master/models/Autumn_reproduce.sh | UTF-8 | 954 | 3.03125 | 3 | [] | no_license | #! /bin/sh
slash="/"
#transformation_name=Original
#directory_name=NA
group_number=20
dataset='/home/jagan/Desktop/Autumn/prediction-in-batches/Grp20_4243_4248/'
#python2 autumn_reproduce_modified_V2.py --transformation $transformation_name --directory $directory_name --group $group_number --dataset $dataset
for d in ... | true |
16d9a3a1378eff563fe17f6d8aa6fd76dd482775 | Shell | ipfire/ipfire-2.x | /src/initscripts/packages/keepalived | UTF-8 | 2,241 | 3.328125 | 3 | [] | no_license | #!/bin/sh
###############################################################################
# #
# IPFire.org - A linux based firewall #
# Copyright (C) 2007-2022 IPFire Team <info@ipfire.org> ... | true |
68099fcfeb7d3c848b0b24adee53fd15c905dcde | Shell | Silentsoul04/packetstorm-exploits | /1611-exploits/bart-ransomware.txt | UTF-8 | 8,663 | 2.96875 | 3 | [] | no_license | #!/bin/sh
#
# Bart Ransomware (Win32/Filecoder.Bart) (Kidnapping) Resource Hacking
#
#
# Copyright 2016 (c) Todor Donev
# <todor.donev at gmail.com>
# https://www.ethical-hacker.org/
# https://www.facebook.com/ethicalhackerorg
#
#
## Thanks to Maya Hristova that support me.
#
#
# Description:
# Bart is a simpl... | true |
807525641f58ee59a5c248917f88f29dd1d37d93 | Shell | Woodehh/SecureNEO | /scripts/debian-install-secureneo.sh | UTF-8 | 1,059 | 2.765625 | 3 | [
"MIT"
] | permissive | #running the script:
#wget -O - https://github.com/ITSVision/SecureNEO/blob/master/scripts/debian-install-secureneo.sh | bash
# Update and upgrade
apk update && apk upgrade
#add dependencies
apt-get install git curl php7.0-cli php7.0-dev php-pear php7.0-curl php7.0-mcrypt php7.0-mbstring php7.0-gmp php7.0-bcmath g++ ... | true |
b5a018eee4b232fe61f5eda5a7b3085319d7d75b | Shell | HyperTK/LCD-show | /LCD35-show | UTF-8 | 1,541 | 3.28125 | 3 | [] | no_license | #!/bin/bash
# This is a modified "LCD35-show" script to replace the one in https://github.com/goodtft/LCD-show. Use this script for Raspbian 9.8 Stretch. Might not work with older or newer versions of Raspbian!
sudo rm -rf /etc/X11/xorg.conf.d/40-libinput.conf
sudo mkdir /etc/X11/xorg.conf.d
sudo cp ./usr/tft35a-ove... | true |
caa63377abd9601e387b5dd3d81826b3c8113e3a | Shell | mirdesign/NGS-FluAnalyzer | /config/config_sample_1707.sh | UTF-8 | 2,145 | 3.484375 | 3 | [] | no_license | #!/bin/sh
#############################################################
# #
# Contact: #
# Maarten Pater (m.pater@amc.uva.nl / www.mirdesign.nl) #
# Bjorn Koel (b.f.koel@amc.uva.nl) #
... | true |
f404b4b0b1b20661584f7e382f410aed72eea3e9 | Shell | tstroband/waf-sampler | /cmd/stack-update.sh | UTF-8 | 1,071 | 3.5625 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
function usage() {
echo "usage:"
echo " stack-update -stack=<stack-name> -profile=<profile>"
echo " [-exec=<exec>] [-<param-name>=<param-value>]*"
echo "parameters:"
echo " -stack The name of the Cloud Formation stack"
echo " t... | true |
286e13d0ab96d3f301666e2665e9106e01edfdeb | Shell | wbotelhos/jenkins | /job.sh | UTF-8 | 2,039 | 4.03125 | 4 | [] | no_license | #!/bin/bash
##################
# --- Common --- #
##################
GRAY='\033[0;36m'
GREEN='\033[0;32m'
NO_COLOR='\033[1;0m'
YELLOW='\033[1;33m'
if [ $UID != 0 ]; then
echo -e "${YELLOW}You need to be root!${NO_COLOR}\n"
exit 1
fi
EXEC=$(echo $0 | rev | cut -d '/' -f 1 | rev)
FILE_PATH=$(echo $0 | sed 's,/job... | true |
73c784df740f73718e7072624dcf86186598f81e | Shell | THGLab/CSpred | /install/create-virtual-environment.sh | UTF-8 | 801 | 2.8125 | 3 | [] | no_license | #!/bin/bash
# Copyright (c) 2021 The Center for Biomolecular NMR Data Processing and Analysis
# License: https://opensource.org/licenses/MIT
PYTHONVERS=3.8
ORIGIN=$(dirname $(readlink -f $0))
PYTHON=python$PYTHONVERS
VENV=$ORIGIN/../venv
MODELS=$ORIGIN/../models
$PYTHON -m venv $VENV
$VENV/bin/pip install -U pip
$VE... | true |
03c9dd0b246faf1b2eb20fa11f2123704d5e330b | Shell | MarvelousMari/Learning-Bash | /shellclass/localusers/disable-local-user.sh | UTF-8 | 2,765 | 4.4375 | 4 | [] | no_license | #!/bin/bash
# usage statement/ man page
usage () {
echo "USAGE: [-dra] USER [USERN]"
echo "Disable a local Linux user"
echo " -d Deletes account rather than disabling"
echo " -r Removes home directory for the account(s)"
echo " -a Archive home directory for the account(s)"
}
# check for root privliges... | true |
dac340d23a27322ce089ad4b1ac092857f08359b | Shell | s23575/pjatk-sop | /SOP_BASH/s23575_KB1.sh | UTF-8 | 147 | 3.1875 | 3 | [] | no_license | #!/bin/bash
j=1
echo -e "program nazywa się: `basename $0`"
for i in $@
do
echo "param$j: $i"
((j+=1))
done
echo -e "param*: $@\nparam#: $#"
| true |
9318a9f99fb70c59c7aa659d89462c5b47badec7 | Shell | dieterichlawson/nis | /bin/make_gif.sh | UTF-8 | 554 | 2.96875 | 3 | [] | no_license | #!/bin/bash
LOGDIR=$1
TAG=$2
mkdir .tmp_ims
echo "Extracting images from TB summaries"
python3 save_images.py --logdir=$LOGDIR --tag=$TAG --outdir=.tmp_ims
echo "Labelling images with step"
ls .tmp_ims | parallel 'convert .tmp_ims/{} -scale 200% -quality 100% -compress LossLess -background Black -fill white -pointsize... | true |
8fa5a9f19c4f437c7d16883a8287e56443d19097 | Shell | mschlenstedt/Loxberry | /sbin/testenvironment.sh | UTF-8 | 605 | 3.859375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if test $UID -ne 0; then
echo "$0: This script has to be run as root. Exiting.<br>"
exit 1
fi
if [ ! -d $LBHOMEDIR ]; then
echo "$0: Cannot find LoxBerry home directory ($LBHOMEDIR). Exiting.<br>"
exit 1
fi
if [ "$LBHOMEDIR" == "" ]; then
echo "$0: Variable LBHOMEDIR is empty. Exiting.<br>"
exit 1
... | true |
d849009507585f1ef5f8a532aa8ab0530fe9dea7 | Shell | zieckey/blog | /deploy.sh | UTF-8 | 849 | 3.40625 | 3 | [] | no_license | #!/bin/bash
# 注意,需要先更新 public 目标到最新状态,在blog当前目录下进行如下操作
# cd public
# git submodule init
# git submodule update // 这样能把public目标更新到跟 git@github.com:zieckey/zieckey.github.io.git 一致
echo -e "\033[0;32mDeploying updates to GitHub...\033[0m"
msg="rebuilding site `date`"
if [ $# -eq 1 ]
then msg="$1"
fi
# Push Hugo ... | true |
c16c3162f759b0dd954d026129452f32d4df1500 | Shell | thomasspitaler/craft-scripts | /backup | UTF-8 | 140 | 2.515625 | 3 | [] | no_license | #! /usr/bin/env bash
if [[ "$#" -gt 0 ]]; then
echo "usage: backup"
exit 1
fi
$(dirname $0)/backup-database
$(dirname $0)/backup-assets
| true |
d22c3b1d443c64ee02068d14384333d47e27b167 | Shell | macsforme/dominicus-dependencies | /build.sh | UTF-8 | 721 | 3.15625 | 3 | [] | no_license | #!/bin/sh
echo Setting environmental variables...
export MACOSX_DEPLOYMENT_TARGET=10.6
export CPPFLAGS=-I../../dependencies/include
export LDFLAGS=-L../../dependencies/lib
mkdir -p dependencies/include
mkdir -p dependencies/lib
echo Building SDL...
cd src/SDL-1.2.15
./configure --disable-shared --prefix=`pwd`/../../... | true |
28c438303af6bde0ca9c8cca4a4fd195d4abcbf2 | Shell | ajaykumar011/myshellscripts | /specialvar.sh | UTF-8 | 481 | 3.765625 | 4 | [] | no_license | #!/bin/bash
#Display the username and uid executing the scirpt
if [[ "${UID}" -eq 0 ]]
then
echo "You are root"
echo "your username is ${USER}"
#USER_NAME='id -un'
USER_NAME=$(id -un)
echo "you username from another method is $USER_NAME"
echo "your uid id ${UID}"
echo "your group id ${GRO... | true |
9e34a81658b6c5186d914c4be9e386f72fe2811c | Shell | AutomationWithAnsible/ansible-setup | /example/example_setup.sh | UTF-8 | 1,484 | 3.640625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
## This is an example setup script that you would encapsulate the installation
# What version of ansible setup to use
SETUP_VERSION="master"
# Whats my path
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
## Array of versions to install
## 1. Install Ansible 1.9.4
ANSIBLE_VERSIONS[0]="1.... | true |
7b3b44c658eee24d76509480339705d4b52532ee | Shell | robertalks/hostap | /hostapd/test-build | UTF-8 | 462 | 3.328125 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh -e
nocpu=$(grep -c MHz /proc/cpuinfo 2>/dev/null || echo 1)
if [ ! -e .config ]; then
cp -f defconfig .config
fi
if [ -x hostapd ]; then
echo "Pre-Cleaning ..."
make clean >/dev/null 2>&1
fi
echo "Running test build, please wait ..."
if make -j$nocpu >/dev/null 2>&1; then
echo "Build successful..."
el... | true |
c6190b11dc37ed1f6dd0b4acf3c2579f7f400f01 | Shell | chipster/chipster-tools | /setup/bundles/builds/binaries.bash | UTF-8 | 1,523 | 3.125 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | #!/bin/bash
set -euo pipefail
IFS=$'\n\t'
source $(dirname "$0")/build-env.bash
# we don't need a python image to install python
# most likely the tool wrappers are going to be written in R and hence this r-deps image will be used to run this python eventually
image="comp-20.04-r-deps"
# this installation doesn't ne... | true |
8124ff6aae9326f64424de329cc723154f43623d | Shell | rajeshdavinci/usbmonitor | /usbmonitor/usbmonitor.sh | UTF-8 | 292 | 2.703125 | 3 | [] | no_license | #!/bin/bash
set -x
mkdir -p /opt/usb-notifier
xauthority=$(printenv | grep XAUTHORITY | cut -d = -f 2)
sed -i "9i Environment=XAUTHORITY=$xauthority" usbmonitor.service
cp usbmonitor.service /lib/systemd/system
systemctl daemon-reload
systemctl enable usbmonitor
systemctl start usbmonitor
| true |
22203c58ba43094eb092a47a340f6a306259f13e | Shell | I201821180/gnn-asymptotics | /gnn_dynamics/run.sh | UTF-8 | 395 | 3.1875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
function run () {
seed=$1
if [ ! -d "$seed" ]; then
rm -rf $seed
mkdir $seed
fi
for S in 0.5 1.0 1.2 1.5 2.0 4.0
do
if [ "$seed/$S" ]; then
rm -rf $seed/$S
mkdir $seed/$S
fi
python main.py -s $seed -S $S -O $seed/$S > log.txt
cp $seed/$S/streamplot.pdf $seed/$S.... | true |
afd3da292b33bec70f8b3835be83165e6453cb7d | Shell | NCIP/cadsr-api | /cadsrapi/software/freestyle-search/software/freestylesearch/src/resources/scripts/autorun.sh | UTF-8 | 1,056 | 2.65625 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | #!/bin/bash
echo "Executing Auto Run for Freestyle Search Engine"
echo "\$Header: /share/content/gforge/freestylesearch/freestylesearch/scripts/autorun.sh,v 1.3 2008-04-22 20:28:39 hebell Exp $"
echo "\$Name: not supported by cvs2svn $"
DATE=`date +%Y%m%d`
JAVA_HOME=/usr/jdk1.6.0_71
BASE_DIR=/local/content/freestyle/... | true |
d3cca984e655d3ee17e56a0fe4b3777cd39f91a0 | Shell | falcosecurity/test-infra | /tools/deploy_prow.sh | UTF-8 | 3,163 | 3.46875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
# Specific to Prow instance
CLUSTER="falco-prow"
ZONE="eu-west-1"
function main() {
echo "Getting Kubeconfig for cluster access"
updateKubeConfig
echo "Launching Configmaps, and prereq software"
launchConfig
echo "Launching Prow microservi... | true |
a66e970b5c9429105953a748d3eb750ddc59f68f | Shell | snatch-dev/Convey | /scripts/pack.sh | UTF-8 | 237 | 3.109375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
for dir in src/*/
do
dir=${dir%*/}
echo Publishing NuGet package: ${dir##*/}
chmod +x ./$dir/scripts/dotnet-pack.sh
exec ./$dir/scripts/dotnet-pack.sh &
wait
done
echo Finished publishing NuGet packages. | true |
78242d7862df28e1fe2b10cb5d4cb5f838bb4428 | Shell | arthur31416/emission | /scripts/deploy_master.sh | UTF-8 | 1,381 | 3.25 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# Give us a CLI to work with
yarn global add s3-cli
# Createa bundle with embedded storybooks also into Emission.js
yarn bundle-with-storybooks
# Uploads the file to our s3 bucket - credentials are in the ENV vars for same-repo PRs
s3-cli put Pod/Assets/Emission.js "s3://artsy-emission-js/Emission-master.j... | true |
373dfb98cc5ba2680c5ccfbdf82ccada64108a89 | Shell | olevole/one | /share/scripts/freebsd/net-vmcontext/vmcontext | UTF-8 | 3,485 | 3.515625 | 4 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/sh
# -------------------------------------------------------------------------- #
# Copyright 2002-2014, OpenNebula Project (OpenNebula.org), C12G Labs #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); you may... | true |
0b9984e461f42be8f248bfda260fe3a1e7a278ce | Shell | DougKeller/Operating-Systems | /project1/compileOS.sh | UTF-8 | 473 | 2.59375 | 3 | [] | no_license | # Create an empty image file named floppya.img
dd if=/dev/zero of=floppya.img bs=512 count=2880
# Copy bootload into beginning of floppya
dd if=bootload of=floppya.img bs=512 count=1 conv=notrunc
# Compile kernel.c
bcc -ansi -c -o kernel.o kernel.c
# Assemble kernel.asm and link it with kernel
as86 kernel.asm -o ker... | true |
59003244161461abcb970f15a8526246e2486fa7 | Shell | ViSual-BBS/identity-idp | /bin/job_runs.sh | UTF-8 | 868 | 4.21875 | 4 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | #!/bin/bash
set -euo pipefail
usage() {
cat >&2 <<EOM
usage: $(basename "$0") {start|stop|status} [PIDFILE]
Init script for IdP background job runner.
PIDFILE: if provided, fork to run in background (allowing stop/status as well)
EOM
}
run() {
echo >&2 "+ $*"
"$@"
}
if [ $# -lt 1 ] || [ $# -gt 2 ]; then
us... | true |
75af28aef38bf883795be136b439d7c979f5df3c | Shell | folken-IT/Scripts | /template.sh | UTF-8 | 689 | 3.609375 | 4 | [] | no_license | #!/bin/bash
#######################################################################
#Name: template.sh
#Description: Script to test bash functionalities
#Args: 1) String name
# 2) second argument
# None
#Author: Folken
#Date: 08.03.2021
###################... | true |
d05a3c4054d6c8b184e09b1e848cd06b3a5e37cc | Shell | future-c/linux-shell | /remoteOperation.sh | UTF-8 | 216 | 2.875 | 3 | [
"CC0-1.0"
] | permissive | #!/bin/bash
#变量定义
ip_array=("hn.future.ccapp.wang")
user="root"
remote_cmd="service apache2 restart"
#本地通过ssh执行远程服务器的脚本
for ip in ${ip_array[*]}
do
ssh $user@$ip $remote_cmd
done | true |
1404fa5b1708188c805f8e17e8081877be1e049c | Shell | touchdownnation/Quickstart_to_Apache_Kafka | /Kafka_cluster.sh | UTF-8 | 2,117 | 2.53125 | 3 | [] | no_license | #Step 1 : Download and install kafka
wget https://www-eu.apache.org/dist/kafka/2.4.0/kafka_2.12-2.4.0.tgz
tar -xzf Kafka_2.12-2.4.0.tgz
#Step 2 : Start the server
cd Kafka_2.12-2.4.0
bin/zookeeper-server-start.sh config/zookeeper.properties
bin/kafka-server-start.sh config/server.properties
#Step 3 : Create an topic ... | true |
2dd344ac575eda0fa6100ae88ae97b4f4b12705f | Shell | Ankit-asr/Sequences | /MarchtoJune.sh | UTF-8 | 157 | 3.203125 | 3 | [] | no_license | #! /bin/bash
read -p "Enter the date and month in mmdd format : " input
if [ $input -le 0620 ] && [ $input -ge 0320 ]
then
echo "True"
else
echo "False"
fi
| true |
d2c8a1d7fa7fe793346985d841b4a1c3fa1fc819 | Shell | telmich/nsbin | /suche_vi_files | UTF-8 | 177 | 2.921875 | 3 | [] | no_license | #!/bin/sh
#
# Nico Schottelius <nico@schottelius.(net|org)>
# Date: 04-Apr-2003
# Last Modified: -
#
if [ -z "$1" ]; then
file=.
else
file=$1
fi
find "$file" -name .\*.swp 2>/dev/null
| true |
51ee5be0fad81966e6c2fce34b0eef68c877b577 | Shell | FusionPlmH/Fusion-Project | /vtools-scene/app/src/main/assets/powercfg/msmnile/powercfg-base-default.sh | UTF-8 | 4,734 | 2.578125 | 3 | [] | no_license | #! /vendor/bin/sh
target=`getprop ro.board.platform`
chmod 0755 /sys/devices/system/cpu/cpu0/online
chmod 0755 /sys/devices/system/cpu/cpu1/online
chmod 0755 /sys/devices/system/cpu/cpu2/online
chmod 0755 /sys/devices/system/cpu/cpu3/online
chmod 0755 /sys/devices/system/cpu/cpu4/online
chmod 0755 /sys/devices/system... | true |
4306285d34538f24844c253df52e63f8933944b8 | Shell | wikibook/ibatisinaction | /build/ant.sh | UTF-8 | 480 | 2.6875 | 3 | [] | no_license | if [ -z "$COMMAND_ARGS"]; then
# Assume a dev build by default
COMMAND_ARGS="-buildfile build.xml -propertyfile build.properties"
fi
BUILD_CP=$JAVA_HOME/lib/tools.jar
for JAR in ../devlib/*.jar
do
BUILD_CP=$BUILD_CP:$JAR
done
echo BUILD_CP: $BUILD_CP
echo COMMAND_ARGS: $COMMAND_ARGS
echo $JAVA_HOME... | true |
db08ec5015b2b0c1d9f254ddb686afabaa8f38d7 | Shell | Dennis4472373/Intro_Research_Methods | /data_2013.sh | UTF-8 | 880 | 3.515625 | 4 | [] | no_license |
# The data from 2013:
# These functions collect the data from March 2013. To change the dates, change the "2013/03/*.out.gz"
# into another dates, for example /2014/07/*.out.gz for July 2014.
# The total tweets from March 2013
function q1 {
zless /net/corpora/twitter2/Tweets/2013/03/*.out.gz | \
/net/corpora/tw... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.