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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
b4ac310e6baa6eaf4fbc986827b7c34de1505c0e | Shell | LiberatorUSA/GUCEF | /projects/k3s/github/create_github_runner_image.sh | UTF-8 | 568 | 2.828125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#if [ $# -eq 0 ]
# then
# tag='latest'
# else
# tag=$1
#fi
# first get a listing of the current container for analysis
docker inspect summerwind/actions-runner:latest
# build the derived github runner build image
docker build -f github_runner_build_image.dockerfile . -t vanvelzen/github-runner-b... | true |
505b616fde76421a8b79656758907f38b7104c8d | Shell | RestiSanchez/ASIR2-IAW-Practica08 | /Fase_1/front.sh | UTF-8 | 3,009 | 3.21875 | 3 | [] | no_license |
#!/bin/bash
set -x
#VARIABLES
DB_NAME=wordpress_db
DB_USER=wordpress_user
DB_PASSWORD=wordpress_password
IP_PRIVADA_FRONTEND=172.31.62.193
IP_PRIVADA_MYSQL_SERVER=172.31.53.230
IP_PUBLICA_FRONTEND=54.236.56.144
#Actualizamos
apt update
#Instalamos apache
apt install apache2 -y
#Instalamos los módulos PHP
apt inst... | true |
ad4f687870a44ea332329fc85dcbdaaee0bca331 | Shell | dyylam/easymsf | /easy.bash | UTF-8 | 1,412 | 3.109375 | 3 | [] | no_license | #!/bin/bash
i="0"
resize -s 27 80
clear
while [ $i -lt 1 ]
do
clear
ip=$(ip addr show wlan0 | awk '/inet / {print $2}' | cut -d/ -f 1 )
echo -e '\e[1:33m
\e[1;32m
IP = $ip
(1) Android Malicious
(2) Windows Evil
(3) Python BadShell
'
service postgresql start
apk='1'
exe='2'
py='3'
rea... | true |
2692366d3a9ad19b4760c5df02dfd11e5d9c1372 | Shell | eduardoefb/rainv | /files/scripts/update_v2.sh | UTF-8 | 6,426 | 3.78125 | 4 | [] | no_license | #!/bin/bash
#functions:
function f_customer(){
rm $SCRIPT_DIR/cust_run 2>/dev/null
echo 1 > $SCRIPT_DIR/cust_run
$SCRIPT_DIR/find_customer.sh $f >> $SCRIPT_DIR/update.log
rm $SCRIPT_DIR/cust_run 2>/dev/null
}
function update_log(){
rm $SCRIPT_DIR/log_run 2>/dev/null
echo 1 > $SCRIPT_DIR/log_run
$PARSE_LOG_CM... | true |
d86c6e40de1ba8414e732b6825adcdf8d0c0ec91 | Shell | gpincheiraa/bln-frontend-project1 | /ci/deploy | UTF-8 | 1,183 | 2.6875 | 3 | [] | no_license | #!/bin/bash
echo "============================================================="
echo "============================================================="
echo " CONFIGURANDO DATOS BILLETERA BITCOIN "
echo "============================================================="
echo '{ "address": "'$BITCOIN_... | true |
a8286f1d7507c462bd4e6c571f31511bc0d74484 | Shell | christian-posta/istio-demos | /cert-rotation/verify-certs.sh | UTF-8 | 774 | 2.640625 | 3 | [] | no_license |
BASE="./certs"
ROOTA_DIR="$BASE/ROOTA"
ROOTB_DIR="$BASE/ROOTB"
INTERMEDIATE_A="$BASE/intermediate-rootA"
INTERMEDIATE_A2="$BASE/intermediate-rootA2"
INTERMEDIATE_B="$BASE/intermediate-rootB"
echo "verifying root certs for CA-A"
diff $ROOTA_DIR/certs/root_ca.crt $INTERMEDIATE_A/root-cert.pem
step certificate verify $I... | true |
aa560b22cf93dc97207ba467e202434482c7d85d | Shell | bresilla/dotfiles | /.func/wm/sshoot | UTF-8 | 969 | 3.125 | 3 | [] | no_license | #!/usr/bin/env bash
screenshot_file=/tmp/$(date +%s).png;
echo $screenshot_file > /tmp/screenshot_file;
accent=$(cat /home/bresilla/.cache/wal/colors | head -2 | tail -1)
if [[ $1 == "--show" ]]; then
maim -u -s | tee $screenshot_file | xclip -sel clip -t image/png -i
sxiv $screenshot_file
elif [[ $1 == "--... | true |
22bda95b91822ae52ef7d4782eeccbce35e198c1 | Shell | jumerkel/opsi-server | /scripts/opsiconfd | UTF-8 | 4,877 | 3.5625 | 4 | [] | no_license | #!/bin/sh
#
### BEGIN INIT INFO
# Provides: opsiconfd
# Required-Start: $network $local_fs $remote_fs mysql
# Required-Stop: $network $local_fs $remote_fs mysql
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: opsi config service
# Description: Opsi Configuration Servic... | true |
428078d3c1cf99a7e722662100ada03f9f3a5f55 | Shell | bitcoin-cash-node/bitcoin-cash-node | /cmake/utils/gen-doc-md.sh.in | UTF-8 | 6,127 | 3.46875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Copyright (c) 2020-2021 The Bitcoin developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
export LC_ALL=C
set -e
cd "@CMAKE_CURRENT_BINARY_DIR@"
rm -f mkdocs.yml
rm -rf md
mkdir md
cd "@CMAKE_SOURCE_DIR... | true |
fa8935ce64ab9d7d24a1702ecccc1efc479294f8 | Shell | ryosebach/dotfiles | /etc/init/osx/03_brew_app_install.sh | UTF-8 | 339 | 2.75 | 3 | [] | no_license | #!/bin/sh
test -r ~/.dotfiles/etc/install && . ~/.dotfiles/etc/install && os_detect
e_arrow "brew application installing"
BrewApp=(
the_platinum_searcher
go
peco
ghq
tig
gibo
wget
nkf
ghostscript
hub
tree
graphviz
neovim
python
python@2
)
for app in ${BrewApp[@]}; do
brew install $app
done
e_success "brew applica... | true |
1b71044694444bc5361a28b09b9f857430f3508f | Shell | Joanna4983/MITM-repo | /prober.sh | UTF-8 | 240 | 2.640625 | 3 | [] | no_license | #!/usr/bin/env bash
for nr in {1..255}
do
ping -c 1 -W 0.2 192.168.43.$nr > /dev/null & ## Possible error here if not on correct network when running
if ! (($nr % 51)); then
arp -a >> /root/PycharmProjects/MITM/hosts2.txt
fi
done
exit 0 | true |
ed8b65351e184af7632e13731d863335107b154b | Shell | rezacloner1372/MysqlBAckup | /mysqldump.sh | UTF-8 | 1,570 | 3.4375 | 3 | [] | no_license |
##########please make these directory#############
#mkdir last #
#mkdir Backup-last #
#mkdir Backup-old #
#mkdir /BACKUP_old/weekly #
#mkdir /BACKUP_old/monthly #
##################################################
#!/bin/bash
BACKUP_last="/Backup-last"
BACKUP_old="/Backup-old"
TODAY=$(date +"%Y-%... | true |
0bac2b7b8ea9a83e850852ae95f937f73805cda1 | Shell | ycwu1030/cxSMScan | /RuncxSM.sh | UTF-8 | 328 | 2.90625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
id=1
dir=$(pwd)
cd cxSMThermalMassOnly
make clean; make
cd $dir
datadir=$dir/Data
mkdir -p $datadir
mkdir -p $datadir/cxx
mkdir -p $datadir/cosmo
while [ $id -le 10 ]
do
printf -v ID "%02d" ${id}
screen -S CXSM0828"$ID" -d -m bash -c "./cxSMSingleRun.sh $datadir "$id"; exec bash;"
id=$[$id+1]... | true |
b565776ab6bbd3c473436682eef133dea9de56db | Shell | ftravers/arch-home | /bin/git-hooks-post-receive | UTF-8 | 1,040 | 3.5625 | 4 | [] | no_license | #!/bin/bash
mail_fenton=true
mail_ii=true
mail_cisco=true
mail_avaya=true
mail_oracle=false
ii_emails=("brett.holleman@inin.com" "david.fuller@inin.com")
cisco_emails=("jahayden@cisco.com" "sbehzad@cisco.com")
avaya_emails=("ssmith@avaya.com" "abouzemberg@avaya.com" "krcouls@avaya.com")
fenton_emails=("fenton.travers... | true |
d130ed3dc3ace3d5a00185f29e1036516a151863 | Shell | konfarandras/sfdx-travisci | /installpackage.sh | UTF-8 | 766 | 2.96875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -x
set -e
DESCRIPTION=testdescription
DEVHUB=TDevHub
PACKAGENAME=teltestpackage
TARGET=telkonfara
KEY=keyunicon19
echo starting installation of package...
#sfdx force:package:create --name $PACKAGENAME --description $DESCRIPTION --packagetype Unlocked --path force-app --nonamespace --targetdevhubusern... | true |
9b73114e89dd61c31a5cbe21368cfec8ac3f9d3a | Shell | virtualparadox/BBMap | /pipelines/fetch/runRefSeqProtein.sh | UTF-8 | 2,373 | 2.5625 | 3 | [
"BSD-3-Clause-LBNL"
] | permissive | #!/bin/bash
#SBATCH -J sketch_refseq
#SBATCH -q genepool
#SBATCH -A gtrqc
#SBATCH -N 1
#SBATCH -C haswell
#SBATCH -t 71:00:00
#SBATCH --error=log_%j.err
#SBATCH --output=log_%j.out
#SBATCH --exclusive
set -e
#Written by Brian Bushnell
#Last updated August 19, 2019
#Filters prokaryotic clades, translates them to prot... | true |
86ed964d7bceb864030984ffbcab5e33640ee7fb | Shell | Linux-Project-Puppet-Deploy/puppet-install-script | /install.sh | UTF-8 | 1,454 | 4.1875 | 4 | [] | no_license | #!/bin/sh
#
#
# This script install puppet sources
#
# Usage : install.sh [agent|server] [hostname] [puppet_ip] [puppet_dns]
PACKAGE_NAME=""
FILENAME="puppetlabs-release-pc1-jessie.deb"
case $1 in
"agent")
PACKAGE_NAME="puppet-agent"
[ "$#" -ne 4 ] && echo "Agent parameters are wrong" && exit 1
echo "$3\... | true |
4f2ad7d5a858060f5c383e9d161c9c13b11df5d8 | Shell | docker-in-practice/image-stepper | /example/tag.sh | UTF-8 | 159 | 2.921875 | 3 | [] | no_license | #!/bin/bash
x=1
for id in $(docker history -q "myimage:latest" | grep -vw missing | tac)
do
docker tag "${id}" "myimage:latest_step_${x}"
((x++))
done
| true |
1ba68e15c2ee8f14328b5e7de049d29ac47f06c6 | Shell | akora/vagrant-project-templates | /project-name/vagrant-scripts/install-git.sh | UTF-8 | 1,205 | 3.59375 | 4 | [] | no_license | #!/usr/bin/env bash
# be careful with the source path below! it seems /vagrant/ is the path "inside" the VM!
source /vagrant/vagrant-scripts/shell-utils.sh
git_version="2.3.0" # << feel free to change it
git_global_user_name="<Your name goes here>"
git_global_email="<Your email address goes here>"
install_dir="/home... | true |
bc760ae4ec63956b1b85c853f6dfe630abced05d | Shell | weichou1229/edgex-taf | /TAF/utils/scripts/docker/restart-services.sh | UTF-8 | 498 | 2.671875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
CONFIG_DIR=/custom-config
docker run --rm -v ${WORK_DIR}:${WORK_DIR} -w ${WORK_DIR} -v /var/run/docker.sock:/var/run/docker.sock \
--env WORK_DIR=${WORK_DIR} --env PROFILE=${PROFILE} --security-opt label:disable \
--env-file ${WORK_DIR}/TAF/utils/scripts/docker/common-taf.env --env CONFIG_DIR... | true |
ee5529ee14dcf6528a1fd8ba064b73a33f42e5ae | Shell | FabioLolix/PKGBUILD-AUR_fix | /zz_wip/ldmicro/PKGBUILD | UTF-8 | 782 | 2.59375 | 3 | [
"WTFPL"
] | permissive | # Maintainer:
pkgname=ldmicro
pkgver=5.4.1.1
pkgrel=1
pkgdesc="Ladder Logic for PIC and AVR"
arch=(x86_64)
url="https://cq.cx/ladder.pl"
license=(GPL3)
depends=()
makedepends=(cmake ninja perl)
#options=(!makeflags)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/LDmicro/LDmicro/archive/refs/tags/${pkgver}.t... | true |
152b85cd883bd69a4b02ab3fea60075425c27b5a | Shell | mbillard/expo-cli | /bin/bootstrap | UTF-8 | 395 | 2.90625 | 3 | [] | no_license | #!/usr/bin/env bash
set -eo pipefail
scriptdir=$(dirname ${BASH_SOURCE[0]})/../node_modules/.bin
scopeArgs=()
for arg in "$@"; do
scopeArgs+=("--scope" "$arg")
done
scopeArgs+=("--include-filtered-dependencies" "--sort")
"${scriptdir}/lerna" bootstrap "${scopeArgs[@]}"
"${scriptdir}/lerna" run "${scopeArgs[@]}" ... | true |
1eb188c7fcb9678e7f42dd7c2ab9fbb0e56dcac7 | Shell | allmende/watchtower | /rootfs/etc/s6/watchtower/setup | UTF-8 | 571 | 2.78125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if [ -n "${WATCHTOWER_TLS_CA}" ]
then
if [ ! -f "${WATCHTOWER_TLS_CA}" ]
then
echo -e "${WATCHTOWER_TLS_CA}" >| /tmp/ca.crt
WATCHTOWER_TLS_CA="/tmp/ca.crt"
fi
fi
if [ -n "${WATCHTOWER_TLS_KEY}" ]
then
if [ ! -f "${WATCHTOWER_TLS_KEY}" ]
then
echo -e "${WATCHTOWER_TLS_KEY}" >| /tmp/do... | true |
7134123f3cc62a943703b84d9c916d1930d58e21 | Shell | alvarcarto/alvarcarto-cartocss | /tools/build.sh | UTF-8 | 1,001 | 3.78125 | 4 | [] | no_license | #!/bin/bash
# Usage: bash tools/build.sh [style]
# Run from repository root!
set -e
set -x
mkdir -p dist
rm -f dist/*.xml
find ./styles -name 'generated-project.mml' -delete
find ./styles -name 'generated-styles.mss' -delete
dir_suffix=""
if [[ -n "$1" ]]; then
dir_suffix="/$1"
fi
# Convert templates to full pro... | true |
33850e3425cf07deeb41271d49d3b8dad295b59b | Shell | jasedit/dotphiles | /bash/bash_aliases | UTF-8 | 1,206 | 3.265625 | 3 | [
"MIT"
] | permissive | alias update-aliases="wget -q -O - \"$@\" https://alias.sh/user/1370/alias >> ~/.aliassh"
alias dotsync='~/.dotfiles/dotsync/bin/dotsync'
execute-over-ssh() {
if [ $# -ne 2 ]; then
echo "USAGE: execute-over-ssh 'server1 server2 server3' 'command1; command2; command3'"
return 1
else
servers=(${=1})
for server... | true |
39768ddff72135e43bcf49aed823ec4194e3eb42 | Shell | mjmerin/config_files | /brewinstalls.sh | UTF-8 | 1,167 | 3.15625 | 3 | [] | no_license | #!/bin/sh
# Homebrew All the Things I Need
#
# Install all the things I need on a macos system using Homebrew
# To execute: save and `chmod +x ./brewinstalls.sh` then `./brewinstalls.sh`
echo "Installing Homebrew..."
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
e... | true |
e2acc92b8eae16c7b6fd0f81db3612d0b466b3d7 | Shell | skiv71/BMSLink-core | /com/dev-del | UTF-8 | 192 | 3 | 3 | [] | no_license | #!/bin/bash
# args
sn=$1
# initialise
path=$(dev-path $sn)
# check
[ -n "$path" ] || exit 1
# initialise
table=devices
# main
bms-sql DELETE FROM $table WHERE serial=\"$sn\"
rm -rf $path
| true |
e037c05dbf8520564c39f9a2cf8e8a798d8871c0 | Shell | RustyToms/dotfiles | /modules/npm/npm_run.sh | UTF-8 | 1,183 | 3.953125 | 4 | [] | no_license | #!/bin/zsh
# Utility to quickly switch between difference NPM
# accounts using auth tokens.
#
# This utility requires that you define environment
# variables based on the following rules:
#
# - `NPM_AUTH_TOKEN_<profile>`=<auth token>
#
# where profile is your desired profile name.
#
# This script will set `NPM_AUTH_T... | true |
8262ff286dd60d56c2ac983fe02ae7a9d93004b9 | Shell | rackerlabs/autoscale-cruft | /monitoring/plugins/zookeeper_check.sh | UTF-8 | 183 | 2.6875 | 3 | [] | no_license | #!/bin/bash
output=$(echo ruok | nc localhost 2181)
if [ $output != 'imok' ]; then
echo "status CRITICAL zookeeper not healthy"
exit 1
fi
echo "status OK zookeeper is healthy"
| true |
fd9d6f77a7ad6673cda5d1c7b495a111265e50a9 | Shell | revspace/statelogger | /create-heatmaps | UTF-8 | 300 | 3.140625 | 3 | [] | no_license | #!/bin/sh
set -e
c='./sldump --heatmap --json'
o='heatmaps'
[ -e $o ] || mkdir $o
$c > $o/alltime.json &
$c --days 7 > $o/7days.json
$c --days 70 > $o/70days.json
$c --days 365 > $o/365days.json
for year in $(seq 2010 $(date +%Y)); do
$c --period $year > $o/year$year.json
done
wait
| true |
fd7fd0509fc09ee9d24646c286d392e472b81a7d | Shell | subnut/dotfiles-old | /linux/home/.zshrc | UTF-8 | 14,602 | 2.921875 | 3 | [] | no_license | # Keep this ABOVE p10k instant prompt
# Otherwise it gets set to "not a tty"
export GPG_TTY=$(tty)
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything e... | true |
5834ba5786f794f33fee8446ba540131d2f4d75f | Shell | gzahn/tools | /SRA_Download_and_Process.sh | UTF-8 | 4,640 | 3.796875 | 4 | [] | no_license | #!/bin/sh
############################
#SRA online search terms:
#ITS1
#
#SRA online filters:
#Platform = Illumina
############################
# This script takes the standard downloads from the SRA read selector (the table and accession list) and uses them to download all the associated fastq files from the Sequence... | true |
1dbefbec2de69baa26d6cd3d0cf8165a00fd47f4 | Shell | yksi/Restaurant-Application | /data/deploy/development/provision.sh | UTF-8 | 1,606 | 2.734375 | 3 | [] | no_license | #!/usr/bin/env bash
#Update centos
sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
sudo rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
sudo yum -y update
#Install tools
sudo yum install -y tar bzip2 git zip unzip
#Install configs
sudo cp -Rf /vagrant/soft-group-test/data/... | true |
1a100e7645e8257f608c4c6c1bdb80909bf9d44b | Shell | CGS-Purdue/record-the-earth-app | /App/.bin/_ts | UTF-8 | 1,098 | 3.046875 | 3 | [] | no_license | #!/bin/bash
# EXPO HELPER
# -------------
BASE_DIR="$(npm prefix)"
source ${BASE_DIR}/../.env
# tsc --removeComments --module ESNext --target ESNEXT --pretty
# ts build --removeComments --jsx react-native --module ESNext --target ESNEXT --pretty --declaration **/*.ts **/*.tsx
#!/bin/bash
BASE_DIR="$(npm prefix)... | true |
67053c37bb25c684a23bc64f05cb0559c47ea908 | Shell | s333770/LinuxTesting | /Operativsystemer/omDegScript.sh | UTF-8 | 295 | 2.796875 | 3 | [] | no_license | #! /bin/bash
echo "Ditt brukernavn er ${USER}"
echo "Prosessen du kjører er $$"
echo "Operativsystemet er `uname`"
echo "Din hjemmekatalog: ${HOME}"
filer=ls /home/andreas/ | wc -l
#kataloger= ls -ld */ | wc -l
echo "Antall filer i hjemmekatalog: $filer"
#echo "Antall kataloger: $kataloger"
| true |
b41d6d2b9a0276f450bb04a63bfb243fc31b68fe | Shell | fxha/dotfiles | /.bash_logout | UTF-8 | 356 | 2.890625 | 3 | [
"MIT"
] | permissive | # ~/.bash_logout
# when leaving the console clear the screen to increase privacy
if [ "$SHLVL" = 1 ]; then
[ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
fi
# kill ssh agent
if [ -n "$SSH_AGENT_PID" ]; then
eval `/usr/bin/ssh-agent -k`
fi
# load local configuration
if [ -f ~/.bash_logout.local ];... | true |
117cc42210b011a5f6d95e45b2003813cadc93fe | Shell | Leonardrae/scripts | /sec3-exec2.sh | UTF-8 | 270 | 3.484375 | 3 | [] | no_license | #!/bin/bash
[ -f "$1" ] && echo "File ${1} is a file, script will exit with code 0" && exit 0
[ -d "$1" ] && echo "File ${1} is a directory, script will exit with code 1" && exit 1
[ -a "$1" ] || echo "File ${1} Does Not Exist, script will exit with code 2" && exit 2
| true |
0351721f123179a6c1073ce011b5e5507770f414 | Shell | shone2567/work | /phase1/koji/sub_zpool_destroy.sh | UTF-8 | 532 | 2.84375 | 3 | [] | no_license | #!/bin/bash
sub_zpool_destroy(){
local zfs_rcache_postfix="*\.vcache"
local zfs_vdisk_dir="$HOME/temp/zfs/vdisks"
local zfs_vlog_dir="$HOME/temp/zfs/vlogs"
local zfs_vcache_dir="$HOME/temp/zfs/vcaches"
local zpool="pool1"
sudo zpool destroy $zpool
sudo zpool list
sudo zpool status
#remove all vdisks and vde... | true |
875f01052eb459f2ff6d96365376aa62385699eb | Shell | neeltuk/High-Dimensional-Model-Explanations-An-Axiomatic-Approach | /code/script_for_BERT_predictions.sh | UTF-8 | 723 | 2.515625 | 3 | [] | no_license | #!/usr/bin/env bash
BERT_BASE_DIR='/data/checkpoints/uncased_L-24_H-1024_A-16'
DATASETS="$HOME/.data/glue_data"
DATASETS='../../../Data/imdb'
tensorboard --logdir data/outputs &
for NUMBER in {1001..2000..4}
do
echo $NUMBER
python run_classifier.py \
--task_name=IMDB \
--do_train=false \
--do_eval=false \
... | true |
689dd56ed7c63c856567209c821a85b0310d2cc0 | Shell | xxtbg/coredroidservice | /CoreDroid/build | UTF-8 | 583 | 2.984375 | 3 | [] | no_license | #!/bin/sh
echo "BUILD: setting env variables"
ROOT_PATH=`pwd`
OUT_PATH="$ROOT_PATH/out"
MONO_PATH="$ROOT_PATH/mono-2.10.9"
export CC="gcc"
export CXX="g++"
export LD="ld"
export CFLAGS=""
export CXXFLAGS="$CFLAGS"
export LDFLAGS=""
cd $MONO_PATH
./configure --prefix=$OUT_PATH --exec-prefix=$OUT_PATH --disable-mcs-... | true |
e2c4f12807405848c0b080d6b24f66452d9589ab | Shell | liuyiyang123/zgit_shadow | /tools/zmaster_init_self.sh | UTF-8 | 4,148 | 3.140625 | 3 | [] | no_license | #!/usr/bin/env bash
# 预环境要求:
# (1) /etc/ssh/sshd_config 中的 MaxStartups 参数指定为 1024 以上
# (2) /etc/sysctl.conf 中的 net.core.somaxconn 参数指定为 1024 以上,之后执行 sysctl -p 使之立即生效
# (3) yum install openssl-devel
# 布署系统全局共用变量
export zGitShadowPath=${HOME}/zgit_shadow2
zServAddr=$1
zServPort=$2
zShadowPath=$zGitShadowPath # ... | true |
5f29b98d54207075a3ffa9cdf10dc00f2922c21b | Shell | deadcrew/deadfiles | /bin/wait-key | UTF-8 | 298 | 3.265625 | 3 | [] | no_license | #!/bin/bash
key="${1}"
if [[ ! -e /tmp/waitkey ]]; then
mkfifo /tmp/waitkey
fi
keypresses >/tmp/waitkey &
pid=$!
while read -a chunks; do
if [[ "${chunks[0]}" == "KeyRelease" && "${chunks[2]}" == "[$key]" ]]; then
break
fi
done </tmp/waitkey
kill $(ps -o pid= --ppid $pid)
| true |
f1d09dabe6e72ee069477fa569c46c307239dd09 | Shell | fabianlee/microk8s-nginx-istio | /tf-libvirt/create-snapshot.sh | UTF-8 | 656 | 3.046875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
thedomain="microk8s-1-192.168.122.210"
thedisk="microk8s-1"
snapshotname="initial"
targetdisk="vda"
# look at '<disk>' types, can have type other than file
virsh dumpxml $thedomain | grep '<disk' -A5
# show block level devices
virsh domblklist $thedomain
# pull default pool path from xml
pooldir=$(virsh... | true |
ac30d8eb73ca7134f3c309daba6dc0bb1ef691cc | Shell | Dilhasha/AppFacCLI | /execute/build-all | UTF-8 | 532 | 2.53125 | 3 | [] | no_license | #!/bin/bash
set -e
set -x
OUTDIR=$(dirname $0)/../outNw
GOARCH=amd64 GOOS=windows $(dirname $0)/build && cp $OUTDIR/appfac $OUTDIR/appfac-windows-amd64.exe
GOARCH=386 GOOS=windows $(dirname $0)/build && cp $OUTDIR/appfac $OUTDIR/appfac-windows-386.exe
GOARCH=amd64 GOOS=linux $(dirname $0)/build && cp $OUTDIR/appfac... | true |
aeb5d5620484ebd15482b1ad243c475d3c5cc97a | Shell | firstandthird/continuous | /scripts/push/default | UTF-8 | 1,098 | 3.640625 | 4 | [] | no_license | #!/bin/bash
#build repo
BUILDER="firstandthird/builder:0.0.7"
docker pull $BUILDER > /dev/null 2>&1
IMAGE=$(docker run \
--rm \
-e USER=$GITHUB_USER \
-e REPO=$GITHUB_REPO \
-e BRANCH=$GITHUB_BRANCH \
-e TOKEN=$GITHUB_TOKEN \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /repos:/repos \
${BUILDER})... | true |
07d5a751be0967fb02ca12b50a4982d65f289878 | Shell | fontes99/ORM-Cloud-project | /install.sh | UTF-8 | 213 | 2.609375 | 3 | [] | no_license | #!/bin/bash
mkdir -p keys
chmod +x task-list-template
sed -e "s|path_to_pedro|$(pwd)|g" task-list-template > task-list
chmod +x task-list
sudo mv task-list /usr/bin/
python3 main.py
echo 'INSTALL completed' | true |
60a74d52002758e215828782637cd36eca92c807 | Shell | elsayed-lab/gene-structure-analysis | /scripts/lmajor_friedlin/S01_count_total_reads.sh | UTF-8 | 537 | 3.421875 | 3 | [] | no_license | #!/usr/bin/env sh
#
# Counts the total number of reads uses as input for gene structure analysis.
#
outfile="../../input/lmajor_hsapiens/S01_num_reads_total.csv"
echo "sample_id,num_reads_total" > $outfile
for x in $SCRATCH/utr_analysis/lmajor-infecting-hsapiens-*/input/HPGL*/processed/*R1*.gz; do
sample_id=$(echo $... | true |
fb9292d8d0a950bc099b931c5cc2f1a65b6a8cd8 | Shell | oxfordcontrol/osqp-wheels | /config.sh | UTF-8 | 1,310 | 3.21875 | 3 | [
"Apache-2.0"
] | permissive | # Define custom utilities
# Test for OSX with [ -n "$IS_OSX" ]
TESTS_DIR="$(pwd)/osqp-python"
function fix_cmake {
if [ -n "$IS_OSX" ]; then
brew update
brew upgrade cmake || brew install cmake
else
# Fix cmake installation linking the appropriate binary
pip install cmake
rm `python -c 'import sys; print(s... | true |
a62aeba6ef025b05e6562f3bd4d476730c0da4d8 | Shell | ondras12345/CNC | /pcb2gcode/generate | UTF-8 | 1,622 | 2.640625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
cat <<EOF
# Copy this file to your gerber directory and name it \`millproject\`
# See \`man pcb2gcode\`
# Set paths to gbr files
back=
drill=
outline=
$(
if [ -n "$DOUBLE_SIDED" ] ; then
cat <<EOF2
front=
# Alignment pins
# You need to decide where to drill alignment holes.
# For example, you... | true |
09982af7f7590e5b056113ddfa6fb1de694c0d2b | Shell | mannysah/how-to-run-minishift-locally-mac | /create-sample.sh | UTF-8 | 1,123 | 2.703125 | 3 | [
"MIT"
] | permissive | #Set the environment again
eval $(minishift oc-env)
eval $(minishift docker-env)
docker login -u $(oc whoami) -p $(oc whoami -t) $(minishift openshift registry)
#New NODE APP
oc new-app https://github.com/openshift/nodejs-ex -l name=nodejs-ex-app
oc expose svc/nodejs-ex
echo ""
echo "MINISHIFT REGISTRY IS:"
minishi... | true |
ca247118ab467e75ddd5b4bb4ab4d4d1a128c977 | Shell | gchen88gh/SH-projects | /a.sh | UTF-8 | 258 | 2.59375 | 3 | [] | no_license |
function curl()
{
#
echo "inside func - $0"
/usr/bin/curl $@
}
#
SERVER=srwp01abi001
/usr/bin/curl -s http://$SERVER.myweb.com/jmx-console/ | grep "$SERVER"
echo 'called by func curl'
curl -s http://$SERVER.myweb.com/jmx-console/ | grep "$SERVER"
| true |
ae8af29faad70d90788e9920250af846cd263a94 | Shell | kaneawk/oneinstack | /include/check_os.sh | UTF-8 | 4,796 | 3.28125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Author: yeho <lj2007331 AT gmail.com>
# BLOG: https://linuxeye.com
#
# Notes: OneinStack for CentOS/RedHat 7+ Debian 8+ and Ubuntu 16+
#
# Project home page:
# https://oneinstack.com
# https://github.com/oneinstack/oneinstack
if [ -e "/usr/bin/yum" ]; then
PM=yum
if [ -e /etc/yum.repos.... | true |
8b90281cc01d40a15f3a2016ee1b4d0784f6ab8f | Shell | cviorel/dotfiles-1 | /scripts/arch/install_gpu_drivers.sh | UTF-8 | 435 | 3.21875 | 3 | [
"Unlicense"
] | permissive | #!/bin/sh
set -eu
gpu_vendor="$(get-gpu-vendor)"
if
[ "$gpu_vendor" = "nvidia" ] &
[ ! -f "/etc/X11/xorg.conf.d/20-nvidia.conf" ]
then
yay -S --noconfirm nvidia nvidia-settings >/dev/null
# generate an X11 config using NVIDIA's tool
sudo nvidia-xconfig --output-xconfig="/etc/X11/xorg.conf.d/20-nvidia.conf... | true |
d99dc657ff46749a57d46b5746a13260be299602 | Shell | openshift/release | /ci-operator/step-registry/openshift-qe/router-perf/openshift-qe-router-perf-commands.sh | UTF-8 | 1,378 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
set -x
cat /etc/os-release
oc config view
oc projects
python --version
pushd /tmp
python -m virtualenv ./venv_qe
source ./venv_qe/bin/activate
ES_PASSWORD=$(cat "/secret/password")
ES_USERNAME=$(cat "/secret/username")
GSHEET_KEY_LOCATION="/ga-gsheet/gcp-sa-acc... | true |
32dab02db96d5cf9bd3f84dbbdb915bae121ce40 | Shell | Amr344/fpm-recipes | /recipes/graylog-server/files/post-uninstall | UTF-8 | 846 | 3.65625 | 4 | [] | no_license | #!/bin/sh
set -e
user="graylog"
group="graylog"
datadir="/var/lib/graylog-server"
logdir="/var/log/graylog-server"
remove_data="false"
case "$1" in
# DEB based systems
remove)
remove_data="false"
;;
purge)
remove_data="true"
;;
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
# Nothing ... | true |
2d16baf9c72b7f5b9f725deffc9b53f31d40dbcc | Shell | input-output-hk/mailchimp-subscribe | /scripts/tag_release.sh | UTF-8 | 331 | 3.453125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if [ "$CI" != "true" ]; then
echo ""
echo "Can only use the tag release script on CI"
echo ""
exit 1
fi
PACKAGE_VERSION=$(node ./scripts/getPackageVersion.js)
TAG_EXISTS=$(./scripts/tag_exists.sh v$PACKAGE_VERSION)
if [[ $TAG_EXISTS == "false" ]]; then
git tag v$PACKAGE_VERSION
git push origin... | true |
febb7545f78408552c4f2532c039c6260764f3bf | Shell | nickivanov/db2_autostart_scripts | /db2_sles | UTF-8 | 3,326 | 3.984375 | 4 | [
"Apache-2.0"
] | permissive | #! /bin/sh
#
# /etc/init.d/db2
#
#
# System startup script for the DB2 instances.
# Will start/stop whatever instances are enabled to
# start at boot time in the DB2 global registry.
# See the DB2 Information Center for the db2greg
# utility for more details.
#
# This will probably only work on SuSE Linux
#
# To insta... | true |
ee6e1dd907ead5514afb131f14e501ad66437de3 | Shell | KubaHyzicki/scripts | /cb | UTF-8 | 696 | 3.65625 | 4 | [] | no_license | #!/usr/bin/env bash
#_source
#WARNING: requires xdotool installed!!!
if [[ $1 == "--help" ]]
then #using xsel couse xclip is not working and this one requires a little more specific eval
echo "script copying input to clipboard
WARNING: requires xdotool installed!!!
to copy args type: cb \$arg1 \$arg2...
to ... | true |
72788f8d49404d3435ddd4c3950a9ff6aac4ae15 | Shell | zloyded/bash_files | /aliases/git_aliases.sh | UTF-8 | 100 | 2.640625 | 3 | [] | no_license | #!/bin/bash
TAG=$1
MESSAGE=$2
alias pushtag="git tag -a $TAG -m '$MESSAGE' && git push origin $TAG"
| true |
8ef58c883bdaa5ae9b080147f16ebd11cafe4822 | Shell | antiX-Linux/Build-iso | /Tools/installed-to-live | UTF-8 | 30,046 | 3.78125 | 4 | [] | no_license | #!/bin/bash
#
# Start:
# 1) Bind mount the bind-root
#
# General
# 2) do a bunch of bind mounts under bind-root
# (create directories and touch files as needed)
# 3) Munge files
#
# Add:
# 4) optionally do more bind mounts under ro-root
# (create directories and touch files as needed)
# Clean:
# 5) do a recursiv... | true |
10f08a3a183c68d56820ce408151ae006265967a | Shell | magos-linux/magos-linux | /make_modules/add-modules/files/patches/rootfs/rootfs/usr/lib/magos/scripts/save2module | UTF-8 | 1,168 | 3.671875 | 4 | [] | no_license | #!/bin/bash
path=/mnt/livemedia/MagOS/modules
cat /mnt/live/etc/modules | grep -q MagOS-Data && path=/mnt/livemedia/MagOS-Data/modules
zcat /proc/config.gz | grep -q SQUASHFS_XZ && MODULEFORMAT=xzm || MODULEFORMAT=lzm
ENABLE()
{
sed -i '/^SAVETOMODULE.*/d' /etc/sysconfig/MagOS
echo "SAVETOMODULE=yes" >> /etc/sys... | true |
c761b5c743e22e91040243935904c88f8130af05 | Shell | jgwerner/morehouse-outreach-notebook | /illumidesk-notebook/enable_extensions.sh | UTF-8 | 1,114 | 2.953125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
install_instructor_extensions() (
jupyter serverextension enable --sys-prefix nbgrader.server_extensions.assignment_list
jupyter serverextension enable --sys-prefix nbgrader.server_extensions.course_list
jupyter serverextension enable --sys-prefix async_nbgrader
jupyter nbextension enable -... | true |
4e31eaa97d659188932ba71aee1e44dcfe2f53ad | Shell | ArtemSharypov/4580-research-project | /firewallTestOut.sh | UTF-8 | 7,485 | 3.25 | 3 | [] | no_license | #!/bin/sh
# Run the minifirewall test suite
# Test print minifirewall
readonly TEST_PATH=/usr/src/minix/commands/minifirewall/testResults/testTerminalOutputOut.txt
readonly EXTRA_LOGS=/usr/src/minix/commands/minifirewall/testResults/extraLogs.txt
rm $TEST_PATH
rm $EXTRA_LOGS
############################################... | true |
1797fe070871366a39d9987f98503217faa6c2b5 | Shell | dlp-keynote/LC4500_PEM | /pem_install.sh | UTF-8 | 4,047 | 3.6875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Last update: 11/30/2015
#
# This script is designed to be ran on the BB from the directory where the install files are located.
# This means that the user has already pulled a copy of the install files (including this script)
# onto the BB either through git or some other means.
#
#
# This scrip... | true |
1df51904a6ee1a5783c82f3099ba05a3eefc2b21 | Shell | clownix/cloonix | /quickstart/depends_install/depend_all.sh | UTF-8 | 257 | 2.90625 | 3 | [] | no_license | #/bin/bash
set -e
LIST="lunar \
jammy \
bookworm \
bullseye \
fedora38 \
fedora37 \
centos9 \
centos8 \
tumbleweed"
for i in ${LIST}; do
echo BEGIN ${i}
./${i}
echo END ${i}
sleep 5
done
| true |
7b5550710a560e013bf77154aded2bca097c7879 | Shell | GraduationProject5/pai-algorithm-server | /pipenv_run.sh | UTF-8 | 411 | 3.140625 | 3 | [] | no_license | #/bin/sh
sleepForAWhile(){
local timeNum=$1
sleep ${timeNum} &
wait
echo "SleepForAWhile is end.timeNum:${timeNum}"
}
# 算法服务器 port:14000
nohup pipenv run python manage.py runserver 0.0.0.0:14000 > server.log 2>&1 &
# 等待10s,为了使算法服务器完全启动
sleepForAWhile 12 &
# celery 多线程
nohup pipenv run celery -A pai_... | true |
5d1ed5a099dd429b5a0042cd34ed8d2ebc1963ce | Shell | abhishekkr/dotfiles | /shell_profile/a.rtlsdr.sh | UTF-8 | 637 | 3.0625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
### quick utils for DVB-T + DAB + FM
### Play FM Radio of provided frequency
rdo-fm-play(){
if [ $# -ne 1 ]; then echo "Usage: radio_fm <FREQ>" && return 1; fi
_FREQ=$1
rtl_fm -M wbfm -f ${_FREQ}M | play -r 32k -t raw -e signed-integer -b 16 -c 1 -V1 -
}
## Play Mumbai FM stations
fm-mumba... | true |
549b3db5ea042c855e43639138a710826bded723 | Shell | gergap/tmux-imap | /scripts/mail_icon.sh | UTF-8 | 472 | 3.4375 | 3 | [] | no_license | #!/usr/bin/env bash
# script local variables
new_mail_icon="✉ "
no_mail_icon="-"
print_icon() {
local status=$1
if [ "$status" == "0" ]; then
printf "$new_mail_icon($status) "
elif [ "$status" == "N/A" ]; then
printf "#[fg=red]$new_mail_icon($status) #[default]"
else
printf "#[... | true |
b945a30d649d6d1dd069e01e12b6fd6a59f23093 | Shell | broadly/dokku | /dokku | UTF-8 | 5,715 | 3.625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -eo pipefail
shopt -s nullglob
export DOKKU_DISTRO=${DOKKU_DISTRO:="ubuntu"}
export DOKKU_IMAGE=${DOKKU_IMAGE:="progrium/buildstep"}
export DOKKU_ROOT=${DOKKU_ROOT:=~dokku}
export PLUGIN_PATH=${PLUGIN_PATH:="/var/lib/dokku/plugins"}
export DOKKU_NOT_IMPLEMENTED_EXIT=10
export DOKKU_VALID_EXIT=... | true |
022de872e50bfda986176b8c5408bb9f2452b090 | Shell | ishan747/Jetstream_Elastic_Slurm | /cron-node-check.sh | UTF-8 | 1,237 | 3.234375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
sinfo_check=$(sinfo | grep -iE "drain|down")
#mail_domain=$(curl -s https://ipinfo.io/hostname)
mail_domain=$(host $(curl -s http://169.254.169.254/latest/meta-data/public-ipv4) | sed 's/.*pointer \(.*\)./\1/')
email_addr=""
try_count=0
declare -i try_count
until [[ -n $mail_domain || $try_count -ge 10... | true |
a26637aa5f7bfa83ac6319b998a02239c20abceb | Shell | MalvinJazz/fantastic-chainsaw | /www/json/motivos/demon.sh | UTF-8 | 469 | 2.953125 | 3 | [] | no_license | #! /bin/sh
clear
for motivo in "CR" "MU" "MA" "DH"
do
echo -e "\e[31mDescargando archivo $motivo\e[0m"
wget -O "$motivo.sindepurar.json" "https://www.denunciappguatemala.com/denuncias/api/d1/motivo?tipo="$motivo | "sh"
echo -e "\e[1;32mDepurando archivo $motivo\e[0m"
perl -p -e 's/("meta"): {(\n|[^}])*},|"ca... | true |
607705d0d3a3a78efdd27bbe59e8c5ac3fa2afe6 | Shell | AlexanderMattheis/linux-enhancement-scripts | /src/services_lister.sh | UTF-8 | 357 | 3.1875 | 3 | [
"Unlicense"
] | permissive | #!/bin/bash
OUTPUT_NAME="ServicesLister.out"
# finds with 'grep' all active services, ones that are starting with '[ + ]'
# removes all '[ + ]' at the beginning with 'sed'
# removes all resulting white spaces at the beginning with 'sed'
service --status-all | grep --only-matching " \[ + \] [A-Za-z0-9\_\-]*" | sed ... | true |
385c747ecdfd6c75e5ffa79e48b0aa1fd736807a | Shell | petronny/aur3-mirror | /uqm-new/PKGBUILD | UTF-8 | 1,863 | 2.53125 | 3 | [] | no_license | # Quick note: Nearly all of the stuff in here is from the official uqm package.
# The things changed is the version, the conflicts/provides, the
# package name and adding a menu icon.
# uqm package
# Maintainer : Daenyth <Daenyth+Arch _AT_ gmail _DOT_ com>
# Contributor : wizzomafizzo <wizzomaf... | true |
c2118725785d190496d30c550b74597e4ec2fbe0 | Shell | gmlymayday/interpret | /build.sh | UTF-8 | 16,110 | 3.421875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
clang_pp_bin=clang++
g_pp_bin=g++
os_type=`uname`
script_path="`dirname \"$0\"`"
if [ "$os_type" = "Darwin" ]; then
echo "Creating initial directories"
[ -d "$script_path/staging" ] || mkdir -p "$script_path/staging"
ret_code=$?
if [ $ret_code -ne 0 ]; then
exit $ret_code
fi
[ -d "... | true |
264515e3328269515d842e665e3d563bd831f53c | Shell | learningendless/doubi | /bbr7.sh | UTF-8 | 1,771 | 3.109375 | 3 | [] | no_license | #!/usr/bin/env bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
#=================================================
# System Required: Debian/Ubuntu
# Description: TCP-BBR
# Version: 1.0.22
# Author: hombo125
# Blog: https://github.com/hombo125
#========================... | true |
43c837b2c753c59449ed3a244cf4c87186c8dc7f | Shell | NishuGoel/component-libr | /lib/cli/test/run_tests.sh | UTF-8 | 1,170 | 3.921875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# exit on error
set -e
declare test_root=$PWD
# remove run directory before exit to prevent yarn.lock spoiling
function cleanup {
rm -rfd ${test_root}/run
}
trap cleanup EXIT
fixtures_dir='fixtures'
# parse command-line options
# '-f' sets fixtures directory
while getopts ":f:" opt; do
case $opt in... | true |
7e5caa03e4c803edd1f8fd8dee8a68151b6d56ae | Shell | PonteIneptique/docview | /etc/docview-init | UTF-8 | 778 | 3.28125 | 3 | [] | no_license | #! /bin/sh
# description: Docview Start Stop Restart
# chkconfig: 234 20 80
#JAVA_HOME=/usr/java/jdk1.7.0_05
JAVA_HOME=/usr/lib/jvm/jre-1.6.0-sun.x86_64
export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH
export PATH
export USER=docview
APP="docview"
APP_PATH="/opt/webapps/$APP"
CONF=$APP_PATH/conf/prod.conf
start() {
cd $... | true |
e9726b3b8c88b7e58d9b59bab4c47a52639b376c | Shell | Jimmy-Xu/docker-hub-stat | /list_repo/run.sh | UTF-8 | 1,313 | 4.125 | 4 | [] | no_license | #!/bin/bash
# list repo by namespace with list_repo.sh
WORKER_CNT=50
SRC_BASE="../search_repo/process_result"
function show_usage(){
cat <<EOF
usage: ./run.sh <dir_name>
<dir_name>: sub_dir under ./result
eg: ./run.sh 20160111
-----------------------
[available]:
EOF
ls ${SRC_BASE}
exit 1
}
#check parameter
... | true |
d7f46c4a87a4037135f833f030644f4b0b175b17 | Shell | zablonbaraka85/cs6340 | /Assignment6/constraints/checker | UTF-8 | 975 | 3.3125 | 3 | [] | no_license | #!/bin/bash
if (( $# < 2 )); then
echo "usage: $0 modref|escape TESTCASE"
exit 1
fi
test ! -d "examples/$2" && echo "unknown example $2">&2 && exit 1
case "$1" in
modref)
echo "[+] Note: < is from reference but not yours, > is in yours but not reference"
echo "[+] modInstField"
diff sample_output/$2/m... | true |
f6b511405df8ca476761b52127a682f7b17b1853 | Shell | overo/overo-oe-natty | /recipes/keylaunch/keylaunch-conf/80chvt-SUID | UTF-8 | 600 | 3.4375 | 3 | [
"MIT"
] | permissive | #! /bin/sh
#
# Copyright Matthias Hentges <devel@hentges.net> (c) 2006
# License: GPL (see http://www.gnu.org/licenses/gpl.txt for a copy of the license)
#
# Filename: chvt-SUID.sh
# Date: 28-May-06
#
# Sets the SUID bit on chvt to allow changing to the VT from inside X by
# any user. Since a SUID binary still is a s... | true |
a1e2c28cdb113ba75c1d31252946a503fe5475e0 | Shell | gyzhangqm/CFDWARP | /tools/gitnewversion_public.sh | UTF-8 | 4,129 | 3.9375 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
filecheck=".makefile-header-default"
warppublic="../warp_public"
tmpfile="UHFGHnhKJLJGHGGHKJkljk_tmpfile_from_gitnewversion_public.txt"
command -v git >/dev/null 2>&1 || { echo "ERROR: gitnewversion_public.sh requires git but it is not installed. Aborting." >&2; exit 1; }
if [ -f "$filecheck" ]; then
... | true |
ff7447a102f33b1002b2d53c958d85f8ade69c81 | Shell | hoodielive/dconf-nfs | /2-test.sh | UTF-8 | 1,065 | 3.734375 | 4 | [] | no_license | #!/bin/bash
# Initial test
# 1. Make a list of all the users that do not have a .config/dconf file instance
for users in $(cat /var/tmp/users); do
dconf=/home/$users/.config/dconf
if [ -d "${dconf}" ]; then
echo "$users" >> /var/tmp/with_dconf_file.txt
else
echo "$users" >> /var/tmp/wi... | true |
b26dbb4d209c719f475fdab9b4f4850f154a3e7a | Shell | wang-shun/groundwork-trunk | /groundwork-monitor-os/build/master-build.sh | UTF-8 | 1,634 | 2.71875 | 3 | [] | no_license | #!/bin/bash
# description: monitor-core build script
# GroundWork Monitor - The ultimate data integration framework.
# Copyright 2007 GroundWork Open Source, Inc. "GroundWork"
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public Licen... | true |
f585af020bc9771fcb85a0ae4501b2621d4fb79c | Shell | ops-class/sys161 | /mipseb/tests/checkbin.sh | UTF-8 | 704 | 3.5 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
#
# checkbin.sh - check a mips binary for having exception handlers in the
# right place.
#
# Usage: checkbin.sh files
#
# Assumes the exception handlers are called "utlbexn" and "genexn".
# This will only fail if these symbols are present but in the wrong place.
#
mips-harvard-os161-nm -o "$@"... | true |
4224d5b810d3506bf3a3b1a37a471ffc49b83a03 | Shell | bjzq/adrv9009_fmcomms8_sync_test_bash | /dmesg_status.sh | UTF-8 | 193 | 2.640625 | 3 | [] | no_license | #!/bin/bash
file="log_dmesg.txt"
test=$(($1/3))
echo >>$file
echo >>$file
echo "test_nr: $test sample_nr: $1">>$file
echo >>$file
echo "***dmesg:">>$file
dmesg |tail -20 |grep -v axi>>$file
| true |
cae244148ebaa1e69a5d7c39de907fa414a65886 | Shell | AlexeyMK/.files | /zsh/plugins.zsh | UTF-8 | 4,141 | 2.71875 | 3 | [] | no_license | # this file uses `zplugin` to manage `zsh` plugins
#
# refs:
# - http://zdharma.org/zplugin/wiki/INTRODUCTION/
# - https://github.com/zdharma/zplugin#zplugin-wiki
# install `zplugin` if not already installed
# ref - https://github.com/zdharma/zplugin
if ! [ -d "$HOME/.zplugin" ]; then
sh -c "$(curl -fsSL https://raw... | true |
f44d24498e10cc28b51dbd16f16824d7d0bc6952 | Shell | lxy117/test | /4shell_5.sh | UTF-8 | 315 | 3.375 | 3 | [] | no_license | #!/bin/bash
for ((i=1;i<=9;i++))
do
for ((j=1;j<=9;j++))
do
if [ $j -lt $i ]
then
num=$((i*j))
echo -n $i*$j=$num$'\t'
fi
if [ $j -eq $i ]
then
num=$((i*j))
echo $i*$j=$num
fi
done
done
| true |
aed79be6e194a05b2d82069c85474a6140f5cc8b | Shell | WorkflowCenter-Repositories/Core-LifecycleScripts | /Lib-install.sh | UTF-8 | 1,013 | 3.453125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
CONTAINER_NAME=$1
Lib_URL=$2
Lib_name=$(ctx node properties lib_name)
Lib_path=$(ctx node properties lib_path)
sudo docker exec -it ${CONTAINER_NAME} test -f $Lib_path/$Lib_name || test -f $Lib_name && exit 0
set +e
Wget=$(sudo docker exec -it ${CONTAINER_NAME} which wget)
set -... | true |
750f69daf9a317d53a8509e8c6c37e829f6a401a | Shell | leoylung/misc | /.zshrc | UTF-8 | 2,197 | 2.84375 | 3 | [] | no_license | # Path to your oh-my-zsh installation.
export ZSH="/Users/leolung/.oh-my-zsh"
ZSH_THEME="leolung"
# Which plugins would you like to load?
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthous... | true |
81be1c63beceb8c41c58eb68cc73bf5a8bea07d7 | Shell | surendrabvv/hacker-rank-practice | /LinuxShell/Bash/ComputeTheAverage.sh | UTF-8 | 268 | 3.140625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
## Problem : https://www.hackerrank.com/challenges/bash-tutorials---compute-the-average/problem
readarray -t arr
count="${arr[0]}"
unset arr[0]
for value in ${arr[@]}; do
((sum+=value))
done
a="$(echo "scale=8; $sum/$count" | bc)"
printf '%0.3f\n' "$a" | true |
5f5b96624240341c870d0b452c9f2463e20bae1f | Shell | aKhalili147/Image-processing | /resize.sh | UTF-8 | 288 | 3.328125 | 3 | [] | no_license | #! /bin/sh
# move output files to folders
rm -rf resized strip
mkdir -p resized strip
for file in $(ls | grep _resized); do
mv $file resized/$file
done
for file in $(ls | grep _strip); do
mv $file strip/$file
done
./extractStrip -m $(find `pwd`/strip -iname *strip*.bmp | sort -V) | true |
15a1e9899df089bc85ec76452c2c42da1578900d | Shell | IPv6-mPvD/pvdd | /tests/pvdid-set-attribute.sh | UTF-8 | 272 | 2.875 | 3 | [] | no_license | #!/bin/sh
. `dirname $0`/check-nc.sh
if [ $# != 3 ]
then
echo "usage : $0 pvdname attrName attrValue"
exit 1
fi
{
echo PVD_CONNECTION_PROMOTE_CONTROL
echo PVD_BEGIN_TRANSACTION "$1"
echo PVD_SET_ATTRIBUTE "$@"
echo PVD_END_TRANSACTION "$1"
} | $NC 0.0.0.0 10101
| true |
7cfbb92b2192519d15391ed0ed8a6a3c859784a7 | Shell | PiyushMattoo/openshift-log-cartridge_stg | /bin/install | UTF-8 | 830 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -e
source $OPENSHIFT_CARTRIDGE_SDK_BASH
LOGSTASH_VERSION='1.5.0'
LOGSTASH_NAME="logstash-${LOGSTASH_VERSION}"
LOGSTASH_URL="https://git.labs.dell.com/projects/BD/repos/logstash-output-batched_http/browse/artifacts/${LOGSTASH_NAME}.tar.gz?raw"
cd ${OPENSHIFT_DATA_DIR}
wget ${LOGSTASH_URL}
tar -xzf ${LOGST... | true |
206b637b77ba2b50e741b2d0f14a05fd2795116a | Shell | delkyd/alfheim_linux-PKGBUILDS | /bitsquare/PKGBUILD | UTF-8 | 1,967 | 2.703125 | 3 | [] | no_license | # Maintainer: David Parrish <daveparrish@tutanota.com>
pkgname=bitsquare
pkgver=0.4.9.9.3
pkgrel=1
pkgdesc="Cross-platform desktop application that allows users to trade national currency (dollars, euros, etc) for bitcoin without relying on centralized exchanges"
arch=('any')
url="https://bitsquare.io/"
license=('AGPL... | true |
07aa49e69ed1c228ff25f6f64ed5da1948804a52 | Shell | MejiroSilence/UCLA-CS251A-Advanced-Computer-Architecture | /HW3_Gem5_Instruction_Hacking/run.sh | UTF-8 | 432 | 2.53125 | 3 | [] | no_license | #!/bin/bash
GEM5_BASE=~/gem5
TARGET=/root/gem5/configs/example/se.py
SRC_DIR=$(pwd)
rm -rf result; mkdir result
gcc -S test.c
gcc -o test test.c
cd $GEM5_BASE
build/X86/gem5.opt ${TARGET} \
--cmd=${SRC_DIR=$(pwd)}/test \
--cpu-type=DerivO3CPU \
--l1d_size=64kB --l1i_size=64kB --caches \
--l2_size=2M... | true |
00e19ca071c24eeb45ad3bf6f3e6d9f1a4d44ab3 | Shell | TrustHenry/environments | /servers/na-002/setup.sh | UTF-8 | 438 | 2.78125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
## Setup the nodes running on this server
set -xeu
set -o pipefail
SELF_PATH=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
cp -Rv ${SELF_PATH}/srv /
cp -Rv ${SELF_PATH}/../common/usr /
mkdir -p /srv/stoa/
systemctl daemon-reload
systemctl enable agora@6.service
systemctl enable agora@7.service
# systemc... | true |
b3f7eb1e4741b27fe09ef1a4a675d73e5e414024 | Shell | Clareee1/COMP2041_20T2 | /lab/lab05/snapshot-load.sh | UTF-8 | 388 | 3.296875 | 3 | [] | no_license | #!/bin/dash
snapshot-save.sh
num="$1";
echo "Restoring snapshot $num"
curr="./.snapshot.$num"
for file in *
do
if (echo "$file"|egrep "^\.">/dev/null) #ignore name starts with .
then
continue;
fi
if [ $file = "snapshot-save.sh" ] || [ $file = "snapshot-load.sh" ] || [ $file = "*" ]
then... | true |
d8bfd4dee639dfc0c10675ad9de97c861de38b9d | Shell | rishabhrbs96/slide_transition_detection | /code/convert_pdf.sh | UTF-8 | 654 | 2.96875 | 3 | [] | no_license | rm -f inter*
rm -f slide*
rm -f common*
convert -density 300 document.pdf slide%d.jpg
counter=0
pages=$(pdfinfo document.pdf | grep Pages | awk '{print $2}')
((pages--))
until [ $counter -gt $pages ]
do
#echo $counter
ffmpeg -i slide$(echo $counter).jpg -vf scale=640:360 inter$(echo $counter).jpg
#ffmpeg -i image$(echo... | true |
e4a11f7effec4f939c94dccce619d32389b63e3d | Shell | sidspencer/xmd-cli | /linux/setxmd | UTF-8 | 717 | 3.203125 | 3 | [] | no_license | #! /bin/bash
KWS="$1"
FILES=${@:2}
#if [[ $1 =~ \-\-fromtags ]]; then
#TAGS=$(/usr/local/bin/tag --list "${FILES}" | sed -E "s/.*[[:space:]]//")
#
#echo "Setting xmd from tags: ${TAGS}"
#
#/usr/local/bin/exiftool -overwrite_original_in_place -Subject="${TAGS}" -Keywords="${TAGS}" "${FILES}"
#else
... | true |
2531be38d8262ed0b588512d944f6bd0c35f4fd0 | Shell | MichaelDaum/vagrant-foswiki | /scripts/configure-postfix.sh | UTF-8 | 528 | 3.015625 | 3 | [] | no_license | echo "configuring postfix"
hostname=$1
mail_relay_host=$2
mail_root_alias=$3
domain=${hostname#*.}
postfix_conf="/etc/postfix/main.cf"
if grep -q "added by vagrant" $postfix_conf; then
echo "... already configured, skipping"
exit
fi
cat <<HERE>> $postfix_conf
### added by vagrant
alias_maps = hash:/etc/postfix/... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.