blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
20ddd274c6da87f94fc30b41f85f478650a1e1ef | 372 | #!/bin/bash
#SBATCH --job-name=VRC01_01_exp_run1a_mutability_vs_time
#SBATCH --output=VRC01_01_exp_run1a_mutability_vs_time.out
#SBATCH --error=VRC01_01_exp_run1a_mutability_vs_time.err
#SBATCH --time=100:00:00
#SBATCH --partition=cobey
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --mem-per-cpu=2000
cd ../../... |
890349b7d2acfde2cef111fed80ef457e524d94a | 2,682 | #!/bin/bash
#checking if for the command usage
if [[ $# -ne 3 ]]; then
echo "USAGE: $0 username/UID groupname/GID abs=/directory_path or rel(wrt to pwd)=path"
exit 1
fi
#checking if an executable file already exits or not
file="executable_files.txt"
if [[ -f "$file" ]];then
rm "$file"
fi
#checking for the relat... |
827cd5aea9dfb45e470b5735dc2e7df3b8182134 | 295 | #!/bin/bash
ethcfg=/etc/network/interfaces.d/eth0.cfg
brcfg=/etc/network/interfaces.d/br4090.cfg
cp $ethcfg $brcfg
sed -i "s/eth0/br4090/g" $brcfg
sed -i "/iface br4090 inet/a bridge_ports eth0" $brcfg
ifdown eth0
sed -i "s/static/manual/" $ethcfg
sed -i "3,$ d" $ethcfg
ifup eth0
ifup br4090
|
903c7004fc25adda57823658967ae9c838bb6bf6 | 657 | #!/bin/sh
echo "****** POSTINSTALL STARTED ******"
DEPLOY_CURRENT=$HOME/current
JSONRPC_CREDENTIALS=$DEPLOY_CURRENT/etc/jsonrpc_credentials.pl
### create database
$DEPLOY_CURRENT/misc/dotcloud_db_setup.pl
$DEPLOY_CURRENT/bin/cirqued --setup
echo " Database is ready."
### create jsonrpc-credentials file and service... |
9e45b2758df56070fee8f7cb58e9fc2bd052135b | 4,660 | #!/bin/sh
# Copyright [2018] IBM Corp. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required ... |
974bbc7ced0f1e852080be40d54c8b39969da886 | 249 | #!/bin/bash
# Automating few activities to test on multiple servers
#
# Update to latest versions
sudo apt -y update
sudo apt -y upgrade
#
# Dependency - Install Java
sudo apt install -y default-jre
#
# Remove unecessary apps
sudo apt -y autoremove
|
714ae40340cd8fb5ba8884063fb8d693c763aaf1 | 2,161 | #!/bin/sh
export VAULT_ADDR=http://127.0.0.1:8200
if [ -f /vault/file/unseal ]; then
echo "starting vault!"
vault server -dev -dev-skip-init -dev-listen-address=$VAULT_DEV_LISTEN_ADDRESS -dev-root-token-id=$VAULT_DEV_ROOT_TOKEN_ID -config /etc/vault/config.hcl &
echo "unsealing!"
while true; do
... |
577ffcc369d473f99c56ff1731cae9fcdea2e98b | 138 | sudo apt-get update
sudo apt-get install mysql-server
mysql_secure_installation
sudo pip install pandas, pymysql, sqlalchemy, matplotlib
|
4cff479af09f7fa97b1ae051e030c7713d5a487e | 63 | #!/bin/bash
while [ 1 ]
do
sleep 1
./topinfo.sh &
done
|
99616616c052d1603e97615194ca47eb6c88f1a4 | 580 | echo "|------------------------------------------------|"
echo "| Please ensure that aspell is installed! |"
echo "| If you want to have syntax highlighting, you |"
echo "| just need to enable it: |"
echo "| mv /ffp/etc/examples/nanorc /ffp/etc/ |"
echo "| ... |
6dc72f927b6328108cd59d11ea8fccbaeb3d611c | 119 | #!/usr/bin/bash
echo $1 |curl -F-=\<- qrenco.de
# Sanple:
# bash generate_qrenco.sh https://github.com/xingangshi
|
44752c1fd6760ba7a2d5175b55818f0af2644faa | 56 | #!/bin/bash
cd dev-in-a-box/quickstart
./uniquid start
|
72a05ebd49f48dedb6360bebf909b0f0ca2cecba | 2,443 | #!/usr/bin/env bash
set -e
# handy functions {{{
function abspath_portable() {
# BSD readlink is different from GNU readlink, ugh.
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
}
function is_integer?() {
[[ $@ =~ ^-?[0-9]+$ ]]
}
function abs_path() {
local abs_path=$(abspath_portable "$0")
pr... |
25e1eff1035f55b1e885baf41fc4b62bd341acdb | 6,089 | #!/bin/bash
##script para gerar as tratografias das labels para aseg, e gera ficheiro fa, trace, prependicular e parralel difusitivity; ainda gera um labelmap com o corpo caloso (partes)
##versão sem imagem T2
##Version Slicer4.3
SlicerHome="/home/lapsi/Documentos/Slicer-4.3.0-linux-amd64"
FreeSurferHome="/usr/local/f... |
552a674789f5b3aad299c0206010d46ff027ed2f | 322 | #!/bin/sh
if [ "$TERM" = "linux" ]; then
/bin/echo -e "
\e]P0202020
\e]P1c65e56
\e]P25a634c
\e]P3d79c4f
\e]P469819e
\e]P586628f
\e]P66f625d
\e]P7bcb298
\e]P8686868
\e]P9bc4d44
\e]PAb5b470
\e]PBe3e38e
\e]PC39a8d1
\e]PDde527a
\e]PEf6e1bf
\e]PFe2e2e2
"
# get rid of artifacts
clear
f... |
fc7dfbb67f5be9329020f43bb9767e638b309704 | 154 | #!/bin/bash
while true
do
./getHOUS.py >& getHOUS.log
DATE=`date +%Y.%b.%d.%H.%M`
mv getHOUS.log getHOUS.log.$DATE
gzip getHOUS.log.$DATE
done
|
56315e1eb22793d7dd83e5308c70c2b0f95937c3 | 2,869 | #!/bin/bash
cat >daemons/kube-master.yml <<EOF
version: '2'
services:
kube-api:
image: bestmike007/hyperkube:v1.9.1
container_name: kube-api
restart: always
network_mode: host
volumes:
- /etc/kubernetes:/etc/kubernetes:ro
command: "/usr/local/bin/kube-apiserver \
--apiserver... |
d6bf334494d52d44764f2c80475e6b09a470d251 | 2,175 | #!/bin/sh
#
# Copyright 2008 Victor Lowther <victor.lowther@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License as
# published by the Free Software Foundation.
. "${PM_FUNCTIONS}"
# Test to see if the kernel has a vi... |
9a55df78afd40e933aed2e9a0390ff2ffab1912e | 1,201 | #!/bin/bash
for i in {0..35} ; do
if ! [ -e tests/test$i.in ] ; then
echo "You are missing the file tests/test$i.in. Please add it and start again."
exit 1
fi
if ! [ -e tests/test$i.out ] ; then
echo "You are missing the file tests/test$i.out. Please add it and start again."
... |
356d3b1763c46fd19446031b9f719698f9dccb8e | 54 | #!/bin/bash
SERVICE_NAME="group_nfs4"
. generic_send
|
c449715cb1f9ca366fdf07201bf1834b3173fe79 | 75 | #!/bin/bash
echo `openssl rand -base64 32 | cut -c4-18 | tr -dc a-zA-Z0-9`
|
01ac76a4daf3e34b3c1c545efefdeb0cbccd1cb2 | 200 | parameters:
dummy_flavor_name: "dummy.default"
dummy_image_name: "dummy"
dummy_name_0: "dummy_1_0"
vf_module_id: "PROVIDED_BY_ONAP"
vnf_id: "PROVIDED_BY_ONAP"
vnf_name: "PROVIDED_BY_ONAP"
|
f5c6b9a4b9eef54dc2798be92fdf862c4011f3fa | 958 | #!/usr/bin/env bash
if [[ $1 = '' ]]
then
# run in series due to saucelabs concurrency limits
echo "### running tests against all browsers"
set -x
nightwatch --config nightwatch-ci.js --env chrome-mac
nightwatch --config nightwatch-ci.js --env chrome-windows
nightwatch --config nightwatch-ci.js --env saf... |
dd9f52f0493b795ce3bac228d4a4a08231995cc6 | 192 | #!/usr/bin/env bash
rm -rf build
rm -rf dist
#python setup.py build_ext --inplace
#python setup.py install
python setup.py sdist
pip install dist/*.tar.gz --force-reinstall
rm -rf ./*.egg-info |
47725b1969beb31e8ae69ad74e488de267c09af6 | 892 | #!/bin/bash
. ./conf
MBASE="$MONO ./mb0.exe"
REPL="$MONO ./repl.exe"
TDIR=../src/l/tests/
echo "L1"
$MBASE /I boot2.alc $TDIR/level1/test.al | grep -v OK
echo "L2: boot2.alc, libnet.alc, int"
$MBASE /I boot2.alc /I libnet.alc $TDIR/level2/test.al | grep -v OK
echo "L2: boot2.alc, libnet.alc, comp"
$MBASE /I boot2.al... |
a076b8dfbc0cc2e155c52be5268fb35a07f4df80 | 156 | alias ll='ls -al'
alias drush='sudo -u www-data drush'
alias git='sudo -u www-data git'
alias wget='sudo -u www-data wget'
alias ssh='sudo -u www-data ssh'
|
169d5a91d4669a1ec2d98ea3fe8f5ba63735bfcc | 236 | GOOGLE_MAPS_API_KEY=
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_USERNAME=
DB_PASSWORD=
DB_DATABASE=
ZD_SHARED_SECRET=
AUTH0_CLIENT_ID=
AUTH0_DOMAIN=
AUTH0_CLIENT_SECRET=
AUTH0_CALLBACK_URL=
AUTH0_LOGOUT_URL=
|
34d22cb4f94821b42b2b35f047ab7392157bc465 | 48 | #!/bin/bash
source $HOME/.cargo/env
exec "$@"
|
c75f9a4a83a6b56cbb0553d1b8e78fb53b50b1b2 | 173 | #!/bin/bash
echo >>/usr/src/linux/.config "
# Docker
CONFIG_IP_NF_TARGET_MASQUERADE=y
CONFIG_CGROUP_PIDS=y
CONFIG_CGROUP_HUGETLB=y
CONFIG_IPVLAN=y
CONFIG_CGROUP_NET_PRIO=y" |
c374141b86e20afbda2dc0a48a76ee60c960acc6 | 442 | #!/bin/bash
if [[ "$#" -ne 1 ]]; then
echo "./run_tests \$BUFFER_SIZE";
else
./clean.sh
gcc -fsanitize=address main.c get_next_line.c get_next_line_utils.c -D BUFFER_SIZE=$1;
./generate_tests.sh;
[ -d output ] || mkdir output;
./a.out tests/*.txt;
for file in tests/*.txt; do
diff -q "$file" "output/output_$(ba... |
32a23b24c473758956addb9e1f588b11d0926fcb | 1,782 | ## make sure your EC2 instance has the correct security group and is open on the connecting port
# ------ Typical ~/.ssh/config ------
## Personal
# Host jahdocker #my docker dev
# Hostname 34.195.153.103
# User ubuntu
# IdentityFile ~/.ssh/personal/jah-docker.pem
# ------ Install Docker Non-Sudo ------
## lo... |
96516aedbed113980bfae97b47d7106f663da071 | 90 | Cron_Expression='* * * * *'
App_Id=<<App Id generated from https://openexchangerates.org>> |
fc2fd24a544f7c9476ac6980ff99608825d43733 | 412 | #!/usr/bin/env bash
# remove currentView file
rm ./library-1.1-beta/config/currentView
# move configurations files to ~/config
cp -rf ./configurations/network/hosts.config ./library-1.1-beta/config/
cp -rf ./configurations/network/system.config ./library-1.1-beta/config/
# need to compile classes (if you modified th... |
c9d92ed123c233ffabaf01498f79fe518f8c4535 | 340 | #!/bin/bash
SESS=$1
for EXP in {1..10}
do
# python data_process/2_divide.py \
# --session $SESS \
# --exp $EXP
ipython main.py \
--pdb \
-- \
--session $SESS.$EXP \
--exp $EXP \
--config ./protos/$SESS.yaml \
--curr_time $EXP \
--ckpt_out $SESS.$EXP \
--model_out $SESS.$EXP... |
a30943e5819e4c97a3da300804905b1e9eca7c6b | 1,724 | #!/bin/bash
#IGNORE=("N/A")
PHPVERSION=$(echo php$(php --version | awk '/^PHP/ {print $2}' | cut -d '.' -f 1-2)-fpm)
while IFS="" read -r host || [ -n "$host" ]; do
DOMAIN=$(echo "$host" | cut -d';' -f1)
TLD=$(echo "$host" | cut -d';' -f2)
OWNER=$(echo "$host" | cut -d';' -f3)
if [[ ! "$DOMAIN" =~ ^# ]]... |
40cfe4ecaa9f5fc3db785f99fe81b71423d8a344 | 943 | #!/bin/sh
set -x
mkdir -p /data && cd /data
if [[ ! -d "/data/pki" ]]; then
/usr/share/easy-rsa/easyrsa --batch init-pki
/usr/share/easy-rsa/easyrsa --req-cn=openvpn-server --batch build-ca nopass
/usr/share/easy-rsa/easyrsa --keysize=${VPN_KEYSIZE:-2048} --batch gen-dh
openvpn --genkey --secret /data/pki/ta... |
905e9f3ce87c0ae1bfe3356709a3049d7ba23c63 | 43 | #!/bin/sh
paplay ~/.local/sounds/beep2.ogg
|
e512987c37932b7613ee35962cf336adcf406224 | 48 | export SSH_ASKPASS=/usr/libexec/x11-ssh-askpass
|
bd7c758dc5677b425c135efaa55be0f5f475e541 | 1,935 | set -ex
echo "
############################################
###### ses6_disk_fault_injection.sh ######
############################################
"
. /tmp/config.conf
# calculating PG and PGP number
num_of_osd=$(ceph osd ls | wc -l)
num_of_existing_pools=$(ceph osd pool ls | wc -l)
num_of_pools=1
function power... |
07af86e3b16bc8f5fea1421e1a597174c4d7c51c | 35 | export PORT=5001
export DEVENV=true |
c911a75795b5c1da569068a6635e57b5abb2e610 | 293 | #!/bin/bash
# remove exited containers:
docker ps --filter status=dead --filter status=exited -aq | xargs -r docker rm -v
# remove unused containers:
yes | docker container prune
# remove unused images:
yes | docker image prune
# remove unused volumes:
yes | docker volume prune
echo ""
df -h
|
1ed9454e012e6b883368da3a44034d66a3c1b9ee | 861 | # Converts some annotation properties in the ontology file $1
# Sends output to $2 (default is lode_bioknet.nt)
# into rdfs:comment annotations. This is necessary to render the file in LODE (http://www.essepuntato.it/lode),
# since it doesn't understand many other properties (https://github.com/essepuntato/LODE/issues... |
b49dbc7122c4e79601087a6b88bd00b7a205f4b3 | 1,612 | #!/bin/bash
export MAIN_DIR=`pwd`
export GALOIS_DIR=$MAIN_DIR/Galois/build/lonestar
export PMOD_DIR=$MAIN_DIR/PMOD/Galois-2.2.1/build/apps
mkdir -p output
echo "" > output/MST.out
echo "${green}Running MST with RELD${reset}"
echo "Running MST with RELD" >> output/MST.out
$GALOIS_DIR/boruvka/boruvka $MAIN_DIR/datase... |
98d80b1e32f962d36e64964b5b2c7871a171d0a2 | 132 | #!/usr/bin/env bash
set -euo pipefail
cd src
terraform validate -var-file=deployment/$CLIENT_ENVIRONMENT/$CLIENT_ENVIRONMENT.tfvars |
a328b8970e6c0b4aa9f0d3df2752fe61fa497d3f | 217 | #!/bin/bash
set -o errexit
python --version 2>&1 | grep -qE "3.7.[0-9]" || { echo "Need Python 3.7.x, have $(python --version)" && exit 1; }
pip install pip-tools==5.4.0
pip-sync requirements.txt
pre-commit install
|
7376cbc4f911ebf3a7f42ba6b09b147e2c3f5428 | 432 | #!/bin/bash
#install the maven in /opt
cd /opt
#download the apache maven
wget https://mirrors.estointernet.in/apache/maven/maven-3/3.8.1/binaries/apache-maven-3.8.1-bin.zip
#unzip the file
unzip apache-maven-3.8.1-bin.zip
#rename
mv apache-maven-3.8.1 maven38
#change the ownership to the jenkins
chown -R jenkins:jenki... |
ba2b6fd7c100edaa9e98dfec0a81372ecba64db2 | 1,813 | #!/bin/bash
#############################
# change variables here
# NOTE that total test time = (TEST_DURATION + 5) * set size of next 5 vars,
# for example (60 + 5) * 3 * 3 * 5 * 2 * 9 = 52650 seconds, or 14.6 hours.
DDS_BACKENDS='rmw_connextdds rmw_fastrtps_cpp rmw_cyclonedds_cpp'
F_PUBLISHER_SET='1 10 20'
MSG_SIZE... |
fcec2852dec593aaed5ff8c46c640781974ffb42 | 890 | #Part 1:writes file with unique gender-years-experience combinations in wages.csv
#Part 2:prints info for highest and lowest earners and number of females in top ten
#Part 3:effect of graduating college on min wage
#Usage: bash hwk6.sh wages.csv
#Part 1
cat wages.csv | grep -v "gender" | cut -d, -f 1,2 | sort -d | un... |
ab65854c6765157b18fae29e290aed37cdd4b276 | 1,608 | # $Id$
# Maintainer: Yuui Tanabe <yuuitanabe@163.com>
pkgbase=mingw-w64-pinentry
_realname=pinentry
pkgname=(${MINGW_PACKAGE_PREFIX}-${_realname})
pkgver=1.1.0
pkgrel=1
url="https://www.gnupg.org/software/pinentry/index.html"
license=('GPL')
pkgdesc='Collection of simple PIN or passphrase entry dialogs which utilize th... |
624121aab4ec37aaf4a6a3f45833d7f6283a34d5 | 105 | #!/bin/sh
osascript <<-APPLESCRIPT
tell application "Finder" to display dialog "Hello World"
APPLESCRIPT |
59bb07351c5429f46864cdbefcc0ae081adf73fb | 69 | pip install -r requirements.txt;pip install -r requirements_dev.txt;
|
a610ef804886508e3e66bfb4f8fa320547ea62ca | 61 | #!/bin/sh
cd application
php bin/composer install --no-dev -o |
76e4c5ef045e567d571f2ccf6fe71d10954945ab | 1,508 | ############################
# Configuration
############################
##
# Get the id of the currently running X windows process. e.g. ":0"
##
export DISPLAY=$( ps aux | grep \/usr\/bin\/X | grep -v grep | sed -e 's/^.*\/X \(:[0-9]*\).*$/\1/' )
##
# Get the id of the mouse, according to xinput
##
export MOUSE_ID=... |
d24b77481c984659b062b77977cefe99c642858c | 389 | #!/bin/sh
currentState=`cat /tmp/mp3_state`
clear
echo "Welcome to MP3!"
sleep 1
clear
echo $currentState
while :
do
if [ `cat /tmp/clear_flag` -eq 1 ] || [ "$currentState" != "`cat /tmp/mp3_state`" ]; then
currentState=`cat /tmp/mp3_state`
clear
echo $currentState
echo '0' > /tmp... |
a5f45d0f8b354189b8a1c55e711296c1156da310 | 1,599 | #!/bin/bash
verbose=0
tag=v10
ana_type=ss
path=/nfs-7/userdata/${USER}/babies/ewkino2012/${ana_type}/$tag
# make the output dirs
mkdir -p logs
# do the merging
function post_process
{
mkdir -p $output_path
mkdir -p logs/${tag}
local at=$1
local sample=$2
local input=$3
local br=${4:-1.}
... |
bf051d8aacee73ca3542a4e0dddbab879ffc1612 | 1,680 | #!/bin/sh
#
# Simple Redis init.d script conceived to work on Linux systems
# as it does use of the /proc filesystem.
# chkconfig: 2345 90 10
# description: Redis is a persistent key-value database
REDISPORT1=7001
REDISPORT2=7002
REDISPORT3=7011
REDISPORT4=7022
EXEC=/usr/local/redis/bin/redis-server
CLIEXEC=/usr/... |
91a6c99cca481f700bc5f604b7a6447b5e30000d | 1,071 | EBEAN_DATASOURCE_USERNAME=datahub
EBEAN_DATASOURCE_PASSWORD=datahub
EBEAN_DATASOURCE_HOST=mysql:3306
EBEAN_DATASOURCE_URL=jdbc:mysql://mysql:3306/datahub?verifyServerCertificate=false&useSSL=true&useUnicode=yes&characterEncoding=UTF-8
EBEAN_DATASOURCE_DRIVER=com.mysql.jdbc.Driver
KAFKA_BOOTSTRAP_SERVER=broker:29092
KA... |
d4f496a6efc6a66e415c6abd3b7c6945f85c3709 | 868 | #!/bin/sh
export CLASSPATH=lib:webapp/WEB-INF/lib/scala-library.jar:lib/jetty-6.1.22.jar:lib/jetty-util-6.1.22.jar
export CLASSPATH=$CLASSPATH:lib/servlet-api-2.5-20081211.jar:webapp/WEB-INF/lib/paranamer-2.0.jar:webapp/WEB-INF/lib/httpclient-4.0.1.jar
export CLASSPATH=$CLASSPATH:webapp/WEB-INF/lib/dispatch-http_2.8.0... |
3f46b128e6b47c0f43de2c8138b20255d6a8d896 | 343 | # Download the latest database from stage.elocal.com and
# index the new data with Solr.
cd /Users/tom/Code/elocal/
bundle exec thor db:import:stage
bundle exec rake db:migrate
bundle exec thor solr:index_accounts
bundle exec thor solr:index_categories
bundle exec thor solr:index_profiles
bundle exec rake email:nightl... |
79e340bed62328ebfd29fac8c6d449ed7bf6cc89 | 16,461 |
curl -X POST http://localhost:8501/v1/models/vgg199:predict -d '{"instances":[{"x": {"b64": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxQTEhUTExMWFhUXGB4XGBcYGBobGBgZGRcdFxcaGBcdHSggGB0lHRgXITEhJSkrLi4uGB8zODMtNygtLisBCgoKDg0OGxAQGy8lICUtLS0tKy0tLS0tLS0tLS0tLS0tLS0tLS0tLS0vLS8rLS0tLS0tLS0tLS0tLS0tLS0tLf/AABEIAKYBMAMBIgACE... |
f5d1f3017ea866c4457dacac1016eec5f6aab8b1 | 4,330 | #!/bin/sh
SIDLIST=`/usr/local/bin/php /data/htdocs/stats/scripts/get_sid_list.php`
RSORTSIDLIST=$SIDLIST
SIDLIST=""
for a in $RSORTSIDLIST
do
SIDLIST=${a}" "${SIDLIST}
done
for i in $SIDLIST;do
dt=`date "+%Y-%m-%d %T"`
echo "[$dt] run /data/htdocs/stats/infobright/test_referrer.php sid=$i fixdate=$j"
/usr... |
e89491d3c3150f7e3cfbff193636fdc00ad85f0b | 3,893 | #! /bin/sh
SRCDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
LOGFILE=$SRCDIR/../logs/log
PACKAGESLOG=$SRCDIR/../logs/packages
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" >> $LOGFILE
echo " Entered $0" >> $LOGFILE
USER=$1
HOMEDIR="$(eval echo ~$USER)"
echo " Running as user $USER" >... |
d2e3936409f9b7de3e7e830325a969c918da2809 | 177 | #!/usr/bin/env sh
mvn() {
docker run --rm \
-v $(pwd):/project \
-v /usr/tmp/.m2:/root/.m2 \
my_mvn $*;
}
install_mvn_alias() {
cp ./shell.sh >> ~/.alias;
}
|
0a5b66e89751eae81682c5e9fd72bc104377fd26 | 939 | #!/bin/bash
# bld_cad6.bash
# This script builds a sql script.
. /pt/s/rluck/svm6/.jruby
set -x
cd $SVM6
cd svm/
# cad6t.txt will be the 'top' of cad6.sql
cat abc6t.txt | sed 's/abc/cad/g' > cad6t.txt
# cad6m.txt will be the 'middle' of cad6.sql
cat abcxyz.sql | sed 's/abc/cad/g' | sed 's/xyz/eur/g' > cad6m.txt
... |
792aa1f435c7778ea021944f82a073ae7427c6f8 | 129 | #!/bin/sh
mvn clean package && docker build -t org.digam/ims-users .
docker run -p 8081:8080 --name ims-users org.digam/ims-users |
702ead4b553fe7c749e37609ec0231e4922b4257 | 37 | g++ main.cxx -o urdt
./urdt > output
|
17a1c37bf7e566386c3e21f73152a1e4885832e3 | 482 | #!/bin/sh
# sudo eopkg it libsass sassc inkscape optipng make
# sudo pacman -S libsass sassc inkscape optipng make
mkdir -p $HOME/.git-install
cd $HOME/.git-install
git clone https://github.com/pop-os/gtk-theme
cd $HOME/.git-install/gtk-theme
sudo make uninstall
sudo rm -rf /usr/share/themes/{Pop,Pop-Eta,Pop-Nokto,P... |
9d210be01ad2d0781df117f99fbe79da5ce97450 | 237 | #!/bin/bash
echo "**********************************************"
echo "------------Environment Variables------------"
echo "Java Options : $JAVA_OPTS"
echo "**********************************************"
java $JAVA_OPTS -jar app.jar
|
a6b3722bdad7e173df5813e55489930c0f814e19 | 316 | #!/bin/bash
set -eu
mkdir -p $PREFIX/bin
export CPP_INCLUDE_PATH=${PREFIX}/include
export CPLUS_INCLUDE_PATH=${PREFIX}/include
export CXX_INCLUDE_PATH=${PREFIX}/include
export LD_LIBRARY_PATH=${PREFIX}/lib
export LIBRARY_PATH=${PREFIX}/lib
./configure --with-libmaus2=${PREFIX}/lib --prefix=${PREFIX}
make install
|
853b6d05eb9cccdf7e7c7f9fe5e8191914498efd | 539 | #!/bin/bash
echo 'Setup git/contrib/diff-highlight...'
# debian
if [ -e /usr/share/doc/git/contrib/diff-highlight ]; then
sudo ln -s /usr/share/doc/git/contrib/diff-highlight/diff-highlight /usr/local/bin/diff-highlight
sudo chmod +x /usr/local/bin/diff-highlight
# Fallback to download old one script diff-hig... |
a0e416f7bd5bd2539c2cf815c1f9cc34563f0f44 | 299 | #!/bin/sh
/usr/sbin/rfkill unblock bluetooth
/usr/bin/hciconfig hci0 up
/usr/bin/hciconfig hci0 piscan
systemctl start obex
sleep 2
echo -e "connect 5A:5A:5A:A6:3B:C7\nquit\n" | bluetoothctl
sleep 2
pactl set-default-sink bluez_sink.5A_5A_5A_A6_3B_C7
# hack for wifi
#sleep 10
#ifconfig wlan0 up
|
0b91b78e43ce51ed6c35cf3bcb571d02cb668e5c | 8,274 | #!/bin/bash
###########################################################################
# NAME: genSamples.sh
# AUTHOR: Ulyouth
# DATE: 10.06.2020
# DESC: A script to generate sCO2 case samples using OpenFOAM for
# varying Myong-Kasagi model coefficients. The coefficients
# at the moment are: A*,... |
bd8c182e7eb313e1536e2ad2ddfe04ab0587c524 | 1,546 | #!/bin/bash
# resolve links - $0 may be a softlink
this="${BASH_SOURCE-$0}"
common_bin=$(cd -P -- "$(dirname -- "$this")" && pwd -P)
script="$(basename -- "$this")"
this="$common_bin/$script"
# convert relative path to absolute path
config_bin=`dirname "$this"`
script=`basename "$this"`
config_bin=`cd "$config_bin"; ... |
06fc3e438200340f6dc229ed42fc2ccfbc39736f | 30 | #/bin/bash
matchbox-keyboard
|
c74385be2fa861d4ff0909d6cbe2f2feaa41f7d1 | 230 | echo "Query account 'instagram', download 20 photos and their captions"
python instagramcrawler.py -q 'instagram' -n 20 -c
echo "Query hashtag '#breakfast' and download 20 photos"
python instagramcrawler.py -q '#breakfast' -n 20
|
e43220d3180262e19167d1af817eeff4ad9c8211 | 270 | #!/bin/sh
# usage: kill_tailfile_selects.sh yyy-mm-dd
# kills the tailfile_select.pl's that are tailing a log file named yyyy-mm-dd*
yyyy_mm_dd=$(date --date='2 days ago' +%Y-%m-%d)
ps aux | grep tailfile_select.pl | grep $yyyy_mm_dd | awk '{ print $2 }' | xargs kill
|
2b3cb5fcd3ac7abda226317bc109d449a23c7293 | 383 | #
# calendar.sh
#
# show 3 month calendar
cal -3
# show time
echo ""
echo "$(date +%A," "%B" "%d)"
echo ""
echo "$(TZ='America/Los_Angeles' date +%a\ %H:%M) in Los Angeles"
echo "$(TZ='America/New_York' date +%a\ %H:%M) in New York"
echo "$(TZ='Europe/Berlin' date +%a\ %H:%M) in Berlin"
echo "$(TZ='Asia/Tokyo' date +... |
c84585318f869b237a236f99b02a3d3a05567c3c | 311 | #
#!/bin/bash
#Script membuka akaun SSH/VPN
#Sunan | Explore Network Unlimited
#
read -p "Username Account going to be unlock: " User
passwd -u $User
echo "==============================================="
echo "Sunan | Explore Network Unlimited"
echo "==============================================="
echo ""
|
34112c68b416f4f9e8139cfc994803d3f8f7a8cc | 99 | for i in {0..9}; do printf $i; done;
echo
for i in {0..9}; do printf "\r %d" $i; sleep 0.5;done
|
204c0081e7d270425bd459deb37f9026e8070a13 | 200 | #!/bin/sh
case $BLOCK_BUTTON in
1) notify-send -u normal "$(/bin/yay -Qu)" ;;
2) "$TERMINAL" -e "$EDITOR" "$0" ;;
esac
echo " $(/bin/yay -Qu | grep -Fcv "[ignored]")"
# vim: set syntax=shell
|
2abca428758f47e2a64fa27698591de546584cb9 | 130 | #!/bin/bash
rm -rf build
mkdir -p build
cd build
cmake ..
make
cp -fv libspirit.so ..
cp -fv spirit_module.cpython-*.so ..
cd ..
|
8c2201fc23cdb0f4a087c479084cc162f0799a98 | 252 | #!/bin/bash
while true;
do
sleep 2
if [ $(shuf -i1-10 -n1) -gt 5 ]
then
# >&1 permet d'envoyer vers stdout
echo "INFO - ca se passe bien" >&1
else
# >&1 permet d'envoyer vers stderr
echo "ERROR - ca se passe mal" >&2
fi
done
|
23c741d5b30cd9916e7d95a3fb7bb599f265f04f | 510 | #!/bin/bash -x
for ((var=0; var<=10; var++))
do
randomNumbers[var]=$(($((RANDOM%900))+100))
done
echo ${randomNumbers[@]}
max=0
secondmax=0
min=1000
secondmin=1000
for i in ${randomNumbers[@]}
do
if [ $i -gt $max ]
then
secondmax=$max
max=$i
fi
if [[ $max -gt $i && $i -gt $secondmax ]]
then
secondmax=$i
fi
if [ $i -lt... |
4b0726c9a9fac00cf91a07cd6adb9b4e0b4147be | 592 | pkgname=ruby-ronin-asm
_gemname=ronin-asm
pkgver=0.2.0
pkgrel=0
pkgdesc="A Ruby DSL for crafting Assembly programs and Shellcode."
arch=('any')
license=('GPL3')
depends=('ruby' 'ruby-data_paths' 'yasm' 'ruby-yasm')
url='http://ronin-ruby.github.io/'
source=("http://rubygems.org/downloads/ronin-asm-$pkgver.gem")
md5sums... |
445b2bda41aec7637faa2da7ea714805ea3c36f9 | 1,632 | source ~/.bashrc_liqianma
# img_path=/esat/dragon/liqianma/datasets/Pose/KUL/liqian_outdoor_horizontal_01/images/frame_000001.jpg
# data_root=/esat/dragon/liqianma/datasets/Pose/KUL/youtube_multi
# data_root=/esat/dragon/liqianma/datasets/Pose/KUL/liqian_outdoor_horizontal_01_fps6_mask
# data_root=/esat/dragon/liqianm... |
af5ac04a7a105f142cd4829e0a25862e9da2c5df | 845 | sudo apt install htop -y
sudo apt install ssh -y
sudo apt install gparted -y
sudo apt install net-tools -y
sudo apt remove sunpinyin-data --purge -y
sudo apt remove fcitx-table-wubi --purge -y
sudo apt remove sunpinyin-data --purge -y
sudo apt remove libsunpinyin3v5:amd64 --purge -y
sudo apt remove fcitx-pinyin --pur... |
e7b596a54c9111496106c6bfb1890735bf3c54ae | 1,732 | #!/bin/bash
# This script sends an email alert when the load average exceeds 70% of the
# number of cores. It also logs the load average to statshub.
#
# This script is based upon the one here -
# https://www.digitalocean.com/community/questions/email-notifications-for-server-resources
#
# See also http://stackoverfl... |
32357d311857fe670b67f5f849de06b07f0f7264 | 123 | #!/bin/sh
SAMPLES=/usr/share/sayhours
HOURS=$(date +'%H')
FILE=$(ls $SAMPLES/$HOURS/* | sort -R | head -1)
play -q "$FILE"
|
85b10782a696a30e43a688f65afee5c78da5b9df | 246 | #!/bin/bash
for webservmethod in GET POST PUT TRACE CONNECT OPTIONS PROPFIND HEAD MOVE COPY PROPPATCH MKCOL LOCK UNLOCK SEARCH;
do
printf "$webservmethod " ;
printf "$webservmethod / HTTP/1.1\nHost: $1\n\n" | nc $1 80 | grep "HTTP/1.1"
done
|
883520cd4fc88427fed71b139de6a6f2aa48c01f | 90 | <<<<<<< HEAD
11echo "6"
=======
echo "1"
>>>>>>> bec436267841ce408668803d3bfaf457e71fa56c
|
95bb69e2c9ee2ec118dbc780c341259372b05fd5 | 201 | #!/bin/bash
#Usage ./aes-decrypt.sh filename
echo "You are encrypting file: " $1 "."
echo "Write file output name: "
read name
echo "Type strong password!"
openssl enc -aes-256-cbc -in $1 -out $name
|
275edf032d31d15947f717fbbab5b19aedfd8109 | 3,236 | SOURCE_BRANCH="source"
REPO="https://github.com/flickr-downloadr/flickr-downloadr.github.io.git"
SOURCEREPO="https://github.com/flickr-downloadr/flickr-downloadr-gtk.git"
CIENGINE="appveyor"
if [[ $GITHUB_WORKFLOW = 'ci cd' ]]
then
echo "The GITHUB_COMMIT_MESSAGE variable has a value of - ${GITHUB_COMMIT_MESSAGE}"
... |
89447705001693953cc5b651cf4d86881ec5666a | 2,787 | #!/bin/bash
# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
## generate-gcc-meson-cross-file.sh
#
# This generates a cross file to configure meson for cross-compiling with clang.
#
# Docs: https://mesonbuild.com/Cross-co... |
8d48e2cb2c7e531b8a90a7d1aed87a5e476cd08f | 191 | #!/bin/bash
sleep 1
killall xdg-desktop-portal-hyprland
killall xdg-desktop-portal-wlr
killall xdg-desktop-portal
/usr/lib/xdg-desktop-portal-hyprland &
sleep 2
/usr/lib/xdg-desktop-portal &
|
f13e83cd6e9b26e2ebe68ef79de7a6f13c5584b6 | 339 | clear
# add Server-Script
echo "*** uninstall Server-Script ***"
echo " "
sudo update-rc.d -f /etc/init.d/photo_cloud_start remove
echo "stop autostart ...."
sudo rm /etc/init.d/photo_cloud_start
echo "deleate autostart script ...."
sudo rm -r /home/pi/photo_cloud/
echo "deleate photo cloud foulder ...."
echo "reboo... |
e75f04b620d7a113084f0924687c839b70970332 | 141 | #!/bin/sh
echo "Building the system「Host」 ..."
cd Host/proxy
docker-compose build
docker-compose up -d
cd ../cpu
go build
./cpu
|
6fa795f9b84e400f546f8f4aa99090ec26881f0e | 145 | #!/usr/bin/env bash
docker build -t auth0-react-02-calling-an-api .
docker run --init -p 3000:3000 -p 3001:3001 -it auth0-react-02-calling-an-api |
ea9906e17b40e3fbfe5cdf169114951d9749f457 | 853 | #!/usr/bin/env bash
# -*- mode: shell-script; fill-column: 80; -*-
#
# Copyright (c) 2013 Joyent Inc., All rights reserved.
#
source $(dirname $0)/common.sh
usage() { echo "Usage: $0 <server-name>" 1>&2; exit 1; }
if [ "$#" -ne 1 ]; then
usage
fi
SERVER_NAME=$1
echo "Checking to see if server is still running.... |
f52eb5f7d4374125104b192ce07f08f3c12de758 | 364 | #!/bin/bash
cat << CLOUD
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "https://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>
教授的信息
<\title>
<\head>
<body>
<table>
CLOUD
sed -e 's/:/<\/TD><TD>/g' -e 's/^/<tr><td>/g' -e 's/$/<\/td><\/tr>/g'
cat << CLOUD
</t... |
d265059de7ea929d5be6e3c7e609135d08297076 | 31 | pylint . apps scripts settings
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.