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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
4a913e028c5271cbd7c6d6e9e517d9fec4d5f9b3 | Shell | ltgoslo/finegrained_modelling | /data/process_data.sh | UTF-8 | 2,631 | 2.765625 | 3 | [
"CC-BY-4.0"
] | permissive | #!/bin/bash
# Create new folder where you will keep all processed data
mkdir processed
cd processing_scripts
# Process mpqa data
python3 process_mpqa.py
# Process darmstadt data
cd ..
unzip DarmstadtServiceReviewCorpus.zip
cd DarmstadtServiceReviewCorpus
unzip services
unzip universities
grep -rl "&" universities/b... | true |
776cc381b17b8c1dd77ce24702da297947dade3e | Shell | mateusvale/bash_script | /script-movimentacao-arquivos/script-criacao-arquivos.sh | UTF-8 | 240 | 2.65625 | 3 | [] | no_license | movimentacao="/home/mateus/fabricas-de-scripts/script-movimentacao-arquivos/movimentacao";
num_arquivos=20;
for ((a=1; a <= num_arquivos ; a++ ));
do
arquivo="$movimentacao/teste$a.txt"
touch $arquivo
chmod 774 $arquivo
done
| true |
0acb9adc1ab741a21341e1e2e5a8822128ab8ec2 | Shell | Shaptic/dotfiles | /acpi/yoga-brightness.sh | UTF-8 | 621 | 3.5 | 4 | [] | no_license | #!/bin/sh
BR_DIR="/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight/"
test -d "$BR_DIR" || exit 0
MIN=0
MAX=$(cat "$BR_DIR/max_brightness")
VAL=$(cat "$BR_DIR/brightness")
if [ "$1" = down ]; then
VAL=$((VAL-41))
else
VAL=$((VAL+41))
fi
if [ "$VAL" -lt $MIN ]; then
VAL=$MIN
eli... | true |
bc15b8767a1ab6563c322c69f1692f700f690f4e | Shell | rmap-project/rmap-shell-installer | /rmap-installer/install_rmap.sh | UTF-8 | 8,069 | 3.890625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# This script installs an RMap server.
# The account used to run the script must have sudo privileges.
# Only include this file once
[[ -n "$RMAP_RMAP_INCLUDED" ]] && return
RMAP_RMAP_INCLUDED=true
# install_common.sh and other initialization is performed in install_tomcat.sh
source install_tomcat.sh
pr... | true |
102676a7e908b1448421f21bc655c852d558a26d | Shell | inodb/scripts | /monitorMem.sh | UTF-8 | 314 | 3.53125 | 4 | [] | no_license | #!/bin/bash
# Serial version writes snapshots to $OUT.$i
OUT=$1
if [ ! $OUT ]; then
OUT=/dev/stdout
fi
i=0
for i in `seq 1 40`; do
ip=`printf "%02d" $i`
free -m > $OUT.$ip
echo "==========================================================" >> $OUT.$ip
top -b -n 2 >> $OUT.$ip
sleep 1
done
| true |
a312faf6e77c33abe5a0c693d620cd1f89b5a2fb | Shell | drequena/psapt | /psapt/bin/special_commands/capture.sh | UTF-8 | 1,488 | 3.625 | 4 | [] | no_license | #!/bin/bash
# NAO EXECUTE ESSE SCRIPT MANUALMENTE!
# Recebe cenario e link a ser capturado.
PSAPT_DIR="/opt/psapt"
CEN_DIR="$PSAPT_DIR/cenarios"
LOG_FILE="log"
TCPDUMP="/usr/sbin/tcpdump"
CAPTURE_DIR="/tmp/pub/psatp"
DATE="/usr/bin/date"
JOBS="/usr/bin/jobs"
arg_num=$#
if [ $arg_num -lt 2 ] || [ $arg_num -gt 2 ]; then
... | true |
988add0f8e78f559a32f930f414315a896729159 | Shell | FlorianHeigl/nagios | /check_mk/openssl_version/plugins/openssl_version | UTF-8 | 103 | 2.53125 | 3 | [] | no_license | #!/bin/sh
if which openssl >/dev/null ; then
echo "<<<openssl_version>>>"
openssl version
fi
| true |
17a71b9a65b891d130e4c3b31212675a0b8d59d7 | Shell | LARG/spl-release | /data/scripts/shorthand.sh | UTF-8 | 1,477 | 3.6875 | 4 | [
"BSD-2-Clause"
] | permissive | #/bin/sh
if [ $1 = "start" ]; then
~/bin/villa-start.sh
elif [ $1 = "stop" ]; then
~/bin/villa-stop.sh
elif [ $1 = "restart" ]; then
~/bin/villa-stop.sh
sleep 2
~/bin/villa-start.sh
elif [ $1 = "status" ]; then
systemctl --user status ut_motion
systemctl --user status ut_vision
elif [ $1 = "... | true |
6099b3a6708dd7191addb3805633d3618cc5d5c0 | Shell | mrodriguez3313/True-Citizen-Science | /src_scripts/autoUpload.sh | UTF-8 | 407 | 3.0625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
echo "initializing deamon to monitor and upload files to ipfs created in filesdump dir."
inotifywait -m ~/Documents/InsightDC/filesdump -e create -e moved_to |
while read path action file; do
echo "The file '$file' appeared in directory '$path' via '$action'"
ipfs add ~/Documents/Insight... | true |
74d46484b43e11d0dad3d97c3f4ec9f5d3415286 | Shell | jasonkeene/atomics-talk | /src/benchmarks/run_benchmarks.sh | UTF-8 | 587 | 3.515625 | 4 | [] | no_license | #!/bin/bash
run_benchmarks() {
echo ====================================================
echo GOMAXPROCS=$GOMAXPROCS
echo GOROUTINES=$GOROUTINES
for file in $(ls **/*.go); do
base=$(echo $file | cut -f1 -d.)
echo running $base
time ./$base
echo
done
}
main() {
e... | true |
cb868f175deb87e252c0546cae3a27b245daef5c | Shell | Yangzhengtang/mspass | /scripts/tacc_examples/single_node.sh | UTF-8 | 1,375 | 3.234375 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
#SBATCH -J mspass # Job name
#SBATCH -o mspass.o%j # Name of stdout output file
#SBATCH -p skx-dev # Queue (partition) name
#SBATCH -N 1 # Total # of nodes (must be 1 for serial)
#SBATCH -n 1 # Total # of mpi tasks (should be 1 for serial)
#SBATCH -t 02:... | true |
3a9daa0116ae7bc559ac8c9ce69f6771937b4162 | Shell | slimsevernake/Store-and-CMS-React-with-Redux-RESTful-API- | /docker_dev.sh | UTF-8 | 2,482 | 3.4375 | 3 | [] | no_license | #!/bin/bash
services=(
bot-viber-dev
app-dev
cms-dev
api-dev
nginx-dev
postgres-dev
)
images=(
alexmasyukov/klumba_app:latest
alexmasyukov/klumba_api:latest
alexmasyukov/klumba_cms:latest
alexmasyukov/klumba_viber_bot
klumba_bot-viber-dev
klumba_app-dev
klumba_cms-d... | true |
00e7bdf0812af79a9a9de143a920f925c057999b | Shell | drzaeus77/netflix-no-ipv6-dns-proxy | /netflixdns.rc | UTF-8 | 894 | 3.734375 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# $FreeBSD$
#
# PROVIDE: netflixdns
# REQUIRE: LOGIN
#
# Add the following line to /etc/rc.conf[.local] to enable netflixdns
#
# netflixdns_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable netflixdns.
# netflixdns_command (path): Path to the python script
. /etc/rc.subr
name=netflixdns... | true |
a09a5684c57ac3eaa5b99fa8b477f2ad313891eb | Shell | zzj0402/natural-questions-environment | /prepare-data.sh | UTF-8 | 1,049 | 2.75 | 3 | [] | no_license | #!/bin/bash
counter=0
while [ $counter -le 9 ]
do
echo Processing training shard $counter ...
python -m language.question_answering.bert_joint.prepare_nq_data \
--logtostderr \
--input_jsonl /root/data/v1.0/train/nq-train-0$counter.jsonl.gz \
--output_tfrecord ~/output_dir/nq-train.tfrecords-0000$c... | true |
693b6a4dea4f923566829306c5440df455ad1694 | Shell | omakoto/zenlog-legacy | /v4/zenlog-sh-helper | UTF-8 | 1,705 | 3.859375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Basic Zenlog bash helper functions.
# Install it with:
# . <(zenlog sh-helper)
cat <<'EOF'
# Same as "zenlog in_zenlog", except this one is faster.
function zenlog_in_zenlog() {
[[ $(tty 2>/dev/null) == $ZENLOG_TTY ]]
}
function in_zenlog() {
zenlog_in_zenlog
}
# Run a command without logging th... | true |
0a0c3749b577203b1844ef47aeb452393295d5f7 | Shell | ktp-forked-repos/bash-utilities | /gco | UTF-8 | 546 | 3.78125 | 4 | [] | no_license | #!/bin/sh
# |gco|: compile |@program@.c| [...] , 'outputting' to basename of first arg.
# written by Hugh McGuire
if [ $# -lt 1 ]
then
echo Usage:\ `basename $0` '@program@.c' '[...]' >&2
exit 1
fi
DIRNAME=`dirname "$1"`
BASENAME_C=`basename "$1" .c`
BASENAME=`basename "$1"`
if [ "${BASENAME_C}.c" != "${B... | true |
9255020fc580a8a2ae186c92f6ba9d478475d189 | Shell | stevleibelt/shell_config | /_source/function/media/book | UTF-8 | 9,560 | 3.875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
if [[ -f /usr/bin/naps2 ]];
then
function net_bazzline_media_book_add_ocr_to_pdf ()
{
local DESTINATION_FILE_PATH
local SOURCE_FILE_PATH
# ref: https://www.loc.gov/standards/iso639-2/php/code_list.php
local OCR_LANGUAGE
DESTINATION_FILE_PATH="${3:-${1}}"
OCR_LANGUAGE="${2:-deu}... | true |
bf7dd72fbbfcf94970b00aefb5fc4927b2d6a77a | Shell | concher009/enlive | /08_09_lowrank/knee/0_prep.sh | UTF-8 | 556 | 2.625 | 3 | [] | no_license | #!/usr/bin/env bash
set -euo pipefail
source ../../BART.sh
if false;
then
cd data
wget http://old.mridata.org/knees/fully_sampled/p3/e1/s1/P3.zip
unzip P3.zip
cd ..
#extract single slice
$BART fft -u -i 1 data/kspace data/tmp_fft
$BART slice 0 160 data/tmp_fft data/single_slice
fi
$BART rss 8 data/single_sl... | true |
961391155ff80482a0fc9d89b04d1ef58eccff03 | Shell | ding-lab/SeqQEst | /src_qc_bulk/hlaQC.fq.call_hla.sh | UTF-8 | 3,089 | 3.796875 | 4 | [] | no_license | #!/bin/bash
# Hua Sun
# 2021-03-01;
# bash run.sh -T dna -N sampleName -O ./OUT -B sample.bam
# -C config.ini
# -P bwa/razers3/optitype
# -N sampleName
# -T dna/rna
# -B *.bam
# -O outdir
# output outdir/sample/...
CONFIG=""
TYPE="dna"
pipeline="bwa"
while getopts "C:P:N:T:1:2:O:" opt; do
case $opt in
C)
... | true |
674477b20f3a8f45c7a70589bbd27c71864cd5c8 | Shell | flaccid/machine-image-tools | /scripts/qcow2_to_raw.sh | UTF-8 | 289 | 4 | 4 | [
"Apache-2.0"
] | permissive | #! /bin/sh -e
# usage: qcow2_to_raw.sh [qcow2_image_path]
[ -z "$1" ] && echo 'no image file provided, exiting.' && exit 1
image="$1"
base="$(basename $image)"
image_base="${base%.*}"
# convert qcow2 to raw
echo "Converting $base to raw..."
qemu-img convert "$image" "$image_base.img"
| true |
6ad65cc0530db5086d747dbf8e10c4f744fa50d7 | Shell | tejas002/miniature-octo-engine | /octo-engine.sh | UTF-8 | 532 | 3.578125 | 4 | [] | no_license | #!/bin/bash
echo 'Starting the scripts'
#sleep 5
#folder path
for file in /home/Downloads/testing/scripts/m/*
do
echo "File path - $file"
#generating the timestamp - DD-MM-YYYY-HH:MM:SS
dt=$(date '+%d-%m-%Y-%H:%M:%S');
#generating log file name
logfilename=$file$dt
echo "Current ... | true |
dc1c8b5f47ac00b24eb45045104d9811654a3416 | Shell | santiagomok/dotfiles | /macos/config/zsh/zshrc | UTF-8 | 1,710 | 3.125 | 3 | [] | no_license | # git clone --recursive https://github.com/changs/slimzsh.git ~/.config/slimzsh
[ -f $HOME/.config/slimzsh/slim.zsh ] && source "$HOME/.config/slimzsh/slim.zsh"
# exit() {
# # TMUX override builtin exit() function
# if [[ -z $TMUX ]]; then
# builtin exit
# return
# fi
# panes=$(tmux... | true |
5b3a3adfa4f620f714343766466684fb73c37794 | Shell | jdesfossez/tracers-benchmark | /scripts/calibrate/v3.0/calibrate.sh | UTF-8 | 1,630 | 3.25 | 3 | [] | no_license | #!/bin/bash
function load_params {
event_rates=($(grep "event rates" < calibrate.param))
event_rates=${event_rates[@]:3}
sample_size=($(grep "sample size:" < calibrate.param))
sample_size=${sample_size[@]:2}
change_cpus_governor_path=($(grep "change cpu governor path" < calibrate.param))
change_cpus_governor_pat... | true |
34133138447447680c55f5b6e56ca10cce39e834 | Shell | ap-qio/queryio | /queryio-parent/bin/configure-linux.sh | UTF-8 | 5,573 | 3.15625 | 3 | [] | no_license | export LC_CTYPE=C
export LANG=C
USER_INSTALL_DIR="$(dirname "$( cd "$( dirname "$0" )" && pwd )")"
USER_PACKAGE_INSTALL_DIR='$HOME/QueryIOPackage'
echo "Installation Directory: $USER_INSTALL_DIR"
PROP_FILE=$USER_INSTALL_DIR/bin/qio-setup.properties
source $PROP_FILE
LOCAL_IP=`ifconfig | grep -Eo 'inet (addr:)?([0-... | true |
c4a6e4ff7bd0edaa2eba4d85e0477687b4fa6d68 | Shell | LeonardoRick/bash-scripts | /load_env.sh | UTF-8 | 291 | 3.71875 | 4 | [] | no_license | # Export the vars in .env into your shell:
export $(egrep -v '^#' .env | xargs)
# read VERSION from .env
VERSION=$(grep VERSION .env | xargs)
IFS='=' read -ra VERSION <<< "$VERSION"
VERSION=${VERSION[1]}
if [[ -z "$VERSION" ]]; then
echo 'set VERSION variable properly on .env file';
fi | true |
0daaf1bfd0580ac08b6eb684e635f4d8b7fcdc00 | Shell | JJK96/dotfiles | /bin/hostnames.sh | UTF-8 | 423 | 3.515625 | 4 | [
"Unlicense"
] | permissive | #!/usr/bin/env bash
if [ $# -lt 1 ]; then
echo "Usage: $0 <hostnames_file>"
exit 1
fi
hostnames="$1"
for u in $(cat "$hostnames"); do
lookup=$(nslookup $u 2>&1)
if ! [[ $(echo -n "$lookup" | grep -i "can't find") ]]; then
answer=$(echo -n "$lookup" | grep -A 999999 "answer" | grep "Address" | cu... | true |
a32d8cf9d1b41ba423179305294b1e4fd6d382b6 | Shell | manuella/submissionScriptCSC261 | /script/submissionScript | UTF-8 | 4,005 | 3.78125 | 4 | [] | no_license | #!/bin/bash
# Author: Evan Manuella
: <<'ExplainForLoop'
Every iteration, var is going to be a new element of the command line arguments
First, we check if it is has the "*]" pattern, if it does
-we compile it (depending on whether it is *scm or *c)
-store the output as a file
-convert the source to ... | true |
803c6107c1e04b6c7afe1f28fc050cf1a1e78953 | Shell | AKArrow/ProblemStatements | /prob1.sh | UTF-8 | 681 | 3.234375 | 3 | [] | no_license | #!/bin/bash/ -x
declare -A aa
for((i=1;i<=6;i++))
do
aa+=([$i]=0)
done
for((i=1;i<=10;i++))
do
die=$((RANDOM%6+1))
((aa[$die]++))
done
echo ${!aa[@]}
echo ${aa[@]}
max=0
for((i=1;i<=6;i++))
do
if [ ${aa[$i]} -gt $max ]
then
max=${aa[$i]};
fi
done
for i in "${!aa[@]}"; do
if [[ "${aa[$i]... | true |
132ba0ee2b479dba858c3697533889311c270a66 | Shell | kjellalmgren/tflite1 | /get_pi_requirements.sh | UTF-8 | 1,744 | 2.875 | 3 | [] | no_license | #!/bin/bash
# Get packages required for OpenCV
sudo apt-get -y install libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev
sudo apt-get -y install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
sudo apt-get -y install libxvidcore-dev libx264-dev
sudo apt-get -y install qt4-dev-tools libatlas-base-dev
pip3 ... | true |
ede131b79a5437804c1b91a756649dcf43ba92e6 | Shell | heavysink/repo | /archlinuxcn/eka2l1-git/PKGBUILD | UTF-8 | 1,611 | 2.578125 | 3 | [] | no_license | # Maintainer: heavysink <winstonwu91@gmail.com>
_pkgname=eka2l1
pkgname="${_pkgname}-git"
pkgver=5287.e988060e1
pkgrel=1
pkgdesc="Experimental Symbian OS emulator (GIT version)"
arch=('x86_64')
url="https://github.com/EKA2L1/EKA2L1"
license=('GPL2')
makedepends=(
'boost'
'cmake'
'git'
'ccache'
'glfw'
'vulka... | true |
4f9ce0c51432fc5403550c0611a9e2cc027dc716 | Shell | alfredoanton82/io.cfg | /scripts/installPhpSysInfo.sh | UTF-8 | 959 | 3.71875 | 4 | [] | no_license | #/bin/bash
# Define configuration path
CONFIG_PATH=/root/@server@.cfg/config
cd /var/www/
echo "Installing PhpSysInfo"
echo ""
prevVer=$(ls -d phpsysinfo-*)
echo "Remove previous version: $prevVer"
rm -rf $prevVer
echo "Downloading PhpSysInfo..."
wget http://sourceforge.net/projects/phpsysinfo/files/latest/downloa... | true |
7a2f7de9f0e86452ef06cf06aa60c018df64308f | Shell | lonord/docker-ss-http-proxy | /entrypoint.sh | UTF-8 | 1,475 | 3.8125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
SS_CONFIG=${SS_CONFIG:-""}
SS_MODULE=${SS_MODULE:-"ss-server"}
RNGD_FLAG=${RNGD_FLAG:-"false"}
PRIVOXY_FLAG=${PRIVOXY_FLAG:-"false"}
PRIVOXY_LISTEN_PORT=${PRIVOXY_LISTEN_PORT:-""}
PRIVOXY_FORWARD_PORT=${PRIVOXY_FORWARD_PORT:-""}
while getopts "s:m:l:f:rp" OPT; do
case $OPT in
s)
SS... | true |
58626b0a21dcd82023f836e23b6bbe01ee155b4a | Shell | renowncoder/obs-deps | /CI/build-qt-macos.sh | UTF-8 | 3,468 | 3.953125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
##############################################################################
# macOS dependencies build script
##############################################################################
#
# This script pre-compiles all dependencies required to build OBS
#
# Parameters:
# -h, --help ... | true |
a6f9d52db66a60f6fe2e561eb15460d052f16a0f | Shell | reshinto/dotfiles | /mac/.zshrc | UTF-8 | 11,378 | 3.03125 | 3 | [] | no_license | # get disk size
df / | sed '1d' |
awk '
/^\/dev\/disk1s4s1/ {
size_byte = $2 * 512 # df uses 512 byte blocks
avail_byte = $4 * 512
total_size_gb = size_byte / 1000000000
total_avail_gb = avail_byte / 1000000000
printf "Size: %.1f GB ... | true |
427b44cb9a219d269cf70b4e3a7fe21e02fbf729 | Shell | atong01/config | /setup.sh | UTF-8 | 1,118 | 3.46875 | 3 | [] | no_license | #!/bin/bash
#setup.sh
#Created By Alex Tong January 28, 2015
#Modified By Alex Tong February 16, 2015
#This script runs the config package to set up a remote linux machine
echo "Running ssh-config.sh"
./ssh-config.sh
echo "copying .vimrc"
cp .vimrc ~
###################################################################... | true |
df29770c5a6ee14349fe70895afb89d5fefd76ce | Shell | valhallasw/ts-puppet | /modules/solaris/files/profile | UTF-8 | 1,958 | 3.015625 | 3 | [] | no_license | # IMPORTANT!!! DO NOT EDIT THIS FILE
#
# Do not edit /etc/profile. Instead, edit the master copy in Puppet, and run
# puppetd -t. This will make sure the change is applied to all servers, and
# not lost if the system is reinstalled. For more information, see
# <https://wiki.toolserver.org/view/Admin:Puppet>.
#ident... | true |
4d8ccee3db519167c357d717f13b7eabbd326f11 | Shell | rtrouton/rtrouton_scripts | /rtrouton_scripts/Casper_Scripts/Jamf_Pro_Self_Service_Bookmark_Backup/Jamf_Pro_Self_Service_Bookmark_Backup.sh | UTF-8 | 2,816 | 4.3125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# This script is designed to do the following:
#
# 1. If necessary, create a directory for storing backup copies of Jamf Pro Self Service bookmark files.
# 2. Make copies of the Self Service bookmark files.
# 3. Name the copied files using the title of the Self Service bookmark.
# 4. Store the copied book... | true |
d43f71a58b45a824ba0a51ed27996017c5da6a31 | Shell | rockry/PcapMonitor | /assets/shell/sniffer.sh | UTF-8 | 1,760 | 2.625 | 3 | [] | no_license | #!/system/bin/sh
#echo ""
#echo " This is for QCT monitor mode"
#echo ""
if [ "$1" == "STOP" ]; then
echo 0 > /sys/module/wlan/parameters/con_mode
ifconfig wlan0 up
iwpriv wlan0 monitor 0
echo "QCT SNIFFER MODE EXIT"
return
fi
CHANNEL="$1"
BANDWIDTH="$2"
if [ "$CHANNEL" == "" ]; then
CHANNEL=1... | true |
9ca588b8390b5bcb9748bf0bae4756df8db93522 | Shell | rainisto/jollarecovery | /root/init | UTF-8 | 995 | 2.96875 | 3 | [] | no_license | #!/bin/sh
# Minimal Android Debug initrd
# 2013-10-21 Thomas Perl <m@thp.io>
export PATH=/bin:/sbin
# Mount basic file systems
mount -t proc none /proc
mount -t sysfs none /sys
echo 255 > /sys/class/leds/led:rgb_blue/brightness
sleep 3
# Prepare /dev
mount -t tmpfs -o size=64k,mode=0755 tmpfs /dev
mkdir /dev/pts
m... | true |
71f8334ee6e65fdc2dac9a1af2abc8582959603d | Shell | wiw/cutadapt_imcb | /unpack_combine2.sh | UTF-8 | 530 | 3.015625 | 3 | [] | no_license | #!/bin/bash
dir=/home/anton/Doc/Documents/SequenceData/DamID_IBprot/export_not_combine/141110
bzip_files=$dir/*.fastq.bz2
cd $dir
for fq in $bzip_files; do
fq_base=`basename ${fq}`
bzcat ${fq_base} > ${fq_base%.bz2}
gzip -c ${fq_base%.bz2} > ${fq_base%.bz2}.gz
rm $fq_base ${fq_base%.bz2}
done
#i=10
#while [ $i -le ... | true |
b1b86c5d3249a5c8dbcdb5a827c2c08d33aa74e1 | Shell | cosmicd/miscellaneous-scripts | /bash/create-ghpages-repo.sh | UTF-8 | 995 | 3.734375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Purpose: Delete old and create a new gh-pages repo for static sites
GH_USERNAME=yourUsername
GH_PAGES_NAME=${GH_USERNAME}.github.io
GH_PAGES_REPO_PATH=/path/to/local/$GH_PAGES_NAME # this is the local copy of the build repo
doall(){
delete_remote
delete_local
create; # create new repo
... | true |
96641586a76cf26cff55619935a9524cc5168341 | Shell | cfieber/spinnaker-oss-setup | /install.sh | UTF-8 | 3,522 | 3.859375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
function print_help {
local current_install_dir=$(source $DIR/files/env.sh && echo $SPINNAKER_WORKSPACE)
echo "usage: install.sh [-hu]"
echo ""
echo "-h show help and exit"
echo "-u proceed with install without GI... | true |
d2aaa36bfca7225415cbd16c76afde8a11a36eb6 | Shell | almoore/useful-scripts | /k8s/check-certs | UTF-8 | 726 | 3.875 | 4 | [] | no_license | #!/bin/bash
ARGS="$@"
GC="\033[1;32m"
YC="\033[1;33m"
EC="\033[1;0m"
printgreen() {
printf "${GC}%s$@${EC}\n";
}
printyellow() {
printf "${YC}%s$@${EC}\n";
}
# get all tls type secrets
OUTPUT=$(kubectl ${ARGS} get secret -A | grep "kubernetes.io/tls")
# get namespaces
NAMESPACES=$(echo "$OUTPUT" | awk '{print... | true |
df0508b74fc491279187b8b3e64c63ed9a97bd1c | Shell | mkimartinez/practice-simple-bash-scripting | /system_monitoring/cpu_memory_swap_usage.sh | UTF-8 | 590 | 3.25 | 3 | [] | no_license | #!/bin/bash
echo "-------------------------------------------"
echo "Server_Name CPU(%) Memory(%) Swap(%) Uptime(%)"
echo "-------------------------------------------"
#for server in `more /opt/scripts/server-list.txt`
#do
scpu=$(cat /proc/stat | awk '/cpu/{printf("%.2f%\n"), ($2+$4)*100/($2+$4+$5)}' | awk '{p... | true |
13725d302bb36e9e582484f9899a6322e5ba197b | Shell | JaneliaSciComp/hortacloud | /vpc_stack/src/jacs/cleanup.sh | UTF-8 | 365 | 2.859375 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash -xe
# Update with optional user data that will run on instance start.
# Learn more about user-data: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html
#
# Output is logged to /var/log/cloud-init-output.log
echo "Cleanup user data"
# remove user data script
rm -rf /var/lib/cloud/instance/s... | true |
ee1db900ec88741fc1bdbd337d7814016c0f5cec | Shell | ahpeng/acs-k8s-cassandra-multi-dc | /scripts/deploy-multidc.sh | UTF-8 | 3,732 | 2.96875 | 3 | [] | no_license | #!/bin/bash
set -e
RESOURCE_GROUP_1=${1}
RESOURCE_GROUP_2=${2}
CLUSTER_DEFINITION_1=./templates/kubernetes.east.json
CLUSTER_DEFINITION_2=./templates/kubernetes.west.json
VNET_NAME=KubernetesCustomVNET
SUBNET_NAME=KubernetesSubnet
VNET_1_FIRST_TWO=10.140
VNET_2_FIRST_TWO=10.240
LOCATION_1=westcentralus
LOCATION_2=... | true |
a9d3e833007bf632433d99e0c5de76dacebb2fb1 | Shell | Janeiro2022/JMR_CKF | /archive/scripts/process_iteration_plots.sh | UTF-8 | 489 | 3 | 3 | [] | no_license | #!/bin/bash
DATE="20200610";
EXP_CODES="{'A', 'B', 'C', 'D', 'E', 'F'}";
START=10
STOP=25
TRIALS="{"
for i in $(eval echo {$START..$STOP}); do
if (( $i == $START )); then
TRIALS="${TRIALS}'$(printf "%03d" $i)'"
else
TRIALS="${TRIALS},'$(printf "%03d" $i)'"
fi
done
TRIALS="${TRIALS}}"
matlab -nodisplay -nosplas... | true |
e169d4605b2506b5181a3217d86964f7f9322a09 | Shell | vzaicev/bash | /2022/07_ernest_knurov/lab03/lab03_z77.sh | UTF-8 | 202 | 2.90625 | 3 | [] | no_license | #!/bin/bash
if [ -n "$1" ] && [ "$1" == "-task" ];
then
echo "Задание"
echo "77. Удалить все пустые строки в конце файла"
echo
echo
fi
sed '/^$/d' file.txt | true |
f4706f43025fdb17e8b7bc4e8e89662e277f8edb | Shell | gdubw/gradle-distribution-server | /upload-to-nexus.sh | UTF-8 | 657 | 3.484375 | 3 | [] | no_license | #!/usr/bin/env bash
# shellcheck disable=SC2164
cd "$(dirname "${BASH_SOURCE[0]}")"
# Upload all packages to a Nexus3 server, with a raw repository named 'gradle-distribution
NEXUS_SERVER="${NEXUS_SERVER:-127.0.0.1}"
NEXUS_RAW_REPO="${NEXUS_RAW_REPO:-gradle-distribution}"
DIST_DIR="${1:-build/distributions}"
for file i... | true |
802edf98306e75d80a069994055fc42d741e4a98 | Shell | bingli7/gittest | /lib/launchers/env_scripts/configure_env.sh | UTF-8 | 21,789 | 3.765625 | 4 | [] | no_license | #!/bin/bash
set -x
function is_true()
{
for arg
do
[[ x$arg =~ x(1|true) ]] || return 0
done
return 1
}
function is_false()
{
for arg
do
[[ x$arg =~ x(0|false) ]] || return 0
done
return 1
}
function wait_cloud_init()
{
# exit early if cloud-init log does not exis... | true |
ffcf6f5f657340e61b4c7a9bcdf33963d673c338 | Shell | bumplzz69/openshift-tools | /ansible/roles/openshift_firstboot_scripts/files/insights-register.sh | UTF-8 | 328 | 2.8125 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/bin/bash
while getopts c:t: option
do
case "${option}"
in
c) CLUSTERNAME=${OPTARG};;
t) NODETYPE=${OPTARG};;
esac
done
INTERNAL_HOSTNAME=$(curl 169.254.169.254/latest/meta-data/local-hostname)
nohup /usr/bin/redhat-access-insights --register --display-name=$CLUSTERNAME-$NODETYPE-$INTERNAL_HOSTNAME --group=$CLUSTE... | true |
c10bd7e61041cf65934db4d97828cda4cd20f05b | Shell | Tubbz-alt/LLNMS | /src/core/assets/llnms-scan-asset.sh | UTF-8 | 6,518 | 4.1875 | 4 | [
"MIT"
] | permissive | #!/bin/sh
#
# File: llnms-scan-asset.sh
# Author: Marvin Smith
# Date: 12/13/2013
#
# Purpose: Runs the scanners on the specified asset.
#
#----------------------------------------#
#- Print Usage Instructions -#
#----------------------------------------#
usage(){
echo "`basename $0` [o... | true |
f76848a6bbdc4c24563b9f728ad4ec7b4d5e99a3 | Shell | apereo/cas | /ci/tests/puppeteer/scenarios/delegated-login-saml2-with-sso/init.sh | UTF-8 | 339 | 2.671875 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/bin/bash
echo -e "Removing previous SAML metadata directory, if any"
rm -Rf "${PWD}/ci/tests/puppeteer/scenarios/${SCENARIO}/saml-md"
echo -e "Creating SAML metadata directory"
mkdir "${PWD}/ci/tests/puppeteer/scenarios/${SCENARIO}/saml-md"
chmod +x "${PWD}/ci/tests/saml2/run-saml-server.sh"
"${PWD}/ci/tests/saml2/r... | true |
7ea1e81950e794dd89499e80f111516c207185b9 | Shell | karlzheng/vimrc | /install.sh | UTF-8 | 712 | 2.90625 | 3 | [] | no_license | #!/bin/bash -
#===============================================================================
#
# FILE: install.sh
#
# USAGE: ./install.sh
#
# DESCRIPTION:
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Karl Zheng (), ZhengKarl#gmail.com
... | true |
bfbb70ae175b56159845e6aacffe3bedb8300653 | Shell | obino/appscale | /util/gen_release_notes.sh | UTF-8 | 1,295 | 4.25 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Helper script to gather all git log messages from the last tag
# and construct a preliminary RELEASE file for the release.
#
# Assumes the new release from the VERSION file.
#
if [ ! -e RELEASE ]; then
echo "Unable to locate RELEASE file, is your working dir the top level of the repo"
exit 1
fi
ech... | true |
75b70a40edeaf5c0e86f20526804c5c3e8fe88ee | Shell | yucca-t-k/togoid-config | /config-suspend/hint-uniprot/update.sh | UTF-8 | 719 | 2.796875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# SPARQL query
QUERY='PREFIX hnt: <http://purl.jp/10/hint/>
PREFIX bp3: <http://www.biopax.org/release/biopax-level3.owl#>
PREFIX uni: <http://identifiers.org/uniprot/>
PREFIX obo: <http://purl.obolibrary.org/obo/>
SELECT (replace(str(?hint), "http://purl.jp/10/hint/", "") as ?hint_id) (replace(str(?unipro... | true |
c60ac7e65ccaa3571cc0b5a32efd8c24cc834dd1 | Shell | Jf-Chen/FRN-main | /trained_model_weights/download_weights.sh | UTF-8 | 453 | 2.859375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
. ../utils/gdownload.sh
. ../utils/conditional.sh
# this section is for downloading the trained_model_weights.tar
# md5sum for the downloaded trained_model_weights.tar should be 0dde61f0b520ae9c17c9aae6dcc64b55
echo "downloading trained_model_weights..."
gdownload 1n6zg5Bkj5FzSHpRbJdzlUkSVDtmjgobm trained... | true |
4853eafc5923469a7cf5393934ea8f20dd504d3d | Shell | tobieniepodam/apache-ssl | /view | UTF-8 | 355 | 4.0625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
if [ "$#" -lt 1 ]; then
echo "Usage: $0 file-to-view"
exit 1
fi
if [ ! -f "$1" ]; then
echo "File '$1' doesn't exist!"
exit 1
fi
case ${1##*.} in
key) openssl rsa -noout -text -in $1 ;;
crt) openssl x509 -noout -text -in $1 ;;
csr) openssl req -noout -text -in $1 ;;
*)
echo 'Unknown ... | true |
9dcfc8f06256dd319e678d601931abc177af6d2f | Shell | tholum/phpjs | /_tools/compile_node.sh | UTF-8 | 520 | 3.34375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
output="nodejs_php.js"
echo "Starting to compile all Functions, it may take a minute or two"
echo "module.exports = { " > $output
for dir in `ls functions`;do
for file in `ls functions/$dir`;do
#sed 's/function\s\(.*\)(/\1: function(/g' functions/$dir/$file >> $output
sed '0,/function/s/function\s\(.... | true |
fd6045f8cc0903d9e897f9682903d6a46e2f9998 | Shell | ExpediaGroup/styx | /travis/deploy.sh | UTF-8 | 2,191 | 3.390625 | 3 | [
"Apache-2.0",
"EPL-1.0",
"MIT",
"BSD-3-Clause"
] | permissive | #!/bin/bash
#
# Copyright (C) 2013-2021 Expedia Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | true |
dc7d46613168914c0c805908ccf9014cdb86ac44 | Shell | djheisterberg/test-jobs | /abaqus/rsh | UTF-8 | 226 | 2.78125 | 3 | [] | no_license | #!/bin/bash
cluster=`hostname -s`
cluster=${cluster:0:1}
RCMD=/usr/bin/ssh
if [ "$cluster" == "n" ]; then
RCMD=/usr/bin/rsh
elif [ "$cluster" == "r" ]; then
RCMD=/usr/bin/rsh
fi
echo ">>> $RCMD $(date) $@"
exec $RCMD "$@"
| true |
b4c82a24e6f659e4734772efa80a59e651b45876 | Shell | havleoto/kplts | /run/icbink.sh | UTF-8 | 219 | 2.515625 | 3 | [
"MIT"
] | permissive | #! /bin/sh
#ICBINK=~/src/kernel/icbink/entry_point-c
# Allow user to set their own.
if [ -z $ICBINK ] ; then
ICBINK=~/klisp/icbink/entry_point-c
fi
cd $(dirname $0)/../tests
$ICBINK ../run/icbink-compatibility.k
| true |
1fff5d47d20c3e32acb53b62e3605b2b26822120 | Shell | jamesmacdoel/Scripts | /Zimbra-LockAccountBySendRate.sh | UTF-8 | 559 | 3.109375 | 3 | [] | no_license | #!/bin/bash
RATE=`/opt/zimbra/libexec/zmmsgtrace -s "@foo.com" 2> /dev/nul |grep "foo.com \-\->" |sort |uniq -c`
RATE=`echo $RATE |sed -e 's/ --> /,/g'`
OLDIFS=$IFS
IFS=','
aRATE=($RATE)
for line in "${aRATE[@]}" ;do
COUNT=`echo $line |awk '{print $1}'`
EMAIL=`echo $line |awk '{print $2}'`
#... | true |
bbddc56cf34cb681eef5367aced149b50ed72f1c | Shell | jonathanwilsonami/MySQL-Student-Grades-Project | /SQL/HW8/createTxt8.sh | UTF-8 | 571 | 2.9375 | 3 | [] | no_license | #!/bin/bash
#This script just helps me create my submission:
printf '1. This is load_students.sh\n\n' > hw8.txt
cat load_students.sh >> hw8.txt
printf '2. This is insert_template_students.awk\n\n' >> hw8.txt
cat insert_template_students.awk >> hw8.txt
printf '3. This is table_schema_students.sql\n\n' >> hw8.txt
cat... | true |
4c3ff7b6a42dc21360f067b88aa415eda2ddccef | Shell | SheldonRay/lab_2_3308 | /#lab2_scripts.sh# | UTF-8 | 379 | 2.875 | 3 | [] | no_license | #!/bin/bash
# Authors : Sheldon Ray
# Date: 1/30/2019
#Problem 1 Code:
#Make sure to document how you are solving each problem!
echo "Please enter a regular expression along with a text file name"
read regularEx
read fileName
grep -n $regularEx $fileName * < command_results.txt
grep -n '@geocities.com' $fileName * < e... | true |
6db8b4ff54042f5414b07f736e3c565afcd12eea | Shell | andrei4ka/fuel-main-redhat | /utils/jenkins/fuel-ci/update_jobs.sh | UTF-8 | 138 | 2.546875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
find $1 -type f | while read FILENAME; do
jenkins-jobs --conf /etc/jenkins_jobs/jenkins_jobs.ini update "$FILENAME"
done
| true |
dd8d89864ffbb3dadebe837602b73d5f1ceb404e | Shell | jifeng/git-script | /basic.sh | UTF-8 | 2,517 | 2.953125 | 3 | [] | no_license | #git的eclipse插件
eclipse git plugin
http://www.eclipse.org/egit/download/
git on windows
Step 0
#Git Bash命令行工具
#下载windows客户端 http://windows.github.com/
#跟linux下的命令行一样,有个别命令无法使用 比如 $> ll,窗口中的内容无法拷贝(右键无效)
Step 1
#安装完成后设置账号,邮箱,提交的时候显示的名称。
git config --global user.name "jifeng"
git config --global user.e... | true |
84b61870684586b20cf94ae563103d6d5aa52994 | Shell | ccoachecu/csp2101 | /workshops/ws4/ws4e.sh | UTF-8 | 198 | 2.796875 | 3 | [] | no_license | #!/bin/bash
# retrieve all lines that end in IP http://192.168.5.162/ and wtire them to a file called
# 162attempts.txt
cat sampledata.txt | grep 'http://192.168.5.162/$' > 162attempts.txt
exit 0 | true |
b5406153f2b6f73732282a1f94c0c39f4bb9f337 | Shell | ethersphere/bee-staging | /install.sh | UTF-8 | 238 | 2.96875 | 3 | [] | no_license | #!/bin/bash
set -euxo pipefail
if [[ -z $NAMESPACE ]]; then
echo "Environment variable NAMESPACE is required."
echo "Example: NAMESPACE=test ./install.sh"
exit 1
fi
echo "INSTALLING BEE NODES"
helmsman -apply -f bee.yaml
| true |
a1eedb2f74ead8919e15cdc5f8c30d9d396185d7 | Shell | redhat-cip/edeploy-roles | /puppet-master.install | UTF-8 | 6,904 | 2.71875 | 3 | [] | no_license | #!/bin/bash
#
# Copyright (C) 2013-2014 eNovance SAS <licensing@enovance.com>
#
# Author: Emilien Macchi <emilien.macchi@enovance.com>
#
# 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
#
# ... | true |
009c0f213579ffc641cb59e5237fb94e5480d9c6 | Shell | soma115/wikikracja | /scripts/post_install.sh | UTF-8 | 2,435 | 2.71875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
DOMAIN=`grep ALLOWED_HOSTS zzz/settings_custom.py | cut -d "'" -f 2`
HOME=/home/user/${DOMAIN}/
# DEPLOY DB
cd ${HOME}/${DOMAIN}; ${HOME}/venv/bin/python ${HOME}/${DOMAIN}/manage.py makemigrations article;
cd ${HOME}/${DOMAIN}; ${HOME}/venv/bin/python ${HOME}/${DOMAIN}/manage.py makemigrations chat;
cd ${... | true |
f78a7b9289e70bdf9a76852a6000740217143a67 | Shell | tnici/hetzner-k8s-builder | /scripts/download-cluster-config.sh | UTF-8 | 2,949 | 4.125 | 4 | [] | no_license | #!/usr/bin/env bash
#-------------------------------------------------------------------------------
#
# Downloads the cluster settings from Rancher and place them into ~/.kube/config.
#
#-------------------------------------------------------------------------------
# Stop immediately if any of the deployments fail
... | true |
35cf67a479e284755bc5b37c6bd7294f17e5d6ba | Shell | tectronics/zakboekje | /src/main/scripts/zakboekje.sh | UTF-8 | 147 | 2.671875 | 3 | [] | no_license | #!/bin/sh
rm pdf/*.pdf
for fn in svg/*.svg; do
pdf=`basename "$fn" ".svg"`
echo $pdf
inkscape --export-pdf=pdf/$pdf.pdf $fn
done
cd java
ant
| true |
c809fa009f52327da2730453011f1320d9192284 | Shell | davidjsanders/cowbull-k8s | /scripts/validate-configmap.sh | UTF-8 | 763 | 3.703125 | 4 | [
"Apache-2.0"
] | permissive | config_map=$(kubectl -n cowbull get configmaps --no-headers $1 2> /dev/null)
ret_stat=$?
if [ "$ret_stat" != "0" ]
then
if [ -f .local/$1.yaml ]
then
short_banner "Loading $1 configuration from local manifest"
kubectl apply -n cowbull -f .local/$1.yaml &> /dev/null
if [ "$?" != "0" ]
... | true |
9ebac962da41de7a0426716a109f082054b18e62 | Shell | bentsherman/pbs-toolkit | /modules/install-fastqc.sh | UTF-8 | 1,091 | 3.546875 | 4 | [] | no_license | #!/bin/bash
MODULEDIR="${HOME}/modules"
SOFTWAREDIR="${HOME}/software"
MODULE_NAME="fastqc"
MODULE_VERSION="0.11.7"
MODULE_PATH="${SOFTWAREDIR}/${MODULE_NAME}/${MODULE_VERSION}"
# make sure user is not on the login node
if [ ${HOSTNAME} = "login001" ]; then
echo "error: please use a compute node to install this mod... | true |
269ee9849f88ef9ebde0664f25201b4993516a7b | Shell | 0x78f1935/BotZilla_LEGACY | /database/build-design.sh | UTF-8 | 292 | 2.65625 | 3 | [] | no_license | #!/bin/bash
ENV=`mktemp -d`
trap 'rm -rf $ENV' EXIT
virtualenv --python=python3 $ENV
{
. $ENV/bin/activate
python --version
pip install git+git://github.com/hendrikx-itc/pg-db-tools
compile-db-schema sql --if-not-exists design/schema-design.yml > src/00_base.sql
}
exit 0
| true |
44fe355901892e372b7066b3512ab72e16e61081 | Shell | janost/locutus | /locutus.sh | UTF-8 | 5,945 | 4.25 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -Eeuo pipefail
CONFIG_VARS=(REPO_DIR PW_FILE BACKUP_NAME BACKUP_LIST BORG_CREATE_OPTIONS BORG_PRUNE_OPTIONS PWGEN_CMD BORG_INIT_CMD BORG_PASSCOMMAND REPO_SYNC_COMMAND)
print_info() {
local GREEN='\033[0;32m'
local NC='\033[0m'
local MSG="$1"
if [ -t 1 ]; then
echo -e "${GREEN}[INFO]${NC} ... | true |
678cef277722e46432461c1c4df15d879bce14d8 | Shell | eushaun/nine-board-tic-tac-toe | /testing.sh | UTF-8 | 355 | 3.390625 | 3 | [] | no_license | #!/bin/bash
# Play agent against specified program 100 times
# Example:
# ./playpy.sh lookt 12345
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <player> <port>" >&2
exit 1
fi
# p is the port number
p=11300
i=0
while ((i < 100))
do
./servt -p $p & sleep 0.1
./agent.py -p $p & sleep 0.1
./$1 -... | true |
3fcf720610fe66d6fd490802808f96cbd8673fc0 | Shell | OProtalk/Protalk | /Script-sh/ble_host.sh | UTF-8 | 2,500 | 3.65625 | 4 | [] | no_license | #!/bin/bash
# ble host setup
# written by nanite 2017-03-04
# ref: https://developer.nordicsemi.com/nRF5_IoT_SDK/doc/0.9.0/html/a00092.html
NC='\033[0m' # no color
GREEN='\033[0;32m'
CYAN='\033[0;36m'
YELLOW='\033[1;33m'
echo -e ${CYAN}-------------- `basename "$0"` -------------${NC}
# Mount the debugfs file system... | true |
e125c05e8f4f36c6de8f7d0579a5a42df3f88db0 | Shell | isliulin/disp | /shell/killsysxl.sh | UTF-8 | 484 | 3.3125 | 3 | [] | no_license | #!/bin/bash
echo "`date '+%Y/%m/%d %k:%M:%S'` system killprocess BEGIN..."
pidof_bin="/usr/sbin/pidof"
[ ! -f $pidof_bin ] && echo "$pidof_bin is not exist" && exit 1;
pids=`$pidof_bin -x sysxlj`
if [ -z "$pids" ]; then
echo "`date '+%Y/%m/%d %k:%M:%S'` system is not start..,exit";
exit 0;
fi
for i in $pids
do
... | true |
91d1b01664ca3bae16aa3ce4ac1799f9d2071ab4 | Shell | satago/aws-candy-tools | /src/main/bundle/bin/fleet | UTF-8 | 2,248 | 4.0625 | 4 | [] | no_license | #!/usr/bin/env bash
set -e
SCRIPT_PATH=$( cd "$(dirname "$0")" ; pwd -P )
FLEET_DIR=${SCRIPT_PATH}/../fleet
CMD=$1
GROUP=$2
case "$CMD" in
groups)
if [[ -z ${GROUP} ]]; then
$0 groups -all
elif [[ "${GROUP}" == "all" ]]; then
$0 groups -all
... | true |
e8261d7ef6742caace5ad8ec05e374ba735e9c5d | Shell | marssystems/bitcoin-tutorials | /electrs/electrum_wallet.sh | UTF-8 | 1,890 | 3.375 | 3 | [] | no_license | # Download and run this script to the Linux desktop:
# $ wget https://raw.githubusercontent.com/openoms/bitcoin-tutorials/master/electrs/4_electrum_install && bash 4_electrum_install.sh
# https://electrum.org/#download
# Install dependencies:
sudo apt-get install -y python3-pyqt5
# Download package:
wget https://d... | true |
2f0af4472f3158de6c70c3bdf5fd721525fdd97c | Shell | NeilBetham/dotfiles | /bootstrap | UTF-8 | 1,489 | 4.21875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -euf -o pipefail
# Check which platform we are on
echo -n "Detected OS: "
if [ "$(uname)" == "Darwin" ]; then
echo "MacOS"
export MACOS=1
elif [ "$(uname)" == "Linux" ]; then
echo "Linux"
export LINUX=1
fi
# Check if the shell is interactive
if [ -t 0 ]; then
echo "Running with Shell... | true |
ba378fde6241c26c3ca4cce891ece2ec3206166d | Shell | msgpo/wok | /get-algobox/stuff/get-algobox | UTF-8 | 4,179 | 4.15625 | 4 | [] | no_license | #!/bin/sh
#
# get-package - create and install SliTaz package algobox
#
# (C) 2020 SliTaz - GNU General Public License v3.
# Author : unknown
# modified by HGT on 2020-02-10
#
# === Initialisations ===
PKGS_DB="/var/lib/tazpkg" # packages database directory
PACKAGE="algobox"
WEB_SITE="https://www.xm1math.net/algobox/"... | true |
1a5379ec38a674e9ee85f7292b031728f5ac772c | Shell | ArqueologiaDigital/Software_de_um_Minicomputador__Sistema_Basico_de_Controle__BenicioJSouza_1976 | /PDF/make_pdf.sh | UTF-8 | 349 | 2.78125 | 3 | [] | no_license | echo "Generating lowres pages:"
for f in ../originais/*.jpg
do
echo "Converting $f ..."
convert $f -rotate 90 -resize 800 $f.lowres.jpg
done
echo "And now generating the PDF..."
convert ../originais/*.lowres.jpg Software_de_um_Minicomputador__Sistema_Basico_de_Controle__BenicioJSouza_1976.pdf
echo "done."
rm ... | true |
00b7634fdaead8588d2d264a79e3a54e896bbc48 | Shell | nagya11/resflash | /host/upgrade.sh | UTF-8 | 4,009 | 3.84375 | 4 | [
"ISC"
] | permissive | #!/bin/sh
# Upgrade the inactive root partition with a new filesystem and activate it
# Copyright Brian Conway <bconway@rcesoftware.com>, see LICENSE for details
set -o errexit
set -o nounset
if set -o|fgrep -q pipefail; then
set -o pipefail
fi
BINDIR=$(dirname ${0})
. ${BINDIR}/resflash.sub
MACHINE=$(machine)
se... | true |
2412d36e935bf71d5a4f61c2c6e3a133b2b6f987 | Shell | kimleeju/JellyFishDB | /src_cpp/perf_result/perf_result_count/1_cas_failure.sh | UTF-8 | 1,932 | 2.828125 | 3 | [] | no_license | #srcfile="perf_1000000_uni.rslt"
skiplists="BlockedSpinSkipList BlockedCVSkipList ConcurrentSkipList JellyFishSkipList"
#skiplists="ConcurrentSkipList JellyFishSkipList"
threads="1 2 4 8 16"
ops="put get range_query"
ops="put get"
ops="get"
num="1000000"
workloads="uni zipf_1.2"
for op in $ops; do
for wk in $worklo... | true |
8034690727b78d7e666690ce969cd58eeb6443db | Shell | i1i1/dotfiles | /bin/ddict | UTF-8 | 928 | 3.265625 | 3 | [] | no_license | #!/bin/sh
ask() { dmenu -i -l 6 -fn Go-Mono -p "$1" -it "$2"; }
export IFS=$'\n'
cachedir=~/.cache/dict/
mkdir -p $cachedir
for d in $STARDICT_DATA_DIR/dic/*.idx; do
c=$cachedir/$(basename "$d" .idx)
[ -f "$c" ] || generdictcache "$d" >$c
done
word="$(cat $cachedir/* | ask 'Translate:' $(xclip -out -selectio... | true |
aeb63bcf5675f96758d343434afb2c9e0f19645c | Shell | ebi-gene-expression-group/scxa-control-workflow | /bin/deriveCellMetadata.sh | UTF-8 | 3,524 | 3.96875 | 4 | [] | no_license | #!/usr/bin/sh
expName=$1
isDroplet=$2
barcodesFile=$3
sampleMetadataFile=${4}
dropletMetadataFile=${5:-''}
if [ "$isDroplet" = 'False' ]; then
# For SMART experiments, grep out the metadata lines we need for each run.
# If matching metadata can't be found then there's something wrong
cellMetaFile=$m... | true |
993137c0ec1004808cc067097441d5aefb757425 | Shell | Fahima1994/USP_Tutorials | /unix2/args.sh | UTF-8 | 164 | 2.953125 | 3 | [] | no_license | #!/bin/bash
#show the number of arguments passed to this script and the list or arguments
echo "Running: $0"
echo "Arguments count = $#"
echo "Arguments list: $*"
| true |
71147a7634c21924284db9b8dee79833ba7f1830 | Shell | maximejf42/Netron | /netron | UTF-8 | 438 | 2.890625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Build and start Netron as a Python web server from local directory
source=$(dirname ${0})
pushd ${source} > /dev/null
[ -d node_modules ] || npm install
rm -rf ./build/python
python ./setup.py --quiet build
popd > /dev/null
PYTHON_VERSION=$(python -c "import sys; print('.'.join(str(x) for x in sys.version... | true |
9b711ea46cdcc440d8c0af69f9bcd0b812103ca9 | Shell | shdowofdeath/core | /jenkins/schedule/madcore_schedule_del.sh | UTF-8 | 159 | 2.59375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
echo "Delete job name: '$Name'"
JOBS_DIR="/opt/jenkins/schedules"
JOB_BASE_NAME="madcore_schedule_${Name}"
rm $JOBS_DIR/$JOB_BASE_NAME*
| true |
bf2b8b74cfc8aeebbc57dff8060c5ae01eab3c43 | Shell | rubixlinux/rubixlinux | /l/perl-dbd-mysql/PKGBUILD | UTF-8 | 1,373 | 2.75 | 3 | [] | no_license | # Maintainer: Joshua Rubin <joshua@rubixlinux.org>
PERL=5.8.8
pkgname=perl-dbd-mysql
pkgver=3.0002
pkgrel=1
pkgdesc="DBD::mSQL / DBD::mysql - mSQL and mysql drivers for the Perl5 Database Interface (DBI)"
url="http://search.cpan.org/~jwied/Msql-Mysql-modules-1.2219/mysql/lib/DBD/mysql.pm"
depends=('perl-dbi' 'mysql')... | true |
af6b22483492900c24414f0378a0530526b49673 | Shell | silky/godothecorrectthing | /godothecorrectthing.sh | UTF-8 | 1,242 | 3.46875 | 3 | [
"MIT"
] | permissive | #! /bin/sh
set -e
set -u
set -x
editor=subl
guesscwdwithmagic () {
cwd=$HOME
wintitle=$(xdotool getactivewindow getwindowname)
case $wintitle in
nixos:*:*)
cwd=`echo $wintitle | cut -d : -f 3-`
;;
*Sublime\ Text)
cwd=`echo $wintitle | cut -d ' ' -f 1`
cwd=`dirname $cwd`
;;
esac
case $cwd in
... | true |
35f55dfc61f2c4610a7fa962ed7df649ec54d26b | Shell | ocaml/oasis2opam | /.travis-ci.sh | UTF-8 | 664 | 3.03125 | 3 | [] | no_license |
OPAM_PKGS="oasis base-bytes"
OPAM_PKGS_TEST="ounit qcheck"
export OPAMYES=1
if [ -f "$HOME/.opam/config" ]; then
opam update
opam upgrade
else
opam init
fi
if [ -n "${OPAM_SWITCH}" ]; then
opam switch ${OPAM_SWITCH}
fi
eval `opam config env`
opam install $OPAM_PKGS
export OCAMLRUNPARAM=b
oasis set... | true |
cb9ec29fd554ccd674ff1b22a9b83189e33dc98d | Shell | AliciaBentley-NOAA/verf_precip.v4.4.0 | /scripts/exverf_precip_fss_06h.sh.ecf | UTF-8 | 4,314 | 3.640625 | 4 | [] | no_license | #!/bin/ksh
###############################################################################
# Name of Script: exverf_precip_verfgen_06h.sh.sms
# Purpose of Script: To generate 06h precipitation Fractions
# Skill Scores statistics for various operational models to be used by the
# Forecast Verification System
# Argu... | true |
d85c88113bba1a915b394d66a7be084964a1a2c7 | Shell | rsk0315/codefolio | /ShellScript/latest | UTF-8 | 348 | 3.21875 | 3 | [
"MIT"
] | permissive | # -*- mode: sh; sh-shell: bash -*-
# ~/bin/latest
# We shall fail with names that contain whitespaces
# If you need it, use GNU ls, sed, xargs, etc.
ext="${1:+\.(}$1${1:+)$}"
perm="-${2:-.}"
perm="^${perm//[^rwx.-]/}" # do not forget '^'
res=$(ls -ltA | grep -E "$ext" | grep -E -- "$perm" | sed q | awk '$0=$9')
[[ ... | true |
df2832bd8f7f8ec12439117e71cb9928199b33b5 | Shell | udaiyamnmGITHUB/retail-app-in-MEAN-stack | /northwind-mongodb-master/scripts/mongo-import-json.sh | UTF-8 | 196 | 2.6875 | 3 | [
"MIT"
] | permissive | for f in *.json
do
filename=$(basename "$f")
extension="${filename##*.}"
filename="${filename%.*}"
mongoimport -d Northwind -c "$filename" --type json --jsonArray --file "$f"
done
| true |
428c6f17a2e1df3175535ff69ca0511d847d1128 | Shell | dssquared/VideoStreaming | /fs-overlay/build-fs-overlay.sh | UTF-8 | 528 | 3.4375 | 3 | [] | no_license | #!/usr/bin/env bash
CURRENT_UID=$(id -u)
CURRENT_GID=$(id -g)
echo "Setting root ownership of ./fs..."
sudo chown -R 0:0 ./fs
echo -e "\nSetting pi:pi ownership of ./fs/home/pi..."
sudo chown -R 1000:1000 ./fs/home/pi
echo -e "\nCreating tarball..."
sudo bsdtar -C ./fs -cvzf ./fs-overlay.tar.gz .
echo -e "\nSettin... | true |
c374141b86e20afbda2dc0a48a76ee60c960acc6 | Shell | lgrellie/gnl_tester | /run_tests.sh | UTF-8 | 442 | 3.390625 | 3 | [] | no_license | #!/bin/bash
if [[ "$#" -ne 1 ]]; then
echo "./run_tests \$BUFFER_SIZE";
else
./clean.sh
gcc -fsanitize=address main.c get_next_line.c get_next_line_utils.c -D BUFFER_SIZE=$1;
./generate_tests.sh;
[ -d output ] || mkdir output;
./a.out tests/*.txt;
for file in tests/*.txt; do
diff -q "$file" "output/output_$(ba... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.