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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
980e1516fdac1e3bf1b6db9afcd3451809ed458e | Shell | UHH2/UHH2 | /scripts/install.sh | UTF-8 | 6,339 | 3.609375 | 4 | [] | no_license | #!/usr/bin/env bash -e
# might be usefull to call
#
# export CMSSW_GIT_REFERENCE=<DIRECTORYWITHENOUGHSPACE>/cmssw.git
#
# before running this script
# Create default make args for parallel jobs
if [ -z "$MAKEFLAGS" ]
then
np=$(grep -c ^processor /proc/cpuinfo)
let np+=2
# Be nice on shared machines, don't take up all the cores
limit="12"
if [[ "$np" -gt "$limit" ]]
then
np=$limit
fi
export MAKEFLAGS="-j$np"
fi
getToolVersion() {
# Get CMSSW tool version using scram
# args: <toolname>
local toolname="$1"
scram tool info "$toolname" | grep -i "Version : " | sed "s/Version : //"
}
setupFastjet() {
FJVER="$1"
FJCONTRIBVER="$2"
echo "Setting up fastjet $FJVER and fastjet-contrib $FJCONTRIBVER"
FJINSTALLDIR="$(pwd)/fastjet-install"
# Setup fastjet & fastjet-contrib
mkdir "${FJINSTALLDIR}"
# For normal fastjet
# NB use curl not wget as curl available by cvmfs, wget isnt
# curl -O http://fastjet.fr/repo/fastjet-${FJVER}.tar.gz
# tar xzf fastjet-${FJVER}.tar.gz
# cd fastjet-${FJVER}
# Use the CMS version of fastjet as thread-safe
git clone -b cms/v$FJVER https://github.com/UHH2/fastjet.git
cd fastjet
autoreconf -f -i # needed to avoid 'aclocal-1.15' is missing on your system
# Optimisation flags same as in CMSSW
# But not -fffast-time as fails Nsubjettiness checks
FJCXXFLAGS="-O3 -Wall -ftree-vectorize -msse3 -fPIC"
./configure --prefix="${FJINSTALLDIR}" --enable-atlascone --enable-cmsiterativecone --enable-siscone --enable-allcxxplugins --enable-pyext --disable-auto-ptr CXXFLAGS="${FJCXXFLAGS}"
make $MAKEFLAGS
# make check # fails for siscone
make install
cd ..
# Add fastjet-config to PATH
export PATH="${FJINSTALLDIR}/bin":$PATH
# For normal fastjet-contrib
# curl -O http://fastjet.hepforge.org/contrib/downloads/fjcontrib-${FJCONTRIBVER}.tar.gz
# tar xzf fjcontrib-${FJCONTRIBVER}.tar.gz
# cd fjcontrib-${FJCONTRIBVER}
# Use the CMS version of fastjet-contrib as thread-safe
git clone -b cms/v$FJCONTRIBVER https://github.com/UHH2/fastjet-contrib.git
cd fastjet-contrib
# add HOTVR from github
# really should do it from SVN, but currently doesn't allow anonymous access
# do it this way until it becomes a proper contrib
git clone https://github.com/UHH2/HOTVRContrib.git HOTVR/
# although we add fastjet-config to path, due to a bug we need to
# explicitly state its path to ensure the necessary fragile library gets built
./configure --fastjet-config="${FJINSTALLDIR}/bin/fastjet-config" CXXFLAGS="${FJCXXFLAGS}"
make $MAKEFLAGS
make check
make install
# the fragile libs are necessary for CMSSW
make fragile-shared
make fragile-shared-install
cd ..
}
checkArch() {
# Check if this machine is compatible, because at DESY the default is SL6,
# whereas we need EL7
# Note that lxplus machines have uname e.g. 3.10.0-1062.4.1.el7.x86_64
# so just checking for el7 is OK
# To complicate matters, we need to handle gitlab CI as well,
# however there uname is useless, it just gives e.g. 4.19.68-coreos.
# Instead we must rely on the IMAGE variable that we set in .gitlab-ci.yml
# (yes that is a horrible dependence)
if [ -n "$IMAGE" ]
then
# here is on gitlab CI
if [[ "$IMAGE" != *cc7* ]]; then
echo "This release requires a CC7 image"
echo "Please update .gitlab-ci.yml and/or testPR.sh and run this again"
exit 1
fi
else
# here is normal running e.g. on NAF
KERNEL=$(uname -r)
if [[ "$KERNEL" != *el7* ]]; then
echo "This release requires an EL7 machine, e.g. naf-cms-el7.desy.de"
echo "Please log into one and run this again"
exit 1
fi
fi
}
source /cvmfs/cms.cern.ch/cmsset_default.sh
# Get SFrame, do not compile it until we have the right ROOT etc
time git clone https://github.com/UHH2/SFrame.git
# Get CMSSW
export SCRAM_ARCH=slc7_amd64_gcc700
checkArch
CMSREL=CMSSW_10_6_28
eval `cmsrel ${CMSREL}`
cd ${CMSREL}/src
eval `scramv1 runtime -sh`
# Install FastJet & contribs for HOTVR & XCONE
cd ../..
FJVER="3.3.0"
FJCONTRIBVER="1.033"
time setupFastjet $FJVER $FJCONTRIBVER
cd $CMSSW_BASE/src
time git cms-init -y # not needed if not addpkg ing
# Necessary for using our FastJet
time git cms-addpkg RecoJets/JetProducers
# For JetCorrector, JetResolution objects
time git cms-addpkg CondFormats/JetMETObjects
time git cms-addpkg JetMETCorrections/Modules
# Update FastJet and contribs for HOTVR and UniversalJetCluster
FJINSTALL=$(fastjet-config --prefix)
OLD_FJ_VER=$(getToolVersion fastjet)
FJ_TOOL_FILE=$CMSSW_BASE/config/toolbox/$SCRAM_ARCH/tools/selected/fastjet.xml
sed -i "s|/cvmfs/cms.cern.ch/$SCRAM_ARCH/external/fastjet/$OLD_FJ_VER|$FJINSTALL|g" "$FJ_TOOL_FILE"
sed -i "s|$OLD_FJ_VER|$FJVER|g" "$FJ_TOOL_FILE"
OLD_FJCONTRIB_VER=$(getToolVersion fastjet-contrib)
FJCONFIG_TOOL_FILE=$CMSSW_BASE/config/toolbox/$SCRAM_ARCH/tools/selected/fastjet-contrib.xml
sed -i "s|/cvmfs/cms.cern.ch/$SCRAM_ARCH/external/fastjet-contrib/$OLD_FJCONTRIB_VER|$FJINSTALL|g" "$FJCONFIG_TOOL_FILE"
sed -i "s|$OLD_FJCONTRIB_VER|$FJCONTRIBVER|g" "$FJCONFIG_TOOL_FILE"
FJCONFIG_ARCHIVE_TOOL_FILE=$CMSSW_BASE/config/toolbox/$SCRAM_ARCH/tools/selected/fastjet-contrib-archive.xml
sed -i "s|/cvmfs/cms.cern.ch/$SCRAM_ARCH/external/fastjet-contrib/$OLD_FJCONTRIB_VER|$FJINSTALL|g" "$FJCONFIG_ARCHIVE_TOOL_FILE"
sed -i "s|$OLD_FJCONTRIB_VER|$FJCONTRIBVER|g" "$FJCONFIG_ARCHIVE_TOOL_FILE"
scram setup fastjet
scram setup fastjet-contrib
scram setup fastjet-contrib-archive
# fetching Egamma POG postrecotools
# twiki: https://twiki.cern.ch/twiki/bin/view/CMS/EgammaUL2016To2018
time git cms-addpkg RecoEgamma/EgammaTools
time git clone https://github.com/cms-egamma/EgammaPostRecoTools.git
mv EgammaPostRecoTools/python/EgammaPostRecoTools.py RecoEgamma/EgammaTools/python/.
time git clone -b ULSSfiles_correctScaleSysMC https://github.com/jainshilpi/EgammaAnalysis-ElectronTools.git EgammaAnalysis/ElectronTools/data/
time git cms-addpkg EgammaAnalysis/ElectronTools
scram b clean
time scram b $MAKEFLAGS
# Get the UHH2 repo & JEC,JER files
cd $CMSSW_BASE/src
time git clone -b RunII_106X_v2 https://github.com/UHH2/UHH2.git
cd UHH2
time git clone https://github.com/cms-jet/JECDatabase.git
time git clone https://github.com/cms-jet/JRDatabase.git
cd common
time git clone https://github.com/UHH2/UHH2-datasets.git
cd UHH2-datasets
git remote rename origin UHH2
git branch -u UHH2/master
cd ../..
| true |
8fa8634144cb99548a868f84d7254d00a486598e | Shell | codekoala/docker-plex | /setup.sh | UTF-8 | 338 | 2.625 | 3 | [] | no_license | #!/bin/bash
echo "Installing dependencies"
pacman -Syu --noconfirm \
dhcpcd \
iproute2 \
plex-media-server
echo "Enabling services"
for svc in dhcpcd plexmediaserver; do
ln -sf /usr/lib/systemd/system/${svc}.service /etc/systemd/system/multi-user.target.wants/
done
echo "Cleaning up..."
rm -rf /var/cache/pacman/pkg/*
| true |
63f51cd6e0dbba303a8f732344cec71226471c7d | Shell | dssantos/scripts | /deploy_django_to_dokku.sh | UTF-8 | 1,460 | 3.5 | 4 | [] | no_license | # This scrip performs the deploy of Django application on Dokku
# Define variables
PROJECT=app1
PROJECT_DB=$PROJECT'_db'
DOMAIN=dokku.local
# Install psql client
sudo apt install postgresql-client
# Access project folder
cd $HOME'/dev/django_projects/'$PROJECT
source '.'$PROJECT'/bin/activate'
# Create app
dokku apps:create $PROJECT
# Configure dokku environment vars
dokku config:set $PROJECT DEBUG='False'
NEW_KEY=$(python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())')
dokku config:set $PROJECT SECRET_KEY=$NEW_KEY
dokku config:set $PROJECT ALLOWED_HOSTS='127.0.0.1, .localhost, .herokuap.com, .'${DOMAIN}
# Show variables
dokku config $PROJECT
# Install postgres plugin
sudo dokku plugin:install https://github.com/dokku/dokku-postgres.git
# Create a postgres database service
dokku postgres:create $PROJECT_DB
# Link app to database
dokku postgres:link $PROJECT_DB $PROJECT
# Create database's app
DB_SERVER=$(dokku postgres:info $PROJECT_DB | grep "Internal ip:" | grep -oE '([0-9]{1,3}\.?){4}')
PASS=$(dokku postgres:info $PROJECT_DB | grep "Dsn:"| cut -d\: -f4 | cut -d@ -f1) # Captura a linha com 'Dsn', fatia pelo ':', depois fatia pelo '@'
PGPASSWORD=$PASS psql -h $DB_SERVER -U postgres -c 'CREATE DATABASE '$PROJECT_DB
unset PASS
# Push to dokku
git status
git remote add dokku 'dokku@'$DOMAIN':'$PROJECT
git push dokku master --force
# Set address in /etc/hosts
# Access page
| true |
c8ce0dd711af2d563f19eadd2ee7bf8419588d98 | Shell | freifunkgg/packages-ffgg | /ffgg-cleanup-gluon-config/files/etc/init.d/cleanup-gluon-config | UTF-8 | 6,811 | 3.25 | 3 | [
"MIT"
] | permissive | #!/bin/sh /etc/rc.common
START=99
# Wo werden die Buffer-Informationen zwischengespeichert?
CACHESTOREFILE=/root/cleanup-gluon-config.batch
CACHESTOREFILE_TMP=/tmp/cleanup-gluon-config.batch
# State-Strings
WIPE_INIT="Init"
WIPE_CACHED="WipeThrough"
WIPE_DONE="WipeCompleted"
WIPE_CONFIG_TYPE="FreshAir"
WipeWriteUci() {
# Funktion: UCI-Schlüssel lesen und in Cache-Datei speichern
# Parameter 1: UCI-Quelle
# Parameter 2: (optional) abweichendes UCI-Ziel (Bsp.: Wifi-Mesh ibss vs. mesh))
VALUE=$(uci -q get $1)
if [ -n "$2" ]; then
UCIPARAMETER=$2
else
UCIPARAMETER=$1
fi
if [ -n "$VALUE" ]; then
echo set ${UCIPARAMETER}=\'${VALUE}\' >> ${CACHESTOREFILE_TMP}
fi
}
boot() {
STATE=$(uci -q get cleanup-gluon-config.wipe.state)
##########################################################################################
#
# Phase I
#
# Kein State gefunden -> dann eine neu CleanUp-Config anlegen.
# Gefolgt alle wichtigsten UCI-Parameter zwischenspeichern.
# Dann wird das overlayfs gelöscht und der Zwischenspeicher unter /root/$CACHESTOREFILE abgelegt.
# Mit einem Reboot wird in Phase II gewechselt.
##########################################################################################
if [ -z "$STATE" ]; then
touch /etc/config/cleanup-gluon-config
uci set cleanup-gluon-config.wipe=${WIPE_CONFIG_TYPE}
uci set cleanup-gluon-config.wipe.state=${WIPE_INIT}
uci commit cleanup-gluon-config
# Zur Sicherheit ggf. das Ziel mal löschen (egal ob vorhanden oder nicht).
rm -f ${CACHESTOREFILE_TMP}
# Liste der zu übernehmenden Werte
# Hostname
WipeWriteUci system.@system[0].hostname
WipeWriteUci system.@system[0].pretty_hostname
# Nodeinfo
WipeWriteUci gluon-node-info.@owner[0].contact
WipeWriteUci gluon-node-info.@location[0].share_location
WipeWriteUci gluon-node-info.@location[0].latitude
WipeWriteUci gluon-node-info.@location[0].longitude
WipeWriteUci gluon-node-info.@location[0].altitude
# static IPv4 oder DHCP
WipeWriteUci network.wan.proto
WipeWriteUci network.wan.ipaddr
WipeWriteUci network.wan.netmask
WipeWriteUci network.wan.gateway
# static DNS
WipeWriteUci gluon-wan-dnsmasq.@static[0].server
#VPN bandwidth limitation
WipeWriteUci gluon.mesh_vpn.limit_enabled
WipeWriteUci gluon.mesh_vpn.limit_egress
WipeWriteUci gluon.mesh_vpn.limit_ingress
#VPN
WipeWriteUci fastd.mesh_vpn.enabled gluon.mesh_vpn.enabled
# MoL / MoW
WipeWriteUci network.mesh_wan.disabled
WipeWriteUci network.mesh_lan.disabled
#PoE
WipeWriteUci system.gpio_switch_poe_passthrough.value
#Wifi
WipeWriteUci gluon.wireless.outdoor
# Die Wifi-Kanäle nicht merken wenn 'preserve_channels' nicht gesetzt ist.
# So werden immer die Kanäle aus der site.conf verwendet. (z:b. Bei Umstellung der Community-Kanäle)
## Freifunk GG hat nur wenige Knoten umzustellen. Diese haben aber unterschiedliche Kanaleinstellungen.
## Daher werden die wenigen Knoten erstmal mit den Default-Kanaleinstellungen aus der site.conf beaufschlagt.
##
##if [ $(uci -q gluon-core.@wireless[0].preserve_channels ) = '0' ]; then
## uci set wireless.radio0.channel=
## uci set wireless.radio1.channel=
##fi
##WipeWriteUci wireless.radio0.channel
##WipeWriteUci wireless.radio1.channel
##WipeWriteUci gluon-core.@wireless[0].preserve_channels
WipeWriteUci wireless.radio0.disabled
WipeWriteUci wireless.radio1.disabled
WipeWriteUci wireless.client_radio0.disabled
WipeWriteUci wireless.client_radio1.disabled
WipeWriteUci wireless.mesh_radio0.disabled
WipeWriteUci wireless.mesh_radio1.disabled
WipeWriteUci wireless.wan_radio0.ssid
WipeWriteUci wireless.wan_radio1.ssid
WipeWriteUci wireless.wan_radio0.key
WipeWriteUci wireless.wan_radio1.key
# Private Wifi
WipeWriteUci wireless.wan_radio0
WipeWriteUci wireless.wan_radio1
WipeWriteUci wireless.wan_radio0.device
WipeWriteUci wireless.wan_radio1.device
WipeWriteUci wireless.wan_radio0.network
WipeWriteUci wireless.wan_radio1.network
WipeWriteUci wireless.wan_radio1.mode
WipeWriteUci wireless.wan_radio0.mode
WipeWriteUci wireless.wan_radio0.encryption
WipeWriteUci wireless.wan_radio1.encryption
WipeWriteUci wireless.wan_radio0.ssid
WipeWriteUci wireless.wan_radio1.ssid
WipeWriteUci wireless.wan_radio0.key
WipeWriteUci wireless.wan_radio1.key
WipeWriteUci wireless.wan_radio0.disabled
WipeWriteUci wireless.wan_radio1.disabled
WipeWriteUci wireless.wan_radio0.macaddr
WipeWriteUci wireless.wan_radio1.macaddr
# Neuen Wipe-State sichern
uci set cleanup-gluon-config.wipe.state=${WIPE_CACHED}
uci commit cleanup-gluon-config
########################################################################################
# Gefolgt ein kleiner Hack.
# Beim Bootprozess bereitet der Zugriff auf "/tmp" Probleme.
# Es liegt wohl an "/etc/rc.common" und "mount -o remount /"
# Daher wird ein Hilfsskript unter "/tmp/cleanup"?! erstellt und separat gestartet.
########################################################################################
cat << EOF > /tmp/cleanup
#!/bin/sh
#cp ${CACHESTOREFILE} ${CACHESTOREFILE_TMP}
cp -r /etc/dropbear /tmp
cp /etc/rc.local /tmp
cp /etc/config/cleanup-gluon-config /tmp/cleanup-gluon-config
rm -rf /overlay/upper/*
sync
sleep 10
sync
mount -o remount /
sync
sleep 10
sync
cp /tmp/cleanup-gluon-config /etc/config/cleanup-gluon-config
cp /tmp/rc.local /etc/rc.local
cp /tmp/dropbear/* /etc/dropbear
cp ${CACHESTOREFILE_TMP} ${CACHESTOREFILE}
sync
sleep 10
sync
reboot
EOF
chmod +x /tmp/cleanup
/tmp/cleanup &
##########################################################################################
#
# Phase II
#
# Wiederherstellung der zwischengespeicherten UCI-Werte aus der Cache-Datei.
##########################################################################################
elif [ "$STATE" == "$WIPE_CACHED" ]; then
uci -f ${CACHESTOREFILE} batch
#rm -f ${CACHESTOREFILE}
# Die Client-LAN-Konfiguration bedarf "immer" der Aufmerksamkeit.
# Das hier verwendetetn UCI-Schlüssel gelten für Gluon >=2018.1
# Daher das Client-LAN erstmal generell deaktivieren
for ifname in $(cat /lib/gluon/core/sysconfig/lan_ifname); do
uci -q del_list network.client.ifname=$ifname
done
# Falls MoL deaktiviert ist, dann kann das Client-LAN aktiviert werden.
MOL_DISBALED=$(uci -q get network.mesh_lan.disabled)
if [ "$MOL_DISBALED" == "1" ]; then
for ifname in $(cat /lib/gluon/core/sysconfig/lan_ifname); do
uci -q add_list network.client.ifname=$ifname
done
fi
# Zur Sicherheit nochmal alles durchkonfigurieren
gluon-reconfigure
# Neuen Wipe-State sichern
uci set cleanup-gluon-config.wipe.state=${WIPE_DONE}
# Alle zurückgespielten Werte sichern
uci commit
reboot
fi
}
| true |
b44cc05dbd17e65d27546ea58c31d4e377de59e8 | Shell | qixin5/debloating_study | /expt/debaug/benchmark/replace/testscript/p0.2train/1071 | UTF-8 | 152 | 2.53125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
BIN=$1
OUTDIR=$2
TIMEOUT=$3
INDIR=$4
timeout -k 9 ${TIMEOUT}s $BIN '[^A-G]' 'e1 n@lk)dOmuvvM8V' < $INDIR/input/ruin.551 &> $OUTDIR/o1071
| true |
68a8586f4053744d4cac2f58d509a3d26268951a | Shell | mtk09422/chromiumos-platform-ec | /util/getdate.sh | UTF-8 | 408 | 2.828125 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
#
# Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# Generate build date information for the EC binary
echo "/* This file is generated by util/getdate.sh */"
echo "/* DATE is used to form build info string in common/version.c. */"
echo "#define DATE \"$(date '+%F %T')\""
| true |
a7e635bd76660369e944f5ae4e2ec766aa68ec97 | Shell | malaina/dotfiles | /.zprofile | UTF-8 | 145 | 2.71875 | 3 | [] | no_license | if ! fuser -s "/tmp/emacs$(id -u)/server" &>/dev/null; then
echo "Starting Emacs daemon for $USER"
emacs --daemon &>/dev/null
fi
| true |
71fef00a5d1eb728390205e8b9796c8f394ac05a | Shell | rustamsariyev/Bash-LinuxAcademy-Terry | /commands-forsample.sh | UTF-8 | 722 | 3.34375 | 3 | [] | no_license | [root@kamilbabayev1c bin]# cat forsample.sh
#!/bin/bash
#
# this is a demo of the for loop
echo "List all the shell scripts contents of the directory"
SHELLSCRIPTS=`ls *.sh`
for SCRIPT in "$SHELLSCRIPTS" ; do
DISPLAY="`cat $SCRIPT`"
echo "File: $SCRIPT - Contents $DISPLAY"
done
[root@kamilbabayev1c bin]# forsample.sh > output-shell.txt
[root@kamilbabayev1c bin]# head -n 15 output-shell.txt
List all the shell scripts contents of the directory
File: arrays.sh
cmdlinevar.sh
comments.sh
exit-status.sh
expressions.sh
forsample.sh
ifexpr.sh
ifstatement-using-or-conditional.sh
ifthenelse.sh
readsamples.sh
simpleif.sh
substitution.sh
testfile-if.sh
varexample.sh - Contents #!/bin/bash
[root@kamilbabayev1c bin]#
| true |
78a1e39b01cefda56e35e81cd04489ad5b53644d | Shell | TheFIUBABoys/6620orgadecompus | /TP1/src/script.sh | UTF-8 | 335 | 3.046875 | 3 | [] | no_license | #! /bin/sh
n=0; while :; do
n="`expr $n + 1`";
head -c 100 </dev/urandom >/tmp/test.$n.1;
./tp1 </tmp/test.$n.1 >/tmp/test.$n.2 || break;
./tp1 </tmp/test.$n.2 >/tmp/test.$n.3 || break;
diff -q /tmp/test.$n.1 /tmp/test.$n.3 || break;
rm -f /tmp/test.$n.*;
echo Ok: $n;
done; echo Error: $n
| true |
5b4cb0ad7cb84a6658702463697ea3d2d80354bb | Shell | tvrc4m/toolkit | /pra.sh | UTF-8 | 1,913 | 2.75 | 3 | [] | no_license | #!/bin/sh
#
node_api="http://api-mainnet.starteos.io"
wallet_api="http://127.0.0.1:8900"
cls="/github/eos/build/programs/cleos/cleos"
bt_accounts="ifallinloveu 2gether4ever eostonystark eosauthorcom eosluckystar eosnewsflash babyilikeyou ilikeyoubaby microcapsule saysomething"
pra_accounts="kungfupanda4 newsflashpro kungfupanda5 eoswalletkit sublimetext3 makelovetime officialbank dappfreezone eosontheroad spacecapsule onlongerlove eosunitunion dappdropzone eosauctionex tosayloveyou ihateuiloveu qingdaoblock qdblockchain dragonballtv chinaculture ionlylikeyou ohbabyiloveu cnliterature eosplateform iboflytomars chinalibrary imtheironman k2haitangwan"
function unlock_wallet(){
status=`$cls -u $node_api --wallet-url $wallet_api wallet list |awk '/default \*/ {print "1"}'`
if [[ ! $status ]]; then
# 解锁钱包
$cls -u $node_api --wallet-url $wallet_api wallet unlock -n default --password PW5KZ8X132W9pxRADQDT6KzvfAFUFBg3SRpskdioJbaroL539Kyua
fi
}
while [[ 1 ]]; do
unlock_wallet
for account in $bt_accounts; do
res=`$cls -u $node_api --wallet-url $wallet_api push action prochaintech click "{\"clickRequest\":{\"account\":\"${account}\",\"candyId\":0}}" -p $account@active | awk '/Error/{print 1}'`
echo $res
echo $account
$cls -u $node_api --wallet-url $wallet_api get currency balance eosbtextoken $account "BT"
if [[ res -eq 1 ]]; then
echo "error"
fi
done
for account in $pra_accounts; do
res=`$cls -u $node_api --wallet-url $wallet_api push action prochaintech click "{\"clickRequest\":{\"account\":\"${account}\",\"candyId\":0}}" -p $account@active | awk '/Error/{print 1}'`
echo $res
echo $account
$cls -u $node_api --wallet-url $wallet_api get currency balance epraofficial $account "EPRA"
if [[ res -eq 1 ]]; then
echo "error"
fi
done
sleep 14400
done
| true |
5f93b50a42e19b06b85128d9c1ebb5426055f29b | Shell | mtchavez/circleci | /script/test | UTF-8 | 400 | 3.46875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#
# Run tests for project
#
RED=$(tput setaf 160)
RESET=$(tput sgr0)
function display() {
echo "-----> [`date +"%Y-%m-%d-%H:%M:%S"`] [test] $1"
}
if [ ! `bundle exec which rspec` ]; then
display "${RED}Rspec not found. Try running ./script/bootstrap or install requirements in the Gemfile${RESET}"
exit 1
fi
display "Running specs"
bundle exec rake
# vim: ft=sh:
| true |
17efad03cd8c5fb7fc8c61b83dec045a9fe24f53 | Shell | casmith/scripts | /setup.sh | UTF-8 | 1,320 | 2.625 | 3 | [] | no_license | mkdir -p ~/bin
mkdir -p ~/work
sudo apt update
sudo apt -y upgrade
sudo apt install -y git zsh vim whois
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
#install sdk
curl -s "https://get.sdkman.io" | bash
. "~/.sdkman/bin/sdkman-init.sh"
# install java, etc.
sdk i gradle
sdk i java
# install nvm and node
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
nvm i stable
#install rvm/ruby
gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
curl -sSL https://get.rvm.io | bash -s stable
. ~/.rvm/scripts/rvm
rvm install ruby-2.6
#install php
sudo apt install -y mariadb-server php
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"\
php -r "if (hash_file('sha384', 'composer-setup.php') === 'baf1608c33254d00611ac1705c1d9958c817a1a33bce370c0595974b342601bd80b92a3f46067da89e3b06bff421f182') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php --install-dir=../bin --filename=composer
rm composer-setup.php
| true |
cc6a1ca13ee9b81ada026db6d106b17b7c0f142b | Shell | jjdmw/terraform-aws-kong-gateway | /examples/hybrid_amazon_linux/templates/db/cloud-init.sh | UTF-8 | 644 | 2.71875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -x
exec &> /tmp/cloud-init.log
apt-get update
apt-get install -y apt-transport-https \
ca-certificates curl gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
apt-get update
apt-get install -y docker-ce docker-ce-cli containerd.io
mkdir -p /root/data
sleep 10
docker run -d \
--env POSTGRES_PASSWORD=${db_master_pass} \
--env POSTGRES_USER=${db_master_user} -v /root/data:/var/lib/postgresql/data \
-p 5432:5432 \
postgres:13.1
| true |
016a33303b6b8d2f675ee478e1766b7447e33af2 | Shell | shreyas-bot/UNIX | /LAB2/Copy_file.sh | UTF-8 | 132 | 2.640625 | 3 | [] | no_license | echo "Enter one file to copy to other"
read file1
read file2
cat $file1
cat $file2
echo `cp $file1 $file2`
echo `cat $file2` | true |
c20a01bb59b848cd84b41d77fd551c0f892ae2a8 | Shell | FuriousWarrior/Backup-Databases | /postgresql.sh | UTF-8 | 633 | 4.09375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Backup a Postgresql database into a daily file.
BACKUP_DIR=/pg_backup
DAYS_TO_KEEP=14
FILE_SUFFIX=_pg_backup.sql
DATABASE=
USER=postgres
FILE=`date +"%Y%m%d%H%M"`${FILE_SUFFIX}
OUTPUT_FILE=${BACKUP_DIR}/${FILE}
# do the database backup (dump)
# use this command for a database server on localhost. add other options if need be.
pg_dump -U ${USER} ${DATABASE} -F p -f ${OUTPUT_FILE}
# gzip the mysql database dump file
gzip $OUTPUT_FILE
# show result
echo "${OUTPUT_FILE}.gz was created:"
ls -l ${OUTPUT_FILE}.gz
find $BACKUP_DIR -maxdepth 1 -mtime +$DAYS_TO_KEEP -name "*${FILE_SUFFIX}.gz" -exec rm -rf '{}' ';'
| true |
34dd1c16fca68b63bde1294301d9ee49e84e3fbc | Shell | sbocq/bashmod | /mod.sh | UTF-8 | 3,388 | 3.828125 | 4 | [
"Unlicense"
] | permissive | ################################################################################
# The contents of this file is free and unencumbered software released into
# the public domain. For more information, please refer to
# <http://unlicense.org/>
################################################################################
if [ -z ${__MOD+x} ]; then
__MOD=
function mod::getlibdir {
echo ${LIBDIR:-$( cd $(dirname ${BASH_SOURCE[0]}) > /dev/null; pwd -P )}
}
###
### Minimal bootstrap helper functions before logging is enabled
###
function mod::ensure {
local dir msg status
for dir in "$@"; do
msg=$(mkdir -p ${dir} 2>&1)
status=$?
if (( ${status} != 0 )); then
echo "Err \"Cannot create required directory\"" \
"{\"dir\":\"${dir}\",\"msg\":\"${msg}\"}"
exit ${status}
fi
if [[ ! -w ${dir} ]]; then
echo "Err \"Directory write permission missing\"" \
"{\"dir\":\"${dir}\"}"
exit 1
fi
done
}
###
### MODULE DEBUG/TRACE FUNCTIONS LOGGING TO STDERR
###
function qdebug {
# Quick debug, to add and remove from code like printfs
echo "-- $*" >&2
return 0
}
function qtrace {
# Quick trace, to add and remove from code like printfs
local -r cmd="$1"
shift;
local -r args=$(IFS=','; echo "$*")
qdebug "TRACE[$$]: ${cmd}(${args})"
${cmd} "$@"
}
function mod::debug_on {
# Enable debug info on some modules
local -r mods="$@"
for mod in "$@"; do
declare -g "${mod}_DEBUG=true"
done
}
function mod::debug_off {
# Disable debug info on some modules
local -r mods="$@"
for mod in "$@"; do
declare -g "${mod}_DEBUG=false"
done
}
function mod::debug {
# Write module debug message
local -r mod=$1 sym="${1}_DEBUG"
shift;
if [[ -n ${!sym+x} && ${!sym+x} ]]; then
echo "-${mod}- '$*'" >&2
fi
}
###
### PROVIDE and REQUIRE
###
function provide {
local -r __LIB_NAME="__${1^^}"
declare -g "${__LIB_NAME}=${1}"
}
function require {
local -r __LIB_NAME="__${1^^}"
[ -z ${!__LIB_NAME+x} ] \
&& $(mod::debug mod "require ${1}") \
&& source $(mod::getlibdir)/${1}.sh
}
###
### TRAPPING
###
__EXIT_HOOKS=()
function mod::on_exit {
__EXIT_HOOKS+=("$1")
}
function __trap_exit {
mod::debug mod "trapped exit $1"
if (( ${#__EXIT_HOOKS[@]} > 0 )); then
mod::debug mod "exit hooks: "$(IFS=';';echo "${__EXIT_HOOKS[*]}")
eval $(IFS=$';';echo "${__EXIT_HOOKS[*]}")
fi
}
trap '__trap_exit $?' EXIT
__INT_HOOKS=()
function mod::on_interrupt {
__INT_HOOKS+=("$1")
}
function __trap_int {
mod::debug mod "trapped interrupt $1"
if (( ${#__INT_HOOKS[@]} > 0 )); then
mod::debug mod "interrupt hooks: "$(IFS=';';echo "${__INT_HOOKS[*]}")
eval $(IFS=$';';echo "${__INT_HOOKS[*]}")
fi
}
trap '__trap_int $?' INT TERM
###
### POOR MAN's UNIT TESTING FUCTIONS
###
function assert {
local -ri truth=$?
local -r msg=$1
if (( truth > 0 )); then
echo "FAIL[${msg}]!"
return 1
fi
}
function assertEq {
local -r msg=$1 expected=$2 actual=$3
if [[ ${expected} != ${actual} ]]; then
echo "FAIL: !${msg}! \"${expected}\" vs. \"${actual}\""
return 1
fi
}
fi
| true |
92b4d6ea251f8aa1ba695a14afe5992069435437 | Shell | yicheng-w/PClassic | /2015-spring/stubs/remove-all-stubs.sh | UTF-8 | 94 | 2.6875 | 3 | [] | no_license | #! /bin/bash
for file in $( ls *STUB* ); do
mv -v $file $( ./remove-stub.sh $file )
done
| true |
2813a413b6f26ac6a54129b0da6a13aebb1b43c0 | Shell | sophon-ai-algo/sophon-inference | /tools/ci_test/prepare_soc_test.sh | UTF-8 | 560 | 3.28125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
SOC_DATA_DIR=/workspace/soc_data
function clean_data() {
if [ -d $SOC_DATA_DIR ]; then
rm -rf $SOC_DATA_DIR/*
else
mkdir $SOC_DATA_DIR
fi
}
function fill_data() {
pushd $SOC_DATA_DIR
mkdir -p cpp/lib cpp/bin python3/samples
popd
cp ./build/lib/libsail.so $SOC_DATA_DIR/cpp/lib
cp ./build/bin/* $SOC_DATA_DIR/cpp/bin
cp -r ./out/sophon-inference/python3/soc/sophon $SOC_DATA_DIR/python3
cp -r ./samples/python/* $SOC_DATA_DIR/python3/samples
cp ./tools/ci_test/test_all_soc.sh $SOC_DATA_DIR
}
clean_data
fill_data
| true |
7c9c8c287d4c8155bd2270c1cd3d538abfa45af2 | Shell | rosered11/financial-obligation | /network/bin/get-package-id.sh | UTF-8 | 2,410 | 3.84375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
if [ "$FABRIC_CFG_PATH" == "" ]; then
echo "This script requires the Environment to be setup!!! Use one of the following:"
echo "> source set-env.sh ..."
echo "> source set-env.sh ..."
exit
fi
# Gets the package ID for the installed chaincode
# Usage: get-package-id.sh -n [chaincode name default=$CC_NAME] -v [chaincode version default=$CC_VERSION] -h -e [Echo]
DIR="$( which set-chain-env.sh)"
DIR="$(dirname $DIR)"
# Read the current setup
source $DIR/cc.env.sh
if [ "$ECHO_INFO" == "" ]; then
ECHO_INFO="false"
fi
# utility function to extract the hash value from package-id
function extract_hash {
data=$(echo "$CC2_PACKAGE_ID" | tr -t ':' ' ')
set -- $data
CC2_PACKAGE_ID_HASH=$2
}
HASH_ONLY="false"
while getopts "v:n:ohe" OPTION; do
case $OPTION in
v)
CC_VERSION=${OPTARG}
;;
n)
CC_NAME=${OPTARG}
;;
h)
echo 'Usage: get-package-id.sh -n [chaincode name default=$CC_NAME] -v [chaincode version default=$CC_VERSION] '
echo " -h [displays the help] -o [Just sets the Hash Code] -e [Do not echo]"
exit
;;
e)
ECHO_INFO="true"
;;
esac
done
# echo "--->$CC_NAME.$CC_VERSION"
# JQ Expression for extracting the
# https://github.com/stedolan/jq/issues/370
# .installed_chaincodes[] | select(.label=="gocc.1") | .package_id
# JQ_EXPRESSION='.installed_chaincodes[] | select(.label=="gocc.1") | .package_id'
JQ_EXPRESSION='.installed_chaincodes[] | select(.label=="'"$CC_NAME.$CC_VERSION"'") | .package_id'
OUTPUT=$(peer lifecycle chaincode queryinstalled -O json)
echo $JQ_EXPRESSION
echo $OUTPUT
if [ "$OUTPUT" == "{}" ]; then
# echo "Package '$CC_NAME.$CC_VERSION' NOT found!!"
export CC2_PACKAGE_ID=""
else
export CC2_PACKAGE_ID=$(echo "$OUTPUT" | jq -r "$JQ_EXPRESSION")
extract_hash
fi
# if [ "$HASH_ONLY" == "true" ]; then
# extract_hash
# fi
if [ "$ECHO_INFO" == "true" ]; then
echo "CC2_PACKAGE_ID=$CC2_PACKAGE_ID"
echo "CC2_PACKAGE_ID_HASH=$CC2_PACKAGE_ID_HASH"
fi
# Write to the environment file
rm $CC2_ENV_FOLDER/get-package-id &> /dev/null
echo "# Generated: $(date)" > $CC2_ENV_FOLDER/get-package-id
echo "CC2_PACKAGE_ID=$CC2_PACKAGE_ID" >> $CC2_ENV_FOLDER/get-package-id
echo "CC2_PACKAGE_ID_HASH=$CC2_PACKAGE_ID_HASH" >> $CC2_ENV_FOLDER/get-package-id | true |
9d2e0fccd875872e514df74cbde8acaceb258c80 | Shell | bjester/easy-ca-server | /scripts/func.sh | UTF-8 | 1,682 | 4 | 4 | [
"MIT"
] | permissive | #!/bin/bash
_KEY_FILE="$DIR_CA/enc.key"
x-crypt() {
local operation=$1
local args="--batch --pinentry-mode loopback --passphrase-file ${_KEY_FILE}"
local in_file=$2
local out_file=$3
case "$1" in
encrypt)
gpg ${args} --output "${out_file}" --symmetric --cipher-algo AES256 "${in_file}"
;;
decrypt)
gpg ${args} --output "${out_file}" --decrypt "${in_file}"
;;
esac
}
encrypt() {
local in_file=$1
local rel_path=$(echo "${in_file}" | sed "s#${DIR_CA_WORKING_DIR}/##g")
local meta_file="${DIR_CA_MNT}/${rel_path}.enc.meta"
local out_file="${DIR_CA_MNT}/${rel_path}.enc"
local file_hash=$(sha1sum "${in_file}" | cut -d " " -f 1)
local meta_tmp=$(mktemp)
echo "${file_hash}" > "${meta_tmp}"
mkdir -p $(dirname "${out_file}")
x-crypt encrypt "${meta_tmp}" "${meta_file}"
x-crypt encrypt "${in_file}" "${out_file}"
echo "Done encrypting ${in_file}"
rm "${meta_tmp}"
}
decrypt() {
local enc_file=$1
local rel_path=$(echo "${enc_file}" | sed "s#${DIR_CA_MNT}/##g")
local dir_name=$(dirname "${rel_path}")
local out_name=$(basename "${enc_file}" ".enc")
local meta_file="${enc_file}.meta"
local out_file="${DIR_CA_WORKING_DIR}/${dir_name}/${out_name}"
local meta_tmp=$(mktemp)
local out_tmp=$(mktemp)
x-crypt decrypt "${meta_file}" "${meta_tmp}"
x-crypt decrypt "${enc_file}" "${out_tmp}"
local file_hash=$(sha1sum "${out_tmp}" | cut -d " " -f 1)
local meta_hash=$(cat "${meta_tmp}")
if [ "${file_hash}" != "${meta_hash}" ]; then
echo "FILE HASHES DO NOT MATCH"
echo "${file_hash} != ${meta_hash}"
exit 1
fi
mv "${out_tmp}" "${out_file}"
rm "${meta_tmp}" "${out_tmp}"
} | true |
7c59f8f7c29d58c26c97f138971cb94db809536f | Shell | hadi77ir/gitea-ssh-passthrough | /gitea-shell | UTF-8 | 628 | 3.515625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
if [ $# -ne 2 ] || [ "$1" != "-c" ] ; then
echo "interactive login not permitted"
exit 1
fi
REAL_ARGV=($SSH_ORIGINAL_COMMAND)
if [ ${#REAL_ARGV[@]} -eq 0 ]; then
echo "interactive login not permitted"
exit 1
fi
if [ ${#REAL_ARGV[@]} -lt 2 ]; then
echo "incorrect number of parameters"
exit 1
fi
ARGV=($2)
# strip gitea binary path from array
_REAL_GITEA="${ARGV[0]}"
ARGV=("${ARGV[@]:1}")
case "${REAL_ARGV[0]}" in
( git-upload-pack | git-receive-pack )
;; # continue execution
( * )
printf "command not allowed\n"
exit 1
;;
esac
REAL_GITEA=$_REAL_GITEA /opt/gitea/gitea ${ARGV[@]}
| true |
47c225a8834a2928c31f86260236fbc411c7fc16 | Shell | bamItsCam/bin | /ms | UTF-8 | 144 | 3.4375 | 3 | [] | no_license | #!/bin/bash
if [ -z $1 ]; then
echo "Please provide an epoch timestamp in ms to convert to a date"
exit 1
fi
date -d @$( echo $1 / 1000 | bc)
| true |
ceb96020108e684cb1e16404af74837fcf3e4b9e | Shell | scullxbones/akka-persistence-mongo | /ci_build.sh | UTF-8 | 490 | 3.46875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
SCALA_VERSION=$1
if [ -z "$SCALA_VERSION" ]; then
echo "Missing value for SCALA_VERSION"
exit 1
fi
CURRENT=0
MAX_TRIES=3
COMMAND_STATUS=1
until [[ $COMMAND_STATUS -eq 0 || $CURRENT -eq ${MAX_TRIES} ]]; do
sbt ++${SCALA_VERSION} ";akka-persistence-mongo-common/ci:test;akka-persistence-mongo-rxmongo/ci:test;akka-persistence-mongo-scala/ci:test;akka-persistence-mongo-tools/ci:test"
COMMAND_STATUS=$?
sleep 5
let CURRENT=CURRENT+1
done
exit $COMMAND_STATUS | true |
9ddf1d1ceaedf1f467ffede293f95b11293f97d7 | Shell | polybar/polybar-scripts | /polybar-scripts/info-projecthamster/info-projecthamster.sh | UTF-8 | 172 | 3.21875 | 3 | [
"Unlicense"
] | permissive | #!/bin/sh
activity=$(hamster current 2> /dev/null | cut -d " " -f 3- | sed 's/@.* / - /')
if [ -n "$activity" ]; then
echo "$activity"
else
echo "No Activity"
fi
| true |
eb161a602a2a0b4cf1bb85dbadee487169bd52a1 | Shell | liberapay/liberapay.com | /.platform/hooks/prebuild/01_install.sh | UTF-8 | 2,814 | 3.65625 | 4 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | #!/bin/bash
# Tell bash to be strict and log everything
set -eux
# Install libffi-devel for misaka, and htop for when I want to look at what's going on
yum install -y libffi-devel htop
# Install PostgreSQL client tools and libraries
amazon-linux-extras install -y postgresql11
# Automatically set the PG* environment variables so that `psql` connects to the liberapay database by default
install -m 644 -o root -g root -t /etc/profile.d .platform/files/pgenv.sh
# Install the systemd service files for the webapp and cloudflared
install -m 644 -o root -g root -t /etc/systemd/system .platform/files/cloudflared@.service
install -m 644 -o root -g root -t /etc/systemd/system .platform/files/webapp@.service
install -m 644 -o root -g root -t /etc/systemd/system .platform/files/webapp@.socket
systemctl daemon-reload
# Install cloudflared, directly from GitHub
target_cfd_version="2021.11.0"
function get_installed_cfd_version() {
if [ -x /usr/local/bin/cloudflared ]; then
/usr/local/bin/cloudflared version | \
sed -E -e 's/^cloudflared version ([^ ]+).*/\1/'
fi
}
installed_cfd_version="$(get_installed_cfd_version)"
if [ "$installed_cfd_version" != "$target_cfd_version" ]; then
if [ "$installed_cfd_version" = "" ]; then
echo "Installing cloudflared (version $target_cfd_version)"
else
echo "Upgrading cloudflared ($installed_cfd_version -> $target_cfd_version)"
fi
wget "https://github.com/cloudflare/cloudflared/releases/download/$target_cfd_version/cloudflared-linux-amd64"
hash=$(sha256sum cloudflared-linux-amd64 | cut -d' ' -f1)
expected_hash=cce5bc7df0187e93291135d32d159b1acd86d9ca25c3e448b8bbeab2ce976b8e
if [ $hash != $expected_hash ]; then
echo "cloudflared binary downloaded from GitHub doesn't match expected hash: $hash != $expected_hash"
exit 1
fi
install -m 755 -o root -g root cloudflared-linux-amd64 /usr/local/bin/cloudflared
rm cloudflared-linux-amd64
if [ "$(get_installed_cfd_version)" = "$installed_cfd_version" ]; then
echo "upgrading cloudflared failed"
exit 1
fi
else
echo "cloudflared version $target_cfd_version is already installed"
fi
# Create the cloudflared system user and group
groupadd -r cloudflared || true
useradd -r -g cloudflared cloudflared || true
# Install the Cloudflare Tunnel configuration and credentials files
install -o cloudflared -g cloudflared -m 755 -d /etc/cloudflared
install -o cloudflared -g cloudflared -m 644 -t /etc/cloudflared .platform/files/cloudflared.conf
if ! [ -f /etc/cloudflared/liberapay-prod.json ]; then
aws s3 cp s3://serverfiles.liberapay.org/liberapay-prod.json liberapay-prod.json
install -o cloudflared -g cloudflared -m 644 -t /etc/cloudflared liberapay-prod.json
rm liberapay-prod.json
fi
| true |
57b67226d73430ae117f0c370a0e1094baa7c5f6 | Shell | guoyoujin/work | /wechathimsapi/deploy.sh | UTF-8 | 944 | 3.28125 | 3 | [] | no_license | #!/bin/bash
# func: pull code and run wechathimsapi container with 3 app
# date: 2018-04-16
# author: zhouwei
# email: xiaoamo361@163.com
script_home=/home/tongxin/wechathimsapi
set -e
# check the user
if [ $(id -u) -eq 0 ]; then
echo "do not use root"
echo "use ./deploy.sh"
exit 1
fi
# check docker network
sudo docker network ls | grep backend || docker network create backend
# pull code
cd /home/tongxin/go/src/wechatHimsAPI && git pull origin master
if [ $? -ne 0 ]; then
echo "code pull error"
exit 1
fi
# build
cd /home/tongxin/go/src/wechatHimsAPI
go build -tags netgo -a -v && mv wechatHimsAPI $script_home/
# check the home path
if [ $(pwd)!=="$script" ]; then
cd $script_home
fi
# docker-compose build and up
sudo docker-compose build
if [ $? -eq 0 ]; then
sudo docker-compose down
sudo docker-compose up -d
sudo docker-compose scale app=3
sudo $script_home/app_scale.sh
else
echo "docker-compose build base error"
fi
| true |
e47dc0ec9325e231a7d88ddea12bb0273fcd0c9b | Shell | dropwizard/dropwizard | /prepare_docs.sh | UTF-8 | 1,642 | 4.4375 | 4 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
#
# Builds the documentation of the Dropwizard project for the specified
# release, copies and commits it to the local gh-pages branch.
#
# Usage: ./prepare_docs.sh v1.0.1
#
set -e
[[ "$#" -eq 0 ]] && { echo "No release branch is specified"; exit 1; }
release_branch="$1"
release_number="${release_branch:1}"
echo -e "\nGenerating Dropwizard documentation"
echo "Release branch: $release_branch"
echo "Release number: $release_number"
echo -e "\n-------------------------------"
echo "Moving to $release_branch branch"
echo "-------------------------------"
git checkout "$release_branch"
echo -e "\n-------------------------------"
echo "Generating documentation"
echo -e "-------------------------------\n"
mvn clean site
echo -e "\n-------------------------------"
echo "Staging documentation"
echo "-------------------------------"
mvn site:stage
echo -e "\n-------------------------------"
echo "Moving to the gh-pages branch"
echo -e "-------------------------------\n"
git checkout gh-pages
echo -e "\n-------------------------------"
echo "Creating a directory for documentation"
echo -e "-------------------------------\n"
mkdir "$release_number"
echo -e "\n-------------------------------"
echo "Copy documentation"
echo -e "-------------------------------\n"
cp -r target/staging/* "${release_number}"/
echo -e "\n-------------------------------"
echo "Add and commit changes to the repository"
echo -e "-------------------------------\n"
git add .
git commit -m "Add docs for Dropwizard $release_number"
echo -e "\nDone!"
echo "Please review changes and push them with if they look good"
exit $?
| true |
a716b6d1620194679e2801b646208c84b8cf499a | Shell | udbhav-chugh/SystemSoftwareLab-CS241 | /postmidsem/advanceshell/q3recursive.sh | UTF-8 | 432 | 3.5625 | 4 | [] | no_license | # Recusrive method
operate(){
cd $1
ls -l | grep ^d | awk '{print $NF}' | while read dir
do
operate $dir
done
if [[ -f $1.exe ]]; then
rm -r $1.exe
fi
if [[ -f $1.EXE ]]; then
rm -r $1.EXE
fi
if [[ -f virusdefinition.virus ]]; then
while read file
do
rm -r $file
done < virusdefinition.virus
fi
cd ..
}
if [[ ! -z $1 ]]; then
operate $1
fi | true |
6f43a9894aa7a9bbe50fc7ab97db67e1f0ed5358 | Shell | tushar-blockchain/quorum-raft-cluster | /get-quorum.sh | UTF-8 | 1,014 | 2.875 | 3 | [] | no_license | #!/bin/bash
set -eu -o pipefail
# install build deps
add-apt-repository ppa:ethereum/ethereum -y
apt-get update
apt-get install -y build-essential unzip libdb-dev libsodium-dev zlib1g-dev libtinfo-dev solc sysvbanner wrk
# install constellation
wget -q https://github.com/jpmorganchase/constellation/releases/download/v0.1.0/constellation-0.1.0-ubuntu1604.tar.xz
tar -xf constellation-0.1.0-ubuntu1604.tar.xz
cp constellation-0.1.0-ubuntu1604/constellation-node /usr/local/bin
chmod 0755 /usr/local/bin/constellation-node
rm -rf constellation-0.1.0-ubuntu1604*
# install golang
GOREL=go1.7.3.linux-amd64.tar.gz
wget -q https://storage.googleapis.com/golang/$GOREL
tar xfz $GOREL
mv go /usr/local/go
rm -f $GOREL
PATH=$PATH:/usr/local/go/bin
echo 'PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc
# make/install quorum
git clone https://github.com/jpmorganchase/quorum.git
pushd quorum >/dev/null
make all
cp build/bin/geth /usr/local/bin
cp build/bin/bootnode /usr/local/bin
popd >/dev/null
# done!
banner "Quorum" | true |
97cb80a8e9b026ac2b859fe00d485d3480edad22 | Shell | mal-virus/bluedump | /bluedump.sh | UTF-8 | 593 | 3.3125 | 3 | [] | no_license | #! /bin/bash
bluetooth=`hcitool inq --flush | grep -v Inquiring | cut -c 2-`
if [ "$bluetooth" ]; then
echo "$bluetooth" | while read line; do
time=`echo $(($(date +%s%N)/1000000))`
addr=`echo "$line" | cut -c -17`
class=`echo "$line" | cut -c 47-`
name=`hcitool name $addr`
services=`sdptool browse $addr | grep "Service\ Name" | cut -c 15- | sed -e "s/\(.*\)/\"\1\"/" | paste -s -d,`
echo "{\"protocol\":\"bluetooth\",\"mac\":\"$addr\",\"class\":\"$class\",\"name\":\"$name\",\"timestamp\":$time,\"services\":[$services]}" >> /var/log/bluedump/bluetooth.log
done
fi
| true |
8808ac169a1be844d83fd34dc865951d8bc96fe7 | Shell | rkawaguc/RNAseq-PIPELINE | /rnaseq_qsub_STAR.sh | UTF-8 | 511 | 2.765625 | 3 | [] | no_license | #!/bin/bash
#$ -S /bin/bash
#$ -cwd
#$ -V
# Thereen should be located in the lib/STAR directory i.e. ~/lib/STAR_2.1.4a/Mouse_mm9
ref=$1
# There needs to be a "Data:" folder that include the input fastqs
# The Data folder should include the input fastq and
for i in $PWD/Data/*_1.fastq; do nDir=`basename $i _1.fastq`; mkdir $nDir; pushd $nDir; ln -s $i .; end2=`echo $i | sed 's/_1.fastq/_2.fastq/g'`; ln -s $end2 .; qsub /coppolalabshares/amrf/RNAseq-tools/qsub_STAR.sh *_1.fastq *_2.fastq $ref; popd; done
| true |
51f906116b74d15b67f9dc5898143dae573c0749 | Shell | reinvented-stuff/rsa_encrypt | /.test/9000_cleanup.sh | UTF-8 | 263 | 3.21875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -ex
source ./.test/05_setup_env.sh
[[ -z "${ARTIFACTS_FILENAME}" ]] && exit 2
while read item; do
if [[ -f "${item}" ]]; then
echo "Removing ${item}"
rm -v "${item}"
else
echo "Doesn't exist: ${item}"
fi
done < "${ARTIFACTS_FILENAME}"
| true |
363935610197c69a8f1bca3aa284877830d7be06 | Shell | tosbourn/standup | /standup.sh | UTF-8 | 308 | 2.84375 | 3 | [] | no_license | #!/bin/bash
main() {
cd ~/Projects/hubs
echo "HUBS"
standup_stats
cd ~/Projects/ie-events
echo "IE EVENTS"
standup_stats
cd ~/Projects/ieondemand
echo "IEONDEMAND"
standup_stats
}
standup_stats() {
git log --graph --since "7 days ago" --author "Toby" --date="relative" | less
}
main
| true |
cfd69ea70ff9321649999a1297f8c95d4034af68 | Shell | steve-caron-dynatrace/se-bootcamp-keptn-qg | /0-Setup/create-gcp-compute-instance.sh | UTF-8 | 1,255 | 2.671875 | 3 | [] | no_license | #!/bin/bash
## this command create the GCP compute instance (Linux VM) that runs everything for this hands-on
## upon creation, the vm is launching a script that install almost everything (keptn-in-a-box)
## and also clone the repo on the machine
## How this works (explained in the deck - slide 18)
## You need to provide 2 parameters
## $1 : <name of your GCP project>
## $2 : <name of your GCP compute instance>
## $3 : <your_name_no_nospace>
gcloud beta compute --project=$1 instances create $2 --zone=us-central1-a --machine-type=n2-standard-4 --subnet=default --network-tier=PREMIUM --maintenance-policy=MIGRATE --scopes=https://www.googleapis.com/auth/servicecontrol,https://www.googleapis.com/auth/service.management.readonly,https://www.googleapis.com/auth/devstorage.read_only --tags=http-server,https-server --image=ubuntu-1804-bionic-v20200821a --image-project=ubuntu-os-cloud --boot-disk-size=20GB --boot-disk-type=pd-standard --boot-disk-device-name=sc-test --no-shielded-secure-boot --shielded-vtpm --shielded-integrity-monitoring --labels=owner=$3,purpose=bootcampqg --reservation-affinity=any --metadata startup-script-url=https://raw.githubusercontent.com/steve-caron-dynatrace/se-bootcamp-keptn-qg/master/0-Setup/keptn-in-a-box.sh
| true |
57f74d27c7dd3184223cd0dc9bc09b11b089e413 | Shell | sivaramanshira/EC2 | /check.sh | UTF-8 | 218 | 2.59375 | 3 | [] | no_license | # Add the -f option to curl if server errors like HTTP 404 should fail too
sleep 30
if curl -I "http://18.234.76.89:5000/"; then
echo "Web Application Alive!!"
else
echo "offline or web server problem"
exit 1
fi
| true |
f010338eeb20e3f91e83e00bf8aded9f95a16258 | Shell | TimWoolford/zprezto-modules | /update-env/functions/prompt_update_env_status | UTF-8 | 852 | 2.984375 | 3 | [] | no_license | #!/usr/bin/env zsh
#function prompt_update_env_status {
typeset showMe="" icon="" colour="011"
typeset -i updateSeconds=$((EPOCHSECONDS - _SESSION_UPDATE_TIME))
if zstyle -t ':prezto:module:update-env' update-check ; then
typeset -i checkSeconds
zstyle -s ':prezto:module:update-env' update-check-seconds 'checkSeconds' || checkSeconds=3600
if [[ updateSeconds -ge checkSeconds ]]; then
zsh-defer -t 5 checkForEnvUpdates
_SESSION_UPDATE_TIME=${EPOCHSECONDS}
fi
fi
if [[ _UPDATE_DAYS -gt 7 ]]; then
colour="160"
(( _UPDATE_ENV_STATUS )) || _UPDATE_ENV_STATUS=4
elif [[ _UPDATE_DAYS -gt 1 ]]; then
colour="004"
fi
(( _UPDATE_ENV_STATUS )) && showMe=1
case $_UPDATE_ENV_STATUS in
1) icon="⚠️" ;;
2) icon="⬇" ;;
3) icon="⬆" ;;
4) icon="‼️" ;;
esac
p10k segment -f ${colour} -i "${icon}" -c "${showMe}"
#}
| true |
ac03390d3317acc590b50d6f4e23082446a91024 | Shell | skbrown333/bash_profile | /bash_profile | UTF-8 | 844 | 3.203125 | 3 | [] | no_license | source /Users/steffan/git-completion.bash
export LC_CTYPE=C
export LANG=C
# for running locally
for f in ~/local-config/*.sh; do source $f; done
#This section adds the directory path and Git branch name into the CLI, to the left.
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
#####################
# Terminal colors
#####################
export PS1="[\[\033[36m\]\u \[\033[m\]\[\033[32m\]\[\033[33;1m\]\w\[\033[m\]]\[\033[0;31m\]\$(parse_git_branch)\[\033[m\] "
export CLICOLOR=1
export LSCOLORS=GxFxBxDxCxegedabagacad
##################
# Aliases
##################
alias gap='git add --patch'
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | true |
aa829b2c3084a9a3fb8a19bbc0aa3b0b440ca3a0 | Shell | aws-samples/aws-iot-kickstart | /deployment/scripts/02-cf-custom-resource-lambda.sh | UTF-8 | 872 | 3.4375 | 3 | [
"ISC",
"GPL-2.0-only",
"Apache-2.0",
"GPL-1.0-or-later",
"OFL-1.1",
"BSD-3-Clause",
"WTFPL",
"MIT",
"GPL-3.0-only",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
# Check to see if input has been provided:
if [ -z "$1" ] || [ -z "$2" ]; then
echo "Please provide the source dir, dist dir"
echo "For example: ./00-cleanup.sh ../source ./dist"
exit 1
fi
set -e
echo "02-cf-custom-resource-lambda.sh-----------------------------------------------"
echo "mkdir -p $2/lambda"
mkdir -p $2/lambda
echo
echo "[Rebuild] Cloudformation custom resource - S3 Helper"
cd $1/resources/cf-helper-s3
yarn run build
cp $1/resources/cf-helper-s3/dist/`jq -cr '.name' package.json`.zip $2/lambda/`jq -cr '.name' package.json`.zip
echo
echo "[Rebuild] Cloudformation custom resource - Utils"
echo
cd $1/resources/utils
yarn run build
cp ./dist/`jq -cr '.name' package.json`.zip $2/lambda/`jq -cr '.name' package.json`.zip
echo
echo "------------------------------------------------------------------------------"
echo
exit 0
| true |
3fccb6bc57c1100d6d9ccc4e9b2dc34a0493c18c | Shell | mptrsen/scripts | /install-base-system.sh | UTF-8 | 5,075 | 3.8125 | 4 | [] | no_license | #!/bin/bash
# Installs the base system with many packages I need for my work.
# In particular, this installs:
# - an up-to-date version of R
# - the TeX Live 2018 distribution
# - everything I need to compile stuff
# - git, vim, mutt, etc
set -euo pipefail
script_path=$0
echo "Removing the stupid backspace mapping for Colemak keyboard layout"
sed -i -e '/BackSpace,\s\+BackSpace,/d' /usr/share/X11/xkb/symbols/us
# normal packages from the base repo
read -n 1 -p "Install the base packages? [y/n] "
echo
if [[ "$REPLY" = 'y' ]]; then
# install the rest of the base packages
echo "## Installing all base packages"
sudo apt-get install $(sed -ne '1,/^__BEGIN_PACKAGES__/d;/^__END_PACKAGES__/,$d;p' $script_path | tr '\n' ' ') # the packages listed at the end of this script
fi
# install R from CRAN
# add the repo for CRAN R for Ubuntu 18.04
read -n 1 -p "Install R from CRAN? [y/n] "
echo
if [[ "$REPLY" = 'y' ]]; then
echo "## Adding the CRAN repo"
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9 # add the repo key
if ! grep "deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/" /etc/apt/sources.list; then
sudo echo "deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/" >> /etc/apt/sources.list
fi
sudo apt-get update
# install R base
echo "## Installing R"
sudo apt-get install r-base r-base-dev
fi
read -n 1 -p "Install TeX Live? [y/n] "
echo
if [[ "$REPLY" = 'y' ]]; then
# Download TeX Live installer
texlive_url='http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz'
year=$(date +%Y)
echo "## Downloading TeX Live $year: $texlive_url"
wget -nv --show-progress "$texlive_url"
texlive_dir="~/local/share/texlive/$year"
echo "## Installing TeX Live $year to $texlive_dir"
echo "## This will take about two hours"
tar -xf $(basename install-tl-unx.tar.gz)
cd install-tl-$year*
mkdir -p $texlive_dir
# use TeX Live profile from the end of this script and install TeX Live
sed -ne '1,/^__BEGIN_TEXLIVE_PROFILE__/d;/^__END_TEXLIVE_PROFILE__/,$d;p' $script_path | sed -e "s#USER_HOME#$HOME#" > texlive.profile
./install-tl --profile texlive.profile
echo "## TeX Live $year installed"
echo "## Installing additional TeX packages"
sed -ne '1,/^__BEGIN_TEXLIVE_PACKAGES__/d;/^__END_TEXLIVE_PACKAGES__/,$d;p' $script_path | xargs tlmgr install {} \;
# return to previous directory. This is actually important
# so the package list and texlive profile at the end don't get mixed up with
# the code
cd - > /dev/null
echo "## Done"
fi
echo '## All done. Bye!'
exit 0 # end the script!
__BEGIN_PACKAGES__
autoconf
automake
build-essential
claws-mail
cmake
conky
ctags
curl
davfs2
default-jre
dos2unix
dstat
emboss
fonts-ebgaramond
gimp
git
gnuplot
gnutls-bin
graphviz
htop
id3v2
imagemagick
imapfilter
inkscape
irssi
isync
jq
lftp
libboost-all-dev
libclass-dbi-mysql-perl
libclass-dbi-perl
libclass-dbi-sqlite-perl
libcurl4-openssl-dev
libjpeg62
libreoffice-java-common
libsasl2-2
libssl-dev
libxml2-dev
lmodern
lynx
mc
mplayer
msmtp
mutt
mysql-client
mysql-server
ngircd
openbox
openssh-server
openssl
pandoc
pandoc-citeproc
parallel
perl-doc
pmount
python-apsw
rsnapshot
rss2email
sqlite3
sshfs
terminator
tmux
tree
urlview
vim-gtk
vim-latexsuite
vorbis-tools
whois
xboard
youtube-dl
zsh
__END_PACKAGES__
__BEGIN_TEXLIVE_PROFILE__
# texlive.profile written on Thu Sep 27 12:46:08 2018 UTC
# It will NOT be updated and reflects only the
# installation profile at installation time.
selected_scheme scheme-custom
TEXDIR USER_HOME/local/share/texlive/2018
TEXMFCONFIG ~/.texlive2018/texmf-config
TEXMFHOME ~/texmf
TEXMFLOCAL USER_HOME/local/share/texlive/texmf-local
TEXMFSYSCONFIG USER_HOME/local/share/texlive/2018/texmf-config
TEXMFSYSVAR USER_HOME/local/share/texlive/2018/texmf-var
TEXMFVAR ~/.texlive2018/texmf-var
binary_x86_64-linux 1
collection-basic 1
collection-bibtexextra 1
collection-binextra 1
collection-context 1
collection-fontsextra 1
collection-fontsrecommended 1
collection-fontutils 1
collection-langenglish 1
collection-langeuropean 1
collection-langfrench 1
collection-langgerman 1
collection-langitalian 1
collection-latex 1
collection-latexrecommended 1
collection-luatex 1
collection-mathscience 1
collection-metapost 1
collection-plaingeneric 1
collection-xetex 1
instopt_adjustpath 0
instopt_adjustrepo 1
instopt_letter 0
instopt_portable 0
instopt_write18_restricted 1
tlpdbopt_autobackup 1
tlpdbopt_backupdir tlpkg/backups
tlpdbopt_create_formats 1
tlpdbopt_desktop_integration 1
tlpdbopt_file_assocs 1
tlpdbopt_generate_updmap 0
tlpdbopt_install_docfiles 1
tlpdbopt_install_srcfiles 1
tlpdbopt_post_code 1
tlpdbopt_sys_bin /usr/local/bin
tlpdbopt_sys_info /usr/local/share/info
tlpdbopt_sys_man /usr/local/man
tlpdbopt_w32_multi_user 1
__END_TEXLIVE_PROFILE__
__BEGIN_TEXLIVE_PACKAGES__
currvita
sectsty
breakurl
enumitem
environ
appendix
lettrine
textpos
quotchap
tabu
tocloft
titling
titlesec
sourcecodepro
makecell
minifp
import
lastpage
tabulary
multirow
threeparttable
threeparttablex
trimspaces
varwidth
wrapfig
__END_TEXLIVE_PACKAGES__
| true |
9fa239d769265ed9681b7c8c423f2afbaa6b44e4 | Shell | hkclark/HKC_HA_Addons | /ha_nginx_raw_proxy/data/run.sh | UTF-8 | 495 | 2.546875 | 3 | [] | no_license | #!/usr/bin/env bashio
set -e
DHPARAMS_PATH=/data/dhparams.pem
#DOMAIN=$(bashio::config 'domain')
#KEYFILE=$(bashio::config 'keyfile')
#CERTFILE=$(bashio::config 'certfile')
CONFIGFILE=$(bashio::config 'configfile')
#CUSTOMIZE_SERVERS=$(bashio::config 'customize.servers')
#sed -i "s|#include /share/nginx_proxy/.*|include /share/$CUSTOMIZE_SERVERS;|" /etc/nginx.conf
cp $CONFIGFILE /etc/nginx.conf
# start server
bashio::log.info "Running nginx..."
exec nginx -c /etc/nginx.conf < /dev/null
| true |
22abc50c08cede3a09e5abadc32ab54121d70aad | Shell | cico1989/workshop_exercise | /temp/exercise2 (copy) | UTF-8 | 845 | 3.46875 | 3 | [] | no_license | #!/bin/bash
#Program:Get mean monthly precipitation value (column4) of each month (column2) for each file.
awk '{for(i=1;i<NF+1;i++) sum[i] += $i} END {for(i=1;i<NF+1;i++) printf "column%4s:%20.4f\n",i,sum[i]/NR}' fluxes_-15.2500_39.2500
#Get the sum of precipitation for one month and then divide the sum by number of years
awk '{total[$2] += $4; count[$1]++} END {num=asort(count);for(month in total) printf "%4s:%15.4f\n",month,total[month]/num}' fluxes_-15.2500_39.2500 | sort -k 1 -n
#Get the monthly precipitation for each year and then get the mean monthly rainfall
awk '{total[$1,$2] += $4;count1[$1]++} END {num1=asort(count1);for(year in total) {split(year,total1,SUBSEP); sum[month]+=total1[year]};for(month in mean) {mean[month]=sum[month]/num1; printf "%4s:%15.4f\n",month,mean[month]}}' fluxes_-15.2500_39.2500 | sort -k 1 -n
| true |
4a8d71a66449c16ed7d88a9543461867ef381cbb | Shell | jameshilliard/ethos-update | /ethos-update.sh | UTF-8 | 2,538 | 3.828125 | 4 | [] | no_license | #!/bin/bash
# ethOS Update Script
# LICENSE AGREEMENT
#
# File Version See $VERSION Variable (c) 2016 Dale Chapman, sling00@gmail.com (“Author”).
#
# By using this file, you agree to the following:
#
# This file has been licensed to gpuShack for the exclusive use and distribution as part of ethOS. All other previous licenses
# of this file have been revoked. This license does not expire and allows for any modification, distribution, and/or derivative work
# by gpuShack and by the Author. This license extends to gpuShack’s owners, operators, officers, and contractors, where
# applicable.
#
# The Author expressly forbids and revokes usage of this file, as well as any previous iterations of this file, in any
# operating system other than ethOS. Any fork of ethOS, third party or otherwise, may not use this file without express written
# permission from the Author.
#
# Personal Use
#
# End users may modify and use this script for personal use, but may not redistribute or include in a larger work, in whole, or
# in part, without express written permission from the Author.
#
# Version History
#
# v1.x - EthOS Release
# v.1 - Development Release
#
# Portions derived from previous work by Author
#
# Red Goat License (v) 1.0
#
# This file is released under the "Small Goat with Red Eyes" license. Breaking the above license agreement will result in a
# small goat with red eyes visiting you while you sleep.
UPDATESERVER="curl -sL https://github.com/sling00/ethos-update/tarball/master.tar.gz | tar xz"
DEVELOPMENT=1
LOG="/var/log/ethos-update.log"
CURLARGS="-f -s -S -k"
SCRIPT_NEW_VERSION="$(curl $CURLARGS https://raw.githubusercontent.com/sling00/ethos-update/master/version/version)"
SCRIPT_VERSION="0.10"
ETHOSVERSION=$(cat /opt/ethos/etc/version)
if [ $DEVELOPMENT = "0" ] ; then
exec 1>>/var/log/ethos-update.log
exec 2>>/var/log/ethos-update.log
fi
function f.updatescript() {
echo "Checking if ethos-update is up to date........"
if [ $SCRIPT_NEW_VERSION \> $SCRIPT_VERSION ]; then
echo "Getting latest version of ethos-update"
download /tmp/ethos-update.tar $UPDATESERVER/ethos-update/ethos-update.tar
tar xvf /tmp/ethos-update.tar -C /opt/ethos > /var/log/ethos-update.log
echo "Updated to latest version, relaunching."
rm /tmp/ethos-update.tar
PROGNAME=$0
# ( shift; "$PROGNAME" $* ) | grep $1
exit 0
else
echo "Script up to date"
fi
}
function f.1.0-1.1() {
echo "version detected as $ETHOSVERSION. test"
}
f.updatescript
if [ /opt/ethos/etc/version = "1.0" ]; then
f.1.0-1.1
fi | true |
6f979be069912c170a8aaeb71264bc9c51d5a3ee | Shell | byronbest/aws-grass6-process-server | /unit_process/line_to_sphere.grass | UTF-8 | 519 | 2.625 | 3 | [] | no_license | #!/bin/bash
TIME=`date +"%Y-%M-%D %H:%M:%S"`
echo ${BASH_SOURCE}
TIME=`date +"%Y-%M-%D %H:%M:%S"`
if [ ! -e "$GRASSDBASE/{$SPHERE_LOCATION}" ] ; then
echo "$TIME CREATE LOCATION ${SPHERE_LOCATION}"
g.proj -c location=${SPHERE_LOCATION} proj4="+proj=longlat +a=6378137 +rf=298.257223563 +nadgrids=@null +wktext +no_defs +towgs84=0.000,0.000,0.000 +over"
fi
rsync -aq $GRASSDBASE/${LINE_LOCATION}/{BLM,EDWG,SLOPE,VEG} $GRASSDBASE/${SPHERE_LOCATION}
TIME=`date +"%Y-%M-%D %H:%M:%S"`
echo "$TIME finished $TARGETDIR"
| true |
2c752e0a8a9f829b0474eb89f393d277f90126f5 | Shell | sriharikrishna/enzymescripts | /scripts3/results/old/omp-mpi-forward/script.sh | UTF-8 | 115,636 | 2.578125 | 3 | [] | no_license | #!/usr/bin/bash
mywait(){
eval string1="$1"
STATUS=-1
while [ $STATUS -ne 0 ]; do
sleep 1
STATUS=$(pgrep -uubuntu ${1}| wc -l)
echo $STATUS
done
}
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 0-0 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_1_1_100_8_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 1-1 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_1_1_100_27_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 2-2 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_1_1_100_64_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 3-3 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_1_1_200_8_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 4-4 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_1_1_200_27_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 5-5 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_1_1_200_64_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 6-6 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_1_1_300_8_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 7-7 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_1_1_300_27_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 8-8 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_1_1_300_64_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 9-9 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_1_1_100_8_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 10-10 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_1_1_100_27_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 11-11 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_1_1_100_64_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 12-12 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_1_1_200_8_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 13-13 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_1_1_200_27_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 14-14 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_1_1_200_64_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 15-15 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_1_1_300_8_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 16-16 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_1_1_300_27_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 17-17 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_1_1_300_64_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 18-18 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_1_1_100_8_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 19-19 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_1_1_100_27_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 20-20 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_1_1_100_64_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 21-21 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_1_1_200_8_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 22-22 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_1_1_200_27_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 23-23 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_1_1_200_64_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 24-24 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_1_1_300_8_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 25-25 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_1_1_300_27_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 26-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_1_1_300_64_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 27-27 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_1_1_100_8_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 28-28 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_1_1_100_27_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 29-29 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_1_1_100_64_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 30-30 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_1_1_200_8_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 31-31 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_1_1_200_27_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 32-32 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_1_1_200_64_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 33-33 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_1_1_300_8_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 34-34 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_1_1_300_27_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 35-35 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_1_1_300_64_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 36-36 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_1_1_100_8_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 37-37 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_1_1_100_27_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 38-38 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_1_1_100_64_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 39-39 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_1_1_200_8_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 40-40 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_1_1_200_27_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 41-41 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_1_1_200_64_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 42-42 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_1_1_300_8_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 43-43 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_1_1_300_27_1_1.txt &
OMP_NUM_THREADS=1 mpirun -n 1 taskset -c 44-44 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_1_1_300_64_1_1.txt &
mywait omp-mpi
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 0-7 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_8_1_100_8_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 8-15 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_8_1_100_27_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 16-23 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_8_1_100_64_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 24-31 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_8_1_200_8_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 32-39 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_8_1_200_27_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 40-47 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_8_1_200_64_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 48-55 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_8_1_300_8_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 56-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_8_1_300_27_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 64-71 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_8_1_300_64_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 72-79 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_8_1_100_8_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 80-87 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_8_1_100_27_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 88-95 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_8_1_100_64_8_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 0-7 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_8_1_200_8_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 8-15 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_8_1_200_27_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 16-23 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_8_1_200_64_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 24-31 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_8_1_300_8_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 32-39 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_8_1_300_27_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 40-47 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_8_1_300_64_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 48-55 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_8_1_100_8_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 56-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_8_1_100_27_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 64-71 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_8_1_100_64_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 72-79 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_8_1_200_8_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 80-87 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_8_1_200_27_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 88-95 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_8_1_200_64_8_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 0-7 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_8_1_300_8_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 8-15 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_8_1_300_27_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 16-23 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_8_1_300_64_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 24-31 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_8_1_100_8_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 32-39 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_8_1_100_27_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 40-47 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_8_1_100_64_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 48-55 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_8_1_200_8_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 56-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_8_1_200_27_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 64-71 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_8_1_200_64_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 72-79 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_8_1_300_8_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 80-87 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_8_1_300_27_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 88-95 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_8_1_300_64_8_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 0-7 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_8_1_100_8_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 8-15 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_8_1_100_27_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 16-23 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_8_1_100_64_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 24-31 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_8_1_200_8_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 32-39 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_8_1_200_27_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 40-47 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_8_1_200_64_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 48-55 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_8_1_300_8_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 56-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_8_1_300_27_8_1.txt &
OMP_NUM_THREADS=1 mpirun -n 8 taskset -c 64-71 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_8_1_300_64_8_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_27_1_100_8_27_1.txt &
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_27_1_100_27_27_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_27_1_100_64_27_1.txt &
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_27_1_200_8_27_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_27_1_200_27_27_1.txt &
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_27_1_200_64_27_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_27_1_300_8_27_1.txt &
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_27_1_300_27_27_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_27_1_300_64_27_1.txt &
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_27_1_100_8_27_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_27_1_100_27_27_1.txt &
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_27_1_100_64_27_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_27_1_200_8_27_1.txt &
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_27_1_200_27_27_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_27_1_200_64_27_1.txt &
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_27_1_300_8_27_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_27_1_300_27_27_1.txt &
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_27_1_300_64_27_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_27_1_100_8_27_1.txt &
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_27_1_100_27_27_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_27_1_100_64_27_1.txt &
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_27_1_200_8_27_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_27_1_200_27_27_1.txt &
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_27_1_200_64_27_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_27_1_300_8_27_1.txt &
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_27_1_300_27_27_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_27_1_300_64_27_1.txt &
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_27_1_100_8_27_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_27_1_100_27_27_1.txt &
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_27_1_100_64_27_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_27_1_200_8_27_1.txt &
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_27_1_200_27_27_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_27_1_200_64_27_1.txt &
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_27_1_300_8_27_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_27_1_300_27_27_1.txt &
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_27_1_300_64_27_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_27_1_100_8_27_1.txt &
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_27_1_100_27_27_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_27_1_100_64_27_1.txt &
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_27_1_200_8_27_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_27_1_200_27_27_1.txt &
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_27_1_200_64_27_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_27_1_300_8_27_1.txt &
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_27_1_300_27_27_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 27 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_27_1_300_64_27_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_64_1_100_8_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_64_1_100_27_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_64_1_100_64_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_64_1_200_8_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_64_1_200_27_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_64_1_200_64_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_64_1_300_8_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_64_1_300_27_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_64_1_300_64_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_64_1_100_8_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_64_1_100_27_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_64_1_100_64_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_64_1_200_8_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_64_1_200_27_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_64_1_200_64_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_64_1_300_8_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_64_1_300_27_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_64_1_300_64_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_64_1_100_8_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_64_1_100_27_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_64_1_100_64_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_64_1_200_8_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_64_1_200_27_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_64_1_200_64_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_64_1_300_8_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_64_1_300_27_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_64_1_300_64_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_64_1_100_8_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_64_1_100_27_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_64_1_100_64_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_64_1_200_8_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_64_1_200_27_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_64_1_200_64_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_64_1_300_8_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_64_1_300_27_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_64_1_300_64_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_64_1_100_8_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_64_1_100_27_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_64_1_100_64_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_64_1_200_8_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_64_1_200_27_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_64_1_200_64_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_64_1_300_8_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_64_1_300_27_64_1.txt &
mywait omp
OMP_NUM_THREADS=1 mpirun -n 64 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_64_1_300_64_64_1.txt &
mywait omp
mywait omp
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 0-7 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_4_2_100_8_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 8-15 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_4_2_100_27_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 16-23 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_4_2_100_64_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 24-31 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_4_2_200_8_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 32-39 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_4_2_200_27_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 40-47 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_4_2_200_64_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 48-55 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_4_2_300_8_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 56-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_4_2_300_27_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 64-71 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_4_2_300_64_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 72-79 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_4_2_100_8_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 80-87 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_4_2_100_27_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 88-95 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_4_2_100_64_4_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 0-7 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_4_2_200_8_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 8-15 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_4_2_200_27_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 16-23 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_4_2_200_64_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 24-31 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_4_2_300_8_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 32-39 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_4_2_300_27_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 40-47 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_4_2_300_64_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 48-55 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_4_2_100_8_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 56-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_4_2_100_27_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 64-71 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_4_2_100_64_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 72-79 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_4_2_200_8_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 80-87 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_4_2_200_27_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 88-95 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_4_2_200_64_4_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 0-7 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_4_2_300_8_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 8-15 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_4_2_300_27_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 16-23 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_4_2_300_64_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 24-31 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_4_2_100_8_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 32-39 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_4_2_100_27_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 40-47 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_4_2_100_64_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 48-55 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_4_2_200_8_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 56-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_4_2_200_27_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 64-71 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_4_2_200_64_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 72-79 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_4_2_300_8_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 80-87 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_4_2_300_27_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 88-95 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_4_2_300_64_4_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 0-7 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_4_2_100_8_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 8-15 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_4_2_100_27_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 16-23 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_4_2_100_64_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 24-31 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_4_2_200_8_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 32-39 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_4_2_200_27_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 40-47 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_4_2_200_64_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 48-55 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_4_2_300_8_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 56-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_4_2_300_27_4_2.txt &
OMP_NUM_THREADS=2 mpirun -n 4 taskset -c 64-71 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_4_2_300_64_4_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_32_2_100_8_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_32_2_100_27_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_32_2_100_64_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_32_2_200_8_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_32_2_200_27_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_32_2_200_64_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_32_2_300_8_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_32_2_300_27_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_32_2_300_64_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_32_2_100_8_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_32_2_100_27_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_32_2_100_64_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_32_2_200_8_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_32_2_200_27_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_32_2_200_64_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_32_2_300_8_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_32_2_300_27_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_32_2_300_64_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_32_2_100_8_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_32_2_100_27_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_32_2_100_64_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_32_2_200_8_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_32_2_200_27_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_32_2_200_64_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_32_2_300_8_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_32_2_300_27_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_32_2_300_64_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_32_2_100_8_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_32_2_100_27_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_32_2_100_64_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_32_2_200_8_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_32_2_200_27_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_32_2_200_64_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_32_2_300_8_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_32_2_300_27_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_32_2_300_64_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_32_2_100_8_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_32_2_100_27_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_32_2_100_64_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_32_2_200_8_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_32_2_200_27_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_32_2_200_64_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_32_2_300_8_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_32_2_300_27_32_2.txt &
mywait omp
OMP_NUM_THREADS=2 mpirun -n 32 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_32_2_300_64_32_2.txt &
mywait omp
mywait omp
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_9_3_100_8_9_3.txt &
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_9_3_100_27_9_3.txt &
mywait omp
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_9_3_100_64_9_3.txt &
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_9_3_200_8_9_3.txt &
mywait omp
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_9_3_200_27_9_3.txt &
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_9_3_200_64_9_3.txt &
mywait omp
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_9_3_300_8_9_3.txt &
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_9_3_300_27_9_3.txt &
mywait omp
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_9_3_300_64_9_3.txt &
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_9_3_100_8_9_3.txt &
mywait omp
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_9_3_100_27_9_3.txt &
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_9_3_100_64_9_3.txt &
mywait omp
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_9_3_200_8_9_3.txt &
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_9_3_200_27_9_3.txt &
mywait omp
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_9_3_200_64_9_3.txt &
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_9_3_300_8_9_3.txt &
mywait omp
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_9_3_300_27_9_3.txt &
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_9_3_300_64_9_3.txt &
mywait omp
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_9_3_100_8_9_3.txt &
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_9_3_100_27_9_3.txt &
mywait omp
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_9_3_100_64_9_3.txt &
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_9_3_200_8_9_3.txt &
mywait omp
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_9_3_200_27_9_3.txt &
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_9_3_200_64_9_3.txt &
mywait omp
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_9_3_300_8_9_3.txt &
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_9_3_300_27_9_3.txt &
mywait omp
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_9_3_300_64_9_3.txt &
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_9_3_100_8_9_3.txt &
mywait omp
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_9_3_100_27_9_3.txt &
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_9_3_100_64_9_3.txt &
mywait omp
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_9_3_200_8_9_3.txt &
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_9_3_200_27_9_3.txt &
mywait omp
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_9_3_200_64_9_3.txt &
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_9_3_300_8_9_3.txt &
mywait omp
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_9_3_300_27_9_3.txt &
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_9_3_300_64_9_3.txt &
mywait omp
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_9_3_100_8_9_3.txt &
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_9_3_100_27_9_3.txt &
mywait omp
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_9_3_100_64_9_3.txt &
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_9_3_200_8_9_3.txt &
mywait omp
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_9_3_200_27_9_3.txt &
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_9_3_200_64_9_3.txt &
mywait omp
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_9_3_300_8_9_3.txt &
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_9_3_300_27_9_3.txt &
mywait omp
OMP_NUM_THREADS=3 mpirun -n 9 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_9_3_300_64_9_3.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 0-7 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_2_4_100_8_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 8-15 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_2_4_100_27_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 16-23 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_2_4_100_64_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 24-31 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_2_4_200_8_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 32-39 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_2_4_200_27_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 40-47 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_2_4_200_64_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 48-55 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_2_4_300_8_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 56-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_2_4_300_27_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 64-71 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_2_4_300_64_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 72-79 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_2_4_100_8_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 80-87 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_2_4_100_27_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 88-95 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_2_4_100_64_2_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 0-7 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_2_4_200_8_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 8-15 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_2_4_200_27_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 16-23 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_2_4_200_64_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 24-31 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_2_4_300_8_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 32-39 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_2_4_300_27_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 40-47 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_2_4_300_64_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 48-55 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_2_4_100_8_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 56-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_2_4_100_27_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 64-71 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_2_4_100_64_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 72-79 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_2_4_200_8_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 80-87 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_2_4_200_27_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 88-95 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_2_4_200_64_2_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 0-7 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_2_4_300_8_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 8-15 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_2_4_300_27_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 16-23 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_2_4_300_64_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 24-31 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_2_4_100_8_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 32-39 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_2_4_100_27_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 40-47 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_2_4_100_64_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 48-55 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_2_4_200_8_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 56-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_2_4_200_27_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 64-71 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_2_4_200_64_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 72-79 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_2_4_300_8_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 80-87 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_2_4_300_27_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 88-95 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_2_4_300_64_2_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 0-7 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_2_4_100_8_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 8-15 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_2_4_100_27_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 16-23 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_2_4_100_64_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 24-31 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_2_4_200_8_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 32-39 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_2_4_200_27_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 40-47 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_2_4_200_64_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 48-55 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_2_4_300_8_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 56-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_2_4_300_27_2_4.txt &
OMP_NUM_THREADS=4 mpirun -n 2 taskset -c 64-71 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_2_4_300_64_2_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_16_4_100_8_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_16_4_100_27_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_16_4_100_64_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_16_4_200_8_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_16_4_200_27_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_16_4_200_64_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_16_4_300_8_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_16_4_300_27_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_16_4_300_64_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_16_4_100_8_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_16_4_100_27_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_16_4_100_64_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_16_4_200_8_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_16_4_200_27_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_16_4_200_64_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_16_4_300_8_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_16_4_300_27_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_16_4_300_64_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_16_4_100_8_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_16_4_100_27_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_16_4_100_64_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_16_4_200_8_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_16_4_200_27_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_16_4_200_64_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_16_4_300_8_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_16_4_300_27_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_16_4_300_64_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_16_4_100_8_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_16_4_100_27_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_16_4_100_64_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_16_4_200_8_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_16_4_200_27_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_16_4_200_64_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_16_4_300_8_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_16_4_300_27_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_16_4_300_64_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_16_4_100_8_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_16_4_100_27_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_16_4_100_64_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_16_4_200_8_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_16_4_200_27_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_16_4_200_64_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_16_4_300_8_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_16_4_300_27_16_4.txt &
mywait omp
OMP_NUM_THREADS=4 mpirun -n 16 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_16_4_300_64_16_4.txt &
mywait omp
mywait omp
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 0-7 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_1_8_100_8_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 8-15 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_1_8_100_27_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 16-23 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_1_8_100_64_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 24-31 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_1_8_200_8_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 32-39 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_1_8_200_27_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 40-47 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_1_8_200_64_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 48-55 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_1_8_300_8_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 56-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_1_8_300_27_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 64-71 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_1_8_300_64_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 72-79 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_1_8_100_8_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 80-87 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_1_8_100_27_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 88-95 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_1_8_100_64_1_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 0-7 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_1_8_200_8_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 8-15 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_1_8_200_27_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 16-23 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_1_8_200_64_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 24-31 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_1_8_300_8_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 32-39 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_1_8_300_27_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 40-47 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_1_8_300_64_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 48-55 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_1_8_100_8_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 56-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_1_8_100_27_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 64-71 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_1_8_100_64_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 72-79 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_1_8_200_8_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 80-87 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_1_8_200_27_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 88-95 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_1_8_200_64_1_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 0-7 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_1_8_300_8_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 8-15 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_1_8_300_27_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 16-23 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_1_8_300_64_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 24-31 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_1_8_100_8_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 32-39 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_1_8_100_27_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 40-47 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_1_8_100_64_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 48-55 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_1_8_200_8_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 56-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_1_8_200_27_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 64-71 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_1_8_200_64_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 72-79 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_1_8_300_8_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 80-87 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_1_8_300_27_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 88-95 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_1_8_300_64_1_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 0-7 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_1_8_100_8_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 8-15 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_1_8_100_27_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 16-23 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_1_8_100_64_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 24-31 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_1_8_200_8_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 32-39 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_1_8_200_27_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 40-47 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_1_8_200_64_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 48-55 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_1_8_300_8_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 56-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_1_8_300_27_1_8.txt &
OMP_NUM_THREADS=8 mpirun -n 1 taskset -c 64-71 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_1_8_300_64_1_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_8_8_100_8_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_8_8_100_27_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_8_8_100_64_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_8_8_200_8_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_8_8_200_27_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_8_8_200_64_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_8_8_300_8_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_8_8_300_27_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_8_8_300_64_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_8_8_100_8_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_8_8_100_27_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_8_8_100_64_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_8_8_200_8_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_8_8_200_27_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_8_8_200_64_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_8_8_300_8_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_8_8_300_27_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_8_8_300_64_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_8_8_100_8_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_8_8_100_27_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_8_8_100_64_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_8_8_200_8_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_8_8_200_27_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_8_8_200_64_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_8_8_300_8_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_8_8_300_27_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_8_8_300_64_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_8_8_100_8_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_8_8_100_27_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_8_8_100_64_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_8_8_200_8_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_8_8_200_27_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_8_8_200_64_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_8_8_300_8_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_8_8_300_27_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_8_8_300_64_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_8_8_100_8_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_8_8_100_27_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_8_8_100_64_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_8_8_200_8_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_8_8_200_27_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_8_8_200_64_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_8_8_300_8_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_8_8_300_27_8_8.txt &
mywait omp
OMP_NUM_THREADS=8 mpirun -n 8 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_8_8_300_64_8_8.txt &
mywait omp
mywait omp
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_3_9_100_8_3_9.txt &
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_3_9_100_27_3_9.txt &
mywait omp
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_3_9_100_64_3_9.txt &
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_3_9_200_8_3_9.txt &
mywait omp
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_3_9_200_27_3_9.txt &
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_3_9_200_64_3_9.txt &
mywait omp
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_3_9_300_8_3_9.txt &
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_3_9_300_27_3_9.txt &
mywait omp
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_3_9_300_64_3_9.txt &
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_3_9_100_8_3_9.txt &
mywait omp
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_3_9_100_27_3_9.txt &
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_3_9_100_64_3_9.txt &
mywait omp
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_3_9_200_8_3_9.txt &
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_3_9_200_27_3_9.txt &
mywait omp
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_3_9_200_64_3_9.txt &
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_3_9_300_8_3_9.txt &
mywait omp
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_3_9_300_27_3_9.txt &
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_3_9_300_64_3_9.txt &
mywait omp
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_3_9_100_8_3_9.txt &
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_3_9_100_27_3_9.txt &
mywait omp
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_3_9_100_64_3_9.txt &
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_3_9_200_8_3_9.txt &
mywait omp
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_3_9_200_27_3_9.txt &
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_3_9_200_64_3_9.txt &
mywait omp
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_3_9_300_8_3_9.txt &
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_3_9_300_27_3_9.txt &
mywait omp
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_3_9_300_64_3_9.txt &
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_3_9_100_8_3_9.txt &
mywait omp
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_3_9_100_27_3_9.txt &
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_3_9_100_64_3_9.txt &
mywait omp
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_3_9_200_8_3_9.txt &
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_3_9_200_27_3_9.txt &
mywait omp
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_3_9_200_64_3_9.txt &
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_3_9_300_8_3_9.txt &
mywait omp
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_3_9_300_27_3_9.txt &
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_3_9_300_64_3_9.txt &
mywait omp
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_3_9_100_8_3_9.txt &
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_3_9_100_27_3_9.txt &
mywait omp
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_3_9_100_64_3_9.txt &
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_3_9_200_8_3_9.txt &
mywait omp
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_3_9_200_27_3_9.txt &
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_3_9_200_64_3_9.txt &
mywait omp
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_3_9_300_8_3_9.txt &
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_3_9_300_27_3_9.txt &
mywait omp
OMP_NUM_THREADS=9 mpirun -n 3 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_3_9_300_64_3_9.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_4_16_100_8_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_4_16_100_27_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_4_16_100_64_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_4_16_200_8_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_4_16_200_27_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_4_16_200_64_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_4_16_300_8_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_4_16_300_27_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_4_16_300_64_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_4_16_100_8_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_4_16_100_27_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_4_16_100_64_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_4_16_200_8_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_4_16_200_27_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_4_16_200_64_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_4_16_300_8_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_4_16_300_27_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_4_16_300_64_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_4_16_100_8_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_4_16_100_27_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_4_16_100_64_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_4_16_200_8_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_4_16_200_27_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_4_16_200_64_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_4_16_300_8_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_4_16_300_27_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_4_16_300_64_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_4_16_100_8_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_4_16_100_27_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_4_16_100_64_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_4_16_200_8_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_4_16_200_27_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_4_16_200_64_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_4_16_300_8_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_4_16_300_27_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_4_16_300_64_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_4_16_100_8_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_4_16_100_27_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_4_16_100_64_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_4_16_200_8_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_4_16_200_27_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_4_16_200_64_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_4_16_300_8_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_4_16_300_27_4_16.txt &
mywait omp
OMP_NUM_THREADS=16 mpirun -n 4 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_4_16_300_64_4_16.txt &
mywait omp
mywait omp
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_1_27_100_8_1_27.txt &
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_1_27_100_27_1_27.txt &
mywait omp
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_1_27_100_64_1_27.txt &
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_1_27_200_8_1_27.txt &
mywait omp
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_1_27_200_27_1_27.txt &
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_1_27_200_64_1_27.txt &
mywait omp
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_1_27_300_8_1_27.txt &
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_1_27_300_27_1_27.txt &
mywait omp
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_1_27_300_64_1_27.txt &
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_1_27_100_8_1_27.txt &
mywait omp
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_1_27_100_27_1_27.txt &
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_1_27_100_64_1_27.txt &
mywait omp
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_1_27_200_8_1_27.txt &
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_1_27_200_27_1_27.txt &
mywait omp
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_1_27_200_64_1_27.txt &
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_1_27_300_8_1_27.txt &
mywait omp
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_1_27_300_27_1_27.txt &
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_1_27_300_64_1_27.txt &
mywait omp
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_1_27_100_8_1_27.txt &
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_1_27_100_27_1_27.txt &
mywait omp
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_1_27_100_64_1_27.txt &
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_1_27_200_8_1_27.txt &
mywait omp
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_1_27_200_27_1_27.txt &
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_1_27_200_64_1_27.txt &
mywait omp
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_1_27_300_8_1_27.txt &
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_1_27_300_27_1_27.txt &
mywait omp
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_1_27_300_64_1_27.txt &
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_1_27_100_8_1_27.txt &
mywait omp
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_1_27_100_27_1_27.txt &
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_1_27_100_64_1_27.txt &
mywait omp
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_1_27_200_8_1_27.txt &
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_1_27_200_27_1_27.txt &
mywait omp
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_1_27_200_64_1_27.txt &
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_1_27_300_8_1_27.txt &
mywait omp
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_1_27_300_27_1_27.txt &
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_1_27_300_64_1_27.txt &
mywait omp
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_1_27_100_8_1_27.txt &
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_1_27_100_27_1_27.txt &
mywait omp
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_1_27_100_64_1_27.txt &
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_1_27_200_8_1_27.txt &
mywait omp
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_1_27_200_27_1_27.txt &
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_1_27_200_64_1_27.txt &
mywait omp
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_1_27_300_8_1_27.txt &
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 48-74 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_1_27_300_27_1_27.txt &
mywait omp
OMP_NUM_THREADS=27 mpirun -n 1 taskset -c 0-26 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_1_27_300_64_1_27.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_2_32_100_8_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_2_32_100_27_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_2_32_100_64_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_2_32_200_8_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_2_32_200_27_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_2_32_200_64_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_2_32_300_8_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_2_32_300_27_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_2_32_300_64_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_2_32_100_8_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_2_32_100_27_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_2_32_100_64_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_2_32_200_8_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_2_32_200_27_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_2_32_200_64_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_2_32_300_8_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_2_32_300_27_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_2_32_300_64_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_2_32_100_8_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_2_32_100_27_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_2_32_100_64_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_2_32_200_8_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_2_32_200_27_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_2_32_200_64_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_2_32_300_8_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_2_32_300_27_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_2_32_300_64_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_2_32_100_8_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_2_32_100_27_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_2_32_100_64_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_2_32_200_8_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_2_32_200_27_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_2_32_200_64_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_2_32_300_8_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_2_32_300_27_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_2_32_300_64_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_2_32_100_8_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_2_32_100_27_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_2_32_100_64_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_2_32_200_8_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_2_32_200_27_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_2_32_200_64_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_2_32_300_8_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_2_32_300_27_2_32.txt &
mywait omp
OMP_NUM_THREADS=32 mpirun -n 2 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_2_32_300_64_2_32.txt &
mywait omp
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_1_64_100_8_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_1_64_100_27_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_1_64_100_64_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_1_64_200_8_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_1_64_200_27_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_1_64_200_64_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_1_64_300_8_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_1_64_300_27_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_1_64_300_64_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_1_64_100_8_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_1_64_100_27_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_1_64_100_64_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_1_64_200_8_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_1_64_200_27_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_1_64_200_64_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_1_64_300_8_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_1_64_300_27_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_1_64_300_64_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_1_64_100_8_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_1_64_100_27_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_1_64_100_64_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_1_64_200_8_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_1_64_200_27_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_1_64_200_64_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_1_64_300_8_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_1_64_300_27_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_1_64_300_64_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_1_64_100_8_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_1_64_100_27_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_1_64_100_64_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_1_64_200_8_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_1_64_200_27_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_1_64_200_64_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_1_64_300_8_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_1_64_300_27_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_1_64_300_64_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 100 > omp-mpi-forward_1_64_100_8_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 100 > omp-mpi-forward_1_64_100_27_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 100 > omp-mpi-forward_1_64_100_64_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 200 > omp-mpi-forward_1_64_200_8_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 200 > omp-mpi-forward_1_64_200_27_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 200 > omp-mpi-forward_1_64_200_64_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 8 -i 300 > omp-mpi-forward_1_64_300_8_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 27 -i 300 > omp-mpi-forward_1_64_300_27_1_64.txt &
mywait omp
OMP_NUM_THREADS=64 mpirun -n 1 taskset -c 0-63 numactl -i all ~/OpenMPMPICPP/omp-mpi-forward.exe -s 64 -i 300 > omp-mpi-forward_1_64_300_64_1_64.txt &
mywait omp
mywait omp
| true |
2c721bc5ff0ed2f7e7a985d31b8e2aff883b19b6 | Shell | mastercactapus/pipelines | /appimagekit/runtime/build.sh | UTF-8 | 258 | 2.96875 | 3 | [] | no_license | #!/bin/sh
set -e
cd AppImageKit
VERSION=$(cat .git/ref)-$(dpkg --print-architecture)
echo "Sending build output to build.log"
bash -ex build.sh -n >build.log
set -x
mv out AppImageKit-$VERSION
tar czf ../bin/AppImageKit-$VERSION.tgz AppImageKit-$VERSION
| true |
7dc30fb9b1a0f3d3be5e8774792026d6ff2d01cd | Shell | ekyonn/Ethereum-1 | /docker/docker-geth-genesis.sh | UTF-8 | 2,147 | 3.5625 | 4 | [] | no_license | echo "
Welcome to
_____ ____ ____ ____ ____ ____ ____ _ ___ __ __ _
/ ___/| \| \ | || \ / || \ | | / \ / ]| |/ ]
( \_ | o ) D ) | | | _ || __|| o )| | | | / / | ' /
\__ || _/| / | | | | || | || || |___ | O |/ / | \
/ \ || | | \ | | | | || |_ || O || || / \_ |
\ || | | . \ | | | | || || || || \ || . |
\___||__| |__|\_||____||__|__||___,_||_____||_____| \___/ \____||__|\_|
The South African Private Blockchain Network
# This script starts an instance of the latest Ethereum Go client in a Docker vm
# and will generate a Genesis block for a new chain.
# Script Name : docker-geth-genesis.sh
# Author : Gary De Beer (BankservAfrica)
# Last Modifiy Date: 28/11/2016
#USAGE NOTES:
#===========
This script is installed as part of Springblocks/Blockchaininfrastructure Git repo and requires all
files from that repo to be present in the path as configured in the $WORKDIR variable below.
IMPORTANT!!!!!
==============
This script will REMOVE ALL FILES in the $CHAINDATA path specified below
"
# remove any previous version of the docker image
docker rm geth
#DO NOT CHANGE THESE VALUES
CHAINDATA=/Ethereum/Blockchain/data
WORKDIR=/Ethereum
GENESISPARAMS=" --datadir $CHAINDATA init $WORKDIR/Blockchain/genesisBlock.json"
# Display the settings being used on startup
echo "Startup parameters: (edit script to alter)"
echo "WORKDIR = $WORKDIR"
echo "CHAINDATA = $CHAINDATA"
echo " "
echo " "
echo "GETH CMD = geth $GENESISPARAMS"
echo "Backig up current static & trusted nodes files"
mkdir $WORKDIR/backup
cp $CHAINDATA/*.json $WORKDIR/backup
echo "Deleting current blockchain data"
rm -rf $CHAINDATA
mkdir $CHAINDATA
echo "Restoring static & trusted node files. Please update these files once the new enode is generated."
cp $WORKDIR/backup/*.json $CHAINDATA
rm -rf $WORKDIR/backup
echo "Starting the geth container"
docker run -t -i --name geth -v $WORKDIR:$WORKDIR \
--network="host" \
-w="$WORKDIR" \
springblock/geth $GENESISPARAMS
| true |
f6d75bcdf0aeb3ce71722e84ffb4572b1c3d8ea8 | Shell | bbhunter/netm4ul | /install.sh | UTF-8 | 3,159 | 4.21875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
# See this file for the differents variables value (installation path...)
source ./scripts/global_var.sh
source ./scripts/function.sh
# This program will need sudo (and the password if required in the sudoers) to complete successfuly
# This privilege will be needed for:
# - Write permission to /etc/ ("/etc/netm4ul/", "/etc/netm4ul/netm4ul.conf" and "/etc/bash_completion.d/netm4ul")
# - Write permission to /etc/local/bin/netm4ul
ME=$0
while [ ! -z "${1}" ]; do
if [ "$1" == "--install" ]; then
INSTALL_PATH="${2}"
shift 2
elif [ "$1" == "--config" ]; then
CONFIG_DIR="${2}/netm4ul/"
shift 2
elif [ "$1" == "--force-root" ]; then
FORCE_ROOT=1
shift 1
else
usage
echo -e "${RED}ERROR: Unknown option '$1'.${COLOR_RESET}"
exit 1
fi
done
if [[ $FORCE_ROOT -ne 1 ]]; then # If the FORCE_ROOT flag is not set, warn the user that they shouldn't run this as root.
if [[ $EUID -eq 0 ]]; then
echo "This installer should *NOT* run as root. It will use sudo only on the required parts."
exit 1
fi
fi
banner
if [[ is_up_to_date -eq 0 ]]; then
print_new_version_available
progress "Downloading new updates"
git pull
fi
progress "Requierements"
# Check that we have golang installed. Other dependencie will be automatically downloaded & installed
if ! [ -x "$(command -v go)" ]; then
echo "Golang is not installed ! Aborting"
exit 1
fi
subprogress "Golang installed" ${GREEN}
# Ensuring that dep is installed.
if ! [ -x "$(command -v dep)" ]; then
echo "Dep is not installed !"
echo "Installing..."
go get -u github.com/golang/dep/cmd/dep
fi
subprogress "Dep installed" ${GREEN}
progress "Compilation"
# This will compile the program
subprogress "Start compilation"
make || exit 1
subprogress "Compilation done" ${GREEN}
if [[ $SKIP_TEST -eq 0 ]]; then
# We don't exit early (like above) because some tests might not be reliable and or could fail without impact.
progress "Running tests"
make test || TEST_FAIL=1
if [[ $TEST_FAIL -eq 1 ]]; then
subprogress "Tests failed, continuing anyway" ${RED}
else
subprogress "Tests OK" ${GREEN}
fi
fi
# create config dir
progress "Installing globally"
subprogress "Creating $CONFIG_DIR folder"
[ -d $CONFIG_DIR ] || sudo mkdir $CONFIG_DIR
subprogress "Creating executable in $INSTALL_PATH"
# copy the executable into the install path
sudo cp ./netm4ul $INSTALL_PATH
# Generate & install the autocompletion
# We should add other cases like MacOS, and non-bash shell (zsh) here.
if [ "$SHELL" == "/bin/bash" ]; then
subprogress "Adding autocompletion"
[ -d $BASH_COMPLETION_DIR ] && ./netm4ul completion bash | sudo tee $BASH_COMPLETION_DIR$NAME > /dev/null # ubuntu bash completion
fi
# Check if "netm4ul" is correctly installed
progress "Checking if installation is successful"
if ! [ -x "$(command -v netm4ul)" ]; then
echo -e "${RED}Could not execute netm4ul command.${COLOR_RESET}Something went wrong ?"
subprogress "Errored !" ${RED}
else
subprogress "Done !" ${GREEN}
fi | true |
d6a2f25993613fae38cf808a0c04cb66f9d6979f | Shell | soulsearcher/scripts | /box_create.sh | UTF-8 | 603 | 3.78125 | 4 | [] | no_license | #!/bin/bash
#
# date 2015-08-25
#
###
# create box for vagrant
###
# get vm list from virtualbox
IFS=$'\n' ARR=(`VBoxManage list vms`)
for VALUE in "${ARR[@]}";
do
let I=I+1
echo "$I) $VALUE";
done
read -p "select vm : " VM_NUM
if [ $VM_NUM -le $I ]
then
VM_NAME=`VBoxManage list vms | sed -n "$VM_NUM"p | sed -e 's; .*$;;' | sed 's/\"//g'`
echo "selected : $VM_NUM) $VM_NAME"
## create vagrant box
echo "--- start vm packing"
vagrant package --output $VAGRANT_HOME/box-image/$VM_NAME.box --base $VM_NAME
echo "--- end vm packing"
else
echo "less than $I"
fi
| true |
01e021a98586edd44ce2f13777fff5372462e7c7 | Shell | veeteeran/holberton-system_engineering-devops | /0x0C-web_server/3-redirection | UTF-8 | 368 | 2.734375 | 3 | [] | no_license | #!/usr/bin/env bash
# configures a new Ubuntu machine
source_file="/etc/nginx/sites-available/default"
sudo apt-get update
sudo apt-get -y install nginx
sudo ufw allow 'Nginx HTTP'
echo "Holberton School" > /var/www/html/index.html
sudo sed -i '/^\tserver_name.*/a \\trewrite ^\/redirect_me https:\/\/www.google.com permanent;' $source_file
sudo service nginx restart
| true |
a9174b27c9e188bad1e1cf8ad425472a4efbd1a0 | Shell | ktmeaton/plague-phylogeography | /workflow/scripts/locus_bed.sh | UTF-8 | 428 | 3.09375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
REF_GBFF=$1
REF_BED=$2
# Prepare the locus bed file
locus=(`grep LOCUS ${REF_GBFF} | tr -s ' ' | cut -d " " -f 2`)
end=(`grep LOCUS ${REF_GBFF} | tr -s ' ' | cut -d " " -f 3`)
rm -f ${REF_BED}
for i in $(seq 1 ${#locus[@]})
do
echo -e "${locus[$i -1]}\t0\t${end[$i -1]}\t${locus[$i - 1]}" >> $REF_BED;
done
# Manual annotations
# plasminogen activation (pla)
echo -e "AL109969\t6665\t7603\tpla" >> $REF_BED
| true |
58b0ae6ea8c7a579122d4c1145eb1bb6c1996077 | Shell | Jibuzhu01/long_term_interest | /get_merge_score/get_merge_score.sh | UTF-8 | 1,431 | 3.671875 | 4 | [] | no_license | #/bin/bash
#by yj,2017.9.6
alarm()
{
msg=""
for args in $@
do
msg="$msg,$args"
done
python send_email.py "${msg}" 1
}
interval=$2
day=$1
HADOOP_FEATURE_SCORE_DIR=yuanjun/long_term_interest/feature_score
HADOOP_MERGE_SCORE_DIR=yuanjun/long_term_interest/merge_score/${day}
WORK_PATH=./get_merge_score
hadoop fs -test -e $HADOOP_MERGE_SCORE_DIR
if [ $? -eq 0 ]; then
hadoop fs -rm -r $HADOOP_MERGE_SCORE_DIR
fi
inputs=""
for i in $( seq 0 ${interval} )
do
d=`date -d "${day} ${i} days ago" +%Y%m%d`
tmp=${HADOOP_FEATURE_SCORE_DIR}/${d}
hadoop fs -test -e ${tmp}
if [ $? -eq 0 ]; then
inputs=$inputs" -input $tmp"
else
echo "$tmp is not exists!!!"
fi
done
hadoop fs -test -e $HADOOP_FEATURE_SCORE_DIR
if [ $? -eq 0 ]; then
hadoop org.apache.hadoop.streaming.HadoopStreaming \
-D mapred.map.tasks=256 \
-D mapred.reduce.tasks=256 \
-D mapred.job.name=wx_app_merge_score \
-D mapred.task.timeout=3600000 \
-mapper "cat" \
-file ${WORK_PATH}/get_merge_score_reducer.py \
-reducer "python get_merge_score_reducer.py" \
${inputs} \
-output ${HADOOP_MERGE_SCORE_DIR} \
-inputformat KeyValueTextInputFormat
fi
if [[ $? != 0 ]]; then
msg="get merge score fail at map-reduce step!"
now_time=`date -d" 1 hours ago" + "%Y%m%d%H"`
alarm ${msg} ${day} ${now_time}
exit -1
fi
timestamp=`date +"%Y%m%d%H%M"`
echo "${timestamp} get merge score success!${day}" | true |
c54ce89f3c7775604751d85f1345e4673f58c403 | Shell | GsDevKit/GsDevKit_todeClient | /template/startClient | UTF-8 | 6,354 | 3.78125 | 4 | [
"MIT"
] | permissive | #! /bin/bash
#=========================================================================
# Copyright (c) 2015,2016 GemTalk Systems, LLC <dhenrich@gemtalksystems.com>.
#
# MIT license: https://github.com/GsDevKit/GsDevKit_todeClient/blob/master/license.txt
#=========================================================================
theArgs="$*"
source ${GS_HOME}/bin/private/shFeedback
start_banner
usage() {
cat <<HELP
USAGE: $(basename $0) [-h] [-f] [-p <postfix>]
[ [-s <session-description-name>] [-t <test-suite-name> [-r]] [-z <smalltalkCI-smalltalk.ston-path>] ]
<client-name>
Launch todeClient image.
OPTIONS
-f
Rebuild the todeClient image
-h
display help
-p <postfix>
Launch the tode client image created with a matching postfix. If
the tode client image does not exist, build it.
-s <session-description-name>
Assume that client was created with -z option specified, use <session-description-name> to
override the default session name specified in the original <smalltalkCI-smalltalk.ston-path> file.
-z <smalltalkCI-smalltalk.ston-path>
If -t option is specified, path to SmalltalkCI smalltalk.ston file. Sets the image-level default
session name from the <smalltalkCI-smalltalk.ston-path> file and specifies the set of tests to run.
-t <test-suite-name>
Run the smalltalkCI tests specified in the <smalltalkCI-smalltalk.ston-path> file, using the
specified <test-suite-name>.
-r
If -t option specified, display results of test run on stdout.
-n
Run headless
EXAMPLES
$(basename $0) -h
$(basename $0) -f tode
$(basename $0) tode
$(basename $0) -p _0 tode # Launches the image named todeClient_0.image
$(basename $0) -n tode # Launches the image named todeClient_0.image headlessly
HELP
}
source ${GS_HOME}/bin/defGsDevKit.env
if [ "${GS_TODE_CLIENT}x" = "x" ] ; then
exit_1_banner "the GsDevKit_todeClient project has not been installed correctly or the GS_TODE_CLIENT environment variable has not been defined"
fi
source ${GS_HOME}/bin/private/winRunPharoFunctions
scriptDir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
postFix=""
force=""
sessionName=""
smalltalkCIPath=""
testSuiteName=""
showCIResults="false"
smalltalkCIArg=""
postFixArg=""
headless="false"
imageOptions=""
while getopts "fhp:s:z:t:rn" OPT ; do
case "$OPT" in
f) force="true";;
h) usage; exit 0 ;;
p) postFix="${OPTARG}"; postFixArg=" -p ${OPTARG} ";;
s) sessionName="${OPTARG}";;
t) testSuiteName="${OPTARG}";;
r) showCIResults="true";;
z) smalltalkCIPath="${OPTARG}"; smalltalkCIArg=" -c -z ${OPTARG} ";;
n) headless="true";;
*) usage; exit_1_banner "Uknown option";;
esac
done
shift $(($OPTIND - 1))
clientName=$1
imageName=${clientName}${postFix}
if [ "$force" = "true" ] ; then
$GS_TODE_CLIENT/bin/createPharoTodeClient -f $postFixArg $smalltalkCIArg $clientName
fi
if [ ! -e $scriptDir/${imageName}.image ] ; then
if [ ! -e $scriptDir/todeClient${postFix}.image ] ; then
echo "The requested client image: $scriptDir/${imageName}.image does not exist"
created="false"
while [ "$created" = "false" ] ; do
read -p "Do you wish to create ${imageName}? [y/n]" yn
case $yn in
[Yy]* ) $GS_TODE_CLIENT/bin/createPharoTodeClient -f $postFixArg $smalltalkCIArg $clientName; created="true";;
[Nn]* ) exit 1;;
* ) echo "Please answer yes or no.";;
esac
done
else
# pre-existing old-style image
imageName=todeClient${postFix}
fi
fi
# Detect operating system
PLATFORM="`uname -sm | tr ' ' '-'`"
# Macs with Core i7 use the same software as older Macs
[ $PLATFORM = "Darwin-x86_64" ] && PLATFORM="Darwin-i386"
case "$PLATFORM" in
Darwin-i386)
if [ ${headless} = "true" ]; then
pharoCmd="$scriptDir/pharo "
imageOptions="--no-quit"
else
pharoCmd="$scriptDir/pharo-ui "
fi
ciPharoCmd="$scriptDir/pharo "
;;
Linux-x86_64)
if [ ${headless} = "true" ]; then
pharoCmd="$scriptDir/pharo "
imageOptions="--no-quit"
else
pharoCmd="$scriptDir/pharo-ui --textenc UTF-8"
fi
ciPharoCmd="$scriptDir/pharo "
;;
MSYS_NT*|MINGW32_NT*|MINGW64_NT*)
if [ ${headless} = "true" ]; then
paroCmd="win_run_pharo $scriptDir --headless "
else
pharoCmd="win_run_pharo $scriptDir "
fi
ciPharoCmd="win_run_pharo $scriptDir --headless "
;;
*) exit_1_banner "unsupported platform: $PLATFORM" ;;
esac
unset GEMSTONE_NRS_ALL
if [ "${testSuiteName}x" != "x" ] ; then
if [ "${smalltalkCIPath}x" = "x" ] ; then
usage; exit_1_banner "Required -z option not specified"
fi
$ciPharoCmd $scriptDir/${imageName}.image eval "
| ci sessionName |
ci := SmalltalkCI platformClass basicNew
initialize;
suiteName: '$clientName';
readSTONSpec: '${smalltalkCIPath}'.
'${sessionName}' isEmpty
ifTrue: [
(ci compatibleConfigurationsFor: #gemstoneClient) do: [:configSpec |
configSpec sessionName ifNotNil: [:sessName | sessionName := sessName ]]]
ifFalse: [ sessionName := '${sessionName}' ].
SCIGemStoneServerConfigSpec defaultSessionName: sessionName.
ci test
"
if [ "${SMALLTALK_CI_BUILD:-}x" != "x" ] ; then
xml_files="${scriptDir}/"*.xml
if [[ $(ls ${xml_files} 2> /dev/null) ]]; then
cp -f ${xml_files} ${SMALLTALK_CI_BUILD}
fi
fi
if [ "${showCIResults}" = "true" ] ; then
python "$GS_HOME/shared/repos/smalltalkCI/lib/junit_xml_prettfier.py" "$scriptDir"
fi
else
echo "Pharo STDOUT routed to: ${scriptDir}/logs/${imageName}.log"
if [ "${sessionName}x" != "x" ]; then
$pharoCmd $scriptDir/${imageName}.image ${imageOptions} eval "
SCIGemStoneServerConfigSpec defaultSessionName: '${sessionName}'.
" &> $scriptDir/logs/${imageName}.log &
pid=$!
else
$pharoCmd $scriptDir/${imageName}.image ${imageOptions} &> $scriptDir/logs/${imageName}.log &
pid=$!
fi
sleep 2
pharo_alive=`kill -0 $pid`
if [[ ${pharo_alive} -ne 0 ]] ; then
echo "Error starting client image ${imageName}"
cat $scriptDir/logs/${imageName}.log
exit 1
else
test -f $scriptDir/${imageName}.pid && rm -f $scriptDir/${imageName}.pid
echo $pid > $scriptDir/${imageName}.pid
fi
fi
exit_0_banner "...finished"
| true |
86e7b6cae5efb349c646fae34dd41998a34bde13 | Shell | NicWayand/WRF_srf_output | /extract_srf_vars_single_gridcell.sh | UTF-8 | 4,884 | 3.5 | 4 | [] | no_license | #!/bin/bash
# This script takes a list of WRF indices (from get_indices_from_Lat_Lon.py) and extracts point ascii files containing
# multiple user defined variables
# Load in your personal PBS settings (if needed) and required modules (netcdf)
# i.e.
# module load netcdf_4.3.2-icc_14.0.3
# module load epel_packages
#/usr/lusers/nicway/civil/scripts/WRF_tools/Nics_PBS_settings
#### EDIT HERE! ####
maindir="/usr/lusers/nicway/civil/WRF/"
datadir=$maindir"d4_2015_srf/" # Where your WRF files are
BASIN="SNQ_pt" # Name of your WRF indices file created by get_indices_from_Lat_Lon.py
# Grab all files
FL=$datadir"/wrfout*" # --ignore='*f24*' # option to ignore certain hours if needed
# Define path to file list
I_lat_lon_list=$maindir"Basin_pts/"$BASIN"/"$BASIN".txt"
# Clear all temp and output files (if script has been run before)
while read FN Ilat Ilon cLat cLon tlat tlon
do
outpdir=$maindir"Basin_pts/"$BASIN"/"$FN"/"
mkdir -p $outpdir
cd $outpdir
rm -f time ppt temp q press sw lw u10 v10 snownc snowh snow graupelnc hailnc
done < $I_lat_lon_list
echo Done Clearing up previous files
# Now loop through each WRF file
# NOTE: You may have to edit below depending on your netcdf variable names and date format
#
for cf in $FL
do
echo $cf
# Loop through each user defined WRF grid cell/point we want, extract time series for given WRF file
# to the ascii file
while read FN Ilat Ilon cLat cLon tlat tlon
do
#echo $Ilat $Ilon $cLat $cLon $tlat $tlon
tempdir=$maindir"Basin_pts/"$BASIN"/"$FN"/TEMP/"
mkdir -p $tempdir
outpdir=$maindir"Basin_pts/"$BASIN"/"$FN"/"
ncdump -t -v Times $cf | sed -e '1,/data:/d' -e '$d' | tail -1 > $tempdir"temp1"
#sed 's/Times = //g' $tempdir"temp1" > $tempdir"temp2"
sed 's/"//g' $tempdir"temp1" > $tempdir"temp2"
#sed 's$, $\n$g' $tempdir"temp3" > $tempdir"temp4"
#sed '/^$/d' $tempdir"temp4" > $tempdir"temp5"
#sed 's/ //g' $tempdir"temp5" > $tempdir"temp6"
sed 's/;//g' $tempdir"temp2" > $tempdir"time"
ncks -s '%13.9f\n' -C -H -d south_north,$Ilat,$Ilat -d west_east,$Ilon,$Ilon -v RAINNC $cf > $tempdir"ppt"
ncks -s '%13.3f\n' -C -H -d south_north,$Ilat,$Ilat -d west_east,$Ilon,$Ilon -v T2 $cf > $tempdir"temp"
ncks -s '%13.9f\n' -C -H -d south_north,$Ilat,$Ilat -d west_east,$Ilon,$Ilon -v Q2 $cf > $tempdir"q"
ncks -s '%13.9f\n' -C -H -d south_north,$Ilat,$Ilat -d west_east,$Ilon,$Ilon -v PSFC $cf > $tempdir"press"
ncks -s '%13.3f\n' -C -H -d south_north,$Ilat,$Ilat -d west_east,$Ilon,$Ilon -v SWDOWN $cf > $tempdir"sw"
ncks -s '%13.3f\n' -C -H -d south_north,$Ilat,$Ilat -d west_east,$Ilon,$Ilon -v GLW $cf > $tempdir"lw"
ncks -s '%13.3f\n' -C -H -d south_north,$Ilat,$Ilat -d west_east,$Ilon,$Ilon -v U10 $cf > $tempdir"u10"
ncks -s '%13.3f\n' -C -H -d south_north,$Ilat,$Ilat -d west_east,$Ilon,$Ilon -v V10 $cf > $tempdir"v10"
ncks -s '%13.9f\n' -C -H -d south_north,$Ilat,$Ilat -d west_east,$Ilon,$Ilon -v SNOWNC $cf > $tempdir"snownc"
ncks -s '%13.3f\n' -C -H -d south_north,$Ilat,$Ilat -d west_east,$Ilon,$Ilon -v SNOWH $cf > $tempdir"snowh"
ncks -s '%13.3f\n' -C -H -d south_north,$Ilat,$Ilat -d west_east,$Ilon,$Ilon -v SNOW $cf > $tempdir"snow"
ncks -s '%13.3f\n' -C -H -d south_north,$Ilat,$Ilat -d west_east,$Ilon,$Ilon -v GRAUPELNC $cf > $tempdir"graupelnc"
ncks -s '%13.3f\n' -C -H -d south_north,$Ilat,$Ilat -d west_east,$Ilon,$Ilon -v HAILNC $cf > $tempdir"hailnc"
cat $tempdir"time" >> $outpdir"time"
head -n -2 $tempdir"ppt" >> $outpdir"ppt"
head -n -2 $tempdir"temp" >> $outpdir"temp"
head -n -2 $tempdir"q" >> $outpdir"q"
head -n -2 $tempdir"press" >> $outpdir"press"
head -n -2 $tempdir"sw" >> $outpdir"sw"
head -n -2 $tempdir"lw" >> $outpdir"lw"
head -n -2 $tempdir"v10" >> $outpdir"v10"
head -n -2 $tempdir"u10" >> $outpdir"u10"
head -n -2 $tempdir"snownc" >> $outpdir"snownc"
head -n -2 $tempdir"snowh" >> $outpdir"snowh"
head -n -2 $tempdir"snow" >> $outpdir"snow"
head -n -2 $tempdir"graupelnc" >> $outpdir"graupelnc"
head -n -2 $tempdir"hailnc" >> $outpdir"hailnc"
done < $I_lat_lon_list
done
# Merge files together (We have created indiviudal files for Air temp, RH etc, now merge to one file)
while read FN Ilat Ilon cLat cLon tlat tlon
do
findir=$maindir"Basin_pts/"$BASIN"/"$FN"/OUT/"
comdir=$maindir"Basin_pts/"$BASIN"/ALL/"
mkdir -p $findir
mkdir -p $comdir
outpdir=$maindir"Basin_pts/"$BASIN"/"$FN"/"
cd $outpdir
paste time temp ppt q press u10 v10 sw lw snownc snowh snow graupelnc hailnc > $findir"forcing_"$FN".txt"
cp $findir"forcing_"$FN".txt" $comdir"forcing_"$FN".txt"
cp $outpdir"time" $comdir"time_"$FN".txt"
#paste time > $findir"forcing_"$FN".txt"
done < $I_lat_lon_list
| true |
d347c67467c7c3097f800202a68e9c54d9750c6e | Shell | yoyowallet/configo | /spec/integration/parsers/properties.bats | UTF-8 | 317 | 2.71875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bats
load ../test_helper
@test "parsers: Properties works" {
run_container <<EOC
/bin/cat <<EOF >/test.properties
test_property=123
EOF
export CONFIGO_SOURCE_0='{"type": "file", "path": "/test.properties", "format": "properties"}'
configo printenv TEST_PROPERTY
EOC
assert_success "123"
} | true |
96ddd7cca77c25250f97eb5a547624e489549fa5 | Shell | teambi0s/InCTFi | /2021/Network Pentest/Home Drive/server/racks/rack4/start.sh | UTF-8 | 296 | 2.921875 | 3 | [] | no_license | #!/bin/sh
NAME=rack1
PASS=brutablebrutablebrutablepasssssss
FOLDER="/ftp/$NAME"
echo -e "$PASS\n$PASS" | adduser -h $FOLDER -s /sbin/nologin $NAME
mkdir -p $FOLDER
chown $NAME:$NAME $FOLDER
MIN_PORT=21000
MAX_PORT=21010
exec /usr/sbin/vsftpd -opasv_min_port=$MIN_PORT -opasv_max_port=$MAX_PORT /etc/vsftpd/vsftpd.conf | true |
a05d4490dd9753e2617136f581ece3a9ad267efe | Shell | roidayan/ovs-tests | /tc_tests_common.sh | UTF-8 | 12,039 | 3.125 | 3 | [] | no_license | #!/bin/bash
function check_num_rules() {
local num=$1
local itf=$2
title "- Verify $num rules"
RES=`tc -s filter show dev $itf ingress | grep handle | wc -l`
if (( RES == $num )); then success; else err "Found $RES rules but expected $num"; fi
}
function check_num_offloaded_rules() {
local num=$1
local offload_count=$2
local block=$3
title "- Verify $num rules with in_hw_count=$offload_count"
RES=`tc -s filter show block $block ingress | grep "in_hw in_hw_count $offload_count" | wc -l`
if (( RES == $num )); then
success
else
err
fi
}
function check_num_actions() {
local count=$1
local type=$2
title "- Verify $count actions"
RES=`tc -s actions ls action $type | grep order | wc -l`
if (( RES == $count )); then success; else err "Found $RES actions but expected $count"; fi
}
function tc_batch() {
local dup=$1
local dev_block=$2
local total=$3
local rules_per_file=$4
local cls=$5
local _action=${action:-drop}
local n=0
local count=0
local handle=0
local prio=1
local once=0
TC_OUT=/tmp/tc-$$
[ "$incr_prio" == 1 ] && prio=0
rm -fr $TC_OUT
mkdir -p $TC_OUT
for ((i = 0; i < 99; i++)); do
for ((j = 0; j < 99; j++)); do
for ((k = 0; k < 99; k++)); do
for ((l = 0; l < 99; l++)); do
SMAC="e4:11:$i:$j:$k:$l"
DMAC="e4:12:$i:$j:$k:$l"
((handle+=1))
[ "$no_handle" == 1 ] && handle=0
[ "$incr_prio" == 1 ] && ((prio+=1))
rule="$dev_block \
protocol ip \
ingress \
prio $prio \
handle $handle \
flower \
$skip \
src_mac $SMAC \
dst_mac $DMAC \
$cls \
action $_action $act_flags"
[ $once = "0" ] && once=1 && echo "type of rules: $rule"
echo "filter add $rule" >> ${TC_OUT}/add.$n
echo "filter change $rule" >> ${TC_OUT}/ovr.$n
echo "filter del $rule" >> ${TC_OUT}/del.$n
((count+=1))
let p=count%${rules_per_file}
if ((p==0)); then
((n++))
if (($dup==1)); then
handle=0
fi
fi
if ((count>=total)); then
break;
fi
done
if ((count>=total)); then
break;
fi
done
if ((count>=total)); then
break;
fi
done
if ((count>=total)); then
break;
fi
done
}
function tc_batch_vxlan() {
local dev_block=$1
local total=$2
local rules_per_file=$3
local cls=$4
local id=$5
local local_ip=$6
local remote_ip=$7
local dst_port=$8
local mirred_dev=$9
local extra_action=${10}
local n=0
local count=0
local handle=0
local prio=1
local once=0
TC_OUT=/tmp/tc-$$
[ "$incr_prio" == 1 ] && prio=0
rm -fr $TC_OUT
mkdir -p $TC_OUT
for ((i = 0; i < 99; i++)); do
for ((j = 0; j < 99; j++)); do
for ((k = 0; k < 99; k++)); do
for ((l = 0; l < 99; l++)); do
SMAC="e4:11:$i:$j:$k:$l"
DMAC="e4:12:$i:$j:$k:$l"
((handle+=1))
[ "$no_handle" == 1 ] && handle=0
[ "$incr_prio" == 1 ] && ((prio+=1))
rule="$dev_block \
protocol ip \
ingress \
prio $prio \
handle $handle \
flower \
$skip \
src_mac $SMAC \
dst_mac $DMAC \
$cls \
$extra_action \
action tunnel_key set id $id src_ip ${local_ip} dst_ip ${remote_ip} dst_port ${dst_port} $act_flags \
action mirred egress redirect dev $mirred_dev $act_flags"
[ $once = "0" ] && once=1 && echo "type of rules: $rule"
echo "filter add $rule" >> ${TC_OUT}/add.$n
echo "filter change $rule" >> ${TC_OUT}/ovr.$n
echo "filter del $rule" >> ${TC_OUT}/del.$n
((count+=1))
let p=count%${rules_per_file}
if ((p==0)); then
((n++))
fi
if ((count>=total)); then
break;
fi
done
if ((count>=total)); then
break;
fi
done
if ((count>=total)); then
break;
fi
done
if ((count>=total)); then
break;
fi
done
}
function tc_batch_vxlan_multiple_encap_multiple_neigh() {
local dev_block=$1
local total=$2
local rules_per_file=$3
local cls=$4
local id=$5
local local_ip=$6
local remote_ip_net=$7
local remote_ip_host=$8
local dst_port=$9
local mirred_dev=${10}
local encaps_per_file=${11}
local add_pedit=${12}
local pedit_act=""
local remote_ip_start=$8
local n=0
local count=0
local handle=0
local prio=1
local once=0
local rules_per_encap=$((rules_per_file/encaps_per_file))
TC_OUT=/tmp/tc-$$
[ "$incr_prio" == 1 ] && prio=0
if [ $encaps_per_file -gt $rules_per_file ]; then
local rules_per_encap=$rules_per_file
fi
[ $rules_per_encap == 0 ] && fail "rules_per_encap cannot be 0"
rm -fr $TC_OUT
mkdir -p $TC_OUT
for ((i = 0; i < 99; i++)); do
for ((j = 0; j < 99; j++)); do
for ((k = 0; k < 99; k++)); do
for ((l = 0; l < 99; l++)); do
SMAC="e4:11:$i:$j:$k:$l"
DMAC="e4:12:$i:$j:$k:$l"
((handle+=1))
[ "$no_handle" == 1 ] && handle=0
[ "$incr_prio" == 1 ] && ((prio+=1))
[ "$add_pedit" == 1 ] && pedit_act="action pedit ex munge ip src set ${remote_ip_net}${remote_ip_host}"
rule="$dev_block \
protocol ip \
ingress \
prio $prio \
handle $handle \
flower \
$skip \
src_mac $SMAC \
dst_mac $DMAC \
$cls \
$pedit_act \
action tunnel_key set id $id src_ip ${local_ip} dst_ip ${remote_ip_net}${remote_ip_host} dst_port ${dst_port} $act_flags \
action mirred egress redirect dev $mirred_dev $act_flags"
[ $once = "0" ] && once=1 && echo "type of rules: $rule"
echo "filter add $rule" >> ${TC_OUT}/add.$n
echo "filter change $rule" >> ${TC_OUT}/ovr.$n
echo "filter del $rule" >> ${TC_OUT}/del.$n
((count+=1))
let p=count%${rules_per_file}
let e=count%${rules_per_encap}
if ((p==0)); then
((n++))
remote_ip_host=$remote_ip_start
elif ((e==0)); then
((remote_ip_host++))
fi
if ((count>=total)); then
break;
fi
done
if ((count>=total)); then
break;
fi
done
if ((count>=total)); then
break;
fi
done
if ((count>=total)); then
break;
fi
done
}
function tc_batch_vxlan_multiple_encap_single_neigh() {
local dev_block=$1
local total=$2
local rules_per_file=$3
local cls=$4
local id=$5
local local_ip_net=$6
local local_ip_host=$7
local remote_ip_net=$8
local dst_port=$9
local mirred_dev=${10}
local encaps_per_file=${11}
local add_pedit=${12}
local pedit_act=""
local local_ip_start=$7
local n=0
local count=0
local handle=0
local prio=1
local once=0
local rules_per_encap=$((rules_per_file/encaps_per_file))
TC_OUT=/tmp/tc-$$
[ "$incr_prio" == 1 ] && prio=0
if [ $encaps_per_file -gt $rules_per_file ]; then
local rules_per_encap=$rules_per_file
fi
[ $rules_per_encap == 0 ] && fail "rules_per_encap cannot be 0"
rm -fr $TC_OUT
mkdir -p $TC_OUT
for ((i = 0; i < 99; i++)); do
for ((j = 0; j < 99; j++)); do
for ((k = 0; k < 99; k++)); do
for ((l = 0; l < 99; l++)); do
SMAC="e4:11:$i:$j:$k:$l"
DMAC="e4:12:$i:$j:$k:$l"
((handle+=1))
[ "$no_handle" == 1 ] && handle=0
[ "$incr_prio" == 1 ] && ((prio+=1))
[ "$add_pedit" == 1 ] && pedit_act="action pedit ex munge ip src set ${remote_ip}"
rule="$dev_block \
protocol ip \
ingress \
prio $prio \
handle $handle \
flower \
$skip \
src_mac $SMAC \
dst_mac $DMAC \
$cls \
$pedit_act \
action tunnel_key set id $id src_ip ${local_ip_net}${local_ip_host} dst_ip ${remote_ip} dst_port ${dst_port} $act_flags \
action mirred egress redirect dev $mirred_dev $act_flags"
[ $once = "0" ] && once=1 && echo "type of rules: $rule"
echo "filter add $rule" >> ${TC_OUT}/add.$n
echo "filter change $rule" >> ${TC_OUT}/ovr.$n
echo "filter del $rule" >> ${TC_OUT}/del.$n
((count+=1))
let p=count%${rules_per_file}
let e=count%${rules_per_encap}
if ((p==0)); then
((n++))
local_ip_host=$local_ip_start
elif ((e==0)); then
((local_ip_host++))
fi
if ((count>=total)); then
break;
fi
done
if ((count>=total)); then
break;
fi
done
if ((count>=total)); then
break;
fi
done
if ((count>=total)); then
break;
fi
done
}
declare -A current
declare -A goal
function key_val_to_array() {
local -n arr=$1
local key
local value
while IFS== read -r key value; do
arr[$key]=$value
done
}
function check_test_results() {
local -n arr1=$1
local -n arr2=$2
for m in "${!arr1[@]}"; do
# Calculate absolute difference between baseline time and this test run (per cent).
read abs_diff <<< $(awk -v v1="${arr2[$m]}" -v v2="${arr1[$m]}" 'BEGIN{diff=(v2-v1)/v1 * 100;abs=diff<0?-diff:diff; printf "%.0f", abs}')
if ((abs_diff > 10)); then
err "Measured value for $m (current=${arr2[$m]} reference=${arr1[$m]}) differs by $abs_diff per cent"
else
success "Measured value for $m (current=${arr2[$m]} reference=${arr1[$m]}) differs by $abs_diff per cent"
fi
done
}
function run_perf_test() {
local input_file="$1"
local test_type="$2"
local num_rules="$3"
local num_instances="$4"
local flower_flags="$5"
local action_flags="$6"
# Skip all test output until results
local res
res=`$DIR/test-tc-perf-update.sh "$test_type" "$num_rules" "$num_instances" "$flower_flags" "$action_flags"`
local rc=$?
if [ $rc -ne 0 ]; then
fail "Perf update test failed"
fi
res=`echo -e "$res" | sed -n '/^RESULTS:$/,$p' | tail -n +2`
if [ -z "$res" ]; then
fail "Empty result"
fi
local input_res
if [ -f "$input_file" ]; then
input_res=`cat $input_file`
fi
if [ -n "$input_res" ]; then
key_val_to_array current < <(echo -e "$res")
key_val_to_array goal < "$input_file"
check_test_results goal current
else
title "No input file found. Create file $input_file."
echo -e "$res" > "$input_file" || fail "Failed to write results"
fail "Please re-run the test"
fi
}
| true |
194711c380738cc95b2f9b4a88cd1d7a49d36b2d | Shell | roun/scripts | /BToDKTo3piK/swpaper/normalizeAll.sh | UTF-8 | 383 | 2.890625 | 3 | [] | no_license | #!/usr/bin/env bash
# $Id: normalizeAll.sh,v 1.1 2008/01/02 20:45:55 fwinkl Exp $
# Merge the normalization constants written by normalizeAll.cc with
# original par files
list="ksppPdf kkpPdf kskkPdf kskpPdf"
normPat="normRe|normIm|normD|x0|y0"
for f in $list; do
cat "../BToDKTo3piK/params/$f.par" | egrep -v $normPat > "$f.par"
cat "$f" | egrep $normPat >> "$f.par"
done
| true |
4753c6664e9f05f5107d799372948c05f8650232 | Shell | abdelrahman-elkady/vanet-simulation | /main.cmd.sh | UTF-8 | 1,028 | 2.609375 | 3 | [] | no_license | #### [1] Find SUMO Tools here if installed with dpkg [APT] on Linux ####
# usr/share/sumo/tools
#### [2] Creating the network file ####
#
# netconvert -n $NODE_FILE -e $EDGE_FILE -o $TO_BE_GENERATED_OUTPUT_NETWORK_FILE
#
# Example:
# netconvert -n main.nod.xml -e main.edg.xml -o main.net.xml
#### [3] export netstate dump ####
#
# sumo -c main.sumocfg --fcd-output sumoTrace.xml
#### [4] Exporting the trace file ####
#
# $PATH_TO_TRACE_EXPORTER is in your tools dir, check number [1]
# $PATH_TO_TRACE_EXPORTER --fcd-input sumoTrace.xml --ns2mobility-output ns2mobility.tcl
### GENERATE THE ROUTE ####
#
# duarouter -n main.net.xml -f main.flow.xml -o main.rou.xml
#
############ NS ############
#
# cp ns2-mobility-trace.cc $NS3_INSTALLATION_DIR/ns3/ns-allinone-3.26/ns-3.26/scratch/
## TEMP, WE CAN FIND A BETTER PROGRAMMATICALLY APPROACH
#
# ./waf --run "scratch/ns2-mobility-trace --traceFile=$PATH_TO_OUR_PROJECT/ns2mobility.tcl --nodeNum=150 --duration=90.0 --logFile=$HOME/example/main-ns2-mob.log" --visualize
| true |
4992568b3df3e38879476bb174b6efdffbd0cbf4 | Shell | multiverse-os/sh | /scripts/process-lspci.sh | UTF-8 | 2,272 | 3.5625 | 4 | [] | no_license | #!/bin/sh
MULTIVERSE_DIR="/var/multiverse/scripts/pci-devices"
mkdir -p $MULTIVERSE_DIR
FILE="$MULTIVERSE_DIR/passthrough.sh"
echo "Processing lscpi to generate list of passthrough devices for this machine..."
echo "#!/bin/sh" > $FILE
echo "## Default PCI device passthrough" >> $FILE
echo "## Generated by process-lspci.sh\n" >> $FILE
echo "## IMPORT vfio management module" >> $FILE
echo ". /home/user/multiverse-os/scripts/sh-framework/modules/multiverse/vfio-management.sh\n" >> $FILE
lspci -mnD | sed -E 's/"//g' | awk '{
gsub(/^02..|^0d../, "network", $2)
gsub(/^03../, "display", $2)
gsub(/^09..|^0c../, "input", $2)
gsub(/^040(1|3)/, "audio", $2)
print "passthrough " $2 " " $3":"$4 " " $1
}' | grep -e "network\|display\|input\|audio" | sort >> $FILE
#### Interesting class prefixes ####
#### More details in /usr/share/misc/pci.ids
## Binding type "network"
# 02 Network controller
# 0d Wireless controller
## Binding type "display"
# 03 Display controller
## Binding type "input"
# 09 Input device controller
# 0c Serial bus controller
## Binding type "multimedia"
# 04 Multimedia controller
# 01 Multimedia audio controller
# 03 Audio device
chown user:libvirt $FILE
chmod 770 $FILE
echo "Installing systemctl service to bind devices to vfio on boot..."
cp pci-passthrough.service $MULTIVERSE_DIR
chown user:libvirt $MULTIVERSE_DIR/pci-passthrough.service
chmod 770 $MULTIVERSE_DIR/pci-passthrough.service
ln -s $MULTIVERSE_DIR/pci-passthrough.service /etc/systemd/system/
systemctl daemon-reload
systemctl enable pci-passthrough.service
echo "Passthrough configured.\n"
echo "Please review $FILE before next reboot."
echo "By default, all USB controllers are now owned by the controller VMS.\n"
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
echo "!!! !!!"
echo " $FILE "
echo "!!! must be edited manually !!!"
echo "!!! if you would like to reserve a USB controller for the host machine !!!"
echo "!!! !!!"
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
| true |
b5285491c6e174650dbc7335bb6ec84c22802fa7 | Shell | nilebox/kube-local | /kube-up.sh | UTF-8 | 1,481 | 3.703125 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -euo pipefail
cd "$( dirname "${BASH_SOURCE[0]}" )"
vagrant up
# Get internal VM IP address
INTERNAL_IP=$(vagrant ssh -c "ifconfig eth0 | grep Mask | awk '{print \$2}' | cut -f2 -d: | tr -d '\n'")
echo VM internal IP address is $INTERNAL_IP
# Get external VM IP address
EXTERNAL_IP=$(vagrant ssh -c "ifconfig eth1 | grep Mask | awk '{print \$2}' | cut -f2 -d: | tr -d '\n'")
echo VM external IP address is $EXTERNAL_IP
# Prepare config file
vagrant ssh -c "sudo cat /etc/kubernetes/admin.conf" > localkube.conf
sed -i '' "s/$INTERNAL_IP/$EXTERNAL_IP/g" localkube.conf
sed -i '' 's/kubernetes/localkube/g' localkube.conf
sed -i '' 's/localkube-admin@localkube/localkube/g' localkube.conf
LOCALCONFIG=$HOME/.kube/localkube
cp localkube.conf $LOCALCONFIG
# Keep both remote and local config accessible via kubectl
echo "===================================================================="
echo ""
echo "Now run the following command to setup kubectl context for localkube"
echo ""
KUBECONFIG=${HOME}/.kube/config:${LOCALCONFIG}
echo " export KUBECONFIG=\${HOME}/.kube/config:\$HOME/.kube/localkube"
echo ""
echo "Once you've done this, you can use this context via --context flag:"
echo ""
echo " kubectl --context localkube get pods"
echo ""
echo "And if you want to make 'localkube' your default context, run:"
echo ""
echo " kubectl config use-context localkube"
echo ""
echo "====================================================================" | true |
9151a62676c52f799ee32c9429838da46289c21a | Shell | pdaxrom/pdaXrom | /pdaXrom-ng-bsp/iphone/generic/init.initramfs-psfreedom | UTF-8 | 1,938 | 3.5 | 4 | [] | no_license | #!/bin/sh
upload_firmware_file() {
echo -e -n "Binary \x1b[36m$2\x1b[0m ... "
while [ ! -e "/sys/class/firmware/$1/loading" ]; do
/bin/sleep 1
done
echo -e -n "... "
echo 1 > "/sys/class/firmware/$1/loading"
/bin/cat "/lib/firmware/$2" > "/sys/class/firmware/$1/data"
echo 0 > "/sys/class/firmware/$1/loading"
echo -e "\x1b[32mdone!\x1b[0m"
}
upload_firmwares() {
upload_firmware_file "mmc0:0001:1" sd8686_helper.bin
upload_firmware_file "mmc0:0001:1" sd8686.bin
upload_firmware_file "iphone-multitouch" zephyr2.bin
#upload_firmware_file "iphone-multitouch" zephyr_main.bin
#upload_firmware_file "iphone-multitouch" zephyr_aspeed.bin
}
show_banner() {
echo
echo -e "\x1b[34m=========================\x1b[0m"
echo -e "$1"
echo -e "\x1b[34m=========================\x1b[0m"
}
/bin/mount -n -t proc none /proc
/bin/mount -n -t sysfs none /sys
echo "0 0 0 0" >/proc/sys/kernel/printk
show_banner "\x1b[33mInstalling firmwares\x1b[0m"
upload_firmwares
echo
show_banner "Switch on PS3 on the back"
sleep 3
show_banner 'Press power \x1b[1m|/(|)\x1b[0m then eject \x1b[1;4m/\\\x1b[0m quickly'
/sbin/lsmod | grep psfreedom > /dev/null
if [ $? != 0 ]; then
/sbin/insmod /lib/modules/2.6.32.9/kernel/misc/psfreedom.ko
RC=$?
fi
module_loop() {
while true; do
echo -n `cat /proc/psfreedom/status | tr '\n' '\r'`
if [ `cat /proc/psfreedom/status` == `echo DEVICE5_READY` ]; then
break
fi
done
}
module_loop &
pid="$!"
timeout=30
while true; do
sleep 1
timeout=$((timeout - 1))
if [ ! -e /proc/$pid ]; then
show_banner ' \x1b[1;31mP W N E D !\x1b[0m'
break;
fi
if [ $timeout -eq 0 ]; then
test -e /proc/$pid && kill $pid
show_banner '\x1b[1;33mTimeout!\x1b[0m'
break;
fi
done
rmmod psfreedom.ko
sleep 3
show_banner "\x1b[33mShutdown\x1b[0m"
sleep 1
echo 1 > /proc/sys/kernel/sysrq
echo o > /proc/sysrq-trigger
/bin/sh
| true |
95ce6356df231735a15e1f5582354b208e1ac9d7 | Shell | shayneholmes/zsh-sshrc | /zsh-sshrc.plugin.zsh | UTF-8 | 358 | 3.453125 | 3 | [] | no_license | if [ -z $_color_wrapper ]; then
_color_wrapper="_color_from_params"
fi
_sshrc_wrapper () {
local command
if [ $# = 1 ]; then
# no commands; gimme an sshrc shell
command="sshrc"
else
# commands (maybe); just run ssh directly
command="ssh"
fi
$_color_wrapper $command "$@"
}
compdef _sshrc_wrapper=ssh
alias ssh="_sshrc_wrapper"
| true |
8b296d54798f0053e1ac6d3fc8eada385aee175b | Shell | aymjnd/eNgenie | /a2vhost16 | UTF-8 | 3,840 | 4.34375 | 4 | [] | no_license | #!/bin/bash
TEXTDOMAIN=virtualhost
### waw ubuntu 16.04 apache2 php7
# global? mv this to /usr/local/bin, chmod +x
# else rename to anything.sh , ./anything.sh
### Set default parameters - vhost [create|delete] [example.com] [/path/to/hell] [admin email]
action=$1
domain=$2
root=$3
email=$4
# apache2 user dir ubuntu 16.04
a2=/var/www/
# Put owner/group that apache2 must run over for your system.
owner=$(who am i | awk '{print $1}')
group=www-data
#apache2 default
sitesEnable='/etc/apache2/sites-enabled/'
sitesAvailable='/etc/apache2/sites-available/'
#apache2 restart
restart='/etc/init.d/apache2 reload'
#check for root
if [ "$(whoami)" != 'root' ]; then
echo $"You don't have the permission to run $0 as non-root user. Sudo maybe?"
exit 1;
fi
if [ "$action" != 'create' ] && [ "$action" != 'delete' ]
then
echo $"You need to prompt for action (create or delete) -- Lower-case only"
exit 1;
fi
while [ "$domain" == "" ]
do
echo -e $"Please provide domain. e.g. example.com"
read domain
done
sitesAvailabledomain=$sitesAvailable$domain.conf
if [ "$action" == 'create' ]
then
while [ "$root" == "" ]
do
example=example
echo -e $"Enter directory name e.g 'example' for $a2$example"
read root
done
while [ "$email" == "" ]
do
echo -e $"Please provide administrator email"
read email
done
### check if domain already exists
if [ -e $sitesAvailabledomain ]; then
echo -e $"This domain already exists. Exit."
exit;
fi
### check if directory exists or not
if ! [ -d $a2$root ]; then
### create the directory
mkdir $a2$root
### give permission to root dir
chmod 755 $a2$root
### write test file in the new domain dir
if ! echo $domain > $a2$root/index.html
then
echo $"ERROR: Unable to write in $a2$root/. Please check permissions."
exit;
else
echo $"Added index.html into $a2$root/"
fi
if ! echo "<?php phpinfo(); ?>" > $a2$root/info.php
then
echo $"ERROR: Unable to write in $a2$root/. Please check permissions."
exit;
else
echo $"Added info.php into $a2$root/"
fi
fi
### create virtual host rules file
if ! echo "<VirtualHost *:80>
ServerAdmin $email
ServerName $domain
ServerAlias $domain
DocumentRoot $a2$root
<Directory />
AllowOverride All
</Directory>
<Directory $a2$root>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Require all granted
</Directory>
ErrorLog /var/log/apache2/$domain-error.log
LogLevel error
CustomLog /var/log/apache2/$domain-access.log combined
</VirtualHost>" > $sitesAvailabledomain
then
echo -e $"There is an ERROR create $domain file"
exit;
else
echo -e $"New Virtual Host Created."
fi
### Add domain in /etc/hosts
if ! echo "127.0.0.1 $domain" >> /etc/hosts
then
echo $"ERROR: Not able write in /etc/hosts"
exit;
else
echo -e $"Host added to /etc/hosts file."
fi
chown -R $owner:$group $a2$root
### enable website
a2ensite $domain
### restart apache2
$restart
### show the finished message
echo -e $"Done! \nYour new host is: http://$domain located at $a2$root"
exit;
else
### check whether domain already exists
if ! [ -e $sitesAvailabledomain ]; then
echo -e $"This domain does not exist.\nPlease try another one"
exit;
else
olddir=$(head -5 /etc/apache2/sites-enabled/$domain.conf|tail -1| awk -F " |;" '{print $2}')
### Delete domain in /etc/hosts
newhost=${domain//./\\.}
sed -i "/$newhost/d" /etc/hosts
### disable website
a2dissite $domain.conf
### delete user data
rm -rf $olddir
### restart Apache
/etc/init.d/apache2 reload
### Delete virtual host rules files
rm $sitesAvailabledomain
fi
### show the finished message
echo -e $"Complete!\nYou just removed Virtual Host $domain"
exit 0;
fi
| true |
a5410fef259a2ad4e71010549138f6549163bc75 | Shell | yadex/quoll | /other/bin/rofi-vb | UTF-8 | 189 | 2.71875 | 3 | [] | no_license | #!/bin/sh
loc="$HOME/opt/dots/"
exclude="gtk"
file="$(find "$loc" -type f,l | grep -iv "$exclude" | sed "s|$loc||" | rofi -dmenu)"
[ ! "$file" ] && exit
st -e zsh -i -c "v '$loc/$file'"
| true |
3760ba19bc1b2c94b5947a931f2eee6a16731140 | Shell | SashaVolohov/VH-DOS | /makefile.sh | UTF-8 | 831 | 3.390625 | 3 | [
"Unlicense"
] | permissive | read -p "Executable FASM file path: " fasm
srcs=./sources
# Compiling OS
echo "VH-DOS is compiling..."
date +"VH-DOS build at %D, %T%n" > ./build.log
# ~ echo "" >> build.log
pause() {
read -n 1 -t 30 -s
}
fakefasm="...${fasm:${#fasm}-11:${#fasm}}"
eachfile () {
echo "$fakefasm/$1" >> ./build.log
$fasm $1 >> ./build.log
if [ "$?" -gt "0" ];
then
pause
exit 1
fi
echo "" >> build.log
}
asmfiles=()
find ./sources -type f \( -name "*.asm" -o -name "*.inc" \) -print0 >tmpfile
while IFS= read -r -d $'\0'; do
asmfiles+=("$REPLY")
done <tmpfile
rm -f tmpfile
for curfile in "${asmfiles[@]}"
do
eachfile curfile
done
# Making installation image
echo "Building installation image..."
# $fasm $srcs/compile.asm
cp $srcs/compile.bin ./setup.img
find ./sources -type f -name "*.bin" -print0 | xargs -0 rm -f
pause
exit 0
| true |
f3675ef4076e4eae213107905333b260a5c9cdfb | Shell | aiwas/gcloud-dns-updater | /update.sh | UTF-8 | 1,427 | 3.578125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# update.sh
# Update dns records through gcloud sdk, invoked by gcloud-dns-updater.service
# Author: Miyako Kuwano <aiwas@arg.vc>
send_discord () {
curl -s -X POST -H "Content-Type: application/json" -d "{\"content\": \"${1}\"}" $DISCORD_WEBHOOK
}
# load settings
. $(cd $(dirname $0); pwd)/updater.conf
EXTERNAL_IP_ANSWERER="http://ifconfig.me"
gcloud config set account ${GCP_SERVICE_ACCOUNT} > /dev/null 2>&1
gcloud config set project ${GCP_PROJECT_ID} > /dev/null 2>&1
RECORD_IP=$(gcloud dns record-sets list --zone=${DNS_ZONE} --name=${DNS_DOMAIN} --type=A | grep "${DNS_DOMAIN}" | awk '{ print $4 }')
CURRENT_IP=$(curl -s ${EXTERNAL_IP_ANSWERER})
echo "In A record = $RECORD_IP"
echo "Actual ephemeral = $CURRENT_IP"
if [ "$CURRENT_IP" != "$RECORD_IP" ]; then
send_discord "IP address seems to have changed. $RECORD_IP -> $CURRENT_IP"
gcloud dns record-sets transaction start --zone=${DNS_ZONE}
gcloud dns record-sets transaction remove --zone=${DNS_ZONE} --name=${DNS_DOMAIN} --type=A
gcloud dns record-sets transaction add --zone=${DNS_ZONE} --name=${DNS_DOMAIN} --type=A --ttl=300 "${CURRENT_IP}"
gcloud dns record-sets transaction execute --zone=${DNS_ZONE} && \
send_discord "Updating DNS completed successfully.\nCurrent global IP address: $CURRENT_IP"
else
echo "IP address has not changed. (Current global IP address: $CURRENT_IP)"
fi
| true |
c1f5749cdeb3cfecbf9e711c0344e3f23ad922c1 | Shell | tmfs10/utils | /cli/choose_first_k.sh | UTF-8 | 443 | 2.96875 | 3 | [] | no_license | #!/bin/bash
if [ $# -lt 2 ]
then
echo "Usage: $0 <i> <j> [<file>]"
exit 1
fi
if [ $# -gt 2 ]
then
pyexec.py "f=dict()" "k=F[0][0]; if k not in f { f[k] = [] } if len(f[k]) < $2 { f[k] += [F[0][1]] }" "for k in f { for l in f[k][$1-1:] { print k + '\t' + l } }" < $3
else
pyexec.py "f=dict()" "k=F[0][0]; if k not in f { f[k] = [] } if len(f[k]) < $2 { f[k] += [F[0][1]] }" "for k in f { for l in f[k][$1-1:] { print k + '\t' + l } }"
fi
| true |
b87a2d57f8c6ec9a84ba665584580099da28ecab | Shell | thetrompf/uno-el-cliento | /scripts/repo.sh | UTF-8 | 135 | 2.5625 | 3 | [] | no_license | #!/bin/bash
DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR
cd ..
git pull
git submodule update --init --recursive | true |
02527f23d5df41395fdae22b0863164ef07d82d8 | Shell | zhlking/dockerfile | /zookeeper/scripts/zookeeper-start.sh | UTF-8 | 2,797 | 3.859375 | 4 | [] | no_license | #!/bin/bash
set -e
# Allow the container to be started with `--user`
if [[ "$1" = 'zkServer.sh' && "$(id -u)" = '0' ]]; then
chown -R $ZOO_USER:$ZOO_USER "$ZOO_DATA_DIR" "$ZOO_DATA_LOG_DIR" "$ZOO_LOG_DIR" "$ZOO_CONF_DIR"
exec gosu $ZOO_USER "$0" "$@"
fi
#创建目录
function create_data_dirs() {
if [ ! -d $ZOO_CONF_DIR ]; then
mkdir -p $LOG_DIR
chown -R $ZOO_USER:$ZOO_USER $ZOO_CONF_DIR
fi
if [ ! -d $ZOO_DATA_DIR ]; then
mkdir -p $ZOO_DATA_DIR
chown -R $ZOO_USER:$ZOO_USER $ZOO_DATA_DIR
fi
if [ ! -d $ZOO_DATA_LOG_DIR ]; then
mkdir -p $ZOO_DATA_LOG_DIR
chown -R $ZOO_USER:USER $ZOO_DATA_LOG_DIR
fi
if [ ! -d $ZOO_LOG_DIR ]; then
mkdir -p $LOG_DIR
chown -R $ZOO_USER:$ZOO_USER $ZOO_LOG_DIR
fi
}
# server参数配置
function print_servers() {
for (( i=1; i<=$ZOO_SERVERS; i++ )); do
echo "server.$i=$ZOO_NAME-$((i-1)).$ZOO_DOMAIN:$ZOO_SERVER_PORT:$ZOO_ELECTION_PORT;$ZOO_CLIENT_PORT"
done
}
#zoo.cfg 文件配置
function create_config() {
if [[ ! -f "$ZOO_CONF_DIR/zoo.cfg" ]]; then
CONFIG="$ZOO_CONF_DIR/zoo.cfg"
{
echo "dataDir=$ZOO_DATA_DIR"
echo "dataLogDir=$ZOO_DATA_LOG_DIR"
echo "tickTime=$ZOO_TICK_TIME"
echo "initLimit=$ZOO_INIT_LIMIT"
echo "syncLimit=$ZOO_SYNC_LIMIT"
echo "reconfigEnabled=$ZOO_RECONFIG_ENABLED"
echo "autopurge.snapRetainCount=$ZOO_AUTOPURGE_SNAPRETAINCOUNT"
echo "autopurge.purgeInterval=$ZOO_AUTOPURGE_PURGEINTERVAL"
echo "maxClientCnxns=$ZOO_MAX_CLIENT_CNXNS"
echo "standaloneEnabled=$ZOO_STANDALONE_ENABLED"
echo "admin.enableServer=$ZOO_ADMINSERVER_ENABLED"
} >> "$CONFIG"
if [[ $ZOO_SERVERS > 1 ]]; then
print_servers >> $CONFIG
else
echo "server.1=localhost:$ZOO_SERVER_PORT:$ZOO_ELECTION_PORT;$ZOO_CLIENT_PORT" >> $CONFIG
fi
if [[ -n $ZOO_4LW_COMMANDS_WHITELIST ]]; then
echo "4lw.commands.whitelist=$ZOO_4LW_COMMANDS_WHITELIST" >> "$CONFIG"
fi
for cfg_extra_entry in $ZOO_CFG_EXTRA; do
echo "$cfg_extra_entry" >> "$CONFIG"
done
fi
# 创建节点myid
echo $MY_ID >$ZOO_DATA_DIR/myid
}
# 获取节点主机信息
ZOO_HOST=`hostname -s`
ZOO_DOMAIN=`hostname -d`
if [[ $ZOO_HOST =~ (.*)-([0-9]+)$ ]]; then
#Pod名称前缀
ZOO_NAME=${BASH_REMATCH[1]}
#Pod节点ID
ZOO_ORD=${BASH_REMATCH[2]}
else
echo "Fialed to parse name and ordinal of Pod"
exit 1
fi
MY_ID=$((ZOO_ORD+1))
# 生成配置文件
create_config && create_data_dirs
#查看参数配置
cat "$CONFIG"
# 启动启动程序
exec zkServer.sh start-foreground
| true |
7a4dd22e0f3ac0d110baed881972d3eb937f125c | Shell | fracklen/dynamic-nginx | /etcdwatch | UTF-8 | 229 | 3.3125 | 3 | [] | no_license | #!/bin/bash
if [ -z "$ETCD_URL" ]
then
echo "ETCD_URL must be set"
exit 1
fi
if [[ $1 == "--recursive" ]]
then
RECURSIVE="&recursive=true"
shift
fi
KEY=$1
curl -s -L ${ETCD_URL}/v2/keys/${KEY}?wait=true${RECURSIVE}
| true |
77416d9054fd739ede236e1316bf316c8934f95e | Shell | rishikhuranasufi/scripts | /trello_create_card_andcomment.sh | UTF-8 | 1,734 | 3.65625 | 4 | [] | no_license | #!/bin/bash
if [ $# -ne 2 ]
then
echo "Usage is: $0: <board> <title>"
echo "For example: sredemo 'Some fucntionality is not working'"
exit 1
fi
if [ $1 != 'sredemo' -a $1 != 'testing' -a $1 != 'test' ]
then
echo 'Bad board Name'
exit 1
fi
if [ $1 = 'sredemo' ]
then
# listid='5e898dd591be4f25dcf19aad'
listid='5e898e06dbb51c73a6823ce4'
fi
if [ $1 = 'testing' ]
then
listid='kdjqlkdhj23o2kj2lq;edjk2edkj2'
fi
if [ $1 = 'test' ]
then
listid='ekjwlekfjeqlkwelk293294829348'
fi
echo 'List ID as '$listid
# replace spaces in name with + (or else http call will fail)
name=$2
name_with_date="$(date)"
safe_name=$(echo 'AUTOMATED: ' $name ', Created at: ' $name_with_date|tr ' ' '+')
#safe_name=$(echo '$safename $now')
data="name="$safe_name"&due=null&idList="$listid"&token=YOURTOKEN&key=YOURKEY"
# The following curl will throw away response json, and display just status code (200 == two thumbs up!)
curl --data $data https://api.trello.com/1/cards > output.json
cat output.json
shortLink=`cat output.json | jq ".shortLink"`
echo "Short link of card is "$shortLink
id=$(echo $shortLink | sed 's/"//g')
echo "Updated Link is "$id
txt_to_cmt="Issue+has+been+resolved+Sucessfully !!"
safe_comment=$(echo $txt_to_cmt|tr ' ' '+')
echo "Comment is "$txt_to_cmt
curl --data data="id=$id&token=YOURTOKEN&key=Key&text=$safe_comment" https://api.trello.com/1/cards/$id/actions/comments > commentUpdated.json
#last_executed_cmd_op=`cat output.txt`
#echo "Result of executed command "$last_executed_cmd_op
#if [ $last_executed_cmd_op == '200' ]
#then
# echo 'Card created successfully with code'$last_executed_cmd_op
#else
# echo 'Automated card creatio failed with error code '$last_executed_cmd_op
#fi
| true |
d78bcbead56cb3121b29c1729da6b362efca0da0 | Shell | devosb/debian-font | /bin/pbuilder-pso | UTF-8 | 3,645 | 3.625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
umask 022
RD='\033[0;31m' # Red
GN='\033[0;32m' # Green
NC='\033[0m' # No Color
log()
{
echo -e "${GN}$1${NC}"
}
userrc=$HOME/.pprc
if [ -f ${userrc} ]
then
source ${userrc}
fi
projectrc=../pprc
if [ -f ${projectrc} ]
then
source ${projectrc}
fi
DISTRIBUTIONS=${DISTRIBUTIONS:-$DISTS}
ARCHES=${ARCHES:-i386 amd64}
export PBUILDERDIR=$HOME/pbuilder
export PBUILDFOLDER=$PBUILDERDIR
mode=$1
pbmode=$mode
case $mode in
create|update|build|build-multi|clean|login|execute)
case $mode in
build)
# buildopts="--debbuildopts -sa" # always include source
buildopts=""
;;
build-multi)
buildopts="--debbuildopts -b" # --hookdir $PBUILDERDIR/hooks-multi"
pbmode=build
;;
esac
for DIST in $DISTRIBUTIONS
do
for ARCH in $ARCHES
do
log "running ${RD}${pbmode}${GN} for ${RD}$DIST${GN} with ${RD}$ARCH"
mkdir -p $PBUILDERDIR/$DIST/$ARCH/{aptcache,build,result}
sudo pbuilder --$pbmode --distribution $DIST --architecture $ARCH --basetgz $PBUILDERDIR/$DIST/$ARCH/base.tgz --aptcache $PBUILDERDIR/$DIST/$ARCH/aptcache --buildplace $PBUILDERDIR/$DIST/$ARCH/build --buildresult $PBUILDERDIR/$DIST/$ARCH/result --extrapackages "apt-utils devscripts lsb-release apt-transport-https libdistro-info-perl" $buildopts "$2"
done
done
;;
list)
for DIST in $DISTRIBUTIONS
do
for ARCH in $ARCHES
do
log "${RD}$DIST${GN} for ${RD}$ARCH"
ls -lFh $PBUILDERDIR/$DIST/$ARCH/result
log
done
done
;;
sign)
if [ -f "$2" ]
then
log "signing"
debsign "$2"
else
for DIST in $DISTRIBUTIONS
do
for ARCH in $ARCHES
do
log "signing ${RD}$ARCH${GN} in ${RD}$DIST"
debsign $PBUILDERDIR/$DIST/$ARCH/result/*.changes
done
done
fi
;;
upload)
for ARCH in $ARCHES
do
BASEARCH=$ARCH
done
for DIST in $DISTRIBUTIONS
do
BASEDIST=$DIST
BASERESULT=$PBUILDERDIR/$BASEDIST/$BASEARCH/result
if [ -f $BASERESULT/*.changes ]
then
break
fi
done
for DIST in $DISTRIBUTIONS
do
log "uploading to ${RD}$DIST${GN} from ${RD}$BASEARCH${GN} in ${RD}$BASEDIST"
pushd $BASERESULT
dput packager:ubuntu/$DIST *.changes
mv -v *.packager.upload upload-log-$DIST.txt
popd
done
;;
upload-multi)
for DIST in $DISTRIBUTIONS
do
if [ -f "$2" ]
then
log "uploading to ${RD}$DIST"
dput packager:ubuntu/$DIST "$2"
else
for ARCH in $ARCHES
do
log "uploading ${RD}$ARCH${GN} to ${RD}$DIST"
dput packager:ubuntu/$DIST $PBUILDERDIR/$DIST/$ARCH/result/*.changes
done
fi
done
;;
distclean)
for DIST in $DISTRIBUTIONS
do
for ARCH in $ARCHES
do
rm -rf $PBUILDERDIR/$DIST/$ARCH/result
mkdir -p $PBUILDERDIR/$DIST/$ARCH/result
done
done
;;
*)
log "invalid operation"
;;
esac
| true |
9d6ef6bb9b4a3a63cb8f687d1e01420edc66bef6 | Shell | cms-sw/cmssw | /MuonAnalysis/MomentumScaleCalibration/test/StatisticalErrors/TakeParameterFromBatch.sh | UTF-8 | 1,138 | 3.9375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if [ $# -lt 1 ]
then
echo "Error, usage is:"
echo "$0 N (dir)"
echo "Where"
echo " - N is the number of the line at which the parameter to extract is"
echo " - dir is the directory where to look for FitParameters_xxx.txt file"
echo " (optional, default is the last created)"
exit
fi
if [ $# -eq 2 ]
then
dir=$2
else
dir=`\ls -d1rt StatErrors_* | tail -1`
fi
#echo $dir
echo Taking parameter at line $1
if [ -f Values.txt ]
then
rm Values.txt
fi
first=1
for file in $(ls ${dir}/FitParameters_*.txt)
do
check=$(sed -n "${1}p" ${file} | awk '{print $1}')
if [ "$check" != "Results" ]
then
break
fi
if [ $first -eq 1 ]
then
numpar=$(sed -n "${1}p" ${file} | awk '{print $6}')
echo "Parameter ${numpar}" >> Values.txt
value=$(sed -n "${1}p" ${file} | awk '{print $9}' | awk -F+ '{print $1}')
first=0
echo $value >> Values.txt
else
value=$(sed -n "${1}p" ${file} | awk '{print $9}' | awk -F+ '{print $1}')
#echo "dir = $dir, file = $file value = $value"
echo $value >> Values.txt
fi
done
| true |
8f2396d59ebac7bc28ff226ea9515155149971e4 | Shell | msimon360/JADIS | /bin/run_jadis | UTF-8 | 9,180 | 2.6875 | 3 | [] | no_license | #!/bin/bash
set -x
#
# Title: run_jadis (based on gather_data.ksh by Mark Simon
# which was based on gen_sysinfo_idx by Peter Lundquist)
# Author: Mark Simon
################################################################
#
# run_jadis collects files from remote systems and generates
# files based on commands run aginst the list of hosts.
# run_jadis is designed to be run from root's (or an admin account)
# daily from cron
# Here is a sample cron enrty
# # Gather JADIS Files and Generate Reports
# 0 4 * * * /apps/opt/JADIS/bin/run_jadis > /apps/opt/JADIS/logs/gather_data.log 2>&1
#
################################################################
# Modification History:
# 20171115 Trying to get this working in Vz for JetBlue (Mts)
# 20120203 Major rewrite, Master/Slave processes run plugins
# 20120103 Fixed OS and OSVer not cleared in function copy_files (Mts)
# 20091021 Removed references to RUSER and used ruser[$x] from remote.lis (Mts)
# 20091014 Made a run_auto_update function, run if access = ssh or rsh. (Mts)
# 3.00 20090522 Remove all report generation. rename to run_jadis(Mts)
# 2.09 20090410 Gen lists sys.<user>.*rsh (Mts)
# 2.08 20090225 Fix bug head->tail in download check (Mts)
# 2.07 20090218 Reversed sort on Model list in footer (Mts)
# 2.06 20090217 Fix for html without TOC (Mts)
# 2.05 20090210 cleaned up HTML with CSS, added version to output (Mts)
# 01-27-2009 Many fixes found in fresh install, added link to Model (Mts)
# 10-13-2008 added SRCDIR, gunzip, (Mts)
# 08-10-2008 changed link to dynamic Data Request Form, added
# bg_not_complete_before_timeout function to prevent
# hangs on ssh commands
# 08-26-2008 Added link to Data Request Form (Mts)
# 06-24-2008 Added ACCESS column (Mts)
# 04-24-2008 Added idle servers (Mts)
# 04-17-2008 Change MODEL names to uppercase. (Mts)
# 03-25-2008 Changed temp files to use process ID (Mts)
# 03-13-2008 New CSS working, adding command line options. (Mts)
# 03-03-2008 Added convert non-html files to html (Mts)
# 02-25-2008 Major CSS update to aprox Verizon House Layout (Mts)
# 02-25-2008 Added SERIAL # or SYSTEM ID to Model count (Mts)
# Added missing to host count.
# 02-04-2008 Fixed problem with permissions and Model. (Mts)
# 01-31-2008 Added convert to frames. (Mts)
# 01-10-2008 Moved to omzrsi, changed directories.
# 09-27-2007 Added test for ssh via sysadm account for servers
# where root ssh is disabled. Local copy no longer
# needed. Moved chmod, chown out of loop. Changed
# chmod, chown to use find. (Mts)
# 09-26-2007 Modifications to get Model from cfg2html on Itanium
# Added local copy for central server (Mark Simon)
# 09-25-2007 Changed Title to Verizon (Mark Simon)
# 08-09-2006 Changed ftp section to scp due to server hardening
# 04-05-2004 Change background color from lightblue to white
# 11-19-2003 Modifications to fix display of workstation model
# Add cascading style sheet properties
# 10-26-2003 Modifications to archival/removal routines
# 10-20-2003 Added symlinks to hostname.sysinfo.latest.html
# 07-10-2003 Corrected chmod from 555 to 644
# 07-09-2003 Updated SIDIR to reflect new directory
# 07-08-2003 Changed font from "Arial" to "Arial, Sans-Serif"
# 06-20-2003 Added redirects for errors to /dev/null
# 06-19-2003 Date created
################################################################
function usage
{
echo "Usage: run_jadis [-f] [-h] [-H hostlist] [-m] [-r]"
echo "-f Force new summary file creation"
echo "-h Help, this text"
echo "-H <hostlist> list of hosts to run against"
echo "-m Master process"
echo "-r Report only, do not gather new files"
}
function initialize
{
# Cannot use logwrite until LOGLEVEL is set
let LOGLEVEL=1
logwrite "Initializing Variables" 1
# Source SITE CUSTOM file #
# The following are needed in the Site Custom File
#TIMEOUT - Timeout value for remote commands
SSH="ssh -q -o BatchMode=yes -o StrictHostKeyChecking=no"
BASE=`dirname $1`
if [ "${BASE}x" = ".x" ];then
BASE="`pwd`"
fi
BASE=`dirname $BASE`
. $BASE/etc/JADIS.ini
PATH=/usr/local/bin:/bin:/usr/bin:/usr/seos/bin:/bin:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/seos/bin:.:$BASE/bin:$BASE/cgi-bin
export PATH
today=`date +'%Y%m%d'`
THISHOST=`hostname | cut -d"." -f1`
# initialize remote file list
init_rfiles
logwrite "Initializing Variables complete" 1
return 0
}
function init_rfiles # Added OS in ver 6.0
{
logwrite "Initializing Remote File List" 1
# Read the Remote file list into arrays
PFS="${IFS}"
IFS=,
x=0
cat $RFLIST | while read ros[$x] source[$x] rfile[$x] ldir[$x] ruser[$x]; do
x=$((${x}+1))
done
NUMSOURCE=$x
IFS="${PFS}"
logwrite "Initializing Remote File List - complete" 1
}
function print_rfiles
{
logwrite "Printing Remote Files" 1
x=0
while [ $x < $NUMSOURCE ]; do
print "${source[$x]} ${rfile[$x]} ${ldir[$x]} ${ruser[$x]}"
x=$((${x}+1))
done
logwrite "Printing Remote Files - complete" 1
}
function logwrite
{
MSG="${1}"
let LEVEL=$2
# Write a formatted string to the logfile
DATESTAMP=`date +"%Y%m%d %H:%M"`
if (( $LEVEL < $LOGLEVEL )); then
#echo "##LOG:${DATESTAMP}: ${MSG}" >> $LOGFILE
# For debugging write to Standard Error
echo "##LOG:${DATESTAMP}: ${MSG}" >2
fi
return 0
}
function bg_not_complete_before_timeout
{
# the return values are reversed as this function
# is true if the background job is NOT complete
# don't let the double negative fool you :-)
sleep 1
if ps -p $! | grep $! >> /dev/null; then
let count="$1"
while ps -p $! | grep $! >> /dev/null; do
if (( $count > 0 )); then
logwrite " Waiting $count more seconds for completion." 1
sleep 6
let count="count - 6"
else
logwrite "! Failed to complete after $1 seconds." 1
return 0
fi
done
return 1
fi
return 1
}
function init_data_list # Need to add OS
{
logwrite "Init Data Sources List" 1
# Read the Remote file list into arrays
PFS="${IFS}"
IFS=,
x=0
cat $DLIST | while read source[$x] ldir[$x] datatype[$x]; do
ldir[$x]=`dirname ${ldir[$x]}`
x=$((${x}+1))
done
NUMSOURCE=$x
IFS="${PFS}"
logwrite "Init Data Sources List complete" 1
}
#### MAIN script ####
LOGFILE=/tmp/run_jadis.log
touch $LOGFILE
initialize $0
# Get command line options
while [ $# -gt 0 ]; do
case $1 in
-f ) FORCE_CSV=force_new_csv
shift;;
-h ) usage; exit 0
;;
-\? ) usage; exit 0
;;
-H ) shift
THISLIST=$1
shift;;
-m ) JADISMSTR="true"
shift;;
-r ) REPORT_ONLY=report_only
shift;;
-t ) TEAMDOC=true
shift;;
* )
echo "Option $1 not recognized, exiting.";usage;exit 1
;;
esac
done
if [ "${THISLIST}x" = "x" ];then
THISLIST=${JADISLIST}
logwrite "No Host List given. Defaulting to ${JADISLIST}" 1
fi
if (( $LOGLEVEL > 0 )); then
mv $LOGFILE ${LOGDIR}/run_jadis_${THISLIST}.log
fi
LOGFILE=${LOGDIR}/run_jadis_${THISLIST}.log
#
# If there is a settings file for this list source it
#
if [ -r ${TOPDIR}/etc/JADIS_${THISLIST}.ini ]; then
. ${TOPDIR}/etc/JADIS_${THISLIST}.ini
fi
# Declare Global Variables that will be changed in functions
ACCESS="unk"
# Determin if this is the Master Process
if [ "${JADISMSTR}" = "true" ]; then
logwrite "This process ${THISHOST}_${THISLIST} is the JADIS master" 1
# source Master Plugins and call functions
for master_file in `ls ${PLUGINS}/M* ` ; do
if [ -x ${master_file} ];then
. ${master_file}
## ENHANCMENT - gather_source should return the date of the source
## if it is not newer than the latest Summary File do not add
## output_source to source.lis
gather_source
output_source >> ${TMP}/source.lis
fi
done # processing Master Plugins
# end Master Process
else # Slave Process
logwrite "This process ${THISHOST}_${THISLIST} is not the JADIS master" 1
# source Host Plugins and build header
STATFILE=${DATADIR}/Status/${THISHOST}_${THISLIST}_status${today}.csv
echo -n "Hostname" > ${STATFILE}
for host_file in `ls ${PLUGINS}/H* ` ; do
if [ -x ${host_file} ];then
. ${host_file}
output_header >> ${STATFILE}
fi
done # processing Host Plugins for headers
echo "" >> ${STATFILE}
# Loop for all hosts in Host List
NUM_HOSTS=`wc -l ${LISTDIR}/${THISLIST} | cut -d" " -f1`
let HCOUNT=0
logwrite "Processing Hostlist ${THISLIST} with $NUM_HOSTS entries" 1
for hostname in `cat ${LISTDIR}/${THISLIST} `; do
let x=0
OUTPUT_DEFAULT="false"
echo -n "${hostname}" >> ${STATFILE}
let HCOUNT=${HCOUNT}+1
logwrite "Running Host Plugins for $hostname host $HCOUNT of $NUM_HOSTS" 1
# source Host Plugins and output_value
for host_file in `ls ${PLUGINS}/H*`; do
if [ -x ${host_file} ];then
. ${host_file}
output_value >> ${STATFILE}
fi
done # processing Host Plugins for values
echo "" >> $STATFILE
done # processing Hostlist
touch ${TMP}/${THISHOST}_${THISLIST}_complete
fi # Slave Process
exit 0
| true |
d50ee8633cd45714e6ec93a6165d772bfae2042a | Shell | debidroidcc/debidroidcc | /build-glibc.sh | UTF-8 | 674 | 3.21875 | 3 | [] | no_license | #!/bin/bash
# this stuff is to be executed on a x86 machine
# (or with a cross compiler generating x86 code)
# in order to get the appropriate binary
set -e
export PREFIX=/usr/local/cross-cc
export SRC_ROOT=~
export BUILD=arm-linux-gnueabihf
export HOST=arm-linux-gnueabihf
export TARGET=i686-pc-linux-gnu
export SRCDIR=$SRC_ROOT/cross-cc
export BUILDDIR=$SRCDIR/build
mkdir -p $BUILDDIR
cd $SRCDIR
wget -c http://ftp.gnu.org/gnu/glibc/glibc-2.16.0.tar.gz
tar -xzvf glibc-2.16.0.tar.gz
cd $BUILDDIR
$SRCDIR/glibc-2.16.0/configure --enable-addons --prefix=$PREFIX/$TARGET
make -j 4
sudo make install
cd $PREFIX
tar -czvf $SRC_ROOT/glibc-$TARGET-prefixed.tar.gz $TARGET
| true |
c00a27e6e00a0519201cbb5c87b244e75d07f934 | Shell | Piranik/wifi-presence | /client_reporter.sh | UTF-8 | 935 | 3.296875 | 3 | [] | no_license | #!/bin/sh
interfaces="ath0 ath1"
macs=""
new_macs=""
in=""
out=""
iam=$1
while true; do
for device in ${interfaces}; do
new_macs="$new_macs $(iw dev $device station dump | grep Station | awk '{print $2}' | sed ':a;N;$!ba;s/\n/ /g')"
done
# Check for new client connections
for mac in ${new_macs}; do
test="$(echo $macs | grep $mac)"
if [ "$test" = "" ]; then
echo "new mac: $mac"
in="$in+$mac"
fi
done
# Check for client disconnects
for mac in ${macs}; do
test="$(echo $new_macs | grep $mac)"
if [ "$test" = "" ]; then
echo "disconnected mac: $mac"
out="$out+$mac"
fi
done
if [ "$in" != "" ] || [ "$out" != "" ] ; then
new_macs="$(echo $new_macs | sed 's/ /+/g')"
url=$(echo "http://192.168.0.25:3000/wificlients/?iam=$iam&clients=$new_macs&in=$in&out=$out")
echo "$url"
wget "$url" -O /dev/null
fi
macs="$(echo $new_macs | sed 's/+/ /g')"
new_macs=""
in=""
out=""
sleep 3
done
| true |
45eedefdfc641b86026e5a4477c71231cba9b352 | Shell | ZhurinSergei/lab5 | /start-calc-followers-count.sh | UTF-8 | 497 | 2.859375 | 3 | [] | no_license | #!/bin/sh
if [ ! $# -eq 2 ]; then
printf "Usage: ./start-calc-followers-count.sh <REDUCER COUNT> <INPUT HDFS PATH>\n"
exit 1
fi
hdfs dfs -rm -r -f ./twitter/count_followers
hdfs dfs -test -d ./twitter
[ ! $? -eq 0 ] && hdfs dfs -mkdir ./twitter
hadoop jar $HADOOP_HOME/share/hadoop/tools/lib/hadoop-streaming-3.2.1.jar -files ./count_map.py,./count_red.py \
-mapper ./count_map.py -reducer ./count_red.py \
-input $2 -output ./twitter/count_followers -numReduceTasks $1
exit $? | true |
1506db43bc8bdf14d9d9d45a1e5273fbc92af8eb | Shell | arrtemiy/webdev | /vm.provision.sh | UTF-8 | 374 | 2.9375 | 3 | [] | no_license | echo 'Start "vm.provision.sh"'
vmip=192.168.33.33
echo 'Init apache vhosts'
for vhFile in /var/www/*.conf
do
sudo cp /var/www/*.conf /etc/apache2/sites-available/ -R
vhConf=${vhFile##*/}
sudo a2ensite ${vhConf}
vhost=${vhConf%.*}
sudo sed -i "2i${vmip} ${vhost}" /etc/hosts
done
sudo chmod -R 755 /var/www
sudo service apache2 restart
echo '--------' | true |
ea96da723f6b3bf659a01ef539e136f12d4a6a00 | Shell | ArashHosseini/Automatic_Speech_Recognition | /feature/core/nist2wav.sh | UTF-8 | 524 | 3.921875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# author:Rongyi Lan
# email:brianlanbo@gmail.com
# This file is designed for converting NIST format audio
# to WAV format audio, to run this script, you should install
# libsndfile software first.
target_dir=$1
fnames=(`find $target_dir -name "*.wv1"`)
for fname in "${fnames[@]}"
do
mv "$fname" "${fname%.wav}.nist"
sndfile-convert "${fname%.wav}.nist" "$fname"
if [ $? = 0 ]; then
echo renamed $fname to nist and converted back to wav using sndfile-convert
else
mv "${fname%.wav}.nist" "$fname"
fi
done
| true |
cb83233f1edd071b08c2678f59ad17b8c07ccbeb | Shell | greaterLoser/sourcepoint | /pageGen/OLD/oldpageGen.sh | UTF-8 | 850 | 3.890625 | 4 | [
"MIT"
] | permissive | #! /bin/bash
#-------------
#The purpose of this script is to eventually be used in conjunction with the other processing scripts to generate pages with the source videos contained therin. Right now it is setup using Netu.tv as the video host.
#-------------
rm ../src/pages/id-*.js
#-----
# Step 1: Create array from csv file with all the video links
#-----
readarray -t URLS < linklist.csv
#-----
# Step 2.1: Loop through array and create new page file for each link
# Step 2.2: Create pagename from video identifier within url
#-----
for LINK in ${URLS[*]}; do
PREPLINK=$(echo $LINK | sed 's,\&,\\\&,')
PAGENAME=$(echo $LINK | cut -d= -f2 | cut -d\& -f1)
sed "s,REPLACETHISSHIT,$PREPLINK," template.js > "id-$PAGENAME.js"
done
#-----
# Step 3: Move all page files to the page directory of the site folder
#-----
mv id-*.js ../src/pages
| true |
ec87c076d9e412426f13dea4ee4f680bade93839 | Shell | smtran/thesis | /regions/derivePostLanguageROIs_20150527.sh | UTF-8 | 7,356 | 2.71875 | 3 | [] | no_license | #!/bin/sh
#outdirFinalROes the parent dir of the thesis repo?
# ...stella's VM: /home/brain/gitRepos
#....stella's qball3: /data/birc/Atlanta/tranThesis/gitRepos
repoParent="/data/birc/Atlanta/tranThesis/gitRepos"
#modified regions of the H-O atlas or regions created (i.e., hand bump)
inputDir="${repoParent}/thesis/regions/modifiedRegions"
#masks that will be used to extract residual time series
outdirFinalROI="${repoParent}/thesis/regions/FinalROI"
#masks (nonbinary) that will be used to visually inspect boundaries
outdirTempROI="${repoParent}/thesis/regions/TempROI"
#regions extracted from lateralized H-O atlas
outdirAtlasExtraction="${repoParent}/thesis/regions/AtlasExtraction"
################ Posterior Language: Posterior Perisylvian Regions ################
#Regions from LATERALIZED HO Cortical Atlas
#41 L Angular Gyrus
#42 R Angular Gyrus
#39 L Supramarginal Gyrus, posterior division
#40 R Supramarginal Gyrus, posterior division
#37 L Supramarginal Gyrus, anterior division
#38 R Supramarginal Gyrus, anterior division
#19 L Superior Temporal Gyrus, posterior division
#20 R Superior Temporal Gyrus, posterior division
#25 L Middle Temporal Gyrus, temporoccipital part
#26 R Middle Temporal Gyrus, temporoccipital part
#91 L Planum Temporale
#92 R Planum Temporale
#left middle temporal gyrus, temporoocciptal part
fslmaths \
$FSLDIR/data/atlases/HarvardOxford/HarvardOxford-cortl-maxprob-thr25-1mm.nii.gz \
-thr 25 -uthr 25 -bin \
${outdirAtlasExtraction}/LH-MTGtempoccip-mask-bin.nii.gz \
-odt char
fslmaths \
$FSLDIR/data/atlases/HarvardOxford/HarvardOxford-cortl-maxprob-thr25-1mm.nii.gz \
-thr 25 -uthr 25 \
${outdirAtlasExtraction}/LH-MTGtempoccip-mask-orig.nii.gz \
-odt char
#right middle temporal gyrus, temporoocciptal part
fslmaths \
$FSLDIR/data/atlases/HarvardOxford/HarvardOxford-cortl-maxprob-thr25-1mm.nii.gz \
-thr 26 -uthr 26 -bin \
${outdirAtlasExtraction}/RH-MTGtempoccip-mask-bin.nii.gz \
-odt char
fslmaths \
$FSLDIR/data/atlases/HarvardOxford/HarvardOxford-cortl-maxprob-thr25-1mm.nii.gz \
-thr 26 -uthr 26 \
${outdirAtlasExtraction}/RH-MTGtempoccip-mask-orig.nii.gz \
-odt char
#left angular gyrus
fslmaths \
${inputDir}/cortl_slicedAngularSupramarginal.nii.gz \
-thr 41 -uthr 41 -bin \
${outdirAtlasExtraction}/LH-Ang-mask-bin.nii.gz \
-odt char
fslmaths \
${inputDir}/cortl_slicedAngularSupramarginal.nii.gz \
-thr 41 -uthr 41 \
${outdirAtlasExtraction}/LH-Ang-mask-orig.nii.gz \
-odt char
#right angular gyrus
fslmaths \
${inputDir}/cortl_slicedAngularSupramarginal.nii.gz \
-thr 42 -uthr 42 -bin \
${outdirAtlasExtraction}/RH-Ang-mask-bin.nii.gz \
-odt char
fslmaths \
${inputDir}/cortl_slicedAngularSupramarginal.nii.gz \
-thr 42 -uthr 42 \
${outdirAtlasExtraction}/RH-Ang-mask-orig.nii.gz \
-odt char
#left supramarginal gyrus, posterior division
fslmaths \
${inputDir}/cortl_slicedAngularSupramarginal.nii.gz \
-thr 39 -uthr 39 -bin \
${outdirAtlasExtraction}/LH-Supram-mask-bin.nii.gz \
-odt char
fslmaths \
${inputDir}/cortl_slicedAngularSupramarginal.nii.gz \
-thr 39 -uthr 39 \
${outdirAtlasExtraction}/LH-Supram-mask-orig.nii.gz \
-odt char
#right supramarginal gyrus, posterior division
fslmaths \
${inputDir}/cortl_slicedAngularSupramarginal.nii.gz \
-thr 40 -uthr 40 -bin \
${outdirAtlasExtraction}/RH-Supram-mask-bin.nii.gz \
-odt char
fslmaths \
${inputDir}/cortl_slicedAngularSupramarginal.nii.gz \
-thr 40 -uthr 40 \
${outdirAtlasExtraction}/RH-Supram-mask-orig.nii.gz \
-odt char
#left supramarginal gyrus, anterior division
fslmaths \
${inputDir}/cortl_slicedAngularSupramarginal.nii.gz \
-thr 37 -uthr 37 -bin \
${outdirAtlasExtraction}/LH-SupramAnt-mask-bin.nii.gz \
-odt char
fslmaths \
${inputDir}/cortl_slicedAngularSupramarginal.nii.gz \
-thr 37 -uthr 37 \
${outdirAtlasExtraction}/LH-SupramAnt-mask-orig.nii.gz \
-odt char
#right supramarginal gyrus, anterior division
fslmaths \
${inputDir}/cortl_slicedAngularSupramarginal.nii.gz \
-thr 38 -uthr 38 -bin \
${outdirAtlasExtraction}/RH-SupramAnt-mask-bin.nii.gz \
-odt char
fslmaths \
${inputDir}/cortl_slicedAngularSupramarginal.nii.gz \
-thr 38 -uthr 38 \
${outdirAtlasExtraction}/RH-SupramAnt-mask-orig.nii.gz \
-odt char
#left superior temporal gyrus, posterior division
fslmaths \
$FSLDIR/data/atlases/HarvardOxford/HarvardOxford-cortl-maxprob-thr25-1mm.nii.gz \
-thr 19 -uthr 19 -bin \
${outdirAtlasExtraction}/LH-STG-mask-bin.nii.gz \
-odt char
fslmaths \
$FSLDIR/data/atlases/HarvardOxford/HarvardOxford-cortl-maxprob-thr25-1mm.nii.gz \
-thr 19 -uthr 19 \
${outdirAtlasExtraction}/LH-STG-mask-orig.nii.gz \
-odt char
#right superior temporal gyrus, posterior division
fslmaths \
$FSLDIR/data/atlases/HarvardOxford/HarvardOxford-cortl-maxprob-thr25-1mm.nii.gz \
-thr 20 -uthr 20 -bin \
${outdirAtlasExtraction}/RH-STG-mask-bin.nii.gz \
-odt char
fslmaths \
$FSLDIR/data/atlases/HarvardOxford/HarvardOxford-cortl-maxprob-thr25-1mm.nii.gz \
-thr 20 -uthr 20 \
${outdirAtlasExtraction}/RH-STG-mask-orig.nii.gz \
-odt char
#left planum temporale
fslmaths \
${inputDir}/cortl_slicedPlanumTemp.nii.gz \
-thr 91 -uthr 91 -bin \
${outdirAtlasExtraction}/LH-PlanumTemp-mask-bin.nii.gz \
-odt char
fslmaths \
${inputDir}/cortl_slicedPlanumTemp.nii.gz \
-thr 91 -uthr 91 \
${outdirAtlasExtraction}/LH-PlanumTemp-mask-orig.nii.gz \
-odt char
#right planum temporale
fslmaths \
${inputDir}/cortl_slicedPlanumTemp.nii.gz \
-thr 92 -uthr 92 -bin \
${outdirAtlasExtraction}/RH-PlanumTemp-mask-bin.nii.gz \
-odt char
fslmaths \
${inputDir}/cortl_slicedPlanumTemp.nii.gz \
-thr 92 -uthr 92 \
${outdirAtlasExtraction}/RH-PlanumTemp-mask-orig.nii.gz \
-odt char
#create subset for visualization in fslview and decisions about boundaries
fslmaths ${outdirAtlasExtraction}/LH-Ang-mask-orig.nii.gz \
-add ${outdirAtlasExtraction}/RH-Ang-mask-orig.nii.gz \
-add ${outdirAtlasExtraction}/LH-Supram-mask-orig.nii.gz \
-add ${outdirAtlasExtraction}/RH-Supram-mask-orig.nii.gz \
-add ${outdirAtlasExtraction}/LH-SupramAnt-mask-orig.nii.gz \
-add ${outdirAtlasExtraction}/RH-SupramAnt-mask-orig.nii.gz \
-add ${outdirAtlasExtraction}/LH-STG-mask-orig.nii.gz \
-add ${outdirAtlasExtraction}/RH-STG-mask-orig.nii.gz \
-add ${outdirAtlasExtraction}/LH-MTGtempoccip-mask-orig.nii.gz \
-add ${outdirAtlasExtraction}/RH-MTGtempoccip-mask-orig.nii.gz \
-add ${outdirAtlasExtraction}/LH-PlanumTemp-mask-orig.nii.gz \
-add ${outdirAtlasExtraction}/RH-PlanumTemp-mask-orig.nii.gz \
${outdirTempROI}/posteriorLanguageROIs.nii.gz
#create binarized mask to extract residuals for each hemisphere
fslmaths ${outdirAtlasExtraction}/LH-Ang-mask-bin.nii.gz \
-add ${outdirAtlasExtraction}/LH-Supram-mask-bin.nii.gz \
-add ${outdirAtlasExtraction}/LH-SupramAnt-mask-bin.nii.gz \
-add ${outdirAtlasExtraction}/LH-STG-mask-bin.nii.gz \
-add ${outdirAtlasExtraction}/LH-MTGtempoccip-mask-bin.nii.gz \
-add ${outdirAtlasExtraction}/LH-PlanumTemp-mask-bin.nii.gz \
${outdirFinalROI}/LH-posteriorLanguage-mask-bin.nii.gz
fslmaths ${outdirAtlasExtraction}/RH-Ang-mask-bin.nii.gz \
-add ${outdirAtlasExtraction}/RH-Supram-mask-bin.nii.gz \
-add ${outdirAtlasExtraction}/RH-SupramAnt-mask-bin.nii.gz \
-add ${outdirAtlasExtraction}/RH-STG-mask-bin.nii.gz \
-add ${outdirAtlasExtraction}/RH-MTGtempoccip-mask-bin.nii.gz \
-add ${outdirAtlasExtraction}/RH-PlanumTemp-mask-bin.nii.gz \
${outdirFinalROI}/RH-posteriorLanguage-mask-bin.nii.gz
| true |
a61d72737060e528716af823f8ec13b5430ea702 | Shell | continuum/transbankdevelopers-web | /sync.sh | UTF-8 | 3,337 | 3.703125 | 4 | [] | no_license | #!/bin/bash
set -o nounset
set -o pipefail
set -o errexit
set -o xtrace
# User for automated commits/merges:
git config user.email "transbankdevelopers@continuum.cl"
git config user.name "Transbank Developers Automated Scripts"
# Git initializes submodules using HTTPS which asks for user/password
# Let's change it to SSH instead
perl -i -p -e 's|https://(.*?)/|git@\1:|g' .gitmodules
perl -i -p -e 's|https://(.*?)/|git@\1:|g' .git/config
# Pull changes, just in case
git pull
# Lets's get to work. First, make sure we are working with the latest repos
# downstream:
git submodule update --init --remote slate-tbk/ tbkdev_3.0-public/ transbank-developers-docs/
if ! git diff --exit-code; then
git commit -am "Update downstream slate and web"
git push
echo "New commits have been pushed by this script due to incoming changes"
echo "Syncing will continue on the next run"
exit
fi
# Then let's make sure we have the latest changes from cumbre:
for repo in slate-tbk tbkdev_3.0-public; do
cd "$repo"
git config user.email "transbankdevelopers@continuum.cl"
git config user.name "Transbank Developers Automated Scripts"
git fetch origin
git remote add -f cumbre "https://github.com/Cumbre/$repo.git" || \
git fetch cumbre
git checkout master
git merge --no-edit cumbre/master
git push origin master
cd ..
done
git submodule update --remote slate-tbk/ tbkdev_3.0-public/
if ! git diff --exit-code; then
git commit -am "Sync with downstream slate or web changes from cumbre"
git push
echo "New commits have been pushed by this script due to incoming changes"
echo "Syncing will continue on the next run"
exit
fi
# And now check if we have pending changes upstream:
if ! git diff --exit-code; then
git commit -am "Update upstream docs"
git push
echo "New commits have been pushed by this script due to incoming changes"
echo "Syncing will continue on the next run"
exit
fi
# Alright, everything was in sync. Now let's move files around:
cp -a transbank-developers-docs/images/* slate-tbk/source/images/
cp -a transbank-developers-docs/{producto,documentacion,referencia,plugin} \
slate-tbk/source/includes/
# And update the slate-tbk thing:
DEV_DOCS_HEAD="$(cd transbank-developers-docs/; git log --pretty=format:'%h' -n 1)"
cd slate-tbk
git checkout transbank-developers-docs
git pull
for f in $(find source/includes -name "README.md"); do
# Take README.md
cat "$f" | \
# Put {{dir}} on markdown links:
sed -e 's/\](\//\]({{dir}}\//g' | \
# Put {{dir}} on HTML links with single quotes
sed -e 's/='\''\//='\''{{dir}}\//g' | \
# Put {{dir}} on HTML links with double quotes
sed -e 's/="\//="{{dir}}\//g' | \
# and put the output on index.md
cat > "${f/README/index}"
rm "$f" # the original README.md is no longer needed nor wanted
done
git add -A
git diff --cached --exit-code || \
git commit -m "Update from transbank-developers-docs $DEV_DOCS_HEAD"
git push origin transbank-developers-docs
# Now let's see if the changes coming from the docs repo are compatible with
# any changes coming from the cumbre repo. Master is the integration point here
git checkout master
git merge --no-edit transbank-developers-docs
# If it went well, we can push and continue:
git push cumbre master
git push origin master
SLATE_HEAD="$(git log --pretty=format:'%h' -n 1)"
cd ..
# And we are done :)
| true |
bf8ce4b2179f3c51e7cd3a3be66bc26ffe40d799 | Shell | GloriaGo/dw | /lib/numactl-2.0.9/test/checkaffinity | UTF-8 | 809 | 3.390625 | 3 | [
"GPL-2.0-only",
"LGPL-2.1-only",
"LicenseRef-scancode-public-domain",
"Apache-2.0"
] | permissive | #!/bin/bash
# check if affinity works
BASE=`pwd`/..
export LD_LIBRARY_PATH=$BASE
export PATH=$BASE:$PATH
S=`numactl --show | grep nodebind:`
NODES=`echo $S | sed -e "s/nodebind://"`
S=`numactl --show | grep physcpubind:`
CPUS=`echo $S | sed -e "s/physcpubind://"`
for i in $CPUS ; do
if [ "$(numactl --physcpubind=$i ./printcpu)" != "$i" ] ; then
echo "--physcpubind for $i doesn't work"
exit 1
fi
if [ "$(numactl --physcpubind=$i numactl --show | awk '/^physcpubind/ { print $2 }' )" != "$i" ] ; then
echo "--show doesn't agree with physcpubind for cpu $i"
exit 1
fi
done
for i in $NODES ; do
if [ $(numactl --cpunodebind=$i numactl --show | awk '/nodebind/ { print $2 }' ) != $i ] ; then
echo "--show doesn't agree with cpunodebind for node $i"
exit 1
fi
done
| true |
a0f6d568001e4e05affa969d2c21dd6e1c03e1a3 | Shell | giladm/stash | /scripts/batch/runBatchProcess.sh | UTF-8 | 6,602 | 3.75 | 4 | [] | no_license | #!/bin/bash
#
# filename: runBatchProcess.sh
# author: gilad
#
# This is a nightly script for Feedback, Metrics aggregator and Export callback services:
# The script:
# Start each process, check if successesful and wait for its complition before starting the next process
# at the end send an email to ops
# stop jboss,
# rename log file (so next server startup on the same day will have a fresh start
# shutdown the server.
# Current day and time
nowis=`date +%Y-%m-%dT%H:%M`
# A utility function to append a string to a file
function fappend {
echo "$2">>$1;
}
# Send mail with proper content
SendMail ()
{
TOEMAIL="gilad@xtify.com,ops@xtify.com";
#TOEMAIL="gilad@xtify.com";
FREMAIL="$2";
SUBJECT="Nightly process ended (Feedback, Metrics-Aggregator and Export Callback Services) ";
MSGBODY="Auto generated email by $0 from $FREMAIL on $nowis. FeedbackService, ApplicationMetricsAggregator and ExportCallback Services were completed successfully. $1. Check /tmp/jboss-start.out on $FREMAIL server for errors. Check /opt/backup/ for file transferred to FTP";
TMP="/tmp/tmpfil_123"$RANDOM;
rm -rf $TMP;
fappend $TMP "From: $FREMAIL";
fappend $TMP "To: $TOEMAIL";
fappend $TMP "Reply-To: do not reply";
fappend $TMP "Subject: $SUBJECT";
fappend $TMP "";
fappend $TMP "$MSGBODY";
fappend $TMP "";
fappend $TMP "";
cat $TMP|/usr/sbin/sendmail -t;
rm $TMP;
}
# Send email when the service is complete
# Search for the proper key words in the log file
DoSendEmail()
{
var=`grep 'End Feedback Service' /opt/jboss/server/default/log/server.log |awk -F "=" '{print $2}' `
var2=`grep 'End Export Service' /opt/jboss/server/default/log/server.log |awk -F "=" '{print $2}' `
#send email
echo "Finish processing Feedback, Aggregator and ExportCallback services at $nowis. Mail results from $from" >>/tmp/jboss-start.out 2>&1
# mailMsg= `echo 'Feedback servie total keys=$var ; Export Callback total records=$var2'`
SendMail "Feedback servie total keys=$var ; Export MCR total records=$var2" $from
}
# Check if ExportCallbackService is complete
CheckIfExportCallbackServiceCompleted()
{
if [[ $(grep -c 'End Export Service' /opt/jboss/server/default/log/server.log ) != 0 ]];
then
echo "Finish processing ExportCallback service at $nowis" >>/tmp/jboss-start.out 2>&1
# Remove the export service from deploy folder
rm -f /opt/jboss/server/default/deploy/ExportCallbackService.sar >> /tmp/jboss-start.out 2>&1
return 0
else
return 1
fi
}
# Check if Aggregator is complete
CheckIfAggregatorServiceCompleted()
{
if [[ $(grep -c 'ApplicationMetricsAggregator Done' /opt/jboss/server/default/log/server.log ) != 0 ]];
then
echo "Finish processing Aggregator service at $nowis" >>/tmp/jboss-start.out 2>&1
# Remove the aggregator service from deploy folder
rm -f /opt/jboss/server/default/deploy/ApplicationMetricsAggregator.sar >> /tmp/jboss-start.out 2>&1
return 0
else
return 1
fi
}
# check the log file for feedback complete. return 0 if success
CheckIfFeddbackServiceCompleted()
{
if [[ $(grep -c 'End Feedback Service' /opt/jboss/server/default/log/server.log ) != 0 ]];
then
echo "Finish processing Feedback service at $nowis" >>/tmp/jboss-start.out 2>&1
# Remove the feedback service from deploy folder
rm -f /opt/jboss/server/default/deploy/FeedbackService.sar >> /tmp/jboss-start.out 2>&1
return 0
else
return 1
fi
}
# main program
SUCCESS=0
uname=`uname -a`
from=`echo "$uname" | awk -F " " '{print $2}'`
# time to wait in the 'for loop' before checking again if jboss finishes a process
wait_time=60
# 1 loop ExportCallbackService
cp -p /opt/share/master/ExportCallbackService.sar /opt/jboss/server/default/deploy >> /tmp/jboss-start.out 2>&1
# 1st loop
for (( ; ; ))
do
echo "Infinite loop. either ctrl-c or wait for the export service to complete"
nowis=`date +%Y-%m-%dT%H:%M`
CheckIfExportCallbackServiceCompleted
if [ $? -eq $SUCCESS ]
then
echo "ExportCallback service success at $nowis" >> /tmp/jboss-start.out 2>&1
break
else
echo "ExportCallback service is still running. Wait 10 min then check again"
sleep $wait_time
fi
done
sleep 2
#source starts the script export script to ftp server
source /opt/share/scripts/batch/runExportCallbackProcess.sh
# 2 loop Feedback
#cp -p ~gilad/FeedbackService.sar /opt/jboss/server/default/deploy >> /tmp/jboss-start.out 2>&1
cp -p /opt/share/master/FeedbackService.sar /opt/jboss/server/default/deploy >> /tmp/jboss-start.out 2>&1
for (( ; ; ))
do
echo "Infinite loop. either ctrl-c or wait for the feedback service to complete"
nowis=`date +%Y-%m-%dT%H:%M`
CheckIfFeddbackServiceCompleted
if [ $? -eq $SUCCESS ]
then
echo "Feedback service success at $nowis" >> /tmp/jboss-start.out 2>&1
break
else
echo "Feedback service is still running. Wait 10 min then check again"
sleep $wait_time
fi
done
sleep 2
#find the expired certificates and emails them to acct managmement.
source /opt/share/scripts/batch/getExpiredCertificates.sh
# 3 loop metrics aggregation
cp -p /opt/share/master/ApplicationMetricsAggregator.sar /opt/jboss/server/default/deploy >> /tmp/jboss-start.out 2>&1
for (( ; ; ))
do
echo "Infinite loop. either ctrl-c or wait for Metric Aggregator service to complete"
nowis=`date +%Y-%m-%dT%H:%M`
CheckIfAggregatorServiceCompleted
if [ $? -eq $SUCCESS ]
then
echo "Metrics Aggregator service completed at $nowis" >> /tmp/jboss-start.out 2>&1
break
else
echo "Aggregator service is still running. Wait 10 min then check again"
sleep $wait_time
fi
done
#All completed
DoSendEmail
#stop jboss
service jboss stop
# move the log file from the log dirctory so if starting again on same day it will not find the End token
mv /opt/jboss/server/default/log/server.log /opt/jboss/server/default/log/server.log.$nowis >> /tmp/jboss-start.out 2>&1
#shut down mongos
/etc/rc.d/init.d/xmongos stop
# shutting down the server
echo "Shutting server down in a minute at $nowis" >> /tmp/jboss-start.out 2>&1
echo "Really shutting down. Type: shutdown -c to cancel shutdown"
`shutdown -h +1 ` #shutdown in one minutes. ctrl-C or shutdown -c to cancel
| true |
6fe9fcd80630108e784c09bc4f8f36e0aa5cda09 | Shell | MicroRAsus/Poor-man-s-Google-search-engine | /Archive/Indexer/run.sh | UTF-8 | 441 | 2.65625 | 3 | [] | no_license | #!/bin/bash
rm pass1 pass2 FinalDictFile.out MappingFile.out tempDictFile.out posting.out
cd ./src/include
rm *.o
g++ -c ./*.cpp
cd ../
rm pass1.cpp *.o
flex -o pass1.cpp ./pass1.lex
g++ -std=c++11 -c ./pass1.cpp -lfl
g++ ./include/*.o pass1.o -o ../pass1 -lfl
g++ -c ./pass2.cpp -o ./pass2.o
g++ ./include/*.o pass2.o -o ../pass2
cd ../
if [ ! -d ./temp ]; then
mkdir ./temp
else
rm -r ./temp
mkdir ./temp
fi
./pass1 "$1" "$2"
./pass2
| true |
fa6e3f3e123f09038435993ba66af2f9b12216de | Shell | lixiaosheng/popkit-elpa | /run-travis-ci.sh | UTF-8 | 1,571 | 3.53125 | 4 | [
"MIT"
] | permissive | #!/bin/sh -e
exec 2>&1
cd "$(dirname "$0")"
echo `date +%Y-%m-%d-%H:%M.%S`
ECUKES_EMACS=${EMACS:-$(which emacs)}
echo "*** Emacs version ***"
echo "ECUKES_EMACS = $ECUKES_EMACS"
"$ECUKES_EMACS" --version
echo
"$ECUKES_EMACS" --batch --eval "(unless (ignore-errors (require 'cl-lib)) (package-refresh-contents) (package-install 'cl-lib))"
echo "start cask!!!!"
cask exec ecukes
echo "end cask!!!!"
if [ -n "$TRAVIS_COMMIT_RANGE" ]; then
echo "Building recipes touched in commits $TRAVIS_COMMIT_RANGE"
changed_recipes=$(git show --pretty=format: --name-only "$TRAVIS_COMMIT_RANGE" |grep -e '^recipes/[a-z0-9]'|sed 's/^recipes\///'|uniq)
for recipe_name in $changed_recipes; do
if [ -f "./recipes/$recipe_name" ]; then
echo "----------------------------------------------------"
echo "Building new/modified recipe: $recipe_name"
#"$ECUKES_EMACS" --batch --eval "(progn (load-file \"package-build.el\")(package-build-archive '$recipe_name))"
fi
done
fi
## "$ECUKES_EMACS" --batch --eval "(progn (load-file \"package-build.el\")(package-build-archive 'erlang))"
ALL_PKG_LIST=`ls -x recipes`
test_recipes="vagrant 2048-game ztree helm-ack"
echo "test_recipes = ${test_recipes}"
for recItem in $ALL_PKG_LIST; do
echo `date +%Y-%m-%d-%H:%M.%S`
if [ -f "./recipes/$recItem" ]; then
"$ECUKES_EMACS" --batch --eval "(progn (load-file \"package-build.el\")(package-build-archive '$recItem))"
fi
done
echo `date +%Y-%m-%d-%H:%M.%S`
make packages/archive-contents
echo "Build successful"
| true |
8d0154c3488b86cf2ba930c753c6157e958fdef7 | Shell | theGreenJedi/Path | /Python Books/Python-Network-Programming/fopnp-m/py3/tools/run.sh | UTF-8 | 1,308 | 4 | 4 | [] | no_license | #!/bin/bash
#
# Run sample shell commands found inside of a chapter README.md, and
# rewrite the README.md with their real output.
if [ -z "$1" ]
then
echo 'usage: run.sh ../chapter01/README.md' >&2
exit 2
fi
original_directory=$(pwd)
export LANG=C.UTF-8
export PYTHONPATH=$(readlink -f $(dirname $0))/monkeys
export PYTHONDONTWRITEBYTECODE=PLEASE
for readme in "$@"
do
cd $(dirname $readme)
while read line
do
echo "$line"
if [ "$line" = '```' ]
then
read command_line
echo "$command_line"
command=${command_line:2}
command=$(echo "$command" | sed 's/python\([23]\) /python\1 -u /')
eval $command
sleep 0.5
read line
while ! echo "$line" | grep -q '```'
do read line
done
echo '```'
fi
done <$(basename $readme) >$(basename $readme).new 2>&1
# Remove any temporary log file that might have been created.
rm -f server.log
# We "cat" instead of "mv" so the readme retains its original uid.
cd $original_directory
cat $readme.new > $readme
rm -f $readme.new
# Kill any server jobs that were started with "&" in the readme.
if [ -n "$(jobs -p)" ]
then kill $(jobs -p)
fi
done
| true |
62a198fcafe585c81bae9ced832ea6e4378fcfe1 | Shell | 20kdc/decrossfuscator | /diffver.sh | UTF-8 | 1,449 | 3.015625 | 3 | [
"CC0-1.0"
] | permissive | #!/bin/sh
# decrossfuscator - A project to undo the effects of a specific version of Google Closure Compiler for a specific game by mapping between versions.
# Written starting in 2017 by contributors (see CREDITS.txt)
# To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
# You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
# Compmap shows missing symbols.
# Expects 'root' folder as first arg, but will substitute '.' otherwise.
# Expects the 'source' CrossCode version as second arg, but defaults to steam/0.7.0
# Expects the 'target' CrossCode version as third arg, but defaults to target
# Expects a matcher library
ROOTDIR=${1:-.}
SVERSION=${2:-source}
TVERSION=${3:-target}
SJMF=$ROOTDIR/versions/$SVERSION
TJMF=$ROOTDIR/versions/$TVERSION
SJSF=$SJMF/subdir/assets/js/game.compiled.js
TJSF=$TJMF/subdir/assets/js/game.compiled.js
BASIS=$ROOTDIR/workfiles
node deobf.js $SJSF $SJMF/deobf.map deobf-diff > $BASIS/diff1.js
node deobf.js $TJSF $TJMF/deobf.map deobf-diff > $BASIS/diff2.js
js-beautify $BASIS/diff1.js > $BASIS/diff1.b.js
js-beautify $BASIS/diff2.js > $BASIS/diff2.b.js
diff -u $BASIS/diff1.b.js $BASIS/diff2.b.js > $BASIS/diff.diff
less $BASIS/diff.diff
| true |
6e03574345cd19795e251615b755e725cfa608cc | Shell | frost-tb-voo/hariboteos | /25_day/create_makefile_diff.sh | UTF-8 | 1,007 | 2.90625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# diff for Makefile
LAST_DAY=24
LAST_CODE=21h
NEXT_CODE=22a
NEXT_CODE=22b
NEXT_CODE=22d
# diff between 2 directories
bash -c "find . -name 'Makefile' -exec diff -u ../${LAST_DAY}_day/harib${LAST_CODE}/Makefile {} \;" > Makefile_${LAST_DAY}.diff
# diff in this directory
bash -c "find . -name 'Makefile' -exec diff -u ./harib${NEXT_CODE}/Makefile {} \;" > Makefile_${NEXT_CODE}.diff
# overwrite all Makefiles
echo 'cp ../'${LAST_DAY}'_day/harib'${LAST_CODE}'/Makefile ./harib'${NEXT_CODE}'/'
echo 'find . -type d -name "harib*" -exec cp ./harib'${NEXT_CODE}'/Makefile {} \;'
# diff for all
LAST_DAY=25
LAST_CODE=21a
TODAY=25
NEXT_CODE=21b
# echo diff from root
# echo 'diff -u ./'${LAST_DAY}'_day/harib'${LAST_CODE}' ./'${TODAY}'_day/harib'${NEXT_CODE}' > ./'${TODAY}'_day/harib'${LAST_CODE}'_'${NEXT_CODE}'.diff'
# echo 'cat ./'${TODAY}'_day/harib'${LAST_CODE}'_'${NEXT_CODE}'.diff | grep "+++"'
# echo 'cat ./'${TODAY}'_day/harib'${LAST_CODE}'_'${NEXT_CODE}'.diff | grep "のみに存在"'
| true |
9bcd87195c88166d766fe01dea017db403d3d191 | Shell | hanwei7788/LM-auto | /automatedtesting/linkmotion-dev-tools/hardware-setup/fix_custom_images.sh | UTF-8 | 12,646 | 3.5625 | 4 | [] | no_license | #!/bin/bash
#########################################################
#
# Helper script to download and customize the hw images
#
# Authors: Zoltan Balogh <zoltan.balogh@link-motion.com>
#
# License: Proprietary
# (C) 2017 Link Motion Oy
# All Rights reserved
#########################################################
VERBOSE=true
VERSION="0.23"
IMAGE_SERVER="https://dav.nomovok.info/argo/images/rnd/"
UDEV_RULE_TO_FIX="ACTION==\"add\", SUBSYSTEM==\"net\", ENV{ID_NET_NAME_MAC}==\"\
wlx\*\", RUN{program}=\"\/bin\/systemctl --no-block restart ivi-interface@wifi-\
%E{INTERFACE}\.service"
IMAGE_FILE=""
AUTOOS_IMAGE_FILE=""
IVIOS_IMAGE_FILE=""
IMAGE_MOUNT_POINT=""
DOWNLOAD_IMAGE=false
TEMPDIR="/tmp/"
DEVICE=""
DOWNLOAD_LATEST_IMAGE=false
PUBLIC_KEY=""
YES_TO_ALL=false
FIX_IMAGES=false
function echo(){
if [[ $VERBOSE == true ]]; then
builtin echo $@;
fi
}
function confirm(){
if [ $YES_TO_ALL == false ]; then
# call with a prompt string or use a default
read -r -p "${1:-Are you sure? [y/N]} " response
case "$response" in
[yY][eE][sS]|[yY])
true
;;
*)
false
;;
esac
else
true
fi
}
function wait_for_correct_block_device(){
# Waiting for a properly partitioned devices to be present
CORRECT_PARTITONS=false
while [ CORRECT_PARTITONS==false ]; do
IFS=$'\r\n' GLOBIGNORE='*' command eval 'BLOCK_DEVICES=($(lsblk -d -e 11,1 -o NAME,SIZE,MODEL|grep -v "NAME SIZE MODE"))'
for BLOCK_DEVICE in "${BLOCK_DEVICES[@]}"
do
arr=($BLOCK_DEVICE)
DEVICE=${arr[0]}
IFS=$'\r\n' GLOBIGNORE='*' command eval 'PARTITIONS=($(lsblk -o KNAME,TYPE,SIZE,MODEL,LABEL /dev/$DEVICE|grep part))'
if [ ${#PARTITIONS[@]} != 7 ];then
continue
fi
for PARTITION in "${PARTITIONS[@]}"
do
PARTITION_NAME=`echo $PARTITION | awk '{print $1;}'`
PARTITION_LABEL=`echo $PARTITION | awk '{print $4;}'`
case ${PARTITION_NAME: -1} in
"1")
if [ "$PARTITION_LABEL" != SECBOOT ];then
CORRECT_PARTITONS=false
break
fi
;;
"2")
if [ "$PARTITION_LABEL" != AUTOOS_RO ] && [ "$PARTITION_LABEL" != platform ];then
CORRECT_PARTITONS=false
break
fi
;;
"3")
if [ "$PARTITION_LABEL" != AUTOOS_RW ];then
CORRECT_PARTITONS=false
break
fi
;;
"4")
if [ "$PARTITION_LABEL" != IVIOS_RO ] && [ "$PARTITION_LABEL" != platform ];then
CORRECT_PARTITONS=false
break
fi
;;
"5")
if [ "$PARTITION_LABEL" != IVIOS_RW ];then
CORRECT_PARTITONS=false
break
fi
;;
"6")
if [ "$PARTITION_LABEL" != SECCONT_RO ];then
CORRECT_PARTITONS=false
break
fi
;;
"7")
if [ "$PARTITION_LABEL" != SECCONT_RW ];then
CORRECT_PARTITONS=false
break
else
CORRECT_PARTITONS=true
break 3
fi
;;
*)
CORRECT_PARTITONS=false
break
;;
esac
done
done
sleep 0.1
done
}
function authentication(){
if [ -f ~/.wgetrc ];then
# using .wgetrc instead of the unsecure password parameter
WGET_PARAMETER="--user ${LDAP_ID} --password ${PASSWORD}"
else
WGET_PARAMETER=""
fi
if [ -z "$LDAP_ID" ];then
echo -n "Enter the LDAP user for the image server: "
read LDAP_ID
fi
if [ -z "$PASSWORD" ];then
echo -n "Password: "
# save original terminal setting.
STTY_ORIG=`stty -g`
# turn-off echoing.
stty -echo # turn-off echoing.
read PASSWORD
# restore terminal setting.
stty $STTY_ORIG # restore terminal setting.
echo
fi
if [ -f ~/.wgetrc ];then
WGET_PARAMETER=""
else
# using .wgetrc instead of the unsecure password parameter
WGET_PARAMETER="--user ${LDAP_ID} --password ${PASSWORD}"
fi
}
function download_image(){
IMAGE_TYPE=$1
PROMPT="Please select an image file to download:"
STRING=`curl -s "${IMAGE_SERVER}imx6-${VERSION}-swa_${IMAGE_TYPE}-rnd/" --list-only -u ${LDAP_ID}:${PASSWORD}| \
grep .ext4fs.xz|grep -v "sha1sum"| \
sed "s/.*\(imx6-${VERSION}-swa_${IMAGE_TYPE}-rnd-.*-.*.ext4fs.xz\).*/\1/g"|sort -nr`
set -f
OPTIONS=(${STRING// / })
PS3="$PROMPT "
if [ $DOWNLOAD_LATEST_IMAGE == true ]; then
IMAGE_FILE=${OPTIONS[0]}
else
set -f
OPTIONS=(${STRING// / })
PS3="$PROMPT "
select opt in "${OPTIONS[@]}" "Quit" ; do
if (( REPLY == 1 + ${#OPTIONS[@]} )) ; then
exit
elif (( REPLY > 0 && REPLY <= ${#OPTIONS[@]} )) ; then
echo "You picked $opt which is file $REPLY"
IMAGE_FILE=$opt
break
else
echo "Invalid option. Try another one."
fi
done
fi
if [ ! -f ${IMAGE_FILE} ]; then
wget ${WGET_PARAMETER} ${IMAGE_SERVER}imx6-${VERSION}-swa_${IMAGE_TYPE}-rnd/${IMAGE_FILE} -q --show-progress
else
echo the ${IMAGE_FILE} is already present
fi
if [ ! -f ${IMAGE_FILE}.sha1sum ]; then
wget ${WGET_PARAMETER} ${IMAGE_SERVER}imx6-${VERSION}-swa_${IMAGE_TYPE}-rnd/${IMAGE_FILE}.sha1sum -q --show-progress
else
echo the ${IMAGE_FILE}.sha1sum is already present
fi
SHA1SUM=`sha1sum ${IMAGE_FILE} | awk '{ print $1 }'`
SHA1SUM_SERVER=`cat ${IMAGE_FILE}.sha1sum|awk '{ print $1 }'`
if [[ ${SHA1SUM} =~ ${SHA1SUM_SERVER=} ]]; then
case $IMAGE_TYPE in
"autoos")
AUTOOS_IMAGE_FILE=$IMAGE_FILE
;;
"ivios")
IVIOS_IMAGE_FILE=$IMAGE_FILE
;;
*)
;;
esac
else
echo The sha1sum did not match. It means that the download image got corrupted
echo or the ${IMAGE_FILE} is already a customized one. Exiting
exit
fi
}
function mount_image(){
IMAGE_MOUNT_POINT=${IMAGE_FILE/.ext4fs.xz/}
if [ -d ${TEMPDIR}/${IMAGE_MOUNT_POINT} ]; then
echo "the ${TEMPDIR}/${IMAGE_MOUNT_POINT} exists"
exit
else
if [ ! -z ${IMAGE_MOUNT_POINT} ] && [ ! -z ${TEMPDIR} ];then
mkdir "${TEMPDIR}/${IMAGE_MOUNT_POINT}"
fi
fi
echo Unpacking the ${IMAGE_FILE}
unxz ${IMAGE_FILE}
echo Mounting ${IMAGE_MOUNT_POINT}.ext4fs to ${TEMPDIR}/${IMAGE_MOUNT_POINT}
sudo mount -t ext4 ${IMAGE_MOUNT_POINT}.ext4fs -o loop ${TEMPDIR}/${IMAGE_MOUNT_POINT}
}
function fix_wifi(){
echo Fixing the udev rules
if [ ! -z ${IMAGE_MOUNT_POINT} ] && [ ! -z ${TEMPDIR} ] && [ -d ${TEMPDIR}/${IMAGE_MOUNT_POINT} ];then
sudo sed -i -- "s/\($UDEV_RULE_TO_FIX\)/#\1/g" ${TEMPDIR}/${IMAGE_MOUNT_POINT}/lib/udev/rules.d/90-container-devices.rules
fi
}
function transfer_connman_settings(){
echo Fixing the connman configuration
if [ ! -z ${IMAGE_MOUNT_POINT} ] && [ ! -z ${TEMPDIR} ] && [ -f ${TEMPDIR}/${IMAGE_MOUNT_POINT}/etc/connman/main.conf ];then
sudo sed -i -- 's/\(PreferredTechnologies=\)ethernet,\(wifi\),cellular/\1\2/' ${TEMPDIR}/${IMAGE_MOUNT_POINT}/etc/connman/main.conf
else
echo The ${TEMPDIR}/${IMAGE_MOUNT_POINT}/etc/connman/main.conf can not be modified
fi
if [ -f connman.tar.gz ];then
echo Unpacking the connman.tar.gz to ${TEMPDIR}/${IMAGE_MOUNT_POINT}/var/lib/
sudo tar -xzf connman.tar.gz -C ${TEMPDIR}/${IMAGE_MOUNT_POINT}/var/lib/
echo Fixing the ownership of ${TEMPDIR}/${IMAGE_MOUNT_POINT}/var/lib/connman
sudo chown root:root ${TEMPDIR}/${IMAGE_MOUNT_POINT}/var/lib/connman -R
else
echo "No connman configuration is available"
echo "Set up manually the wifi connection on the hardware and"
echo "back up the /var/lib/connman directory in a tar.gz format"
echo "That connman configuration can be later reused for new images."
fi
}
function transfer_ssh_key(){
if [ -z "$PUBLIC_KEY" ]; then
set +f
PROMPT="Select public key to use for authentication"
PUBLIC_KEYS=`ls -1 ~/.ssh/*.pub`
set -f
OPTIONS=(${PUBLIC_KEYS// / })
PS3="$PROMPT "
select opt in "${OPTIONS[@]}" "Create new" ; do
if (( REPLY == 1 + ${#OPTIONS[@]} )) ; then
echo Creating new ssh key
echo -e 'y\n'|ssh-keygen -f ~/.ssh/ssh_${IMAGE_TYPE}_rsa_key -N '' -t rsa
PUBLIC_KEY=~/.ssh/ssh_${IMAGE_TYPE}_rsa_key.pub
elif (( REPLY > 0 && REPLY <= ${#OPTIONS[@]} )) ; then
echo "The $opt will be added to the image"
PUBLIC_KEY=$opt
break
else
echo "Invalid option. Try another one."
fi
done
fi
echo "Copying the $PUBLIC_KEY to the image"
if [ ! -z ${IMAGE_MOUNT_POINT} ] && [ ! -z ${TEMPDIR} ] && [ -d ${TEMPDIR}/${IMAGE_MOUNT_POINT} ];then
sudo mkdir -p "${TEMPDIR}/${IMAGE_MOUNT_POINT}/etc/ssh"
sudo sh -c "cat $PUBLIC_KEY >> ${TEMPDIR}/${IMAGE_MOUNT_POINT}/etc/ssh/authorized_keys"
fi
}
function umount_image(){
echo Disconnecting the ${TEMPDIR}/${IMAGE_MOUNT_POINT} mount
if [ ! -z ${IMAGE_MOUNT_POINT} ] && [ ! -z ${TEMPDIR} ] && [ -d ${TEMPDIR}/${IMAGE_MOUNT_POINT} ];then
sudo umount ${TEMPDIR}/${IMAGE_MOUNT_POINT}
echo Packing back the image file to ${IMAGE_MOUNT_POINT}.ext4fs.xz
xz ${IMAGE_MOUNT_POINT}.ext4fs
echo Removing temporary directory ${TEMPDIR}/${IMAGE_MOUNT_POINT}
sudo rm "${TEMPDIR}/${IMAGE_MOUNT_POINT}" -rf
else
echo It is not safe to umount and remove ${TEMPDIR}/${IMAGE_MOUNT_POINT}
fi
}
while getopts "fhylu:p:r:i:" opt; do
case $opt in
u)
LDAP_ID=$OPTARG
;;
p)
PASSWORD=$OPTARG
;;
r)
if [[ $OPTARG =~ [0-9]\.[0-9]* ]]; then
VERSION=$OPTARG
fi
;;
f)
FIX_IMAGES=true
;;
l)
DOWNLOAD_LATEST_IMAGE=true
;;
i)
if [ ! -f ${OPTARG} ]; then
echo The ${OPTARG} does not exist
PUBLIC_KEY=""
else
PUBLIC_KEY=$OPTARG
fi
;;
y)
YES_TO_ALL=true
;;
h)
echo "A simple tool to make the image flashing automatic and easy. It can download the"
echo "latest or any selected IVI and Auto images, fix the wifi and ssh authentication"
echo "and flash the customized images on the partitioned block device."
echo ""
echo -e "\e[31mWARNING: This tool will use sudo commands and so operates with block"
echo -e "devices. Please be careful and read all the outputs before proceeding. "
echo -e "Also please note that the curl and wget commands will expose the LDAP"
echo -e "credentials. You can use .wgetrc or .netrc if you want to improve the security\e[0m."
echo ""
echo "Usage: fix_custom_images.sh -u [LDAP_ID]| -f | -l | -i | -h "
echo -e "\t-u : LDAP credential to access the ${IMAGE_SERVER}"
echo -e "\t-f : Fix the stock images to enable wifi and ssh key authentication. Default: ${FIX_IMAGES}"
echo -e "\t-l : Download the latest images. Default: ${DOWNLOAD_LATEST_IMAGE}"
echo -e "\t-i : Selects a file from which the identity \(public key\) for public key authentication is added to the image"
echo -e "\t-y : Answers yes to all questions. Use it with care. Default: ${YES_TO_ALL}"
echo -e "\t-p : LDAP password to access the ${IMAGE_SERVER} (Note: the password will be visible in the console and in the process list)"
echo -e "\t-r : Release number. The default is ${VERSION}.
echo -e "\t-h : Prints this instruction."
echo ""
echo -e "By default fix_custom_images.sh downloads the latest available images and flashes"
echo -e "them to a correctly partitioned block device"
echo ""
echo "Download the latest images, enable wifi and ssh authentication"
echo -e "\t$ fix_custom_images.sh -l -f "
echo ""
echo "Download a selected images, enable wifi and give a specific RSA public key to inject to the image"
echo -e "\t$ fix_custom_images.sh -f -i \$HOME/.ssh/id_rsa.pub"
echo ""
echo "Download the images from the ${IMAGE_SERVER} using the given LDAP credentials"
echo -e "\t$ fix_custom_images.sh -u [USER_NAME] -p [PASSWORD]"
echo ""
exit
;;
:)
echo "Option -$OPTARG requires an argument." >&2
exit
esac
done
authentication
download_image autoos
if [ $FIX_IMAGES ]; then
mount_image
fix_wifi
transfer_connman_settings
transfer_ssh_key
umount_image
fi
download_image ivios
if [ $FIX_IMAGES ]; then
mount_image
transfer_ssh_key
umount_image
fi
if confirm "Do you want to flash a block device with the images? [y/N]"; then
wait_for_correct_block_device
IFS=$'\r\n' GLOBIGNORE='*' command eval 'PARTITIONS=($(lsblk -p -o KNAME,TYPE,MODEL /dev/sdb|grep part))'
PARTITION_TWO=${PARTITIONS[1]/part/}
PARTITION_FOUR=${PARTITIONS[3]/part/}
if confirm "Do you want to flash the $PARTITION_TWO and $PARTITION_FOUR partitions? [y/N]" && \
[ $(stat --format '%04D' /) != $(stat --format '%02t%02T' $PARTITION_TWO) ] && \
[ $(stat --format '%04D' /) != $(stat --format '%02t%02T' $PARTITION_FOUR) ]; then
# Flash Auto OS image:
sudo umount -l $PARTITION_TWO
xz -dc "$AUTOOS_IMAGE_FILE" | sudo dd of=$PARTITION_TWO obs=1M
[ $? -eq 0 ] && sudo e2fsck -f $PARTITION_TWO
[ $? -eq 0 ] && sudo resize2fs $PARTITION_TWO
# Flash IVI OS image:
sudo umount -l $PARTITION_FOUR
xz -dc "$IVIOS_IMAGE_FILE" | sudo dd of=$PARTITION_FOUR obs=1M
[ $? -eq 0 ] && sudo e2fsck -f $PARTITION_FOUR
[ $? -eq 0 ] && sudo resize2fs $PARTITION_FOUR
fi
fi
| true |
5667c2b045f267c3940d410e356d0670954689ae | Shell | gahansen/Albany | /doc/dashboards/blake.sandia.gov/install_scipy_numpy.sh | UTF-8 | 227 | 2.890625 | 3 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | #!/bin/bash
pymodules=(
scipy
numpy
)
for module in "${pymodules[@]}"; do
if python3 -c "import pkgutil; exit(1 if pkgutil.find_loader(\"$module\") else 0)"; then
pip3 install --user "$module"
fi
done
| true |
df1d22f6eb32486f546447b60848619c6322c244 | Shell | rust-lang/gha-runner | /rust-bump-gha-self-hosted.sh | UTF-8 | 1,321 | 4.125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# This script updates the version number in rust-lang/gha-self-hosted after a
# release is made, removing the need for someone on the infrastructure team to
# bump the version number manually.
#
# It's executed by .github/workflows/release.yml
set -euo pipefail
IFS=$'\n\t'
repository_url="git@github.com:rust-lang/gha-self-hosted.git"
version_file="images/ubuntu/files/gha-runner-version"
git_name="rust-lang/gha-runner"
git_email="infra+gha-runner-automation@rust-lang.org"
# Load the deploy key on a temporary file.
key="$(mktemp)"
trap "rm ${key}" EXIT
echo "${DEPLOY_KEY}" > "${key}"
# Use the SSH key stored earlier for all git operations, and ignore ssh-agent.
export GIT_SSH_COMMAND="ssh -i ${key}"
unset SSH_AUTH_SOCK
# Clone the repository
clone="$(mktemp -d)"
trap "rm -rf ${clone}" EXIT
git clone "${repository_url}" "${clone}"
# Update the version file
version="$(cat releaseVersion)"
if [[ "$(cat "${clone}/${version_file}")" = "${version}" ]]; then
echo "nothing to update, exiting"
else
echo "${version}" > "${clone}/${version_file}"
(
cd "${clone}"
git add .
git \
-c commit.gpgsign=false \
-c "user.name=${git_name}" \
-c "user.email=${git_email}" \
commit -m "Bump the GitHub Actions runner to version ${version}"
git push
)
fi
| true |
2cd864c2046cc653bc962946f4820b97b74486c5 | Shell | awslabs/aws-crt-builder | /.github/workflows/docker_buildx.sh | UTF-8 | 1,512 | 3.859375 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -ex
if [ $# -lt 6 ]; then
echo "Usage: $0 REGISTRY USERNAME PASSWORD IMAGE_NAME IMAGE_TAG CONTEXT (EXTRA_ARGS)"
fi
trim() {
local var="$*"
# remove leading whitespace characters
var="${var#"${var%%[![:space:]]*}"}"
# remove trailing whitespace characters
var="${var%"${var##*[![:space:]]}"}"
echo -n "$var"
}
INPUT_REGISTRY=$(trim $1)
shift
INPUT_USERNAME=$(trim $1)
shift
INPUT_PASSWORD=$(trim $1)
shift
INPUT_IMAGE_NAME=$(trim $1)
shift
INPUT_IMAGE_TAG=$(trim $1)
shift
INPUT_CONTEXT=$(trim $1)
shift
# gather up whatever is left
INPUT_BUILD_EXTRA_ARGS="$(trim $1) $(trim $2) $(trim $3) $(trim $4) $(trim $5) $(trim $6) $(trim $7) $(trim $8) $(trim $9)"
BUILDX_VERSION=v0.3.1
_get_full_image_name() {
echo ${INPUT_REGISTRY:+$INPUT_REGISTRY/}${INPUT_IMAGE_NAME}
}
install_buildx() {
$(dirname $0)/install_buildx.sh
}
login_to_registry() {
echo "${INPUT_PASSWORD}" | docker login -u "${INPUT_USERNAME}" --password-stdin "${INPUT_REGISTRY}"
}
build_image() {
# pull previous image, ignore failure if it doesn't exist
docker pull "$(_get_full_image_name)":${INPUT_IMAGE_TAG} || true
# build builder target image
docker build \
--build-arg BUILDKIT_INLINE_CACHE=1 \
--output=type=docker,push=true \
--tag="$(_get_full_image_name)":${INPUT_IMAGE_TAG} \
${INPUT_BUILD_EXTRA_ARGS} \
${INPUT_CONTEXT}
}
logout_from_registry() {
docker logout "${INPUT_REGISTRY}"
}
login_to_registry
install_buildx
build_image
logout_from_registry
| true |
3de1f3659a327e5631bd26ed2af9b6827934ec74 | Shell | aacarello/BashScripts | /long-running-memory-proc | UTF-8 | 1,204 | 3.453125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -o errexit # -e Exit on most errors (see man bash)
set -o nounset # -u Disallow expansion of unset variables
# set -o xtrace # -x Enable only for debug // bash -xv script.sh // set -x/-x start/stop debugging from/to here
# set -o verbose # -v Enable only for debug
set -o pipefail # -p Use last non-zero exit code in a pipeline
set -o errtrace # -E Make sure any error trap is inherited
# https://www.2daygeek.com/bash-script-to-check-how-long-the-high-cpu-memory-consumption-processes-runs-on-linux/
ps -eo pid,user,ppid,%mem,%cpu,cmd --sort=-%mem | head | tail -n +2 | awk '{print $1}' > /tmp/long-running-processes-1.txt
echo "--------------------------------------------------"
echo "UName PID CMD Process_Running_Time"
echo "--------------------------------------------------"
for userid in `cat /tmp/long-running-processes-1.txt`
do
username=$(ps -u -p $userid | tail -1 | awk '{print $1}')
pruntime=$(ps -p $userid -o etime | tail -1)
ocmd=$(ps -p $userid | tail -1 | awk '{print $4}')
echo "$username $userid $ocmd $pruntime"
done | column -t
echo "--------------------------------------------------"
| true |
abb38061cd799da27d61ce5c4606e790209c86f4 | Shell | davidsierradz/new-dotfiles | /all/.config/aliasrc | UTF-8 | 7,565 | 3.015625 | 3 | [] | no_license | #!/bin/bash
# Use neovim for vim if present.
command -v nvim > /dev/null && alias vim="nvim" vimdiff="nvim -d"
# Verbosity and settings that you pretty much just always are going to want.
alias \
cp="cp -iv" \
mv="mv -iv" \
rm="trash-put" \
mkd="mkdir -pv" \
ffmpeg="ffmpeg -hide_banner"
# rm="rm -Iv" \
# Colorize commands when possible.
alias \
ls="ls -hN --color=auto --group-directories-first" \
grep="grep --color=auto" \
diff="diff --color=auto" \
ccat="highlight --out-format=ansi"
# These common commands are just too long! Abbreviate them.
alias \
ka="killall" \
g="git" \
trem="transmission-remote" \
YT="youtube-viewer" \
sdn="sudo shutdown -h now" \
f='$FILE' \
e='nvim --listen /tmp/nvimsocket' \
v='$EDITOR' \
p="sudo pacman"
# This alias is important. It enables the `pauseallmpv` command.
alias mpv='mpv --input-ipc-server=/tmp/mpvsoc$(date +%s)'
# Some other stuff
alias \
magit="nvim -c MagitOnly" \
ref="shortcuts >/dev/null; source ~/.config/shortcutrc" \
weath="less -S ~/.local/share/weatherreport"
alias b='bat' \
c='clear' \
calcurse="calcurse -D ~/.config/calcurse" \
ccat="highlight --out-format=ansi" \
d='docker' \
gfu="git fetch upstream" \
glg="git log --graph --date-order --date=format-local:'%F %R' --full-history --color --decorate --pretty=format:'%x08%x09%C(red)%h %C(cyan)%ad %C(bold blue)%aN%C(reset)%C(bold yellow)%d %C(reset)%s'" \
glga="git log --graph --date-order --date=format-local:'%F %R' --full-history --all --color --decorate --pretty=format:'%x08%x09%C(red)%h %C(cyan)%ad %C(bold blue)%aN%C(reset)%C(bold yellow)%d %C(reset)%s'" \
gua="git remote | xargs -L1 git push --all" \
gss="git status -sb" \
icat="kitty +kitten icat" \
ll='ls -lAFh --group-directories-first' \
llt='ls -lAFht --group-directories-first' \
vw="nvim -u ~/.config/nvim/wiki-init.vim -c VimwikiIndex" \
y="yarn" \
yl="yarn lint" \
ylb="yarn lint:backend" \
ytw="yarn test --watch" \
ysb="yarn serve:babel" \
ytb="yarn test:backend" \
ystb="yarn start:backend"
# config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' \
if [ -n "$ZSH_VERSION" ]; then
alias -g J='| python -m json.tool'
alias -g X='| xsel -bi'
alias -g B='| /usr/bin/bat'
alias -g L='| /usr/bin/less'
alias -g F='| fx'
alias -g N='&& dunstify "done"'
elif [ -n "$BASH_VERSION" ]; then
_xfunc git __git_complete g _git
complete -F _yarn y
fi
vf() { fzf | xargs -r -I % "$EDITOR" %; }
# terminal-scheme dark|light
function terminal-scheme() {
nvim_config_file=~/.config/nvim/init.vim
sed --follow-symlinks -i "s/\(^set background=\).*/\1$1/g" $nvim_config_file
wiki_config_file=~/.config/nvim/wiki-init.vim
sed --follow-symlinks -i "s/\(^set background=\).*/\1$1/g" $wiki_config_file
# bat_config_file=~/.config/bat/config
# if [[ $1 == 'light' ]]; then
# echo '--theme="ansi-dark"' > $bat_config_file
# echo '--plain' >> $bat_config_file
# else
# echo '--theme="ansi-light"' > $bat_config_file
# echo '--plain' >> $bat_config_file
# fi
kitty_config_file=~/.config/kitty/kitty.conf
sed --follow-symlinks -i "s#^\(include\s\./kitty-themes/gruvbox_*\).*#\1$1.conf#g" $kitty_config_file
# kitty @ set-colors --all --configured "$HOME/.config/kitty/kitty-themes/gruvbox_$1.conf"
for socket in $(find /tmp/ -maxdepth 1 -name "kitty-$USER-*"); do
if which kitty > /dev/null; then
# kitty @ >/dev/null
kitty @ --to unix:"$socket" set-colors --all --configured "$HOME/.config/kitty/kitty-themes/gruvbox_$1.conf"
fi
done
rofi_config_file=~/.config/rofi/config.rasi
sed --follow-symlinks -i "s#theme: \"/usr/share/rofi/themes/gruvbox-\(.*\)-soft.rasi\";#theme: \"/usr/share/rofi/themes/gruvbox-$1-soft.rasi\";#g" $rofi_config_file
if [[ "$WORK" == 'true' || $3 == 'forcebrowser' ]]; then
tridactyl_config_file=~/.tridactylrc
sed --follow-symlinks -i "s#^\(colorscheme\s\).*#\1$1#g" $tridactyl_config_file
qute_config_file=~/.config/qutebrowser/config.py
if [[ $1 == 'light' ]]; then
# sed --follow-symlinks -i "s#^\(c\.content\.user_stylesheets = \).*#\1[css_base]#" $qute_config_file
sed --follow-symlinks -i "s#^\(c\.colors\.webpage\.bg = \).*#\1'white'#" $qute_config_file
sed --follow-symlinks -i "s#^\(c\.qt\.args = \).*#\1[]#" $qute_config_file
sed --follow-symlinks -i "s#^\(c\.colors\.webpage\.darkmode\.enabled = \).*#\1False#" $qute_config_file
sed --follow-symlinks -i "s#^\(c\.colors\.webpage\.preferred_color_scheme = \).*#\1'light'#" $qute_config_file
else
# sed --follow-symlinks -i "s#^\(c\.content\.user_stylesheets = \).*#\1[css_base, css_dark]#" $qute_config_file
sed --follow-symlinks -i "s#^\(c\.colors\.webpage\.bg = \).*#\1'black'#" $qute_config_file
sed --follow-symlinks -i "s#^\(c\.qt\.args = \).*#\1['force-dark-mode']#" $qute_config_file
sed --follow-symlinks -i "s#^\(c\.colors\.webpage\.darkmode\.enabled = \).*#\1True#" $qute_config_file
sed --follow-symlinks -i "s#^\(c\.colors\.webpage\.preferred_color_scheme = \).*#\1'dark'#" $qute_config_file
fi
if xwininfo -tree -root | grep ' ("qutebrowser" ' > /dev/null 1>&1; then
if [[ $2 == 'restart' ]]; then
qutebrowser ':restart' > /dev/null 1>&1
fi
# if [[ $1 == 'light' ]]; then
# qutebrowser ':set --temp content.user_stylesheets ["~/.config/qutebrowser/base.css"] ;; set --temp colors.webpage.bg "white"' > /dev/null 1>&1
# else
# qutebrowser ':set --temp content.user_stylesheets ["~/.config/qutebrowser/dark.css"] ;; set --temp colors.webpage.bg "black"' > /dev/null 2>&1
# fi
fi
if xwininfo -tree -root | grep ' ("firefox" ' > /dev/null 1>&1; then
if [[ $2 == 'restart' ]]; then
WID=$(xdotool search --name "Mozilla Firefox" | head -1)
xdotool windowactivate $WID
xdotool type ZR
fi
fi
fi
zathura_config_file=~/.config/zathura/zathurarc
if [[ $1 == 'light' ]]; then
sed --follow-symlinks -i "s/\(^set recolor \).*/\1false/g" $zathura_config_file
else
sed --follow-symlinks -i "s/\(^set recolor \).*/\1true/g" $zathura_config_file
fi
vifm_config_file=~/.config/vifm/vifmrc
sed --follow-symlinks -i "s#^\(colorscheme\s\).*#\1$1#g" $vifm_config_file
xresources_config_file=~/.Xresources
sed --follow-symlinks -i "s#^\(\#include \".config/xterm/*\).*#\1$1\"#g" $xresources_config_file
xrdb -merge ~/.Xresources
for i in $(nvr --serverlist); do
if [[ $1 == 'light' ]]; then
nvr --servername "$i" --remote-send '<c-\><c-n>;set background=light<cr>'
else
nvr --servername "$i" --remote-send '<c-\><c-n>;set background=dark<cr>'
fi
done
gtk2_config_file="/home/neuromante/.config/gtk-2.0/gtkrc-2.0"
gtk3_config_file="/home/neuromante/.config/gtk-3.0/settings.ini"
if [[ $1 == 'light' ]]; then
sed --follow-symlinks -i "s/\(^gtk-theme-name=\).*/\1\"Raleigh\"/g" $gtk2_config_file
sed --follow-symlinks -i "s/\(^gtk-theme-name=\).*/\1Raleigh/g" $gtk3_config_file
else
sed --follow-symlinks -i "s/\(^gtk-theme-name=\).*/\1\"Arc-Gruvbox\"/g" $gtk2_config_file
sed --follow-symlinks -i "s/\(^gtk-theme-name=\).*/\1Arc-Gruvbox/g" $gtk3_config_file
fi
}
# Change background color of current (and child) kitty instance.
function kbg() {
kitty @ set-colors --all --configured "$HOME/.config/kitty/kitty-themes/gruvbox_$1.conf"
}
alias -g GHFZF='| gh'
alias -g lastbranch='$(cat .git/lastbranch)'
# compdef config=git
alias vtty='IS_TTY=yes $EDITOR'
| true |
c570838665d536634f5ddf53a9277a3acb335f28 | Shell | rwstauner/run_control | /bash/bash.d/completion.sh | UTF-8 | 544 | 2.9375 | 3 | [
"MIT"
] | permissive | shopt -s extglob progcomp
complete -d pushd cd
# Something chews this variable down the line but since I haven't found
# what/where put it in a function I can call to fix things when I need it.
_fix_comp_wordbreaks () {
# Ignore characters that I don't use in filenames.
#COMP_WORDBREAKS=$' \t\n"\'><;|&(:'
#COMP_WORDBREAKS=$' \t\n"\'><=;|&(:'
COMP_WORDBREAKS=$' \t\n"\'><=;|&(:@'
}
_fix_comp_wordbreaks
if [ -z "$BASH_COMPLETION" ]; then
bc_etc=/etc/bash_completion
if [ -f $bc_etc ]; then
. $bc_etc
fi
unset bc_etc
fi
| true |
a19dc9dd0b9f8afe895afc326a36d22aeaeb26b0 | Shell | SliTaz-official/wok-next | /rox-filer/stuff/menu.sh | UTF-8 | 483 | 3.34375 | 3 | [] | no_license | #!/bin/sh
#
# Openbox pipe menu to launch rox-filer using GTK bookmarks.
#
cat <<EOT
<openbox_pipe_menu>
<item label="Home">
<action name="Execute">
<execute>rox-filer ~</execute>
</action>
</item>
EOT
# GTK bookmarks
for dir in $(sed 's/[ ][^ ]*$//' .gtk-bookmarks | sed 's!file://!!'); do
label=$(basename $dir)
cat <<EOT
<item label="$label">
<action name="Execute">
<execute>rox-filer $dir</execute>
</action>
</item>
EOT
done
echo '</openbox_pipe_menu>'
| true |
89d82f12fff1a4e99f1928e29d804b12435b4ed1 | Shell | xentaoslinux/pemaketan | /maintainer/script/PAKET-TTD | UTF-8 | 610 | 2.59375 | 3 | [] | no_license | #!/bin/bash
########################################################################
# XENTA BUILDER
# AUTHOR : XENTA OS
# LICENSE : GNU GPL 3.0
# WEB : http://www.xentaos.org/
########################################################################
PROJECT_HOME=$HOME/XENTAOS/PEMAKETAN/
WHO=$(whoami)
OS="Xenta OS"
DIR_SERVER=$HOME/XENTAOS/PEMAKETAN/SERVER/
DIR_CLIENT=$HOME/XENTAOS/PEMAKETAN/CLIENT/
DIR_DEB=$HOME/XENTAOS/PEMAKETAN/DEB/
figlet $OS
echo " Script Xenta Builder by $OS "
echo " Menandatangani Paket .deb "
cd $DIR_DEB
dpkg-sig -k 959CDDD1 --sign bundler *.deb
echo " Sukses Bos $WHO "
| true |
62978c64ebfcc13ead9100ccc8e33816b045711b | Shell | 5l1v3r1/Server-Auto-Pwn | /payloads/bash/landing.sh | UTF-8 | 466 | 3.234375 | 3 | [] | no_license | function bash_sockets {
exec 3<>/dev/tcp/192.168.1.65/4443; echo -e "bash landing..." >&3;
return=\`cat <&3\`
if [ $return == "succesful" ]; then
bashSockets=true
else
bashSockets=false
fi
}
function wget_check {
rm landing...
wget http://192.168.1.65:4443/landing...
return=`cat landing...`
if [ $return == 'succesful' ]; then
wget_run=true
else
wget_run=false
fi
}
#wget_check
bash_sockets
echo $bashSockets
#echo $wget_run
| true |
921e3e20b1928441ff51a7afb106014b0c7fd0c0 | Shell | arch4edu/arch4edu | /x86_64/wemeet-bin/wemeet.sh | UTF-8 | 1,609 | 3 | 3 | [] | no_license | #!/bin/sh
set -eu
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export QT_STYLE_OVERRIDE=fusion # 解决使用自带 Qt 情况下,字体颜色全白看不到的问题
export IBUS_USE_PORTAL=1 # fix ibus
USER_RUN_DIR="/run/user/$(id -u)"
CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}"
FONTCONFIG_DIR="$CONFIG_DIR/fontconfig"
KDE_GLOBALS_FILE="$CONFIG_DIR/kdeglobals"
KDE_ICON_CACHE_FILE="${XDG_CACHE_HOME:-$HOME/.cache}/icon-cache.kcache"
WEMEET_APP_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/wemeetapp"
LD_PRELOAD_WRAP="${LD_PRELOAD:-}:/usr/lib/wemeet/libwemeetwrap.so" # 用于缓解传输文件崩溃问题
if [ "$(basename "$0")" = 'wemeet-x11' ]; then
# force x11
export XDG_SESSION_TYPE=x11
export QT_QPA_PLATFORM=xcb
unset WAYLAND_DISPLAY
fi
if [ -f /usr/bin/bwrap ]; then
mkdir -p "$WEMEET_APP_DIR"
exec bwrap \
--new-session \
--unshare-user-try --unshare-pid --unshare-uts --unshare-cgroup-try \
--ro-bind / / \
--dev-bind /dev /dev \
--ro-bind /dev/null /proc/cpuinfo \
--tmpfs /sys/devices/virtual \
--bind "$USER_RUN_DIR" "$USER_RUN_DIR" \
--tmpfs /var \
--tmpfs "$CONFIG_DIR" \
--ro-bind-try "$KDE_GLOBALS_FILE" "$KDE_GLOBALS_FILE" \
--ro-bind-try "$FONTCONFIG_DIR" "$FONTCONFIG_DIR" \
--bind-try "$KDE_ICON_CACHE_FILE" "$KDE_ICON_CACHE_FILE" \
--bind "$WEMEET_APP_DIR" "$WEMEET_APP_DIR" \
--setenv LD_PRELOAD "$LD_PRELOAD_WRAP" \
/opt/wemeet/bin/wemeetapp "$@"
else
export LD_PRELOAD="$LD_PRELOAD_WRAP"
exec /opt/wemeet/bin/wemeetapp "$@"
fi
| true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.