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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
e1e22ca94f2dd06f8af02b335bad5e076f844d3d | Shell | clade/RedPitaya | /OS/buildroot/overlay/etc/init.d/connman-config | UTF-8 | 1,011 | 3.875 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
source /opt/etc/network/config
echo -n "Network: "
# Configure static network configuraton if selected
[ "x$NETWORK" != "xstatic" ] && {
echo "DHCP"
echo "To change your network configuration, edit /opt/etc/network/config."
} || {
echo ""
# Discover ethernet service/adapter name
ETH0=`... | true |
c41416251669e306fb96f3048cb8f055cf1a63dc | Shell | hnw/dotfiles | /gcp/path.zsh | UTF-8 | 314 | 3.0625 | 3 | [
"MIT"
] | permissive | GO_GAE_SDK_PATH="$HOME/Library/go_appengine"
if [ -d "$GO_GAE_SDK_PATH" ]; then
PATH="$PATH:$GO_GAE_SDK_PATH"
fi
# Updates PATH for the Google Cloud SDK.
GOOGLE_CLOUD_SDK_ZSH_INC="$HOME/Library/google-cloud-sdk/path.zsh.inc"
if [ -f "$GOOGLE_CLOUD_SDK_ZSH_INC" ]; then
source "$GOOGLE_CLOUD_SDK_ZSH_INC"
fi
| true |
1dc264193182bd6a66730f96743e8e67fb7398b2 | Shell | amerlyq/airy | /zsh/zshenv | UTF-8 | 1,188 | 2.875 | 3 | [
"MIT"
] | permissive | # vim: ft=zsh
# ~/.zshenv -- always sourced by zsh (before ~/.zshrc).
# WARNING: Available even in Zsh scripts!
# :> But as I mostly writing portable scripts in bash, it's not a problem.
# WARNING: It should not contain commands that produce output or assume the
# shell is attached to a tty.
# So it can't be used to so... | true |
51a1d5d6305fd6d629e2a945892d4666a381aef0 | Shell | clinsign/modal_progress_hud | /scripts/runTests.sh | UTF-8 | 339 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
runTests () {
cd $1;
if [ -f "pubspec.yaml" ]
then
flutter test --coverage
sed "s/^SF:lib/SF:${1:2}\/lib/g" coverage/lcov.info >> $2/lcov.info
fi
}
export -f runTests
# if running locally
if [ -f "lcov.info" ]; then
rm lcov.info
fi
find . -maxdepth 1 -type d -exec bash -c 'runTests... | true |
a1c268672057694360d4132ec87a0098e1420084 | Shell | bopopescu/UnitedSafety | /rootfs/rootfs/etc-act/redstone/TRUtest/modbus_message_priority.tst | UTF-8 | 2,644 | 3.625 | 4 | [] | no_license | #!/bin/sh
#---------------------------------------------------------------------------------------
# modbus_message_priority
#
# test that only modbus machine hour can be transmitted over Iridium
#
# Procedure:
# 1) write confirmation that test worked if only modbus machine hours can be repored to CAMS.
#
# Failure... | true |
26fb8b145890c9904764db9899a408f9010755c5 | Shell | evolbeginner/SEQ2TREE | /pep_sep.sh | UTF-8 | 141 | 3.015625 | 3 | [] | no_license | #! /bin/bash
mkdir pep-sep;
cd pep-sep;
for i in ../pep-dupli/*; do
b=`basename $i`
c=${b%.fas}
mkdir -p $c/pep
cp $i $c/pep
done
cd -
| true |
e362e7d205ed796692ab92f586d97352f750bfb3 | Shell | griff/cfg | /lib/dur.sh | UTF-8 | 2,854 | 3.65625 | 4 | [] | no_license | # durdn/cfg related commands {{{
function dur {
case $1 in
list|li)
curl --user $2:$3 https://api.bitbucket.org/1.0/user/repositories 2> /dev/null | grep "name" | sed -e 's/\"//g' | col 2 | sort | uniq | column
;;
clone|cl)
git clone git@bitbucket.org:durdn/$2.git
;;
install|i)
bash $HOME/.c... | true |
1a0a7c4a27506136f89ffc27b3aab6e6b964257f | Shell | kathan/dts-manager | /phpmd.sh | UTF-8 | 265 | 2.578125 | 3 | [] | no_license | #!/bin/bash
CUR_DIR=${0}
if [ -e "$CUR_DIR/phpmd_results.html" ]
then
rm phpmd_results.html
fi
./vendor/bin/phpmd . html 'unusedcode,design' --exclude log/,phpMyAdmin/,vendor/,templates/,templates_c/,includes/smarty/,includes/smarty-master/ >> phpmd_results.html | true |
144a53d4374784bb82c62d5e3f65498ad37bc510 | Shell | chance-nelson/dotfiles | /bash/.bashrc | UTF-8 | 2,418 | 3.140625 | 3 | [
"Unlicense"
] | permissive | [[ $- != *i* ]] && return
# Path Inserts
if [ -d "$HOME/.bin" ] ;
then PATH="$HOME/.bin:$PATH"
fi
if [ -d "$HOME/.local/bin" ] ;
then PATH="$HOME/.local/bin:$PATH"
fi
if [ -d "$HOME/go/bin" ] ;
then PATH="$HOME/go/bin:$PATH"
fi
if [ -d "$HOME/scripts" ] ;
then PATH="$HOME/scripts:$PATH"
fi
# PS1
# g... | true |
1bec07c2eb74d988efced1a091ee00cd827f3b50 | Shell | frankzhuo/kaola | /script/hadoop19/bank/test1.sh | UTF-8 | 210 | 2.8125 | 3 | [] | no_license | TODAY_0D_F=$(date +%Y-%m-%d)
time1=$(date +%s -d"${TODAY_0D_F} 05:00:00")
time_exc=$((time1+1*24*60*60))
time_now=$(date +%s)
time_sleep=$((time_exc-time_now))
echo ${time_sleep}s
echo $((time_sleep/3600))
| true |
e503ca7d8fff6be6008b26f4cc2a11fe6541842d | Shell | Legun/scripts | /repn | UTF-8 | 539 | 3.828125 | 4 | [] | no_license | #!/bin/bash
if [ -z "$1" -o -z "$2" -o -z "$3" ]
then
echo "repn: Format isn't correct!"
echo "repn: Use repn N1 N2 file"
echo "repn: where N1 - the first number in file"
echo "repn: N2 - the final number"
exit
fi
if [ -f $3 ]
then :
else
echo "File $3 doesn't exist"
exit
fi
PAR=$1
... | true |
39d5ef01a5812afc592c29b17089f1d512e49c59 | Shell | diessica/eos-setup | /dot/gem/pack.sh | UTF-8 | 542 | 3.765625 | 4 | [
"CC0-1.0"
] | permissive | #!/bin/bash
run_gem() {
if type_exists "gem"; then
e_header "Installing gems..."
# list of gems
local packages="sass compass haml"
# if doesn't exist yet, then install
if which ${packages[@]} &> /dev/null; then
msg_ok "${packages[@]}"
else
msg_run "${packages[@]}" "sudo ge... | true |
dfd8d1266d14b2a988f5c8d11249be179bd4c7da | Shell | cleanwater-super/wptools4xserver | /replaceWpConfigs.sh | UTF-8 | 360 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
if [ $# -ne 4 ]; then
echo "argument count is $#" 1>&2
echo "type wordpress root oldpath newpath olddb newdb"
exit 1
fi
OLDPATH=$1
NEWPATH=$2
OLDDB=$3
NEWDB=$4
sed -i -e "s:/$OLDPATH/:/$NEWPATH/:g" .htaccess
rm .htaccess-e
sed -i -e "s|define('DB_NAME', '$OLDDB');|define('DB_NAME', '$NEWDB')... | true |
b2ae721b9298d75d88ca899448b6fc283a5f70e6 | Shell | jooleecro/bnk-kube-monit | /kube/metric/create_monit_metric.sh | UTF-8 | 551 | 2.71875 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
set -o pipefail
SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
cd ${SCRIPT_DIR}
source ./config.env
source ../common/function.env
source ../common/logger.env
info "create monit log"
exe kubectl create -f - <<< "${YML_CLUSTER_ROLE}"
exe kubectl create -f - <<< "${YML_CONFIG_MAP}"
exe kubectl c... | true |
b3842a94e9c15df17017885f007d2c86ae4bbdbc | Shell | kawsark/tradebot-ci | /ansible/deploy_tradebotwebui.sh | UTF-8 | 778 | 3.1875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#Use this script to trigger ansible deployment of tradebot webui application
#Assumes azure cli is installed and authenticated
export ansible_hosts_file=azure-ansible-hosts
export tradebot_resource_group=tradebotRG-production
export tradebot_vmss=tradebotwebuivmss-production
az vmss list-instance-public-ip... | true |
5e519999d7235154e5b9569b2cde6e4f8833e617 | Shell | dschapman/.dotfiles | /.zsh_personal | UTF-8 | 619 | 2.625 | 3 | [] | no_license | #!/bin/zsh
# This file is for relatively portable configurations on top of what I do in my .zshrc
# Enable 24-bit color (see https://stackoverflow.com/questions/14672875/true-color-24-bit-in-terminal-emacs)
# TERM=xterm-24bit
EMACS="*term*"; export EMACS
EDITOR=emacs; export EDITOR
PAGER=less; export PAGER
LES... | true |
7b6f1f03b2ba109c41a9a9658a5b7ac76fe235e5 | Shell | rangandutta/tempawareOS | /TemperatureMonitor/FreqLevels.sh~ | UTF-8 | 305 | 3.109375 | 3 | [] | no_license | #!/usr/local/bin/bash
i=2
freq=0
rm ./freq_levels
while [ ! -z $freq ]
do
echo $freq >> freq_levels
freq=`sysctl -a | grep levels | cut -d ' ' -f $i | cut -d '/' -f 1`
i=`expr $i + 1`
done
freq=`cat ./freq_levels`
ps -auxf | awk '{print $2;}'> prev_list
ps -auxf | awk '{print $2;}'> present_list
| true |
cc5c0192340f4c561626461f267500be612768a5 | Shell | koraynilay/linux-custom-scripts | /archlinux_updates/check_upds_cycle.sh | UTF-8 | 579 | 3.390625 | 3 | [] | no_license | #!/bin/sh
while true;do
checkupdates
exit_code=$?
if [ $exit_code -ne 2 ];then
act=$(dunstify -a Updates -A "update,up" "Updates are available" | bc)
if [ $act -eq 0 ];then
mapunmap_updates.sh
fi
else
echo no_updates
fi
sleep 3600
done
# ! [[ -z $act ]] && termite --hold --title="archlinux_updates_... | true |
96fde8854112a256c6ea96cd8eec8497f0d55ef6 | Shell | mandrews/denv | /bin/docker_push.sh | UTF-8 | 730 | 3.25 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -o errexit
pushd "$(cd "$(dirname "$0")" ; pwd -P )/.." > /dev/null
if [[ -f .env ]]; then
# shellcheck disable=SC1091
source .env
fi
for DIR in $DENV_LATEST_IMAGES; do
IFS='/' read -ra ARR <<< "$DIR"
IMAGE=${ARR[0]:-base}
TAG=${ARR[1]:-latest}
docker tag "denv/$IMAGE:$TAG" "docker.pkg.gi... | true |
229d2e65b019e4952622927bf45e81fd270f156f | Shell | eldin77/midonet | /tests/mmm/scripts/perf/init | UTF-8 | 1,192 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | #! /bin/sh
# Copyright 2014 Midokura SARL
#
# 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 agreed t... | true |
8f96e4ad04d57f22b668c398c93e1d8656129e48 | Shell | andrewmeyer/usefulscripts | /pcheck_updates | UTF-8 | 1,702 | 3.9375 | 4 | [] | no_license | #! /bin/bash
#this program checks for updates and then notifies nagios
HOST=192.168.1.121
PORT=5667
DELIM=^
CONFIG=/etc/send_nsca.cfg
NSCA=/usr/sbin/send_nsca
SV_DESC="Update Watchdog"
IP=`/bin/SNOP.sh eth0`
#Usage: send_nsca -H <host_address> [-p port] [-to to_sec] [-d delim] [-c config_file]
REPORT="$NSCA -H $HOST -... | true |
f74cb0ee881c70e0b19f0c1293dc784d5355cb01 | Shell | spurdow/mapbox-gl-native | /scripts/check-cxx11abi.sh | UTF-8 | 430 | 3.65625 | 4 | [
"BSD-3-Clause",
"IJG",
"LicenseRef-scancode-warranty-disclaimer",
"Zlib",
"curl",
"NCSA",
"LicenseRef-scancode-openssl",
"OpenSSL",
"LicenseRef-scancode-ssleay-windows",
"JSON",
"ISC",
"MIT",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"b... | permissive | #!/usr/bin/env bash
set -e
set -o pipefail
if [ ! `uname -s` = 'Linux' ]; then
echo ""
exit 0
fi
# check-cxx11abi.dat is a binary just so we can use the loader
# to take care of finding the libstdc++ which can be tricky.
LIBSTDCPP=$(ldd $(dirname $0)/check-cxx11abi.dat |grep libstdc++ |cut -d' ' -f3)
if [ $... | true |
00297cce4dc34f0fd03ccc45977e66bfeaa481a7 | Shell | bkees/dotfiles-1 | /home/.zshrc | UTF-8 | 3,277 | 2.765625 | 3 | [] | no_license | if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
# Aliases
alias l="ls -F"
alias ll="ls -AGlFth"
alias grep='grep --color=auto'
alias df='df -H'
alias fig='find . | grep'
alias reload="source ~/.zshrc"
alias netest="ping 8.8.8.8"
alias simple="python -m SimpleH... | true |
1387d9f7a90445a097329458f6f028b913bc88ce | Shell | rumblefishdev/keep-ecdsa | /solidity/scripts/lcl-provision-tbtc.sh | UTF-8 | 1,612 | 4.0625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
# Fetch the address of tbtc contract migrated from keep-network/tbtc project.
# The `tbtc` contracts have to be migrated before running this script.
# It requires `TBTC_SOL_ARTIFACTS_PATH` variable to pointing to a directory where
# contracts artifacts after migrations are located. It also expects N... | true |
7938a658e2421650e9e6879f2245990e7e41887b | Shell | yoonseongduk/script | /initial/000_scp_to_target.sh | UTF-8 | 4,851 | 3.3125 | 3 | [] | no_license | #!/bin/bash
#################################################################################
# #
# Script Name: 000_scp_to_target.sh #
# ... | true |
889bc1e0daf30adcc7301afd0bd7ce9cd04786c2 | Shell | mrkmg/git-stream | /support/hooks/post-stream-feature-finish | UTF-8 | 192 | 2.53125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#
# Run after a feature is finished
#
# Arguments:
# $1 feature-name
# $2 feature-branch
# $3 working-branch
NAME=$1
BRANCH=$2
WORKING=$3
# Implement Script Here
exit 0
| true |
6d326ca75e68af5b8ec81b4d1a8791c481f35419 | Shell | marionnyaboke/tbrucei_gcn | /scripts/analysis/download-genome-and-annotation-files.sh | UTF-8 | 1,896 | 2.5625 | 3 | [] | no_license | #Downloading T. brucei genome
wget https://tritrypdb.org/common/downloads/release-43/TbruceiTREU927/fasta/data/TriTrypDB-43_TbruceiTREU927_Genome.fasta \
-P ../../data/scratch/tbrucei/
#Downloading the GFF file
wget https://tritrypdb.org/common/downloads/release-43/TbruceiTREU927/gff/data/TriTrypDB-43_TbruceiTREU927.... | true |
92eaa584fae8bccb8edb4e76984e3d225ca567da | Shell | adnam/sweet-home | /home/bin/fixme | UTF-8 | 338 | 2.890625 | 3 | [] | no_license | #!/bin/bash
for SCANS in FIXME XXX TODO;
do
find . -name '*.py' \
-exec grep -i --files-with-matches $SCANS {} \; \
-exec grep -i --line-number --color=always -C 5 $SCANS {} \;
find . -name '*.php' \
-exec grep -i --files-with-matches $SCANS {} \; \
-exec grep -i --line-number --color=always -C 5 $... | true |
c839ae78bcb6e8f440ea1afd3959defba943a06b | Shell | knowbodynos/stringmods | /install/install_cohomcalg | UTF-8 | 667 | 3.3125 | 3 | [] | no_license | #!/bin/bash
# Install cohomCalg
echo "Installing cohomCalg package to \${USER_LOCAL}/bin..."
mathpath=$(which math | rev | cut -d'/' -f1,2 --complement | rev)
mathmsg=$(${mathpath}/monitorlm 2>&1 | head -c -1)
if [[ "${mathmsg}" != "Could not find a MathLM server." ]]
then
initfile=$(math -noprompt -run "WriteSt... | true |
bc2bec9b781b5521154918a383f523c2ef59f09f | Shell | qiufeihai/feihai | /install/docker_webhook.sh | UTF-8 | 3,401 | 3.78125 | 4 | [] | no_license | #!/usr/bin/env bash
#
# https://github.com/adnanh/webhook
# docker install webhook
#
log() {
echo -e "\e[1;35m------------------------ $@ ------------------------------\e[0m"
}
die() {
printf 'error: %s.\n' "$1" >&2
exit 1
}
glob() {
case $1 in $2) return 0; esac; return 1
}
yn() {
printf '%s [y/... | true |
6959c26a25293634aee3967af2a0c1283ec4ea58 | Shell | spring-cloud-samples/eureka-release-train-interop | /scripts/scenario_ilford_tester.sh | UTF-8 | 2,831 | 3.359375 | 3 | [] | no_license | #!/usr/bin/env bash
source common.sh || source scripts/common.sh || echo "No common.sh script found..."
set -o errexit
set -o errtrace
set -o pipefail
cat <<EOF
This Bash file will show you the scenario in which Eureka Server is in hoxton version and the Client is ilford.
We will use a hoxton Eureka Tester app to us... | true |
c7377bc6baff4dafc55d0f7f6dc0a4a06b2a6e13 | Shell | dxAdam/Automation_Scripts | /util/alias_setup.sh | UTF-8 | 903 | 2.75 | 3 | [] | no_license | #!/bin/bash
#
# Move aliased scripts to ~/.alias_scripts
#
mkdir /home/$USER/.alias_scripts
cp check_raid.sh ~/.alias_scripts
cp cpubench.sh ~/.alias_scripts
cp gwe.sh ~/.alias_scripts
cp resetsound.sh ~/.alias_scripts
cp git_setup.sh ~/.alias_scripts
cp dpkg-sort.sh ~/.alias_scripts
echo "alias check-raid='/home/$... | true |
f4427e1191a29a227131f6770bb79d46486c3d38 | Shell | ToniWestbrook/paladin | /sample_data/make_test.sh | UTF-8 | 533 | 2.890625 | 3 | [
"MIT"
] | permissive | #! /bin/bash
curl -O https://s3.amazonaws.com/paladin.aligner/test.fq
curl -O https://s3.amazonaws.com/paladin.aligner/paladin_test.faa
../paladin index -r3 paladin_test.faa
../paladin prepare -r1 -f paladin_test.faa
../paladin align -t4 paladin_test.faa test.fq -o test
if [ -s test_uniprot.tsv ];
then
... | true |
19a27dcd60b893d9ea1c7af2f66ed283ce9d9709 | Shell | flutter/devtools | /tool/build_release.sh | UTF-8 | 1,570 | 3.4375 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Contains a path to this script, relative to the directory it was called from.
RELATIVE_PATH_TO_SCRIPT="${BASH_SOURCE[0]}"
# The directory tha... | true |
0c263d94870bcf9d8bed834e6a2d8a57c9acd05e | Shell | youngchansjtu/iptables | /block_test.sh | UTF-8 | 811 | 3.765625 | 4 | [] | no_license | #!/bin/bash
ACTION=$1
shift
IPSET=$@
IPTABLES="/sbin/iptables"
function print_usage() {
echo "Usage: ./block_test.sh [add|remove] ip1 ip2 ..."
}
if [ "$ACTION" != "add" -a "$ACTION" != "remove" ]; then
print_usage
exit 1
fi
for ip in $IPSET
do
case $ACTION in
add)
$IPTABLES -... | true |
083d83eba9fdb643a176a02443756af66a6e005e | Shell | T3kton/disks | /deps/xfsprogs | UTF-8 | 494 | 3.15625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
#SOURCE: https://www.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/xfsprogs-4.19.0.tar.xz
#FILE: xfsprogs-4.19.0.tar.xz
#HASH: e6aa93d892df76a1675755b88e9ac6b2793eb619
set -e
set -x
build()
{
tar --strip-components=1 -xJf $1
./configure --prefix=/
make
}
install()
{
cp -f $3/fsck/xfs_fsck.sh $1/sbin/f... | true |
7421d79f81a46884eb6df55d4605b55382e5e684 | Shell | mvendra/mvtools | /git/git_aliases.sh | UTF-8 | 2,658 | 3.296875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
alias gichepi="git cherry-pick"
# DIFF
alias gidif_setgui="git config --global diff.external meldiff.py"
alias gidif_setcmd="git config --global --unset diff.external"
alias gidif="git diff"
alias gidif_noext="gidif --no-ext"
# SHOW
alias gisho="git show"
gishogui(){
# mvtodo: does not work on the firs... | true |
82872d566f312d5cf18d114d26f56c95c08ffb48 | Shell | ivanviso/ASO | /Noviembre/22.sh | UTF-8 | 261 | 2.859375 | 3 | [] | no_license | if [[ $(date +%w) -gt 15 ]]
then
echo "estamos en la segunda quincena del mes"
else
echo "estamos en la primera quincena del mes"
fi
if [[ $(date +%m) -gt 6 ]]
then
echo "estamos en la segunda mitad del ano"
else
echo "estamos en la primera mitad del ano"
fi
| true |
6efb692530061ab508b0247e88009ad849aad0f1 | Shell | NethajiChowdary/ShellPrograms | /Day7Arrays/largesmall.sh | UTF-8 | 632 | 3.65625 | 4 | [] | no_license | second_smallest() {
m1=1000
m2=1000
arr=("$@")
for x in "${arr[@]}"
do
if [ $x -le $m1 ]
then
m1=$x
m2=$m1
elif [ $x -lt $m2 ]
then
m2 = $x
fi
done
echo "Second Smallest number is "$m2
}
second_largest() {
m1=0
m2=0
arr=("$@")
for x in "${arr[@]}"
do
if [ ... | true |
b9f8fcbfa9015457865d497dbe6778e47fcc8d79 | Shell | jcdubacq/shellselftests | /exo01/enonce.sh | UTF-8 | 2,647 | 3.65625 | 4 | [] | no_license | #!/bin/sh
intro () {
echo "Cet exercice vise à tester les fonctions de copie, déplacement, suppression. Des fichiers vont être installés dans le répertoire de l'exercice. Votre script devra copier les fichiers se terminant par \"jpg\" dans un répertoire (à créer) \"Images\", déplacer les fichiers intitulés \"notes... | true |
fa89a245d481b358d11f62aeba49a22f546acb9b | Shell | kecorbin/consul-hcs-vm-demo | /8-deploy-vm-environments/setup-workstation | UTF-8 | 2,062 | 3.09375 | 3 | [] | no_license | #!/bin/bash
# This is the setup script for the workstation container. Use it to set the stage for your terraform training, demo, or lab.
set -e
mkdir -p /root/policies
consul_lb=$(terraform output -state /root/terraform/hcs/terraform.tfstate consul_url)
echo "export CONSUL_HTTP_ADDR=${consul_lb}" >> ~/.bashrc
endpo... | true |
9cbebb9dfc0d408555387ad9c6b293b12be95e91 | Shell | hades13/apv5sdk-v15 | /apv5sdk-v15/rootfs-db12x_f1e.optbuild/usr/sbin/set_user_passwd | UTF-8 | 548 | 3.515625 | 4 | [] | no_license | #!/bin/sh
CONFIG_XML=/etc/config/config.xml
CRYPT=/sbin/crypt
#
#usage
#
usage()
{
echo "set_usr_passwd [usrname] [passwd]"
exit 1
}
if [ ! $# -eq 2 ];then
usage
fi
usrname=$1
passwd=$2
local pass_encoded=`$CRYPT "$passwd"`
/usr/sbin/write_to_xml $usrname $passwd &
local awk_program="BEGIN{FS=\":\"; O... | true |
dd446c6d01d60ee4192f7b1892008b36ceda1f40 | Shell | g2graman/OrbisChallenge2014 | /scripts/install | UTF-8 | 329 | 2.953125 | 3 | [] | no_license | #!/bin/bash
DEVKIT_DIR=OrbisChallengeDevKit-Python
pip &>/dev/null
if [[ "$?" != "0" ]]; then
cd "$DEVKIT_DIR"
sudo -H python get-pip.py
cd ..
fi
if [[ "$(pip list | grep protobuf)" == "" ]]; then
sudo -H pip install protobuf
fi
autopep8 &>/dev/null
if [[ "$?" != "0" ]]; then
sudo -H pip install --upgrade aut... | true |
c8841c775828560be07b9b39960a12af5922f901 | Shell | houzy/ivim | /chvimrc.sh | UTF-8 | 2,468 | 3.796875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
if [[ "$OSTYPE" == "darwin"* ]]; then
app_dir=$(dirname $(greadlink -f $0))
else
app_dir=$(dirname $(readlink -f $0))
fi
debug_mode='0'
fork_maintainer='0'
msg() {
printf '%b\n' "$1" >&2
}
success() {
if [ "$ret" -eq '0' ]; then
msg "\e[32m[✔]\e[0m ${1}${2}"
fi
}
error()... | true |
facb1901eb15def447a45303378096254aea4324 | Shell | shivamkm07/CS633_Assignments | /Assignment2/r5/run.sh | UTF-8 | 596 | 2.84375 | 3 | [] | no_license | #! /bin/bash
rm -f output data
touch output
#chmod u+x create_hostfile
#make clean
#make
for i in {1..10}
do
for P in 4 16
do
for ppn in 1 8
do
let ng=$P/6+1
python group_nodes.py 6 $ng $ppn
for d in 16 256 2048
do
echo "i "$i " P "$P" ppn "$ppn" d "$d
mpirun -np $P*$... | true |
dd1cf06ab592a7dada549fe855415286277b6131 | Shell | rayiik/wireguard-go | /build_linux.sh | UTF-8 | 469 | 3.390625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if [ -z "$ARCH" ]; then
ARCH=amd64
fi
export ARCH=$ARCH
mkdir -p $ARCH
if [ ! -f .deps/prepared ]; then
if which apt-get; then
sudo apt-get update
sudo apt-get install gcc libgl1-mesa-dev xorg-dev libgtk-3-dev libappindicator3-dev -y
fi
fi
GOOS=linux \
GOARCH=$ARCH \
BIN_OUTPUT=$ARCH/w... | true |
8c1c0b4fd5aea1c210e975b89f6147d984f1c5be | Shell | hurley25/vim-set | /.bashrc | UTF-8 | 1,663 | 2.8125 | 3 | [] | no_license | # .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias cls='clear'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias fuck='$(thefuck $(fc -ln -1))'
export LS_COLORS='no=00:... | true |
cbfc7b6ccfca3c7724b3869e9a59c4b40a0c8f01 | Shell | fredwang222/wallig | /Projects/Scarecrow/trunk/trunk/Script/createmakefile.sh | UTF-8 | 5,289 | 3.15625 | 3 | [] | no_license | # !/bin/bash
MAKFILE=Makefile
echo "#$MAKFILE generated with prjmake.sh" >$MAKFILE
echo "">>$MAKFILE
echo 'export PROJECT_PATH=$(CURDIR)'>>$MAKFILE
echo 'export CONFIG_PATH=Config'>>$MAKFILE
echo "######################################################################">>$MAKFILE
echo "# system variables">>$MAKFILE
echo ... | true |
04e4d1fed854646c0abebf611c53d364f5bee6a3 | Shell | erija952/project-euler | /bash/p2.sh | UTF-8 | 262 | 3.265625 | 3 | [] | no_license | #!/bin/bash
let max=$1-1
f1=1
f2=2
sum=2
if [ $# -ne 1 ]; then
let max=4000000
fi
while [ $f2 -lt $max ]; do
a=$f2
let f2=$f1+$f2
let f1=$a
if [ $((f2%2)) -eq 0 ] ; then
let sum=$sum+$f2
fi
done
echo The sum is $sum
| true |
7914f4034bc52cfc28e39fd3ab58744186386ff4 | Shell | ACenterA/acentera-aws-serverless-cms-todo | /backend/go/sam-package.sh | UTF-8 | 5,818 | 3.09375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# set -e
# set -x
PROGNAME=$(basename -- "${0}")
PROJROOT=$(d=$(dirname -- "${0}"); cd "${d}/.." && pwd)
if [[ -z "$1" ]]; then
echo "Next 1st parameter dev, qa, or prod for stage"
else
STAGE=$1
DT=$(date +%Y)
SEMVER=0.0.18
S3PREFIX="packaged/$DT/0.0.1/acentera-${PLUGINNAME}"
BUCKETNAME=... | true |
22c57bf5620c5ee746607191c98e868d13894ca6 | Shell | Hiraji/sample-project | /bin/sr-jenkins-catkin | UTF-8 | 2,443 | 3.953125 | 4 | [] | no_license | #!/bin/bash
#
# Jenkins build script to make and test a ros package. The package, with its
# stack is also expected to be checked out into $WORKSPACE, which is what
# jenkins does.
# * Creates an overlay in $WORKSPACE of the installed ros and shadow dependancies.
# * Fixes test out put to be under jenkins workspace so... | true |
972ea883dc2109f8536caf6f167ecd14e3fb325c | Shell | chrissanders/pivotmap | /pivotmap.sh | UTF-8 | 382 | 3.0625 | 3 | [] | no_license | #!/bin/bash
genmap () {
sed '1 s/^/source,target\
/' >> temp.test
sed '/dataplaceholder/{
s/dataplaceholder//g
r temp.test
}' d3chart/forceopacity.html
rm temp.test
}
if [ "$1" == "-h" ]; then
echo -e "Usage: cat sample.csv | ./pivotmap.sh > map.html"
echo -e "Examine sample.csv or so.csv for an examp... | true |
8d9b3f3fcbb9c18d6356007899d53e319711bcd1 | Shell | RahulP5/pyresistors | /dist/AppImage/AppRun | UTF-8 | 622 | 2.75 | 3 | [
"MIT"
] | permissive | #!/bin/sh
ARCH=$(uname -m)
SELF_DIR="$(dirname "$(readlink -f "$0")")"
LD_LIBRARY_PATH_="$SELF_DIR/usr/lib:$SELF_DIR/usr/lib/$ARCH-linux-gnu:$SELF_DIR/lib/$ARCH-linux-gnu"
if [ -z "$LD_LIBRARY_PATH" ]; then
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH_"
else
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH_:$LD_LIBRARY_PATH"
... | true |
d55a90c5a4045a4715e74cd9b624368b789be0ef | Shell | syscl/M3800 | /tools/mnt | UTF-8 | 907 | 3.9375 | 4 | [] | no_license | #!/bin/sh
# (c) syscl 2016-2019
# Handy script to mount EFI/ESP partition in macOS
#================================= GLOBAL VARS ==================================
BOLD="\033[1m"
RED="\033[1;31m"
GREEN="\033[1;32m"
BLUE="\033[1;34m"
OFF="\033[m"
# EFI identifier
gESPID=""
if [[ $# -eq 1 ]]; then
# we mount it r... | true |
75d224b7511e3831a1867b05c249cbf12a50f9e9 | Shell | VNeddy/filecrush | /test/run.sh | UTF-8 | 3,549 | 3.296875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -u
set -o errexit
set -o pipefail
BLINE='beeline -u "'"$BEELINE_CONNECT"'"'
DB_NAME=aarau1
SRC_BASE_DIR=/user/hive/warehouse/$DB_NAME.db
INPUT_BASE_DIR=/user/aarau1/input
OUTPUT_BASE_DIR=/user/aarau1/output
export AVRO_JAR=/opt/cloudera/parcels/CDH/jars/hive-exec-1.1.0-cdh5.7.2.jar
export HADOOP_CLA... | true |
cc1e11d0c4c4941ca12510f84204376ffe340f1a | Shell | MarkNik1/distributed-systems | /tools/create_exam-projects.sh | UTF-8 | 3,935 | 4.21875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
##
## Configure the GitLab access parameters
##
export GITLAB_URL="https://gitlab.fbi.h-da.de"
export GITLAB_USR=""
export GITLAB_TKN=""
##
## Configure the namespace-id, i.e. the
## id of the path (groups and sub-groups)
## of the newly created project. For the
## path /distributed-systems/lab 2017/2018
... | true |
a9909cc9d1e64b129247ae2aacfbd72686fa0113 | Shell | woohyeok-choi/nginx-https | /docker-entrypoint.sh | UTF-8 | 2,694 | 3.78125 | 4 | [] | no_license | #!/bin/sh
set -e
function info() {
>&2 echo "[$(date "+%Y-%m-%d %H:%M:%S")][Info]" "$@"
}
function warning() {
>&2 echo "[$(date "+%Y-%m-%d %H:%M:%S")][Warning]" "$@"
}
function error() {
>&2 echo "[$(date "+%Y-%m-%d %H:%M:%S")][Error]" "$@"
}
info "NGinx reverse proxy setting"
SECRET_FILE="/run/secre... | true |
95e0c671a6383eb14966bd5a64006778f4c22b1f | Shell | montali/PDF2SearchablePDF | /mac_install.sh | UTF-8 | 978 | 3.40625 | 3 | [
"MIT"
] | permissive | # "Install" this script by symbolically linking from here to your "~/bin" dir!
# - NB: don't delete your files here or it will break the "install", since it's simply symbolically linking to
# the executable here!
# - Therefore, if you move these files, simply re-run this install script and it will automatically up... | true |
b590fdc2957877877d1a9b9231d5abdf6542d0a0 | Shell | guilhermeDias13/devcloud-scripts | /distributed_training.sh | UTF-8 | 2,177 | 2.9375 | 3 | [] | no_license | #PBS -l walltime=09:30:00
#PBS -o distr_train__${PBS_JOBID}-o.txt
#PBS -e distr_train__${PBS_JOBID}-e.txt
### Inputs ###
nodes=$1
ppn=$2
hash=$3
# Agent #
max_v=$4
rw_fac=$5
col_vel=$6
kp=$7
xw=$8
yw=$9
zw=${10}
# Neural Net #
sched=${11}
hid_size=${12}
num_hid_layers=${13}
expl_rate=${14}
# PPO #
max_timesteps=${1... | true |
56920f16439abbc2fb86fdb457b74a11fd990dd5 | Shell | phoronix-test-suite/test-profiles | /pts/build-php-1.3.0/install.sh | UTF-8 | 329 | 2.75 | 3 | [
"MIT"
] | permissive | #!/bin/sh
mkdir $HOME/libxml2
tar -zxvf libxml2-2.6.31.tar.gz
cd libxml2-2.6.31/
./configure --prefix=$HOME/libxml2 > /dev/null
make -s -j $NUM_CPU_JOBS
make install
cd ..
rm -rf libxml2-2.6.31/
rm -rf libxml2/share/
echo "#!/bin/sh
cd php-5.2.9/
make -s -j \$NUM_CPU_JOBS 2>&1" > time-compile-php
chmod +x time-com... | true |
949aaa320ed73034e7eea96fc4735eb6b2f6f9ec | Shell | meditans/settings | /symLinksRoot.hs | UTF-8 | 598 | 3.046875 | 3 | [] | no_license | #!/bin/sh
# Attenzione: Eseguire questo script come amministratore!
########################################
### Impostazioni iniziali
########################################
# Troviamo la posizione dello script
scriptDir=$( cd "$( dirname "$0" )" && pwd )
# Troviamo la posizione dell'utente che invoca
# homeDir=$(... | true |
60076eab050a76c607d0ab779994d58ac19abc23 | Shell | alexandre-mazel/electronoos | /raspberry/system/alexscripts/main.sh | UTF-8 | 380 | 2.78125 | 3 | [] | no_license | #!/bin/sh
file_bootlog="/home/pi/boot_time.txt"
file_first="/tmp/alexscript_started"
date >> "$file_bootlog"
if [ -f "$file_first" ]
then
exit 0
else
echo start > "$file_first"
echo "first time" >> "$file_bootlog"
fi
#bash -c "/usr/bin/python2.7 /home/pi/dev/git/electronoos/quick_scripts/stat_connected.py" &
/h... | true |
7bd223efcff803b3390e1516cd64742147554955 | Shell | tlkw79/AstroPi3 | /install_driverRTL8822BU.sh | UTF-8 | 620 | 3.234375 | 3 | [] | no_license | echo "~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "Attempting to Install Realtek drivers for Wifi Dongle using chipset RTL8822BU"
if [ "$(whoami)" != "root" ]; then
display "Please run this script with sudo due to the fact that it must do a number of sudo tasks. Exiting now."
exit 1
fi
sudo apt-get -y install git
sudo apt-get ... | true |
0396aca43a840c000187337da46c106a320eef23 | Shell | Silverpeas/silverpeas-native-packages | /deb/build-silverpeas.sh | UTF-8 | 4,450 | 3.78125 | 4 | [] | no_license | #!/usr/bin/env bash
# Requires:
# app-arch/dpkg
# sys-apps/fakeroot
set -e
if [ -z "$1" ]; then
echo "Usage: $0 <version> [<package version>]"
echo "If the package release isn't set, then it is set at 1 by default"
exit 1
fi
VER=$1
PKG_VER=$2
test "Z$PKG_VER" == "Z" && PKG_VER=1
SILVERPEAS_PKG=debian/sil... | true |
37bca060565af730a2a977716d1d7c722160a16e | Shell | michaeljbraus/Cladophora-Microbiota-2014 | /pairedends.sh | UTF-8 | 267 | 2.828125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Merge raw reads with PEAR.
# PEAR v0.9.9 [May 13, 2016]
mkdir ../clado-data-pear
for name in $(cat ./names-tube.txt)
do
pear -m 500 -f ../clado-data/*${name}*R1.fastq -r ../clado-data/*${name}*R2.fastq -o ../clado-data-pear/pear-${name} -j 10
done
| true |
d8104404d0032719f61f8f21b7cb561861c6dcc0 | Shell | greatwall-cloud/k8s-deploy | /001.docker-ce_17/install.sh | UTF-8 | 2,685 | 2.875 | 3 | [] | no_license | #!/bin/bash
cd $(dirname $0)
#添加DNS
if [ -s /etc/resolv.conf ] ; then
echo "nameserver 114.114.114.114" > /etc/resolv.conf
fi
#off swap
swapoff -a
sed -i '/ swap / s/^/#/' /etc/fstab
#install curl
dpkg -i libcurl3-gnutls_7.47.0-1ubuntu2.8_arm64.deb
dpkg -i curl_7.47.0-1ubuntu2.8_arm64.deb
#install sshdpass
dpkg -i s... | true |
39d643e5b914e7a65842208574f91495f7caaae7 | Shell | peteraba/dotfiles | /zshrc | UTF-8 | 5,633 | 2.640625 | 3 | [
"Unlicense"
] | permissive | # If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export PATH=~/.local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time tha... | true |
2fc73b5da3a6a91222bc94835175b6f1867862bd | Shell | akagisho/zabbix-ansible | /roles/zabbix/files/usr/lib/zabbix/externalscripts/external_ssl_cert.sh | UTF-8 | 378 | 3.34375 | 3 | [] | no_license | #!/bin/sh
HOST=$1
PORT=${2:-443}
END_DATE=`openssl \
s_client \
-connect ${HOST}:${PORT} \
-servername ${HOST} < /dev/null 2> /dev/null \
| openssl x509 -enddate -noout 2> /dev/null \
| cut -d'=' -f2`
if [ -z "$END_DATE" ]; then
echo "ZBX_NOTSUPPORTED"
exit 1
fi
date +"%s" \
--date="${END_DATE}" \
... | true |
7528cc08e3926b058bdf3ba61dc5721b56368838 | Shell | Naruto/simon-speck-c | /scripts/speck/build_android.sh | UTF-8 | 1,038 | 3.375 | 3 | [
"MIT"
] | permissive | #!/bin/bash -xe
SCRIPTDIR=`dirname $0`
SCRIPTDIR=`cd $SCRIPTDIR && pwd -P`
BASEDIR=${SCRIPTDIR}/../..
BASEDIR=`cd ${BASEDIR} && pwd -P`
pushd ${BASEDIR} > /dev/null
SYSTEM_VERSION=21
android_ndk_build() {
SYSTEM_VERSION=$1
ARCH=$2
OTHER_FLAG=$3
# build
/bin/rm -rf build
/bin/mkdir build
... | true |
0f825ba9fcc4e695ace107170e950f4c120f29c2 | Shell | bestjae/fg_jnl | /skt_script/micro/dsm.sh | UTF-8 | 432 | 3.640625 | 4 | [] | no_license | #!/bin/bash
argc=$#
option=$1
dev_name=$2
start_block=$3
block_size=$4
if [ $argc -lt 4 ]; then
echo "Usage : ./dsm.sh [dev_name] [option(-d, -w, -r)] [start_block] [block_size]"
exit 1
fi
nvme dsm ${dev_name} ${option} --blocks=${block_size} --slbs=${start_block} > /dev/null 2> /dev/null
ret=`echo $?`
... | true |
b2cf89f611cc941f79bd4b7cbc90138e876174dc | Shell | florez/PhenoAnalyzer | /PhenoCodes/ntuple_creator.sh | UTF-8 | 3,827 | 3.40625 | 3 | [] | no_license | #!/bin/bash
#Este archivo crea las nuplas de Delphes a partir de las muestras de MadGraph creadas. Este código debe estar ubicado en la carpeta donde se quiere tener las nutplas.
prueba1=0
#Contador de las ParamCards
cont1=0
#Ciclo en las ParamCards, escribir la carpeta donde se encuentran
for i in $(ls /home/jgodoy/P... | true |
580731716e08f203a8a33485de6a2dadeea76683 | Shell | AlexanderBirks/reverse_review | /reverse_review.sh | UTF-8 | 529 | 3.359375 | 3 | [] | no_license | #!/bin/sh
# Set bash script to exit immediately if any commands fail.
set -e
# Enter name of app to steal here...
TARGET_NAME="enter app name here"
# Copy & remove
cp -r "${HOME}/${TARGET_NAME}" "${HOME}/Desktop/${TARGET_NAME}"
# Compress
zip -r "${TARGET_NAME}.zip" "${TARGET_NAME}" -x "*.DS_Store"
# Post
curl -X ... | true |
9d018dc7acdef15d309d9292db3c639c39d908f7 | Shell | IPHC/IPHCTools | /Dewey/run_wms.zsh | UTF-8 | 849 | 3 | 3 | [] | no_license | #!/bin/env zsh
usern="mbuttign"
COLL="Res1000Inv800"
if [[ -f jobs.txt ]]; then
CollNameAlreadyTaken=`cat jobs.txt | grep ${COLL}`
if [[ -n ${CollNameAlreadyTaken} ]]; then
echo "This Collection name is already taken, please choose another one"
else
glite-wms... | true |
9994edb0162edb5a3b8e1df5145f5500225c1517 | Shell | gonzopancho/launchd_xml | /launchd/etc/launchd/scripts/fsck.sh | UTF-8 | 1,067 | 3.71875 | 4 | [] | no_license | #!/bin/sh -x
#
# Removed dependency from /etc/rc.
stop_boot()
{
# Terminate the process (which may include the parent /etc/rc)
# if booting directly to multiuser mode.
#
if [ "$autoboot" = yes ]; then
kill -TERM $$
fi
exit 1
}
fsck_start()
{
if [ "$autoboot" = no ]; then
echo "Fast boot: skipping disk chec... | true |
12162ac923112ba8b4ad7de50f6770efb4325db9 | Shell | jsherwani/bash | /cordova.bash | UTF-8 | 3,760 | 3.265625 | 3 | [
"MIT"
] | permissive | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | true |
706da60fcefb8b418a6fb304f2cc2e1ef6e78137 | Shell | jaingaurav001/kind-helm-chartmuseum | /tests/test-deployment-helm-repo.sh | UTF-8 | 1,220 | 3.359375 | 3 | [] | no_license | #!/bin/bash
#
# Make sure the Kind local container and chart repo works as expected.
set -ex
# add the repo to helm with:
helm repo add chartmuseum-demo http://localhost/
# list the repositories
helm repo list
# build image
docker build -t helloworld:latest .
# tag and push the image
docker tag helloworld:latest l... | true |
24e586b24faaeac6c20ecccf8eb6b3e61056e700 | Shell | chrisguest75/shell_examples | /59_monitor_folder/inotify/notified.sh | UTF-8 | 195 | 3.421875 | 3 | [] | no_license | #!/usr/bin/env bash
echo "Waiting..."
while read path action file; do
echo "The file '$file' appeared in directory '$path' via '$action'"
# do something with the file
done
echo "Exiting" | true |
ce917fa4b016959a839370cda8c1cba3efad6b1c | Shell | atdt/murmurhash3_mysql | /build.sh | UTF-8 | 406 | 2.640625 | 3 | [] | no_license | #!/usr/bin/env bash
# This is a kludge and should be re-done as a proper Makefile.
LIBDIR=$(mysql -u root -p <<< "show variables like 'plugin_dir';" | tail -1 | awk '{ print $2 }')
gcc -fPIC -Wall -I/usr/include/mysql -I. -shared murmur3_mysql_udf.c lib/murmur3/murmur3.c -o "${LIBDIR}/murmur3_mysql_udf.so"
chgrp -R m... | true |
e057d94316dbbd7dd634e3bb18dde85d52c0fc40 | Shell | MazzaLuca/Face-Away-PC-Lock | /Dist/ubuntu/bin/face-ls | UTF-8 | 268 | 3.25 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Jonas Bertossa
# Script per listare le faccie del dataset
cnt=$(ls /etc/facelock/Dataset/ | wc | awk '{print $2}')
if [[ "$cnt" -gt 0 ]] ; then
echo "Elenco facce nel dataset:"
ls -d /etc/facelock/Dataset/* | sed 's/.*\///g'
else
echo "Il dataset è vuoto"
fi | true |
6e792eee3ee2dd3f2e35a42757538e5ce9f7df2f | Shell | lumjjb/tornjak | /sample-keys/gen_domain.sh | UTF-8 | 674 | 3.34375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
function usage {
echo "Takes in domain name as input"
exit 1
}
[[ -z $1 ]] && usage
export DOMAIN=$1
echo "Generating certs..."
openssl req -new -x509 -sha256 -key key.pem -subj "/C=US/ST=CA/O=Acme, Inc./CN=example.com" -extensions SAN -config <(cat /etc/ssl/openssl.cnf <(printf "[SAN]\nsubjectAlt... | true |
a508077a86e9ab2212f6e74dcc24e39e6fbd57e1 | Shell | barryk/arch-osx | /fftw/PKGBUILD | UTF-8 | 1,310 | 2.875 | 3 | [] | no_license | # PKGBUILD autocreated by ABStoOSX 0.2
# $Id
# ArchLinux Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: damir <damir@archlinux.org>
pkgname=fftw
pkgver=3.2.1
pkgrel=1
pkgdesc="A library for computing the discrete Fourier transform (DFT)"
arch=('macx86')
license=('GPL2')
url="http://www.fftw.org/"
d... | true |
968537da7b704400d2556173fadb7847fc9e52a2 | Shell | marcusandre/dotfiles-linux | /zsh/.zshrc | UTF-8 | 3,323 | 2.859375 | 3 | [
"MIT"
] | permissive | # .zshrc.sensible
bindkey -e
setopt NO_BEEP
setopt PRINT_EIGHT_BIT
setopt NO_FLOW_CONTROL
setopt LIST_PACKED
REPORTTIME=60
WORDCHARS="*?_-.[]~&;$%^+"
[[ -n $terminfo[khome] ]] && bindkey $terminfo[khome] beginning-of-line
[[ -n $terminfo[kend] ]] && bindkey $terminfo[kend] end-of-line
[[ -n $terminfo[kdch1] ]] && b... | true |
0ce98a2a78948b64477f298cbc950cfb8867451b | Shell | danvk/git-helpers | /mv/git-unbak | UTF-8 | 377 | 3.96875 | 4 | [] | no_license | #!/usr/bin/env bash
# un-"bak"-up a git-tracked file.
for arg in $@; do
for expanded_arg in $(git ls-files $arg); do
if [ "$(basename $expanded_arg)" == "BUILD" ]; then
continue
fi
extension=${expanded_arg##*.}
if [ "$extension" == "bak" ]; then
echo "Moving $expanded_arg -> ${expanded_arg%.bak}"
gi... | true |
0b3bde1d4757adc833f44e7f9867b9d0895c7f3f | Shell | ericdward100/mapr_installation | /install_mapr_chef.sh | UTF-8 | 3,294 | 3.625 | 4 | [] | no_license | #!/bin/bash
#Node list:
nodes="ip-172-16-2-225.ec2.internal ip-172-16-2-16.ec2.internal ip-172-16-2-176.ec2.internal ip-172-16-2-108.ec2.internal ip-172-16-2-37.ec2.internal ip-172-16-2-79.ec2.internal"
log_date=`date +%F_%H-%M`
if [ ! -d ~/mapr_install_logs ]; then
echo "Making mapr_install directory"
mkdir -p ~/m... | true |
935026aa2b3430702a01a748fa2718126500ab67 | Shell | leusic38/dotfiles | /bin/.local/bin/update | UTF-8 | 162 | 2.78125 | 3 | [] | no_license | #!/bin/sh
#mise a jour des depots
yay -Syy
sudo pacman -Syu
default="Y"
read -e -p 'update systeme [Y/n]' yes
yes="{$yes:-$default}"
[ $yes != "n" ] && yay -Sua
| true |
076e3183f23cbd234cd3fbb949f4b89fa3b6cc1e | Shell | fesc2000/sr-4080 | /etc/init.d/fan | UTF-8 | 1,008 | 3.40625 | 3 | [] | no_license | #!/bin/sh
# This script is not used when systemd is running
### BEGIN INIT INFO
# Provides: fan
# Required-Start:
# Required-Stop:
# Should-Stop:
# X-Stop-After: umountroot
# Default-Start: 2 3 5
# Default-Stop: 0 6
# Short-Description: PWM/gpio80 fan control
# Description: PWM/gpio80 fa... | true |
36c2d0d57b2e37a62f450f33125982e0b39be920 | Shell | vicjicaman/repoflow-tool | /start.sh | UTF-8 | 1,740 | 2.71875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
export REPOFLOW_WORKSPACE=~/repoflow/workspace
export PLUGIN_REPOFLOW_WORKSPACE=${REPOFLOW_WORKSPACE}
export REPOFLOW_GRAPHQL_SERVICE_HOST=localhost
export REPOFLOW_GRAPHQL_SERVICE_PORT=4081
export REPOFLOW_WEB_SERVICE_HOST=localhost
export REPOFLOW_WEB_SERVICE_PORT=5081
export REPOFLOW_PLUGIN_SERVICE_HOST... | true |
d511819700ba3a4a31318449b672eed03631c78a | Shell | alfonz19/optlock | /test.sh | UTF-8 | 722 | 2.515625 | 3 | [] | no_license | #!/bin/bash
if [[ $# -ne 1 ]]; then
echo supply uuid;
exit 1;
fi
echo resetting
curl -X PUT http://localhost:8080/optlock/$1/?a=1\&b=1\&busyWait=false
echo entity before test:
curl -X GET http://localhost:8080/optlock/$1
echo waiting 5s before calling test.
sleep 5s;
echo testing.
curl -X PUT http://localhost:8... | true |
1e82655646d646ff9b3b4a75681194e2d9e1d15b | Shell | cjfiscus/2022_Fiscus_Dissertation | /chapter_1/analysis_scripts/SX/001b_countkmers_assem.sh | UTF-8 | 1,357 | 2.78125 | 3 | [
"Unlicense"
] | permissive | #!/bin/bash -l
#SBATCH --nodes=1
#SBATCH --ntasks=4
#SBATCH --mem=32G
#SBATCH --output=pl%j.stdout
#SBATCH --error=pl%j.stderr
#SBATCH --mail-user=cfisc004@ucr.edu
#SBATCH --mail-type=ALL
#SBATCH --time=3-00:00:00
#SBATCH --job-name="count"
#SBATCH -p batch
# software dependencies
## axel 2.16.1 (https://github.com/a... | true |
93dff24ab234359824398b15dd46d60eba823b76 | Shell | rooprob/dotfiles | /.bin/xkeybind-action | UTF-8 | 1,825 | 4.03125 | 4 | [] | no_license | #!/bin/bash
#
# xkeybind-action <action>
#
# Map keys (eg macOS command key shortcuts into various Linux desktop apps)
#
# Script to call from ~/.xbindkeysrc
#
# "xkeybind-action copy"
# Mod4 + c
# "xkeybind-action paste"
# Mod4 + v
#
#
# Author: Robert Fielding <fieldingrp@gmail.com>
action=$1
# applications ope... | true |
35b878165a3c47bc7e480f366ec9e148614526a7 | Shell | BintangDiLangit/dpkg_Ubuntu18.04 | /info/console-setup.postrm | UTF-8 | 610 | 2.96875 | 3 | [] | no_license | #!/bin/sh
set -e
if [ purge = "$1" ]; then
rm -f /etc/default/console-setup
fi
if [ remove = "$1" -o purge = "$1" ]; then
if [ ! -f /bin/setupcon ]; then
rm -f /etc/console-setup/cached_*
fi
fi
# Automatically added by dh_installdeb/11.1.6ubuntu2
dpkg-maintscript-helper rm_conffile /etc/init/co... | true |
843dd2013e155e0a2e90ddc602bd6d0c7104300e | Shell | eoziolor/fhet | /scripts/mapping-err/mapping_301_350.sh | UTF-8 | 896 | 2.890625 | 3 | [] | no_license | #!/bin/bash
BWA=/data/oziolore/programs/bwa/bwa
SBL=/data/oziolore/programs/samblaster/samblaster
outdir=/data/oziolore/fhet/data/align/
genome=/data/oziolore/fhet/data/genome/reference_funhe.fna
stools=/data/oziolore/upload/samtools-1.3/samtools
for i in {301..350}
do
fq1=/data/oziolore/fhet/data/unmapped/combined... | true |
a053c25c4ff9496730228d7d35efea643afa18c0 | Shell | ledutu/review-book | /scripts/create-db.sh | UTF-8 | 4,522 | 3.53125 | 4 | [] | no_license | #!bin/bash
# Author: Le Duc Tung
# Username: ledutu
# Script will be showed below:
API_URL=http://localhost:3000/api/db
TYPE=$1
TIMES=$2
LOCALE=$3
HASH=ledutu
function createUser () {
echo "Creating User database......"
RESPONSE=`wget -qO- ${API_URL}/user?times=${TIMES}\&locale=${LOCALE}`
if [ $RESPONSE... | true |
b7b8739791ecb229f3aca70ebdafc8e4fb7eabef | Shell | aspirecsl-labs/dockerised-crafter | /scripts/container-executor.sh | UTF-8 | 2,636 | 4.15625 | 4 | [] | no_license | #!/bin/bash
set -e
usage() {
local CMD_SUMMARY
case $command in
backup)
CMD_SUMMARY="Backup the data in the Crafter ${INTERFACE} container"
;;
login)
CMD_SUMMARY="Login to the Crafter ${INTERFACE} container"
;;
recovery)
CMD_SUMMARY="Start the Crafter ${INTERFACE} container in recovery mo... | true |
fca9c147b5e1fd0a6cdeddea44302c29e7479f95 | Shell | Tedhumeetschas/bobsrepo | /cheat-sheet.sh | UTF-8 | 4,405 | 4.1875 | 4 | [] | no_license | #! bin/bash
#-------------------------------------------------
# ECHO COMMAND
#-------------------------------------------------
#echo "Hello World!"
#-------------------------------------------------
# VARIABLES
#-------------------------------------------------
# Upper case by convention
# Letters, numbers, und... | true |
51bd9b308c6b96926a0768365a9da108c5709340 | Shell | jmellicker/installStuff | /setupServer.sh | UTF-8 | 482 | 2.609375 | 3 | [] | no_license | #!/bin/sh
# set server time to UTL
timedatectl set-timezone UTC
hwclock --systohc
# install Python 2.7 (Cloud 9 needs it)
apt-get update -y
apt-get install python2.7 -y
# install NodeJS
cd ~
curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt-get install nod... | true |
e3816387c86e1aceddd3a504c3474bbc152277f2 | Shell | hsandt/pico-boots | /scripts/build_cartridge.sh | UTF-8 | 14,078 | 3.765625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Configuration
picoboots_src_path="$(dirname "$0")/../src"
picoboots_scripts_path="$(dirname "$0")"
help() {
echo "Build .p8 file from a main source file with picotool.
It may be used to build an actual game or an integration test runner.
The game file may require any scripts by its relative path fro... | true |
53f0b32b0f757f28700720e230676e204a7f684c | Shell | NanteRuth/Mating-type-discovery-workflow | /change_id.pbs | UTF-8 | 948 | 2.78125 | 3 | [] | no_license | #!/bin/bash
#PBS -l nodes=1:ppn=14
#PBS -l walltime=80:00:00
#PBS -q long
#PBS -o /nlustre/users/nante/dothistroma/masters/mapping_genomes/mating_types/changed_index_fasta
#PBS -e /nlustre/users/nante/dothistroma/masters/mapping_genomes/mating_types/changed_index_fasta
#PBS -m abe
#PBS -M ruth.nante@fabi.up.ac.za
#PBS ... | true |
f0fc41aff28b494725f4857d543e24b8a1c83e9c | Shell | andy12838729/tf-gcp-gke-config-module | /postbuildscripts/5_build_tb_base/5b-new_manual_builder.sh | UTF-8 | 1,759 | 2.8125 | 3 | [] | no_license | #!/bin/bash
export HTTPS_PROXY="localhost:3128"
MYSELF="$(realpath "$0")"
MYDIR="${MYSELF%/*}"
# creates namespaces cicd / ssp
kubectl apply -f $MYDIR/namespaces.yaml
# create config map
kubectl apply -f $MYDIR/configmap.yaml
kubectl create secret generic ec-service-account -n cicd --from-file=$MYDIR/ec-service-acco... | true |
54d381162f3e50d5b791baeccb32e11427714a6f | Shell | Shuttles/8.Linux | /6.Project/1.服务器集群监控系统/1.Scripts/996.my_Script/3.Disk.sh | UTF-8 | 492 | 3.171875 | 3 | [] | no_license | #!/bin/bash
Time=`date +"%Y:%m:%d__%H:%M:%S"`
DiskSum=0
DiskLeft=0
for (( i = 0; i < 2; i++ )); do
DiskSum=`df -T -m -x tmpfs -x devtmpfs | tail -n +2 | awk '{printf $2}'`
DiskLeft=`df -T -m -x tmpfs -x devtmpfs | tail -n +2 | awk '{printf $4}'`
DiskUsed=`df -T -m -x tmpfs -x devtmpfs | tail -n +2 | awk '{... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.