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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
1c030827276dc18055907359982735a9b9d634fc | Shell | PaulKnoops/Experimental_Evolution_Sequence_Repo | /RunThrough_DataCleaning_Scripts/bowtie2_map.sh | UTF-8 | 679 | 3.109375 | 3 | [] | no_license | #! /bin/bash
project_name=episodic_data_bowtie
project_dir1=/home/paul/episodicData
project_dir=/home/paul/episodicData/bowtie
index_dir=${project_dir1}/index_dir
ref_genome=${index_dir}/dmel-all-chromosome-r5.57.fasta.gz
ref_genome_base=${project_dir}/bowtie_indexes/dmel-all-chromosome-r5.57_2
trim_dir=${project_dir1... | true |
7f9d2667500f2a97b9648091e2debf0d5db339c9 | Shell | sarahDH615/song-predictions | /presentation/helpPresentation.sh | UTF-8 | 134 | 2.6875 | 3 | [] | no_license | if [ $# != 2 ]; then
echo "Usage: [input html] [output html]";
fi
sed 's:reveal.js/://cdn.jsdelivr.net/reveal.js/2.6.2/:g' $1 > $2 | true |
e071df151a065c64645feb18b2e138ce37d0878f | Shell | sardejah/wifi_tools | /base.sh | UTF-8 | 1,155 | 2.984375 | 3 | [] | no_license | #!/bin/bash
echo "usage: base.sh net_iface_name ap_iface_name"
#variables
NET_IFACE=$1
ROGUE_IFACE=$2
ESSID="yami"
#BSSID=00:24:D3:44:11:C0
CHANNEL=6
PASSWORD="ulysse31"
#kill
service dnsmasq stop
pkill hostapd
#configurations files
rm /etc/hostapd/hostapd.conf
echo "interface=$ROGUE_IFACE
hw_mode=g
channel=$CHANNEL
... | true |
96bb5cc793e8a2aaccd9afad19b0dba71c8096ff | Shell | carpproject/vobla | /testsuite/blastest/summary.sh | UTF-8 | 2,708 | 2.828125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Copyright (c) 2013-2014, ARM Limited
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merg... | true |
ead933cf261dbca9672b78b06e298889b4b51ad3 | Shell | spameier/proton-bridge-docker | /entrypoint.sh | UTF-8 | 1,373 | 3.8125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# heaviliy inspired by https://github.com/sdelafond/docker-protonmail-bridge
set -eux
# constants
BRIDGE="/proton-bridge --cli --log-level debug"
BRIDGE_IMAP_PORT=1143
BRIDGE_SMTP_PORT=1025
FIFO="/fifo"
# check if required variables are set
die() { echo "$1"; exit 1; }
[ -z "$IMAP_PORT" ] && die '$IMAP_POR... | true |
a1943cd55a7b13c493f038e33a724f49ecca4e8e | Shell | tree-sitter/tree-sitter | /script/build-wasm | UTF-8 | 3,806 | 3.9375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
usage() {
cat <<EOF
USAGE
$0 [--help] [--debug] [--docker]
SUMMARY
Compile the Tree-sitter WASM library. This will create two files in the
\`lib/binding_web\` directory: \`tree-sitter.js\` and \`tree-sitter.wasm\`.
REQUIREMENTS
You must have either the \`emcc\` command or the \`docke... | true |
303955cda2f07c30425a07eff3f21fcea6dd44c2 | Shell | coneyu/zimbra-build-scripts | /01-install-build-deps.sh | UTF-8 | 1,995 | 4.03125 | 4 | [] | no_license | #!/bin/bash
#
# Install build dependencies based on distro
#
# Supports:
# Ubuntu 18.04
# Ubuntu 16.04
# CentOS 8
# CentOS 7
#
# Required dependencies: lsb-release
# Get DISTRIB_ID, install lsb_release package
# if necessary
if [ -f "/usr/bin/lsb_release" ]
then
DISTRIB_ID=`lsb_release -i | awk '{pri... | true |
9b08cea366e1a5e4f0fb3576be02c2af44e5ac2e | Shell | Guangyu-Yang/Hadoop-deploy-scripts | /bin/hadoop-set-env.sh | UTF-8 | 1,017 | 2.59375 | 3 | [] | no_license | #!/bin/bash
#set necessary hadoop environment variables
export HADOOP_COMMON_HOME=$HADOOP_HOME
export HADOOP_HDFS_HOME=$HADOOP_HOME
export HADOOP_MAPRED_HOME=$HADOOP_HOME
export YARN_HOME=$HADOOP_HOME
export HADOOP_COMMON_LIB_NATIVE_DIR=${HADOOP_HOME}/lib/native
export HADOOP_OPTS="-Djava.library.path=${HADOOP_HOME}/l... | true |
d4c7be432c91e01d7402c95b5d230f69fa8cb155 | Shell | DrawZeroPoint/VIPS | /python/cluster_scripts_jmlr/ptmcmc_goodwin2.sh | UTF-8 | 265 | 2.59375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
for i in 10;
do
for j in `seq 1 5`;
do
echo "Running with $i chain (Trial $j)"
mpirun -n $i python -c "from experiments.PTMCMC.goodwin1_12_2 import *; sample(300000, \"ptmcmc_goodwin_300k_${i}chain_trial${j}\");";
done
done
| true |
8feeb6e69ec09984aa8af8bc3cc4e3d944bf073b | Shell | somnam/ml | /bin/run_container | UTF-8 | 1,327 | 3.890625 | 4 | [] | no_license | #!/bin/bash
check_dependencies ()
{
set -e
[[ -x "$(which docker)" ]] || (echo -e "\e[33mDocker isn't installed\e[0m" && exit 1)
set +e
}
build_docker_image ()
{
echo -e "\e[36mBuilding docker image (this may take some time).\e[0m"
local self_path=$(dirname "$0")
local root_path=$(dirname "$... | true |
27778a8e44c602e3d10def2fc4211f472f147cb2 | Shell | masarakki/dotfiles | /pkg/fcitx5 | UTF-8 | 170 | 2.546875 | 3 | [] | no_license | #!/bin/sh
if [ ! -e /etc/apt/sources.list.d/ikuya-fruitsbasket-ubuntu-fcitx5-`lsb_release -cs`.list ]; then
sudo apt-add-repository ppa:ikuya-fruitsbasket/fcitx5
fi
| true |
2b73b9a25d7c97c37288e4f3c8d5c968f4037ef6 | Shell | iamsingularity/api-umbrella | /tasks/deps/pcre | UTF-8 | 843 | 2.859375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# PCRE 8.21+ required for OpenResty's JIT regex support.
#
# We can likely drop compiling our own version and use the system version once
# we no longer need to support CentOS 6 (currently on PCRE 7.8).
pcre_version="8.43"
pcre_hash="636222e79e392c3d95dcc545f24f98c4"
set -e -u -x
source ./tasks/he... | true |
cc32bbe7669aaa497bb32ecf42e1fc9b888fdd97 | Shell | flbooo/mas | /script/lint | UTF-8 | 313 | 2.9375 | 3 | [
"MIT"
] | permissive | #!/bin/bash -e
#
# script/lint
# mas
#
# Linting checks for CI "Lint" stage.
#
echo "==> 🚨 Linting mas"
echo
echo "--> 🕊️ Swift"
swiftlint lint --strict
echo
echo "--> 📜 Bash"
shopt -s extglob
# Only lint files with no extension (skipping .pl)
shellcheck --shell=bash script/!(*.*)
shopt -u extglob
| true |
577d76d33a6d72537eebad5c76171f63da649d27 | Shell | sakhnik/arch-config | /20-pacman.sh | UTF-8 | 1,799 | 3.3125 | 3 | [] | no_license | AddPackage aurutils # helper tools for the arch user repository
AddPackage pacman-contrib # Contributed scripts and tools for pacman systems
AddPackage pacutils # Helper tools for libalpm
AddPackage vifm # A file manager with curses interface, which provides Vi[m]-like environment
cat >"$(CreateFile /etc/pacman.d/hook... | true |
e5ec4b6ad9644a32fcad896f1cfef4f73849c8c0 | Shell | tsekaris/ubuntu | /ssh/add.sh | UTF-8 | 365 | 3.421875 | 3 | [] | no_license | #!/bin/sh
#Εμφάνιση των tags χωρίς το prefix.
prefix=${HOME}/.ssh/
#Το -L απαραίτητο για συντομεύσεις
key_public=${prefix}$(find -L ~/.ssh -name "*.pub" | awk '{ gsub("'${prefix}'","",$1); print $1 }'| fzf)
key_private=${key_public%????} #Βγάλε το .pub
if [ -f ${key_public} ]
then
ssh-add ${key_private}
fi
| true |
3b6c2045155e33e4b754fe846c006318f7e460ef | Shell | thatmarkenglishguy/shared_scripts | /onpath/git_gen_file_script | UTF-8 | 1,479 | 3.921875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
command_template=''
ok_exit_code=0
for arg in "${@}"
do
case "${arg}" in
*)
if [ -z "${command_template}" ]
then
command_template="${arg}"
else
echo "Unexpected argument: '${arg}'" >&2
(( ++ok_exit_code ))
fi
;;
esac
done
if [ ${ok_exi... | true |
e355a4488747526c2e1ac440ca09c5b411684ae0 | Shell | Nycander/dotfiles | /dotfiles/oh-my-zsh-custom/martins.zsh-theme | UTF-8 | 891 | 2.828125 | 3 | [] | no_license | MARTINS_BRACKET_COLOR="%{$fg[white]%}"
MARTINS_TIME_COLOR="%{$fg[blue]%}"
MARTINS_RVM_COLOR="%{$fg[magenta]%}"
MARTINS_DIR_COLOR="%{$fg[yellow]%}"
MARTINS_GIT_BRANCH_COLOR="%{$fg[green]%}"
MARTINS_GIT_CLEAN_COLOR="%{$fg[green]%}"
MARTINS_GIT_DIRTY_COLOR="%{$fg[red]%}"
# These Git variables are used by the oh-my-zsh gi... | true |
fe4bd8e66883a4dbbb4f53579404ad4ae7ca3bcd | Shell | bgerofi/mckernel | /test/issues/1065/CT_007.sh | UTF-8 | 1,455 | 3.34375 | 3 | [] | no_license | #!/bin/sh
TESTNAME=CT_007
exec_program="./print_maps_and_cmdline"
test_program="./call_execve ${exec_program}"
. ./config
fail=0
echo "*** ${TESTNAME} start *******************"
real_path=`realpath ${exec_program}`
interp_path=`readelf -l ${exec_program} | grep "interpreter:" | sed -r 's/.*\[.*interpreter:\s(.*)\].... | true |
9860fa5216d92cd5192b88c7e4c220fb6dfd2bd8 | Shell | bopopescu/twemproxy-redis | /dists/redis-instances/bin/sentinel_shutdown.sh | UTF-8 | 689 | 3.515625 | 4 | [] | no_license | #!/bin/sh
cwd=`cd $(dirname $0)/..;pwd`
cd $cwd
function shutdown_instance(){
insname=""
for arg in $@; do
key=`echo $arg|awk -F= '{ print $1 }'`
val=`echo $arg|awk -F= '{ print $2 }'`
if [ $key = "name" ]; then
insname=$val
break
fi
done
if [ -z "$insname" ]; then
return 0
fi
insws="$cwd/data/... | true |
3a5714941cb96a60a3207ddc04db5a47a7439487 | Shell | Iristyle/lcow | /tests/cases/100_hostvol/070_socket_volume/socket_test.sh | UTF-8 | 219 | 3.640625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
set -e
set -x
FILE=$1
nc -lU "$FILE" &
pid=$!
sleep 1
TYPE=$(stat -c %F "$FILE")
kill "$pid"
if [ "$TYPE" != "socket" ]; then
echo "$FILE is not a unix domain socket: $TYPE != socket"
exit 1
fi
| true |
997ef4a39874a9e6b833bcea854e7d7c380ea8b8 | Shell | open-estuary/appbenchmark | /apps/hadoop/hadoop_test1/scripts/pb_build.sh | UTF-8 | 2,026 | 3.296875 | 3 | [] | no_license | #!/bin/bash
. ${APP_ROOT}/toolset/setup/basic_cmd.sh
######################################################################################
# Notes:
# To build ProtoBuffer
#
#####################################################################################
BUILD_DIR="./build_protobuffer"
CTAG_NAME="2.5.0"
TARGET... | true |
99b84d818b8bc71e84ec1fcd02e23c9a8d968d0d | Shell | imsekhar04/core-plans | /azure-cli/tests/tests.bats | UTF-8 | 360 | 3.46875 | 3 | [
"Apache-2.0"
] | permissive | TEST_PKG_VERSION="$(echo $TEST_PKG_IDENT | cut -d/ -f 3)"
@test "az exe runs" {
run hab pkg exec $TEST_PKG_IDENT az
[ $status -eq 0 ]
}
@test "az exe outputs the expected version $TEST_PKG_VERSION" {
result="$(hab pkg exec $TEST_PKG_IDENT az --version | grep 'azure-cli (' | awk '{gsub(/azure-cli\ \(|\)/,"")}1')... | true |
6d101ec3c2886b07e57c4f1032a246fd642900ad | Shell | Parshuramsk/FedModules | /build.sh | UTF-8 | 542 | 2.5625 | 3 | [] | no_license | #!/bin/bash
export MESOS_HOME_DIR="$HOME/src/mesos"
COMPILER="g++"
THIRD_PARTY="$MESOS_HOME_DIR/build/3rdparty/libprocess/3rdparty"
HEADER_FILES=" -I $MESOS_HOME_DIR/include -I $MESOS_HOME_DIR/src -I $MESOS_HOME_DIR/build/src -I $MESOS_HOME_DIR/3rdparty/libprocess/include -I $THIRD_PARTY/boost-1.53.0 -I$THIRD_PARTY/... | true |
785c12f13e56f8a7535df6f2cc5e57aee824afae | Shell | TjlHope/scripts | /bin/cpu_mem_usage | UTF-8 | 7,384 | 4.09375 | 4 | [] | no_license | #!/bin/sh
# SCRIPTS_DIR/bin/cpu_mem_usage
### Outputs the current cpu and memory usage figures.
# source library functions
[ -h "${0}" ] &&
script_p="$(readlink -f "${0}")" ||
script_p="${0}"
lib_d="${script_p%/*/*}/lib"
. "${lib_d}/percent_blocks.sh"
. "${lib_d}/check_type.sh"
. "${lib_d}/colour.sh"
. "${lib_... | true |
9ae1a45ad4cc970ff46419be9f9bc5bd4de08b5a | Shell | weideng1/nosqlbench | /nb5/build-bin.sh | UTF-8 | 2,148 | 3.34375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
#
# Copyright (c) 2022 nosqlbench
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | true |
22777b8772ede53e8d3857070fae555b8d6ed4ba | Shell | Winddoing/CodeWheel | /shell/color.sh | UTF-8 | 788 | 2.75 | 3 | [] | no_license | #!/bin/bash
function out_red() {
echo -e "\e[01;31m$@\e[0m"
}
out_red "test read"
function out_yellow() {
echo -e "\e[33m$@\e[0m"
}
out_yellow "test yellow"
function out_green() {
echo -e "\e[32m$@\e[0m"
}
out_green "test green"
function out_blue() {
echo -e "\e[34m$@\e[0m"
}
out_blue "test blue"
... | true |
91968712f39ef3a043385a9dc390a205cfca41d9 | Shell | Misterblue/misterblue.github.io | /_tools/oldImagesMakeThumbs.sh | UTF-8 | 698 | 3.75 | 4 | [
"CC0-1.0"
] | permissive | #! /bin/bash
# Scan all jpg's in the old images dir and create the thumbs.
OLDIMAGESDIR=/home/Robert/dev/misterblue.github.io/images/oldimages
THUMBSDIR=$OLDIMAGESDIR/thumb
SIZE=150
TEMPFILE=xx.jpg
TEMPFILE2=xx2.ppm
EXIFFILE=exif.exif
SEDFILE=xxsed.sed
rm -f $TEMPFILE $TEMPFILE2 $EXIFFILE $SEDFILE
cd "$OLDIMAGESDI... | true |
192f22a1772e5de4b343f0e7c89a639fd2ab3757 | Shell | AlexzxelA/beame-gatekeeper | /install/service.sh | UTF-8 | 529 | 3.921875 | 4 | [] | no_license | #!/bin/bash
set -eu
err_trap_func() {
echo "ERROR: Installation as service failed"
}
trap err_trap_func ERR
if [[ $EUID -ne 0 ]]; then
echo "Please run this script as root."
exit 1
fi
if [[ $(uname -s) == Darwin ]];then
echo "+ Running Mac OS installation"
SCRIPT_DIR=$(zsh -c 'echo ${0:A:h}' "$0")
exec "... | true |
0e1373407bb2f14a08e014cc3d0aad2a104dc224 | Shell | slackpanos/SlackOnly-SlackBuilds | /audio/jack-keyboard/jack-keyboard.SlackBuild | UTF-8 | 3,032 | 3.796875 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# Slackware build script for jack-keyboard
# Written by B. Watson (yalhcru@gmail.com)
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 20180628 bkw: update for v2.7.2.
# 20170218 bkw: make lash optional.
# 20170216 bkw:
# - Updated for v2.7.1. Apparently, upstream released... | true |
c64e72eaab0bfd7f446f45b0f03e496b0cdbbb75 | Shell | justinba1010/USCCodeathon-S21-Lower | /polyLeaping/genSamples.sh | UTF-8 | 362 | 2.9375 | 3 | [] | no_license | #on windows, first use dos2unix genSamples.sh to get rid of windows characters
# then run this file using Bash
# (accessed through start menu -> run -> Bash)
#or using cmd use bash testgen.sh
for i in {0..1}
do
echo $i | python3 ./mkin.py > samples/input/input$i.txt
python3 solutions/sol.py < samples/input/input... | true |
67f9f0081d5d2cb9c6012fef82c507e2b50eefdb | Shell | yasserfarouk/dotfiles | /quick-install.sh | UTF-8 | 2,809 | 3.3125 | 3 | [] | no_license | #!/usr/bin/env zsh
echo "Updating init files with replacements"
echo "-------------------------------------"
export PATH="~/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
# pyenv activate neovim2
# neovim2_py=`pyenv which python` # Note the path
# echo "neovim2 in $neovim2_py"
# pyenv activ... | true |
6b7534c4f02378535893a75337746366c40393e5 | Shell | GerryLon/dev-scripts | /install_basic.sh | UTF-8 | 14,906 | 3.8125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# work dir
scriptDir=$(cd `dirname $0`; pwd)
# import public scripts
. "$scriptDir/public/index.sh"
appName="${0##*[\\/]}" # xx.sh
appName=(${appName//\./ })
logFile="$scriptDir/${appName[0]}"".log" # xx.log
etcProfile='/etc/profile'
startDir=`pwd`
appConf="$scriptDir/app.properties"
softDir=`getProperty ... | true |
0267a1e1c3067288971fd4d1aba5e23bb6e1f0f4 | Shell | polyvertex/git-tools | /git-backtag | UTF-8 | 660 | 3.984375 | 4 | [] | no_license | #!/usr/bin/env bash
#
# git-backtag
# Jean-Charles Lefebvre <polyvertex@gmail.com>
#
# Tag an existing commit using commit's date and time.
#
source "$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")/gib"
TAG_NAME="$1"
COMMIT="$2"
MESSAGE="$3"
[ -z "$MESSAGE" ] && MESSAGE="$TAG_NAME"
[ -z "$COMMIT" -o -z "$TAG_NAME" ] \... | true |
587f39493453759dd8f158c36b114a1c6a13ff44 | Shell | codemation/ec2-health-check | /gen-service.sh | UTF-8 | 620 | 3.015625 | 3 | [] | no_license | #!/bin/bash
echo '#!/bin/bash' > /usr/local/bin/ec2-healthz
echo $(which python3)' '$(pwd)"/ec2-health-check/webapp/server.py" >> /usr/local/bin/ec2-healthz
chmod +x /usr/local/bin/ec2-healthz
cat <<EOF | sudo tee /etc/systemd/system/ec2-healthcheck.service
[Unit]
Description=ec2-healthcheck
Documentation=https://gi... | true |
1ba76d0cc6429c3fd36f31c45e7d50433baff456 | Shell | bell07/bashscripts-switch_gentoo | /checks/version-junkie-update.sh | UTF-8 | 1,156 | 3.765625 | 4 | [] | no_license | #!/bin/sh
I=/tmp/ebuild.installed
C=/tmp/ebuild.portage
cleanup () {
sed 's/ *#.*//g' $1 | \
grep -v $1 \
-e "^$" \
-e 'KEYWORDS=' \
-e 'HOMEPAGE=' \
-e 'LICENSE=' \
-e 'SRC_URI=' \
-e 'eerror' \
-e 'einfo' \
-e 'ewarn' \
-e 'elog'
}
cd /var/db/pkg/ || exit 1
find .... | true |
78a14aa498c2c2fccf8c4ccf8a99de4d4fbf50ca | Shell | 79laowang/Shell_scripts | /increasing-date.sh | UTF-8 | 587 | 3.578125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# -*- coding:utf-8 -*-
#-------------------------------------------------------------------------------
# File Name: increasing-date.sh
# Purpose:
#
# Author: Ke Wang
#
# Created: 2019-11-07
# Copyright: (c) Ke Wang 2019
# Licence: <your licence>
#-------------------------------... | true |
1935ba9139e08fddac768752804dcc80076d211c | Shell | notwa/rc | /sh/hex | UTF-8 | 640 | 3.46875 | 3 | [] | no_license | #!/usr/bin/env zsh
# YES_ZSH
# YES_BASH
# YES_DASH
# YES_ASH
# though technically compatible with other shells,
# extra functionality is through zsh's extended arithmetic functions.
hex() { ### @-
### perform arithmetic using the shell and display the result as
### an unsigned 32-bit integer in hexadecimal.
... | true |
ac3b0aa05a58af038f623d1294cfcfa4e4ef59ad | Shell | adambirse/kafka-consumer | /deploy.sh | UTF-8 | 1,332 | 3.3125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
extract_secrets() {
echo $GCLOUD_SERVICE_KEY | base64 --decode -i > ${HOME}/gcloud-service-key.json
gcloud auth activate-service-account --key-file ${HOME}/gcloud-service-key.json
}
prepare_yaml() {
cp deployment_template.yml deployment.yml
sed -i.bak "s/_PROJECT_NAME_/$PROJECT_NAME/g" deploymen... | true |
346c961e4383d8ad14314f4a4c8c1e6f61c64326 | Shell | bu-rcs/examples | /r/examples/par_domc/rjob | UTF-8 | 311 | 2.578125 | 3 | [] | no_license | #!/bin/bash -l
#Request 8 cores
#$ -pe omp 8
#
#Join output and error stream
#$ -j y
#
#Name your job
#$ -N doMC
#
#
# after we requested 8 slots with omp 8 option,
# the variable NSLOTS is set to 8 and we can use it to pass the number
# of cores to the R script
#
module load R/3.2.3
Rscript domc.R $NSLOTS
| true |
129fb4bab4adad7f02b997d636b3969319fc9051 | Shell | blueyed/dotfiles | /usr/bin/mv-and-link-back | UTF-8 | 1,473 | 4.15625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/zsh
if [[ $# -lt 2 ]]; then
echo "Usage: mv-and-link-back <source>... <target>"
exit 1
fi
target=$argv[$#]
sources=($argv[1,-2])
remove_trailing_slashes() {
a=$1
while [[ $a =~ '/$' ]]; do
a=${a%/}
done
echo $a
}
relpath() {
python -c "import os.path; print os.path.relpath('$1','${2:-$P... | true |
7bc8c6906d3f8acfaccc93d6276cf3635ffa4ea3 | Shell | soimort/dotfiles | /Scripts/arch | UTF-8 | 894 | 3.953125 | 4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/sh
ARCH=x86_64
exec_install() {
for package_name in "$@"; do
status=`curl -sI https://www.archlinux.org/packages/extra/$ARCH/$package_name/ | head -n 1 | cut -d$' ' -f2`
if [ $status = 200 ]; then
git_repo=packages
else
status=`curl -sI https://www.archlinux.... | true |
730070aef5f0849c323ca375c63305caa4ddf0a1 | Shell | yueng-amaiwa/javascript_examples | /juan/data_types/docker_build.sh | UTF-8 | 1,015 | 3.875 | 4 | [] | no_license | #! /bin/bash
#
# docker_build.sh
# Copyright (C) 2021 juanwilches <juanwilches@VPN-159-23.vpn.usf.edu>
#
# Distributed under terms of the MIT license.
#
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
#1. Create url.txt file in the home folder (host)
#2. Copy url.txt to docker building context... | true |
f56cb49df67788bcf21b035cc5d453d2c942cc6f | Shell | NoUseFreak/wait-for-it | /scripts/get.sh | UTF-8 | 613 | 3.59375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Usage: curl https://raw.githubusercontent.com/NoUseFreak/wait-for-it/master/scripts/get.sh | bash
get_latest_release() {
curl --silent "https://api.github.com/repos/NoUseFreak/wait-for-it/releases/latest" |
grep '"tag_name":' |
sed -E 's/.*"([^"]+)".*/\1/'
}
download() {
curl -Ls -o... | true |
fd6ed8ea09665e3e709d23070d6a44a9eba3ae4f | Shell | manolonte/POP | /usr_local_bin/pop_init.sh | UTF-8 | 1,524 | 3.203125 | 3 | [] | no_license | #!/bin/sh
set -x
# Kernel 4.3
# 408 - LED
# 409 - S1 - posición abajo
# 410 - S2 - posición arriba
# 411 - B1 ROJO -> RESET/SHUTDOWN
# 412 - B2 NEGRO
echo 408 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio408/direction
echo 1 > /sys/class/gpio/gpio408/value
echo 409 > /sys/class/gpio/export
echo in > /sys/c... | true |
34992b748c859bca016f2ec64033048c4a4e2750 | Shell | arabine/grenier | /Bash/moulinette.sh | MacCentralEurope | 886 | 3.578125 | 4 | [] | no_license | #!/bin/bash
root_file="/cygdrive/z/Root"
search () {
for dir in `echo *`
# ==> `echo *` lists all the files in current working directory,
#+ ==> without line breaks.
# ==> Similar effect to for dir in *
# ==> but "dir in `echo *`" will not handle filenames with blanks.
do
if [ -d "$dir" ] ; then # =... | true |
e7a0151be63dfd44263dd72b99a8757c8a8223d9 | Shell | dominicmcginnis/scripts | /serverCheck.sh | UTF-8 | 15,870 | 3.53125 | 4 | [] | no_license | #!/bin/bash
# Configure defaults
export environment="INT"
export appToTest="TPO"
export baseOsbUrl="https://my.osb.url.com/v2"
export siteUrl="http://my.app.url/tpo"
export jenkinslink=""
export credentials="{ Password: 'foobar', Realm: '1234BFG', SiteURL: 'https://my.site.com', UserName: 'my.user@user.com'}"
... | true |
1c0ea05f7eec21c009142ec899bfb3589f35774c | Shell | denischanc/soaf.sh | /src/module.sh | UTF-8 | 5,612 | 3.109375 | 3 | [] | no_license | ################################################################################
################################################################################
readonly SOAF_MODULE_VERSION_ATTR="soaf_module_version"
readonly SOAF_MODULE_STATIC_FN_ATTR="soaf_module_static_fn"
readonly SOAF_MODULE_CFG_FN_ATTR="soaf_mo... | true |
63ae209235801ff594f1228615b009eb78440f11 | Shell | diagprov/retrowrite | /fuzzing/kernel/vms_files/run_qemu_cov.sh | UTF-8 | 571 | 2.609375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# this script run the syzskaller vms, no needs to start it by hands, it is ran from measure_coverage.sh (via run_cov.expect)
set -euo pipefail
qemu-system-x86_64 \
-kernel "$1/arch/x86/boot/bzImage" \
-append "console=ttyS0 rw debug root=/dev/sda debug earlyprintk=serial slub_debug=QUZ" \
-hda "$2" \
... | true |
fbdf2061bf54938f4ff901fb01edcc52eb6e0fa5 | Shell | lindleyw/juno | /juno | UTF-8 | 6,025 | 3.828125 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
# Copyright (c) 2010-16, Mitchell Cooper
DIR=`dirname "$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")"`
showusage() {
cat << EOF
usage: $0 [action]
start start juno IRCd
forcestart attempt to start juno under any circumstances
stop terminate juno IRCd
debug sta... | true |
1ba76787567e4e2708e90f648c16b8ee9d46e545 | Shell | qileilove/capybaraDemo-1 | /dockerRun.sh | UTF-8 | 3,579 | 4.09375 | 4 | [] | no_license | #!/bin/bash
#
# Runs the docker container in which cucumber executes.
# See usage statement below for more details
#
# NOTE: To pass options to cucumber, you must set the CUCUMBER_OPTS
# environment variable. For example,
# $ CUCUMBER_OPTS="--name MyFeature" ./dockerRun.sh
#
#
# Set defaults
#
debug=false
... | true |
93fde5a286c8d21b44632acd9d8fc6611bd3e20b | Shell | majinhui04/igrow-cli | /git-log.sh | UTF-8 | 14,363 | 4 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# commit 类型 键
TYPE_MAP=(feat fix refactor style docs chore build ci pref test)
# commit 类型 值
TYPE_TITLE_MAP=(新增 修改 重构 样式 文档 其他 构建 持续集成 优化 测试)
# 当前日期+时间
NOW=$(date "+%F %H:%M")
# 起始日期
SINCE="last.Monday"
# 终止日期
UNTIL=$(date +%F)
# 是否覆盖文件,默认否
FOUCE=0
# 首行是否为生成日期,默认否
PRINT_TIME=0
# 输出目录
OUTPUT_DIR="log"
# 是否已... | true |
5ce152a6af557e939f9f188d6773419293952f21 | Shell | john275/scripts | /movement | UTF-8 | 1,268 | 3.296875 | 3 | [] | no_license | #!/bin/bash
messagesent=false
today=$(date +%Y%m%d)
preamble="Initial Startup - $(date +%Y/%m/%d_%H:%M) - "
gpio=17
gtalkuser=john275
gtalkrecipient=cherylbucke
sleeptime=0.1
message="Movement at Elmstead - "
/usr/local/bin/gpio -g mode ${gpio} up
while $true
do
res=$(/usr/local/bin/gpio -g read ${gpio})
if [ ... | true |
55a2284e5a915b2c41792a02ee49d04884a97c43 | Shell | fjudith/coreos-kubernetes | /multi-node/generic/worker-install.sh | UTF-8 | 10,508 | 3.453125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
# List of etcd servers (http://ip:port), comma separated
export ETCD_ENDPOINTS=
# Interface to be mapped
export FLANNEL_IFACE=
# The endpoint the worker node should use to contact controller nodes (https://ip:port)
# In HA configurations this should be an external DNS record or loadbalancer in fro... | true |
54d0cf9258ad3fe24289496850a79104a84271a4 | Shell | cloudflare/python-cloudflare | /examples/example_paging_thru_zones.sh | UTF-8 | 782 | 3.40625 | 3 | [
"MIT"
] | permissive | :
tmp=/tmp/$$_
trap "rm ${tmp}; exit 0" 0 1 2 15
PAGE_NUMBER=0
while true
do
# grab the next page
PAGE_NUMBER=`expr ${PAGE_NUMBER} + 1`
cli4 --raw per_page==5 page==${PAGE_NUMBER} /zones > ${tmp}
domains=`jq -c '.|.result|.[]|.name' < ${tmp} | tr -d '"'`
result_info=`jq -c '.|.result_info' < ${tmp}`
COUNT=` ... | true |
30c84f82ab9f8eefff1fd9f040f01ff53d60b66b | Shell | BigDataHub/MariaDB-Manager-GREX | /skysql/steps/configure.sh | UTF-8 | 3,612 | 3.578125 | 4 | [] | no_license | #!/bin/bash
#
# This file is distributed as part of MariaDB Manager. It is free
# software: you can redistribute it and/or modify it under the terms of the
# GNU General Public License as published by the Free Software Foundation,
# version 2.
#
# This program is distributed in the hope that it will be useful, but WIT... | true |
c2f98be1d7b54c785e0dc27b2fc84f78185b951b | Shell | braiins/braiins-os-feeds | /miner_recovery/files/miner_recovery.sh | UTF-8 | 2,056 | 4 | 4 | [] | no_license | #!/bin/sh
# redirect STDOUT and STDERR to /dev/kmsg
exec 1<&- 2<&- 1>/dev/kmsg 2>&1
RECOVERY_MTD=/dev/mtd6
FIMRWARE_MTD=/dev/mtd7
FACTORY_OFFSET=0x800000
FACTORY_SIZE=0xC00000
FPGA_OFFSET=0x1400000
FPGA_SIZE=0x100000
SD_DIR=/mnt
SD_FACTORY_BIN_PATH=$SD_DIR/factory.bin
SD_SYSTEM_BIT_PATH=$SD_DIR/system.bit
FACTOR... | true |
8de12441d4b683b1ca5abab53345d13dfc199a22 | Shell | ciax/ciax-xml | /work/successtag.sh | UTF-8 | 401 | 3.421875 | 3 | [] | no_license | #!/bin/bash
# Add git tag for the version of successful operation
# You can Specify date
[ "$1" = -s ] && { s=1; shift; }
date=$(date ${1:+-d $1} +%Y/%m/%d)
br=$(git branch --contains)
tag="Success!${PROJ^^}@$HOSTNAME($date)-${br#* }"
git check-ref-format "$tag" || { echo "Invalid format"; exit 1; }
echo "$tag"
[ "$s" ... | true |
4cac6690390db95be19227323ed0e7629d77a77a | Shell | irsols-devops/azureAcctSetups | /list_registered_apps.sh | UTF-8 | 493 | 2.59375 | 3 | [] | no_license | #!/bin/bash
# Provided by IRSOLS DevOps team
# IRSOLS Inc @irsols
# www.irsols.com / Your Cloud Native Edge
# MIT License. Attribution required
# Reference: https://docs.microsoft.com/en-us/cli/azure/ad?view=azure-cli-latest
echo " Following are the list of Apps currently registered w/ default subscription ID"
az ad... | true |
45e8b61b2e12a2b484e051c44d4636aefc955851 | Shell | vtadrones/rogue-scripts | /geogit-scripts/install-geogit | UTF-8 | 522 | 2.84375 | 3 | [] | no_license | #!/bin/bash
source settings;
printf "\n\n\t Downloading GeoGit...\n\n";
cd $GEOGIT_INSTALL;
git clone https://github.com/ROGUE-JCTD/GeoGit.git -b SprintRelease;
printf "\n\n\t Building GeoGit...\n\n";
cd GeoGit/src/parent;
mvn clean install -DskipTests;
chown $GEOGIT_OWNER:$GEOGIT_OWNER -R $GEOGIT_HOME;
echo "expo... | true |
71dfcc9a641a72f7b712e56a24a88417977b1cf9 | Shell | sebidude/dotfiles | /kubernetes | UTF-8 | 3,255 | 3.453125 | 3 | [] | no_license | #!/bin/bash
export PATH="$PATH:$HOME/.krew/bin"
KUBECONFIG_DEFAULT="$HOME/.kube/default/default.conf"
kctl=$(which kubectl)
if [ -n "$kctl" -a -x "$kctl" ]; then
source <(kubectl completion bash)
fi
helmbin=$(which helm)
if [ -n "$helmbin" -a -x "$helmbin" ]; then
source <(helm completion bash)
fi
updateKube... | true |
ef310c8a96b8cec5456dc17455a5f397b58cf033 | Shell | hcary/aws-devops | /src/rd-aws | UTF-8 | 1,164 | 2.703125 | 3 | [] | no_license | #!/bin/bash
#
# This file is part of the aws-devops distribution (https://github.com/hcary/aws-devops).
# Copyright (c) 2019 Harvey Cary.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, ... | true |
3740f18e0606c4cb270690ca3bda28abbf98193c | Shell | stockmind/gpd-pocket-ubuntu-respin | /update-kernel.sh | UTF-8 | 462 | 3.34375 | 3 | [] | no_license | #!/bin/bash
LATESTKERNEL="gpdpocket-20190225-5.0.0-rc7-kernel-files.zip"
mkdir -p update-kernel
cd update-kernel
if [ ! -f "$LATESTKERNEL" ]; then
echo "Downloading kernel files...."
wget "https://bitbucket.org/simone_nunzi/gpdpocket-kernel/downloads/$LATESTKERNEL"
fi
echo "Extracting kernel files..."
unzip -o ... | true |
b99ae3d74541383a764a6a0a84e22d94d453c15e | Shell | delianides/dotfiles | /install | UTF-8 | 3,485 | 3.71875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# vim: tw=0
# from https://github.com/gabebw/dotfiles/blob/main/install.sh
set -eo pipefail
mkdir -p ~/Code
color() {
local colornumber="$1"
shift
tput setaf "$colornumber"
echo "$*"
tput sgr0
}
red() { color 1 "$*"; }
green() { color 2 "$*"; }
yellow() { color 3 "$*"; }
info() {
green "=== $*"
}... | true |
e6cb4071de60b920bc9384da767a39aa27bb1422 | Shell | joecox/dotfiles | /zshrc | UTF-8 | 3,390 | 2.859375 | 3 | [] | no_license | # Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
# ZSH_THEME="cox"
ZSH_THEME="robbyrussell"
# Uncomment the following line to use... | true |
433658528e4b25a83c57a10a1b96b6a28691f223 | Shell | typetests/guava-typecheck | /build.sh | UTF-8 | 1,568 | 3.640625 | 4 | [] | no_license | #!/bin/bash
ROOT="$( cd "$(dirname "$0")"/.. ; pwd -P )"
# Required argument $1 is one of:
# formatter, interning, lock, nullness, regex, signature, nothing
# Fail the whole script if any command fails
set -e
## Build Checker Framework
(cd $ROOT && git clone --depth 1 https://github.com/typetools/checker-framewor... | true |
e69ca801ffc22751ddcbdcc561408a92b00c87e7 | Shell | DLT1995/CaffeOnACL-Android | /model_download.sh | UTF-8 | 1,063 | 3.015625 | 3 | [] | no_license | #!/bin/bash
CAFFE_ON_ACL=CaffeOnACL
chmod a+x $CAFFE_ON_ACL/data/ilsvrc12/get_ilsvrc_aux.sh
chmod a+x $CAFFE_ON_ACL/scripts/download_model_binary.py
# download data
$CAFFE_ON_ACL/data/ilsvrc12/get_ilsvrc_aux.sh
# download AlexNet
$CAFFE_ON_ACL/scripts/download_model_binary.py $CAFFE_ON_ACL/models/bvlc_alexnet
# do... | true |
fb24d6f43596cf534a6148ec2c7f7d44802ea494 | Shell | Peter5793/alx-system_engineering-devops | /0x0C-web_server/3-redirection | UTF-8 | 394 | 2.734375 | 3 | [] | no_license | #!/usr/bin/env bash
#Configure your Nginx server so that /redirect_me is
#redirecting to another page
sudo apt-get -y update
sudo apt-get -y install nginx
echo "Holberton School" > /var/www/html/inddex.nginx-debian.html
variable="rewrite ^/redirect_me https://www.youtube.com/watch?v=QH2-TGUlwu4 permanent;"
sed -i "19i... | true |
0264cb58eae2e4c0d9f46fa6675b1cc339c8a95b | Shell | offensivenomad/dotfiles | /rootrc/bash.d/go | UTF-8 | 276 | 2.6875 | 3 | [] | no_license | #!/bin/bash
install-go() {
curl https://dl.google.com/go/go1.13.5.linux-amd64.tar.gz -o /tmp/go1.13.5.linux-amd64.tar.gz
sudo tar -C /usr/local -xzvf ./tmp/go
}
export GOARCH=amd64
export GOOS=linux
export GOPATH="$HOME"/.go
export PATH=$PATH:/usr/local/go:"$GOPATH"/bin
| true |
ab0db124e1de453cb49daef856ab11c96d02d827 | Shell | s-yakoo/Bash | /hypo | UTF-8 | 1,638 | 2.84375 | 3 | [] | no_license | #!/bin/bash
var=$(grep "unknown" tools_all_names.clstr | grep -c "#vibrio#interprot#"
grep "unknown" tools_all_names.clstr | grep -c "#firmicutes#interprot#"
grep "unknown" tools_all_names.clstr | grep -c "#bacteroides#interprot#"
grep "unknown" tools_all_names.clstr | grep -c "#vibrio#rast#"
grep "unknown" tools_all_... | true |
e7f86552f57d9ee458bcdb06104430b1731c7152 | Shell | Yethal/tidal-offline-adder | /downloader.sh | UTF-8 | 324 | 2.625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
source "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )/functions.sh"
IFS='
'
#sanity checks
checkDep adb
checkDep xmllint
checkDevice
checkTidal
#app launch
launchTidal
openMyCollection
openAlbums
while true; do
for x in `getOptions`; do downloadAlbum $x; done
scrollAlbums
d... | true |
ecc91ee7bcf66e7894cc871792ad61c8280d8d03 | Shell | chenbk85/easyScripts | /get_bad_ip.sh | UTF-8 | 1,179 | 3.515625 | 4 | [] | no_license | #!/bin/sh
[ -s /etc/53kf.cfg ] && source /etc/53kf.cfg
IPTABLE="/sbin/iptables"
OLD_FILE="/tmp/.old_bad_ip"
NEW_FILE="/tmp/.new_bad_ip"
FILE="/etc/bad_ip"
cd $NGINX_LOG
if [ -e $OLD_FILE ];then
awk '/GET \/webCompany\.php HTTP/ {print $1}' access.log|sort|uniq > $NEW_FILE
diff -q $OLD_FILE $NEW_FILE
... | true |
29443556e64eddb850cfe02d8b1532ccfb20c56a | Shell | Seagate/cortx-motr | /utils/spiel/m0_filesystem_stats | UTF-8 | 7,937 | 3.15625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
#
# Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates
#
# 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
#
# U... | true |
0d5162d014acf1314203c94ef3f99ddb6d47ca88 | Shell | jbruceh88/scripts | /gitHooks/pre-commit.sample | UTF-8 | 1,759 | 3.890625 | 4 | [] | no_license | #!/bin/bash
#Redirect output to stderr.
exec 1>&2
# Color codes
red=`tput setaf 1`
green=`tput setaf 2`
blue=`tput setaf 4`
reset=`tput sgr0`
keywords=(print_r var_dump console\.log)
#put key words together for grep
keywords_for_grep=$(printf "|%s" "${keywords[@]}")
keywords_for_grep=${keywords_for_grep:1}
#debugg... | true |
77575ecd89d02ba09bf034ae08ec90f2e3a42dd6 | Shell | fcenobi/hypersocket-vpn | /client-network/src/main/resources/hs-socket-redirector | UTF-8 | 1,642 | 4.40625 | 4 | [] | no_license | #!/bin/bash
#
# Simple front-end to iptables to redirect a destination to the client service
#
# By default, the script DELETES all the hypersocket added rules, use --add as the
# first argument to add a new rule.
#
# Usage:0
#
# [--add] <sourceIpOrHostname> <sourcePort> <destinationIp> <destinationPort>
# The commen... | true |
697eab2ce5d10fa422932db93835016bb45d1c22 | Shell | jahkeup/openstack-containers | /shared/preinstall.sh | UTF-8 | 1,118 | 2.8125 | 3 | [] | no_license | #!/usr/bin/env bash
# This script prepares a common openstack env for isolated services
# This script is meant for use with Dockerfile and images.
# Install and configure SSH + Common Deps
apt-get install -y openssh-server sudo traceroute dnsutils less vim net-tools \
python-MySQLdb python-pip telne... | true |
fcac869f9b1aa45005cc70ffb22345284b15de79 | Shell | december454/Bash-Scripting | /Tutorials/learnShell-Basics/shellFunctions | UTF-8 | 808 | 4.125 | 4 | [] | no_license | #! /bin/bash
#Like other programming languages, bash allows for the implementation of functions.
#These subroutines are convenient for repeated tasks. They use the following formats:
#function funcName {
# command
#}
#funcname() [
# command
#}
#funcName{
#command
#}
#Functions can be called by writing their names. ... | true |
39c9ad861bd73fe329349190379889204c65fbd0 | Shell | acocalypso/madrom | /device/khadas/kvim2/mkern.sh | UTF-8 | 1,220 | 3.25 | 3 | [] | no_license | #!/bin/bash -ex
# Run from top of kitkat source
#ROOTFS=$1
ROOTFS="out/target/product/kvim2/ramdisk.img"
PREFIX_CROSS_COMPILE=/opt/toolchains/gcc-linaro-4.9.4-2017.01-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
if [ "$ROOTFS" == "" -o ! -f "$ROOTFS" ]; then
echo "Usage: $0 <ramdisk.img> [m]"
exit 1
fi
K... | true |
bda5539cbefd73a32f30c22b3f1c4fa991213827 | Shell | randstuff/vcure | /vcure.sh | UTF-8 | 3,117 | 3.8125 | 4 | [] | no_license | #!/bin/bash
RootDir="$HOME/data"
ArchivedDir="archived"
Trash="trash"
declare -a arr=("btceur" "xrpeur" "ltceur" "etheur")
#declare -a arr=("btceur" "xrpeur")
shopt -s dotglob
###############################################################################
Collect ()
{
n=0
while [ 42 ]; do
for i in "${arr[... | true |
4f46d88477871ff65581be20722f5d5a4f1a8e80 | Shell | rainwoodman/conda-channel-rainwoodman | /recipe-templates/ngspice/build.sh | UTF-8 | 299 | 2.75 | 3 | [] | no_license | #!/bin/bash
set -x
if [[ $OSTYPE == darwin* ]]; then
export CFLAGS="-headerpad_max_install_names"
export LDFLAGS="${LDFLAGS} -headerpad_max_install_names"
export CXXFLAGS="$CFLAGS"
fi
./configure --prefix=$PREFIX --with-x --with-readline --enable-static
make -j$CPU_COUNT
make install
| true |
0e64ee6a37125f00999b96cd361d242e48120663 | Shell | imclab/politicalframing | /aws.sh | UTF-8 | 3,331 | 3.25 | 3 | [] | no_license | # Dokku Setup on EC2 Instructions
# Because our AWS instance is associated with an elastic IP address, the PFURL should persist
# across deleting and re-creating the instance given the elastic IP is reassociated.
# Please note when doing anything that may change the instance's public IP (e.g. re-creating
# or upgradi... | true |
26744764889d7a08818d4ed5cfa4e8e085275c9f | Shell | dafrito/scaf | /types.d/mit | UTF-8 | 658 | 3.875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
PATH=/bin:/usr/bin
# Description: Generate a license file (defaults to LICENSE)
die() {
echo $* >&2
exit 1;
}
realname() {
if [ -n "$OWNER" ]; then
echo $OWNER
else
# Extract a name from the passwd file
grep "^`whoami`" /etc/passwd | cut -d: -f5
fi;
}
if [ $# ... | true |
68faf436d64f7e1e9800a6f27015af8b3cd91779 | Shell | ParomovEvg/micro-courses | /kill.bash | UTF-8 | 121 | 2.90625 | 3 | [] | no_license | pids=$(ps aux | grep -i nodemon | grep -v grep | awk '{print $2}')
for pid in $pids
do
echo "$pid"
kill "$pid"
done | true |
cfc902ffd90a3d7799c1d806e186289001918cc1 | Shell | Caligone/highLowGameAlexaSkill | /deploy.sh | UTF-8 | 309 | 3.03125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
die () {
echo >&2 "$@"
exit 1
}
zip -rq1 target.zip lib/ index.js node_modules/ package.json yarn.lock
[ "$#" -eq 1 ] || die "Usage: ./deploy.sh [arn]"
aws lambda update-function-code \
--function-name $1 \
--zip-file fileb://target.zip \
--region eu-west-1
rm -r target.zip
| true |
004bd1ca58b07f5fcab1ae0fe3ddd0930a712b43 | Shell | gerritschoe/TowerBuildingBaxter_EECS_206A | /start.sh | UTF-8 | 1,396 | 2.921875 | 3 | [] | no_license | #!/bin/sh
# First of all make sure you have created a link to the baxter.sh shell script:
# ln -s /scratch/shared/baxter_ws/baxter.sh
# Connect to the robot:
# ./baxter.sh [robotname].local
#./baxter.sh asimov.local
#./baxter.sh archytas.local
echo "-> Starting awsome game ->"
echo "-> Start Camera setup done"
# A... | true |
1bc9d59b521ad92e5dd5fb6f371a4b1a6b0ba137 | Shell | djkormo/ContainersSamples | /Kubernetes/labs.play-with-k8s.com/kubernetes_start.sh | UTF-8 | 2,252 | 2.9375 | 3 | [] | no_license | #!/bin/bash -x
## Setup http://labs.play-with-k8s.com/
#
# Inspired heavily by: https://gist.github.com/jjo/78f60702fbfa1cbec7dd865f67a3728a
# Some dev-tools omitted, changes in parenthesis.
#
# Run with:
# bash -x <( curl -L url-to-raw-gist )
# this shell file
# https://raw.githubusercontent.com/djkormo/ContainersSam... | true |
63858d97fd3cfed393623b1ac65be4044d5481e7 | Shell | itsbcit/openshift-dovecot | /mysql/80-dovecot-cleanpid.sh | UTF-8 | 134 | 2.875 | 3 | [
"Apache-2.0"
] | permissive | PID_DOVECOT="/run/dovecot/master.pid"
if [ -f ${PID_DOVECOT} ]; then
echo "removing: ${PID_DOVECOT}"
rm -f ${PID_DOVECOT}
fi
| true |
1b612da09d24e92ef592764192a3ae8040675f2d | Shell | frfuan2021asix2/asix2_fuentes_fran_m06uf2pr2 | /compt_fitx.sh | UTF-8 | 298 | 2.953125 | 3 | [] | no_license | #!/bin/bash
#primero imprime en pantalla y luego captura el teclado
echo "Ingresa el directorio de origen: "
read dir1
#comprime el directorio
tar -cvf Archivo_Comprimido.tar $dir1
if [ -s $dir1 ]
then
echo "Ingresa el directorio de llegada: "
read dir2
fi
cp -rf Archivo_Comprimido.tar $dir2
| true |
4f082996e30961018be363ccaf804f308f0a5a38 | Shell | EvgSumina/mmp_prac_spring_2021 | /hw_4/run.sh | UTF-8 | 5,930 | 2.71875 | 3 | [] | no_license | SOURCE_BASE_PATH="/Sumina_Eugenia_hw_4"
TMP_FOLDER_TASK1="/Sumina_Eugenia_hw_4/task1"
TMP_FOLDER_TASK2="/Sumina_Eugenia_hw_4/task2"
TMP_FOLDER_TASK3="/Sumina_Eugenia_hw_4/task3"
TMP_FOLDER_TASK4="/Sumina_Eugenia_hw_4/task4"
TMP_FOLDER_TASK5="/Sumina_Eugenia_hw_4/task5"
TMP_FOLDER_TASK6="/Sumina_Eugenia_hw_4/task6"
INP... | true |
9bbf55b94eb0af76b15c49568b114a57a87ce08a | Shell | SchrodingerZhu/StanfordLib-CUHKSZ | /misc/generate-mac.sh | UTF-8 | 553 | 2.578125 | 3 | [] | no_license | #!/usr/bin/env sh
set -e
mkdir -p dist/libs
cp -r res dist
cp -r src dist
cp misc/template.cmake dist/CMakeLists.txt
cp misc/template.qmake dist/my_project.pro
cp misc/lib.conf dist/libs
cp "build/libstanford.dylib" dist/libs
# Generate Header files
mkdir -p dist/includes/stanford
mkdir -p dist/includes/abseil
cp -r a... | true |
3c847ace181c7652afbf3f00d885d128c1d43bbe | Shell | phmullins/knowledge | /scripts/makepass.sh | UTF-8 | 400 | 3.0625 | 3 | [] | no_license | #!/bin/bash
#
# Script Name: ~/bin/makepass.sh
# Description: Super easy way of generating a random 24 character password.
# Created: 2017-12-21 @ 10:28 AM | Modified 2018-11-23 @ 09:24 AM.
# Author: patrick@arkmail.us
#
# Generates a random 24 character password. Change the number increase or decrease
# the length of... | true |
a9a181c52cb75073d67fe69946c3805339b3af7c | Shell | prometheus/test-infra | /tools/prometheus-builder/build.sh | UTF-8 | 988 | 3.5625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
DIR="/go/src/github.com/prometheus/prometheus"
if [[ -z $PR_NUMBER || -z $VOLUME_DIR || -z $GITHUB_ORG || -z $GITHUB_REPO ]]; then
echo "ERROR:: environment variables not set correctly"
exit 1;
fi
echo ">> Cloning repository $GITHUB_ORG/$GITHUB_REPO"
if ! git clone https://github.com/$GITHUB_ORG/... | true |
1cc00479bc2dc606269fcc6eb800f1fcef3ce7d7 | Shell | ourobouros/k8s | /test/test-infra/airflow/entrypoint.sh | UTF-8 | 2,395 | 3.953125 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
#
# A startup script for Airflow.
#
# Based on
# https://raw.githubusercontent.com/puckel/docker-airflow/master/script/entrypoint.sh
AIRFLOW_HOME="/usr/local/airflow"
CMD="airflow"
TRY_LOOP="20"
# TODO(jlewi): This is currently getting overwritten in the YAML file.
: ${POSTGRES_HOST:="postgres"}
:... | true |
c0b784c08e31d9ba7e6177c6d21c7f7a4308bd7a | Shell | louismunro/configfiles | /.bashrc | UTF-8 | 1,070 | 3.203125 | 3 | [] | no_license | # Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# set prompt
if [ -n "$PS1" ]; then
PS1='\[\033[1;33m\]\H \[\033[1;32m\]\u: \w\n${?##0}\$ \[\033[1;37m\]';
fi
# VARIABLES
export HISTCONTROL=ignoredups # ignore duplicate commands in history
export EDITOR=/usr/bin/vim # set vi as def... | true |
1da03a652151f84592d68843b7ea0fb75d312a59 | Shell | dockcross/dockcross | /imagefiles/build-and-install-ninja.sh | UTF-8 | 997 | 4.3125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#
# Configure, build and install ninja
#
# Usage:
#
# build-and-install-ninja.sh [-python /path/to/bin/python]
set -e
set -o pipefail
PYTHON=python
while [ $# -gt 0 ]; do
case "$1" in
-python)
PYTHON=$2
shift
;;
*)
echo "Usage: Usage: ${0##*/} [-python /path/to/... | true |
8847105fca909661ab1bdaee8bc0c296b58cb926 | Shell | hebda/ggAnalysis | /radion/scripts/LaunchData2012.sh | UTF-8 | 2,793 | 3.6875 | 4 | [] | no_license | #!/bin/bash
usage() {
echo "`basename $0` -f filelist -c configfile -n njobs(default=1) [-i]"
echo " -f filelist: filelist of input (e.g. scripts/ExampleDataDiphoton8TeVSkimEOS.list)"
echo " -c configfile: config file (e.g. configFilesDir/mvaAnalysisTest.config)"
echo " -i: interactive mode (by def... | true |
b2981b89d92eb47b06e64b87da5b3b68a10ea56a | Shell | dulcet/nvidia-patch | /patch.sh | UTF-8 | 7,297 | 2.828125 | 3 | [] | no_license | #!/bin/bash
# halt on any error for safety and proper pipe handling
set -euo pipefail ; # <- this semicolon and comment make options apply
# even when script is corrupt by CRLF line terminators (issue #75)
# empty line must follow this comment for immediate fail with CRLF newlines
backup_path="/opt/nvidia/libnvidia-en... | true |
ce4dee20374255e950890683ce60c43acb9f8dee | Shell | bioinfo-fcav/metagenomatic | /pipe_wgs_asm_pe.sh | UTF-8 | 20,980 | 3.140625 | 3 | [] | no_license | #!/bin/bash
#
# INGLÊS/ENGLISH
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# http://www.gnu.org/copyleft... | true |
dfc1ecc97c74a3a8ac9fbdade72649ada91b5a53 | Shell | timmao78/bashScript | /ExpansionExamples.sh | UTF-8 | 340 | 3.3125 | 3 | [] | no_license | #!/usr/local/bin/bash
# Basic arithmetic using double parentheses
a=$(( 4 + 5 ))
echo $a
a=$((3+5))
echo $a
b=$(( a + 3 )) # We may include variables without the preceding $ sign.
echo $b
b=$(( $a + 4 )) # Variables can be included with the $ sign if you prefer.
echo $b
(( b++ ))
echo $b
(( b+= 3))
echo $b
a=$(... | true |
2efb9aac0d7f336db66f93fda9d50eb79bcd5a2a | Shell | kholohan/JetPack | /src/update_upgrade/patch_ironic.sh | UTF-8 | 4,616 | 2.65625 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/bin/bash
# Copyright (c) 2016-2017 Dell Inc. or its subsidiaries.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | true |
9d896e1c65dcc20ab616dbf718efda2971ac433e | Shell | zobnin/android-tools | /00-cleanup.sh | UTF-8 | 1,184 | 2.828125 | 3 | [] | no_license | #!/sbin/sh
#
# Clean up CyanogenMod installation after install
# Deleted: all sounds, but one ringtone and notify,
# TTS languages, offline dicattion and few apps
#
# /system/addon.d/00-cleanup.sh
#
. /tmp/backuptool.functions
RINGTONE=Machina
NOTIFICATION=Argon
case "$1" in
backup)
# Stub
;;
restore)
... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.