blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
69bfaa5a144d048ad96d43c0a1c876d410e6cccd | 67 | #!/bin/sh
mpic++ VectorMaxValueScatter.cpp -o VectorMaxValueScatter |
63519c172a24e1293180318c5b752b4791a455ea | 2,713 | #!/usr/bin/env bash
# Copyright Istio Authors
#
# 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 agree... |
87cb90c410a4b2e835fb06e0352682e0e55b304b | 1,867 | #!/bin/sh
set -eu
# Front jack
output_sink='alsa_output.pci-0000_09_00.4.analog-stereo'
# Screen speakers
#output_sink='alsa_output.pci-0000_07_00.1.hdmi-stereo-extra2'
# Denoised mic
mic_source='denoised'
# Raw mic
# Briste atm, need to make it a sink
# mic_sink='alsa_input.usb-Razer_Inc_Razer_Seiren_Mini_UC2045... |
af1cf3c20467d3f60b25833c203ebb5ee6e4d1cb | 28 | #!/bin/sh
# shell commands
|
c12d0e6814b505afe0297562f39bd9a7fcfff304 | 337 | #!/bin/sh
# Script to start a new textfile from template
templdir=$HOME"/docs/templates/"
if [ -z "$2" ]; then
echo "Specify template filename and new filename"
exit 0
fi
template="$templdir$1"
file=$(readlink -f "$2")
if [ ! -f "$template" ]; then
echo "Template $1 does not exist"
exit 0
fi
cp $template ... |
a2119d3f2b6e11876e433e739bbabcbd137739a3 | 340 | #!/bin/bash
PATH=$1
echo -n 'PATH: ' && echo $PATH
echo -n 'TRAVIS_BUILD_DIR: ' && echo $TRAVIS_BUILD_DIR
bundle install && \
bundle exec rake spec_clean spec_prep spec_standalone SPEC_OPTS='--format documentation' && \
bundle exec rake lint && \
puppet apply --modulepath=$TRAVIS_BUILD_DIR/spec/fixtures/modules -... |
bc0438535935f27c0912ec9e8c8a6651da163d55 | 63 |
#!/bin/sh
gunicorn project.wsgi --bind=0.0.0.0:80 --workers=3
|
90e462966db33dad88d16388892c9fb1650c8510 | 6,591 | #!/usr/bin/env bash
#----
## @Synopsis Install script for CentStorage
## @Copyright Copyright 2008, Guillaume Watteeux
## @Copyright Copyright 2008-2020, Centreon
## @license GPL : http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
## Install script for CentStorage
#----
## Centreon is developed with GPL Licence 2.0
... |
0bcd5f8a401825ebdef4bc23f11645c1c200fd68 | 600 | # Contributor: rabyte <rabyte.at.pen.dot.tj>
pkgname=deutex
pkgver=4.4.0
pkgrel=4
pkgdesc="A WAD file composer for Doom, Heretic, Hexen and Strife"
arch=('i686')
url="http://www.teaser.fr/~amajorel/deutex/"
license=('custom')
source=(http://www.teaser.fr/~amajorel/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('4c4ea0ff9e... |
ba7ab0be2c447acffa9076c120db3bac3e47c901 | 433 | #!/bin/bash
set -eux
TARPREFIX=ungoogled-chromium_$ungoog{chromium_version}-$ungoog{release_revision}_linux
CURRENTDIR=$(dirname $(readlink -f $0))
# Assume source tree is outside this script's directory
ARCHIVE_OUTPUT="$CURRENTDIR/$TARPREFIX.tar.xz"
pushd "$CURRENTDIR"
python3 -m buildkit filescfg archive -c ../chr... |
a798ae6815cf008a9adf28d3722177e51526dd2b | 246 | #!/bin/bash
function usage
{
echo "Usage: import_mangodb.sh <db name> <collection name> <import file type> <import file>"
}
if [ "$4" = "" ];
then
usage;
exit 1
fi
mongoimport --db $1 --collection $2 --type $3 --headerline --file $4
|
7adc525c6087dea8b2a4fb93f49233135aac0a9b | 45 | scala Example 15 12 36 11 22 310 311 312 313
|
11a432d3ab3ad91502bfc441c3b9ab386857df9d | 980 | #!/bin/sh -
curl "https://nordvpn.com/wp-admin/admin-ajax.php?searchParameters%5B0%5D%5Bname%5D=proxy-country&searchParameters%5B0%5D%5Bvalue%5D=&searchParameters%5B1%5D%5Bname%5D=proxy-ports&searchParameters%5B1%5D%5Bvalue%5D=&searchParameters%5B2%5D%5Bname%5D=http&searchParameters%5B2%5D%5Bvalue%5D=on&searchParamete... |
7044e935d19d93a8775f797961c0aa69f67502ab | 2,116 | #!/bin/bash
echo "===Generate a self signed certificate as the CA"
[ -f ca.crt ] || openssl req -nodes -newkey rsa:2048 -subj "/C=US/ST=State/L=Location/O=OrgName/OU=IT Department/CN=ca" -keyout ca.key -x509 -days 365 -out ca.crt
#echo "Review genrated certificate"
#openssl x509 -text -noout -in ca.crt
echo "===Gene... |
d99bd3c2cb8ea071793a7c5ce269e5c518968bed | 303 | brew install pyenv
brew install task
CFLAGS="-I$(brew --prefix readline)/include -I$(brew --prefix openssl)/include -I$(xcrun --show-sdk-path)/usr/include" \
LDFLAGS="-L$(brew --prefix readline)/lib -L$(brew --prefix openssl)/lib" \
PYTHON_CONFIGURE_OPTS=--enable-unicode=ucs2 \
pyenv install -v 3.6.8
|
02699438574843ea0a5679df1fb4dca376aff870 | 507 | #!/usr/bin/env bash
function ckcmd {
if ! command -v "$1" > /dev/null 2>&1; then
echo "Error: could not find $1"
exit 1
fi
}
function ckdeps {
ckcmd coqc
ckcmd ocamlbuild
if ! coqc --version | grep -q 'version 8.8'; then
echo "Error: bad coqc version, need Coq 8.8"
exit 1
fi
}
function c... |
e24f77d91f04bdebc1c4ead6c5039d212a1da2f9 | 766 | #!/bin/bash -f
scriptpath=$(cd $(dirname $0); pwd)
scriptname=$(basename $0)
workpath=${scriptpath}"/../work/"
cd ${workpath}
set -Eeuo pipefail
# echo "xelab -wto 1d1efad6fbde403189e27f1bc99c4126 --incr --debug typical --relax --mt 8 -L v_smpte_uhdsdi_v1_0_7 -L xil_defaultlib -L v_smpte_sdi_v3_0_8 -L unisims_ver -L un... |
5cdfb852f5fc4532ec6ed04358f4437cadab75f0 | 698 | #!/bin/sh
# clear tomcat log
tomcat_home=/opt/AIO/Service/webservice/apache-tomcat-7.0.54
filelist=`ls $tomcat_home/logs/ | grep catalina`
filecount=`ls $tomcat_home/logs/ | grep catalina | wc -l`
filelimit=15 # keep 15 files
if [ $filecount -gt $filelimit ]; then
delcount=$(($filecount-$filelimit))
i=0
for file in... |
32a33aa10345111cf3853f3926d7b47beb87cc91 | 253 | docker build -t gsandoval/aws-lambda-cpp-shim:latest ../aws-lambda-cpp-shim
docker run -ti -v `pwd`:/usr/local/app -w /usr/local/app gsandoval/aws-lambda-cpp-shim:latest bash -c "build.sh testlambda libtestlambda.so testlambda.zip"
sam local start-api |
8929ab7a63fc1f442b8c782f41ab4afdf0cd5190 | 1,240 | #!/usr/bin/env sh
# based on https://gist.github.com/cgutierrez/9c6149193b3091c7864f362b93216ac8
PROJECTS_DIR=$HOME/projects
LOG_FILE=$PROJECTS_DIR/commits.txt
AUTHOR=$(git config user.name)
# store the current dir
CUR_DIR=$(pwd)
#hey user
echo "Building your commit log from yesterday..."
cd $PROJECTS_DIR
rm -f $... |
c3b1f8932a130ed6ed89caf5bd11585422eca43d | 1,050 | echo RQ3: Comparing the unified non-expert controlled set to the unified expert gold set
echo -----------------------------------------------------------------
echo Text similarity as measured by ROUGE Scores \(comparing hypotheses to all non-empty references\):
echo
python3 ../metrics/rouge_metric.py ../datasets/pkl/u... |
a55bd45d1ac34e100b14d71b508c2b7b381dbf1b | 377 | #!/usr/bin/env bash
export AWS_ACCESS_KEY_ID=mock-key
export AWS_SECRET_ACCESS_KEY=mock-secret
export PYTHONHTTPSVERIFY=0
nohup dynalite --ssl --port 7000 &
nohup kinesalite --ssl --port 7001 --createStreamMs 100 --updateStreamMs 100 &
aws kinesis create-stream --stream-name ${STREAM_NAME} --shard-coun 1 --endpoint h... |
a0fdba82a2473762f270404ab4b1e403c71cdbf1 | 546 | #!/bin/bash
cd /usr/src/kernel/kernel-4.4
# On the stock Jetson TX2 install, there is no zImage in the boot directory
# So we just copy the Image file over
# If the zImage is needed, you must either
# $ make zImage
# or
# $ make
# Both of these commands must be executed in /usr/src/kernel/kernel-4.4
# sudo cp arch/arm6... |
435ca3e79eb2346da97c4f745c43b539ebcf00b2 | 1,092 | #!/usr/bin/env bash
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... |
6b5dfffde14d1126e19e81f1a6f399fe1dad86d8 | 53 | echo "- 'Hola Mundo cruel!'"
echo "- 'Hola pringao'"
|
dec8788ff5b17b683494880116d5c32fab20dcff | 168 | #!/bin/bash
grep -v '\/\/!' ./src/lib.rs > temp && mv temp ./src/lib.rs
sed 's|^|//! &|' ./README.md > temp
cat temp ./src/lib.rs > temp2
mv temp2 ./src/lib.rs
rm temp |
3a36db46198f21269e57040ed0ce0d32c285f968 | 973 | #!/bin/bash
D=Debian/renaconf/files
echo "remove old package files"
rm -f ./Debian/*.deb
rm -f ./Debian/renaconf/debian/renaconf/usr/bin/AN1310cl
rm -f ./Debian/renaconf/debian/renaconf/usr/bin/wch6474
rm -f ./Debian/renaconf/debian/renaconf/DEBIAN/control
rm -f ./Debian/renaconf/debian/renaconf/DEBIAN/md5sums
rm -f ./... |
686acc299ae0b6c76fd5711840dc9b1efd04ae18 | 98 | #!/bin/bash
pg_dump -h 192.168.0.105 -p 5432 -U postgres -W -d blockchain > backups/blockchain.sql |
f465dc75bcca2655003906c1b84abdceeb1eb6cf | 1,654 | #!/bin/bash
# todo program
# Manage a simple todo list in the terminal
# John Craffey
# 8-8-2019
# Create the todo list file if not created yet
if ! test -e "todo.txt"; then
echo "### todo list ###
" > todo.txt
fi
# Check argument validity
arg1=$1
if [[ $arg1 != "add" && $arg1 != "list" && $arg1 != "complete" \
... |
e3fbce89d8a686d31319bfe5a509c44876c4d128 | 95 | #!/bin/bash
set -e
# build
cd mozilla/mozilla-central/tree
hg pull && hg update
./mach build
|
d9beae409c601c709c0f7381312b4ffe12b98a9d | 200 | #!/bin/bash
PW=$1
./clean-all.sh
./root-ca.sh "${PW}"
./client.sh secure-cert-registry "${PW}"
./client.sh secure-cert-client1 "${PW}"
./client.sh secure-cert-service1 "${PW}"
# ./import.sh "${PW}"
|
85369c2103ca6188d2a7f3a2232650f5fc3a93d1 | 2,059 | #!/bin/bash
cd csssvr_main/bin/domestic
./start.sh
sleep 1
svr_count="`ps -ef|grep csssvr_main|grep -v 'grep'|wc -l`"
if [ $svr_count -gt 0 ]
then
echo "csssvr_main is start! `date`"|tee -a /var/log/message
else
echo "csssvr_main is start failed! `date`"|tee -a /var/log/message
fi
cd -
cd fleetsvr_main/bin/... |
91d9552e9d4a870f448841d8fdaa6b947d5f2925 | 1,724 | #!/bin/bash
# -------------------------------
# ----------- CONFIG ------------
# Set Database Information here
DB_USER="root"
DB_PSWD="PASSWORD_VERY_SECRET"
DB_HOST="127.0.0.1"
PATH_TO_BACKUP_FILES="mysql_backups/path/to/dumps"
# -------------------------------
# -------------------------------
# -----------------... |
56bb976bbebf2c54bd1b32648b1860494f3ceb38 | 534 | clear
cd ~/Desktop/Stocks
echo "$(tput setaf 2)[System]$(tput sgr0) Starting a.sh"
echo "$(tput setaf 2)[System]$(tput sgr0) Press Any Key to exit"
while [ true ] ; do
read -t 1 -n 1
if [ $? = 0 ] ; then
echo ""
echo "$(tput setaf 2)[System]$(tput sgr0) pull.sh stopped by user"
exit ;
else
cd L... |
72a5387c11979ca3680e029bde1f3430399064e3 | 371 | [ -z "$PS1" ] && return
HISTCONTROL=$HISTCONTROL${HISTCONTROL+:}ignoredups
HISTCONTROL=ignoreboth
shopt -s histappend
shopt -s checkwinsize
PS1='\[\033[01;31m\]\h\[\033[01;34m\] \w #\[\033[00m\] '
PS1="\[\e]0;\u@\h: \w\a\]$PS1"
alias ls='ls --color=auto -B --group-directories-first --hide="NTUSER*" --hide="ntuser*"... |
7ea1e81950e794dd89499e80f111516c207185b9 | 728 | #!/bin/bash -
#===============================================================================
#
# FILE: install.sh
#
# USAGE: ./install.sh
#
# DESCRIPTION:
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Karl Zheng (), ZhengKarl#gmail.com
... |
b6c9693fb85de6087224ea83e69ffeab58e08199 | 18,969 | #!/bin/bash
# ~/unix_settings/.my.bashrc Customized bash script for multiple computers
# BASHRC_ENV tells .my.bashrc which environment we are in
#export BASHRC_ENV=mac
# Source users personal .my.bashrc if it exists.
#if [[ -f ~/unix_settings/.my.bashrc ]]; then
# . ~/unix_settings/.my.bashrc
#fi
# If n... |
e7281e306f109ed94becd2bc9dec5161469189ce | 1,730 | #!/bin/bash
# 本脚本是部署工作的启动脚本。
# 工作起点是已登录控制机,安装包已拷贝至控制机。已取得集群所有节点的主机IP及root密码。
# 控制机工作目录,缺省是本启动脚本所有目录。
readonly MASTER_ROOTPATH=$(cd `dirname $0`; pwd)
echo "Master Root Path: " $MASTER_ROOTPATH
SCRIPT_NAME=`basename $0`
cd $MASTER_ROOTPATH
. ./scripts/utils.sh
. ./config.sh
. ./scripts/cmd_base.sh
. ./scripts/cmd_ss... |
48166fed5538684d2d0d59d8d1c8355c17cae6e0 | 85 | say "tick fucking tock"; open http://0.0.0.0:8000 ; python2.7 -m SimpleHTTPServer
|
bfbb70ae175b56159845e6aacffe3bedb8300653 | 1,295 | #!/bin/bash
#
# Helper script to gather all git log messages from the last tag
# and construct a preliminary RELEASE file for the release.
#
# Assumes the new release from the VERSION file.
#
if [ ! -e RELEASE ]; then
echo "Unable to locate RELEASE file, is your working dir the top level of the repo"
exit 1
fi
ech... |
29f31d746427f4231eb539517943f929fb67889e | 28 | #!/bin/bash
pwd
./coord.exe |
ab16568190e2d448e575f21eabaeec9f4bd521ba | 754 | #!/bin/sh
signal_exit()
{
#send signal that we are done
scripts_signal 0
if [ -n "$1" ]; then
exit $1
else
exit 0
fi
}
if [ $# -lt 1 ]; then
signal_exit 1
fi
CMD="$(echo $*|tr -s ' ')"
while [ -n "$CMD" ]
do
SCRIPT="$(echo $CMD|cut -d' ' -f1)"
case "$S... |
4d37fddd957cde4d49f888403760f2294d37c578 | 173 | #!/bin/sh -eux
rm -rf /dev/.udev/ /var/lib/dhcp/*;
# Adding a 2 sec delay to the interface up, to make the dhclient happy
echo "pre-up sleep 2" >> /etc/network/interfaces
|
b1b830ed9cdfc1cd79b3f4e0ba82f5689bfe1d38 | 77 | /home/danieltc/xihelm/test_ws/devel/.private/catkin_tools_prebuild/setup.bash |
f95bd516d1f12ddbdfa67b11b53f629772b2f745 | 2,570 | #input files with columns [target, POS, t]. Save as targets.csv in the corresponding dataset folder (data/WSE or data/HW). t expresses time of change.
folder_hw="data/HW+"
folder_hw28="data/HW"
folder_wsct="data/WSCT"
folder_logs="data" #for extra output, for reference
hw_input="$folder_hw/sourcedata.csv"
wsct_input="... |
a7a764cbe2319c999252b68f02a42698de0e13b0 | 693 | #!/bin/sh
filename='./nifi/node_list.txt'
cat ./nifi.yaml > tmp_nifi.yaml
node_count=1
while read line; do
sed "s/dns_name_of_server_nifi_$node_count/dns_name_of_server/g" tmp_nifi.yaml > tmp_nifi1.yaml
sed "s/service_name_nifi_$node_count/service_name/g" tmp_nifi1.yaml > tmp_nifi2.yaml
sed "s/hostname_nifi_$no... |
f0e1b98816e10a33b1673c257037dbddef9e8d49 | 746 | #!/usr/bin/env bash
# configurirng my HTTP Header of the 2 servers
sudo apt-get update
sudo apt-get install -y nginx
sudo mkdir -p /var/www/html
sudo touch /var/www/html/index.html
echo "Holberton School" > /var/www/html/index.html
sudo touch /var/www/html/404.html
echo "Ceci n'est pas une page" > /var/www/html/404.ht... |
2b07f2c8bd2e463144851b901c618cfb3db72864 | 545 | #!/bin/bash
# Fail if any command fail
set -e
# Load the shared provisioning script
source ./deploy_shared.sh
# Load flink setup parameters
source ./flink_shared.sh
# Deploy files
chown flink:flink -R files/*
mv files/KafkaHbaseBridge.jar $FLINK_INSTALL_DIR
# mv files/FakeTwitterProducer.jar $FLINK_INSTALL_DIR
mv f... |
9dc8ec6917b6844f27b4b2a1c77e0e2c9d877cf6 | 338 | # ZSH History Substring Search plugin - https://github.com/zsh-users/zsh-history-substring-search
source "${HOME}/.zsh/vendor/zsh-history-substring-search/zsh-history-substring-search.zsh"
# Fuzzy search "curl http" matches "curl -vI http://caius.name/"
export HISTORY_SUBSTRING_SEARCH_FUZZY=1
bindkey '^R' history-su... |
2ac759c4d86bbabacc4fba7e6523959577b837ec | 592 | #!/usr/bin/env bash
# exit on error
set -o errexit
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install --force-reinstall -U setuptools
python manage.py collectstatic --no-input
python manage.py makemigrations
python manage.py migrate
#python manage.py starter --usernam... |
ed52aecae3cf96a64ddb7bbedaebeb7454e42c74 | 30 | docker login --username asure
|
119adce4eac096643356f3a7d7dc5899a43adca3 | 391 | #!/bin/bash
set -eu
{% set admin_password = pillar['ukhasnet']['influxdb']['admin_password'] %}
{% set databases = pillar['ukhasnet']['influxdb']['databases'] %}
mkdir -p /tmp/influx-backups
chmod 700 /tmp/influx-backups
{% for database in databases %}
influxd backup -database {{ database }} /tmp/influx-backups
{% e... |
566505a88ea9e56e12ea137df544076586268b09 | 281 | #!/bin/sh
SUFFIX=$2
TAG="latest"
IMAGE_NAME="app_${SUFFIX}:${TAG}"
case "$1" in
build)
docker build -f Dockerfile-${2} -t $IMAGE_NAME .
;;
push)
docker push $IMAGE_NAME
;;
*)
echo $"Usage: $0 {build|push}"
exit 1
esac
|
3323a7d64978b436533a5ced9391434c44f723de | 249 | #!/bin/bash -xe
yum update -y
yum install -y ruby wget
cd /home/ec2-user
wget https://aws-codedeploy-${region}.s3.${region}.amazonaws.com/latest/install
chmod +x ./install
./install auto
service codedeploy-agent start
service codedeploy-agent status |
01c946b91c90b5ec9067276fe85abd482a7584e5 | 1,074 | #!/bin/bash
#==============================================================================
# DISCRIPTION: Test script is test to 'touch' command.
# In test script 'touch' command used to check timestamps of a sample.txt file
# The sample.txt file is created with size is 0 byte
#==============... |
4abe1f0f66471158710f75b0a0725ffc445b3291 | 2,569 | # cy-翻金斗
H5_SERVER_NAME=h5.thefjdou.net
H5_PROXY_HOST=http://127.0.0.1:5806
ONLINE_SERVICE_SERVER_NAME=online-service.thefjdou.net
ONLINE_SERVICE_PROXY_HOST=http://online-service.hk.5.inhosts.net:5892
ONLINE_SERVICE_PROXY_HOST_2=http://online-service.hk.5.inhosts.net:2020
API_1_SERVER_NAME=api.1.thefjdou.net
API_1_P... |
8e560606432fd359db59ec0b84304b4b4623ade9 | 3,297 | #!/bin/bash
set -eu
NEWLINE=$'\n'
HERE="$(dirname "$(readlink -f "$BASH_SOURCE")")"
SELIGIMUS="$(realpath "${HERE}/..")"
DISTRIBUTION_DIRECTORY="${SELIGIMUS}/dist"
# Find all source distributions in the distribution directory.
VERSION_FILE="${SELIGIMUS}/VERSION.txt"
VERSION="$(cat "${VERSION_FILE}")"
SOURCE_DISTRIB... |
8ae37918ed5bea47b123f6a3590c4328b2e7db1a | 109 | #!/bin/sh
sleep 2
# Start Squid
echo "Starting Squid"
#svwaitup 10 /service/openvpn || exit 1
exec squid -sN
|
9c1454abd90dbd4c003192e875a01afde3d51896 | 457 | export PS1="\e[1;92m\u@(\W): \e[m"
# export PS1="#~: "
# export PS2="root@#~: "
# export PS1="\e[0;92m[\u@\h \W]\$ \e[m"
# export PS1="________________________________________________________________________________\n| \w @ \h (\u) \n| => "
# export PS2="| => "
# export PS1="{\u}#~: "
# Standard mac export path f... |
3b6c208935548fb96064e671f169132777ed71fc | 458 | #! /bin/bash
echo "Creating subscription for ${1}"
ARN=`aws sns create-topic --name team0-cloudtrail-alerts --profile lambdasharp | jq -r '.TopicArn'`
echo "Created ${ARN}"
aws sns subscribe --topic-arn ${ARN} --protocol sms --notification-endpoint ${1} --profile lambdasharp
aws iam put-role-policy --role-name clou... |
891ef5a2a089a40cb0b9e4c781f2064cc94956bc | 25 | ../debian-8/php-xdebug.sh |
425bb56aebacd9f9b3dbe8e1b56546a244acb3a8 | 187 | #!/bin/bash
for fn in $@; do
echo "scanning $fn"
echo "Starting WHOIS $fn" | tee -a "index/$fn.txt"
whois $fn | grep 'Abuse\|abuse\|NetName\|descr:\|Org' | tee -a "index/$fn.txt"
done
|
3c07bdc5740c10099d74a2acb4338a6f50e6ae20 | 134 | #!/bin/sh # for syntax highlighting
# Add project-root javascript tools (serverless) to PATH
yarn install
PATH_add node_modules/.bin
|
63c3821ac22552f6cfba58cb9246ff1433fa6c8c | 614 |
#!/bin/bash
# rapid CLI oneliner log inspection inside all log files
# Lookig for keywords "fail", "error", "unable", "warning".
# Ref: https://raw.githubusercontent.com/AJNOURI/COA/master/misc/oneliner_log_inspection.sh
#################################################### GUIDE####################
# Go lenh voi cac ... |
a25925e3ca923a0a56fe36a89878131ca38a59a3 | 209 | #!/bin/sh
# Fulfill AFMAN 33-223, section 5.5.2, and UNIX SRG rules GEN000452 and
# GEN000454.
text="`/usr/sbin/loginhistory $LOGNAME`"
[[ "$text" =~ \! ]] && sw=--error || sw=--info
zenity $sw --text="$text"
|
f70705edb326dc934ff51589c3bf67520c269d81 | 353 | #!/bin/bash
#统计系统里有多少个普通用户
#user=`cat /etc/passwd |awk -F ':' '{print $3}'`
#n=0
#for i in $user;do
# if [ $i -ge 1000 ];then
# n=$[$n+1]
# fi
#done
#echo $n
#简化版:
n=`awk -F ':' '$3>=1000' /etc/passwd |wc -l`
if [ $n -gt 0 ];then
echo "普通用户有:$n"
else
echo "没有普通用户"
fi
|
a8cdc40147ce9edb6cc35ae44a52a22429bd67c3 | 426 | #/bin/sh
set -ex
# install some tools
sudo yum install -y epel-release git vim gcc glibc-static telnet
# open password auth for backup if ssh key doesn't work, bydefault, username=vagrant password=vagrant
sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
sudo systemctl resta... |
8007b3302a6973430894996c64e3041d1f9d81b4 | 2,516 | #!/bin/bash
logfile=tests.comments
function die {
echo "$*"
exit 1
}
tn=1
function makeTest
{
fn=`printf "%02d" $tn`
echo $fn : $*
echo $fn : $* >> $logfile
$* > $fn || exit
let tn=$tn+1
}
function compile
{
echo compile $1
g++ -O2 -Wall $1.cpp -o $1.exe || exit
}
compile gen_rand
compile gen_ra... |
e0aa0a2d6b9c315224063c364d2bb56e838fdcdc | 344 | #!/bin/bash
IFS=$'\n'
count=`find . -name \*Main.class | wc -l`
if ((count == 0)); then
echo "Main file not found!"
exit 1
elif ((count > 1)); then
echo "Too many main files!"
find . -name \*Main.java -printf " %p\n"
exit 1
fi
main=`find . -name \*Main.class | sed 's/.class//g' | sed 's/^.\///1'`
c... |
85829d575e66bdbc100144bc90ca6e5f4e6b7401 | 8,239 | source /opt/utils/script-utils.sh
setup_conda() {
wget -qO- "https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-$(arch).sh" -O /tmp/conda.sh \
&& bash /tmp/conda.sh -f -b -p /opt/conda \
&& conda config --system --prepend channels conda-forge \
&& conda config --system --set auto_update_co... |
7e5c96c126b425b245ddd890d842a788514841af | 31 | source "$HOME"/.profile.global
|
0190698a613e150a22883a13f414792c082db6f4 | 471 | #!/usr/bin/env zsh
BINARY="starship"
WORK_DIR=/tmp/dotfiles-${BINARY}-${USER}
if [ ! -x "${LOCAL_BIN}/${BINARY}" ]; then
mkdir -p ${WORK_DIR}
pushd ${WORK_DIR}
curl -O https://starship.rs/install.sh
chmod +x install.sh
./install.sh -b ${LOCAL_BIN} -f
popd
rm -rf ${WORK_DIR}
fi
#
mkdir -p ${LOCAL_CONF... |
643b1b8fcc184ba791d1ab8c7ed02e0637cce5cc | 62 | #!/bin/sh
cd ~/.mercatum/data/openconcerto/
./OpenConcerto.sh |
4496fb5f290ae9a68996dcc7f28573688cdfcef9 | 249 | echo "Do you want to see content of current catalog (Yes/No)?"
read ANS
if [ $ANS == "Yes" ]
then
ls
fi
if [ $ANS == "No" ]
then
echo "Enter catalog"
read CAT
if [ -e $CAT ]
then
echo $(ls ${CAT})
else
echo "Catalog doesn't exist"
fi
fi
|
33fdbcc6da37577582b25f547685071c1c9e712c | 11 | a
| b
|
01a0f1db59b04786045a918467dc322f13b63501 | 121 | scp root@192.168.1.20:/usr/local/bin/docker-compose /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
|
045c5e31529dcea0cb76e577edb4a578d548f623 | 591 | #!/bin/bash
# usage: ./this 10-10, to build the heat-map around pixel (10, 10)
base="$1"
# 3 | 0
# -----
# 2 | 1
tac debug/$base-0 > heat-0
cp debug/$base-1 heat-1
cat heat-0 heat-1 > heat-right
tac debug/$base-3 > heat-3
cp debug/$base-2 heat-2
cat heat-3 heat-2 > heat-left-flipped
awk '{ for(i=NF; i>0; i--) ... |
ba89c269834839245ed178e4274924aba2de8be8 | 368 | gmsgenus.run /home/hpc/mpwm/mpwm031h/bachelor-thesis/SampleRun_Environment/600Scens/tol05/Scenario4/225c/ /home/hpc/mpwm/mpwm031h/bachelor-thesis/SampleRun_Environment/600Scens/tol05/Scenario4/ $1 /home/hpc/mpwm/mpwm031h/bachelor-thesis/SampleRun_Environment/600Scens/tol05/Scenario4/225c/gamscntr.dat /home/woody/mpwm/s... |
cc35342935d7e014e041550487e3d0aa84a92862 | 387 | # This is an example where you can store your environment variables.
# It uses `react-native-dotenv` as a babel transform.
#
# Then just do this to import them:
# import { API_URL } from 'react-native-dotenv'
API_URL=https://myapi.com
IG_APP_ID=761781137582854
IG_APP_SECRET=fc911e0ed7d207d5c6eb2c6bab039efa
IG_REDIRECT... |
591cb81e9c391700ad1969ec4cb877e074a470b0 | 1,929 | #!/bin/bash
export PATH=/opt/taobao/install/node.js/bin:/bin:/usr/bin:$PATH
cd `dirname $0`/..
BIN_HOME=`pwd`
echo ${BIN_HOME}
BASE_HOME=${BIN_HOME}
PROJECT_NAME=`basename ${BASE_HOME}`
PROJECT_ROOT=${BASE_HOME}
PROJECT_START=bin/app.js
NODEJS_BIN=node
STDOUT_LOG=${BASE_HOME}/../log/nodejs.log
ulimit -c unlimited
ex... |
bc91de3517eccaf6aa316a3ed191fa0338543f51 | 1,913 | #!/bin/bash
# Bash has effectively two methods very similar to Java's String.substring() method.
# In Java their signatures would be similar to:
#
# /** start at beginIndex and return the remaining characters **/
# public String substring(int beginIndex)
#
# /** start at beginIndex and return the next N characters ... |
efb37ffd3594050417d6fcea8a57068ea85ea30c | 78 | #!/bin/bash
rm -r faust/SimulatorAudioEngine.app
cd udp2osc
make clean
cd ..
|
a02d07ad8fbb3fb585c17957d1da36c3f0aeeea2 | 1,067 | RANGE="10K-100K_1K-1M"
#RANGE="5M_1M"
DEVICE_NAME="GTX285"
POST="$RANGE.$DEVICE_NAME"
export DEVICE=0
./b_search_cuda.sh > b_search_cuda-$POST.txt
./sort_b_search_cuda.sh > sort_b_search_cuda-$POST.txt
./i_gm_b_search_cuda.sh > i_gm_b_search_cuda-$POST.txt
./i_sm_b_search_cuda.sh > i_sm_b_search_cuda-$POST.txt
./t_gm_b... |
8fb2fda3f7f8e19b93311068ac121f0858d5e4f2 | 167 | expect -c '
spawn /opt/fuse.6.2.1-084/bin/client -r 60
expect "root>"
send "container-list\r"
expect "root>"
send "stop-all\r"
expect "root>"
send "exit\r"
interact
'
|
f6e4b426af4a0e52d3a9f40da8711be2284ed1ca | 5,465 | #!/bin/sh
################################################################################
# Name : ScriptTemplate.sh #
# Author : Kundan Chaulya #
# Description : ... |
684d8851aea264433543e5905cf69c3d5ec97933 | 166 | cd
wget http://archive.apache.org/dist/thrift/0.9.2/thrift-0.9.2.tar.gz
tar xzf thrift-0.9.2.tar.gz
cd thrift-0.9.2
./configure
sudo make install -j
cd lib/java;
ant
|
aed78d1001fdbe79584a64a6a76f313406cce6e0 | 216 | #!/usr/bin/env bash
apt-get install -y php5
apt-get install -y php5-intl
apt-get install -y php5-curl
apt-get install -y php5-gd
apt-get install -y php5-ldap
apt-get install -y php5-sqlite
apt-get install -y php-apc |
e15cb00300e8310adbacaf1a326c2bae1ba44164 | 2,506 | #!/bin/bash
load_env() {
set +x
shopt -s nullglob
set -- /usr/local/share/env/*
if [ "$#" -gt 0 ]; then
for file in "$@"; do
# shellcheck source=/dev/null
source "${file}"
done
fi
}
get_user_home_directory() {
local USER="$1"
if [ -z "$USER" ]; then
return 1
fi
getent passwd ... |
7b2bf48c65c68c3928ecb37c53349281830f9549 | 61 | #!/usr/bin/env bash
set -e
bin/bundle exec rspec
yarn test
|
cbfc9ef29d32ebb8d8567810cde93c4bb299796c | 1,584 | #!/usr/bin/env bash
set -eo pipefail
install() {
local install_type="$1"
local version="$2"
local install_path="$3"
local download_url=$(get_download_url $version)
local download_tmp_dir=$(get_tmp_dir)
local download_file_name=$(get_download_file_name $version)
curl -Lo $download_tmp_dir/$download_fil... |
e2a3af78a277fd02563a6da5ed930f5be143fddd | 195 | #!/bin/bash
mvn clean
mvn antlr4:antlr4
mvn package
java -cp target/sc-dsl-1.0-jar-with-dependencies.jar org.nlamah.QL.QL
java -cp target/sc-dsl-1.0-jar-with-dependencies.jar org.nlamah.QLS.QLS
|
356a2679073c5d133f3bfddf65f9ecaf317678ff | 232 | read x; read y; read z;
if [ $x -eq $y ]; then
if [ $y -eq $z ]; then
echo "EQUILATERAL";
else echo "ISOSCELES";
fi;
else
if [ $y -eq $z ] || [ $x -eq $z ]; then
echo "ISOSCELES";
else
echo "SCALENE";
fi;
fi;
|
95965ff16945621ff9c650de452a0d7d20fc4ff5 | 95 | if [ ! -n "$CXX" ]; then
CXX=g++
fi
$CXX test/test.cpp -Iinclude -Llib -labstractalgorithm |
83d716354127ecd35e3b4ed166c3852d00d606bd | 84 | REACT_APP_API_ENDPOINT= http://private-8e8921-woloxfrontendinverview.apiary-mock.com |
24072bf694c403e547d5718d41cef7b60ae064b5 | 61 | #!/bin/bash
DEF_APP_VERS="gogs-0.9.115.vers"
REC_DIR="zeta"
|
4aa5cbba21afa7b28df7afd6fda6ecfbb6af4084 | 47 | #!/bin/bash
ext4 --help &> ../two-log/ext4.log
|
8076b1789b0c12cc12427052c3f4ddd8cfb982cf | 43 | #!/bin/sh
docker stop solr
docker rm solr
|
d997e908e2c7da824df2afd0da68659ffe14c1e8 | 79 |
#!/bin/sh
mkdir -p build
cd build
cmake -GNinja -DCMAKE_BUILD_TYPE=Debug ..
|
85bd6266e6b0aac2ec5169e68e65bf333b64ddeb | 310 | xcord=$(xdotool getmouselocation --shell | awk -F '=' '{print $2; exit}')
if [[ "$xcord" > 2560 ]]
then
maim -f png -u -g 2560x1440+2560+0 screenshots/$(date +'%y-%-m-%-d_%-T')mon2.png
else
maim -f png -u -g 2560x1440+0+0 screenshots/$(date +'%y-%-m-%-d_%-T')mon1.png
fi
sleep 1;
dunstify "screenshot taken"
|
837684c4414bf21a7de2b6ab98ceeee63fb45618 | 41 | #!/bin/bash
cd ~
ls */*/*.[ch]*
exit 0
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.