blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
32b57cfdeaf5606f7c3b9eb65efab54fc9e7cb9c | 1,630 | #!/bin/sh
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); ... |
fba5d50b08130cad5d09f362a1a488c6aa122072 | 38 | #!/bin/sh
python dt-learn.py $1 $2 $3
|
8c0c03a74170ffbe9117dea3b9ffdc51f192444e | 798 | #!/bin/bash
# this exports the env variables _threads, _size and _workload from file captures created with run_sysbench.sh, as
# described in the help output
export_fields_from_sysbench_wrapper_generated_file()
{
[ -z "$1" -o -z "$2" ] && {
cat <<EOF>&2
usage: $0 <filename> "<experiment name>"
Where
... |
c2634444a0b9c829e42557539121f8777d8b377d | 462 | #!/usr/bin/env bash
set -euxo pipefail
echo "PKG_CPPFLAGS=-DNDEBUG -I\"${LIBRARY_PREFIX}/include\" -I\"${PREFIX}/include\" -DARROW_R_WITH_ACERO -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_S3 -DARROW_R_WITH_JSON" > src/Makevars.win
echo "PKG_CXXFLAGS=\$(CXX_VISIBILITY)" >> src/Makevars.win
echo 'CXX_S... |
fc7960467359bb7626286c655759e1ec044c5ddc | 2,654 | python get_activation_patterns.py -b --input ./model_dir/CIFAR100-rgb/dnn_CIFAR100-rgb_200-200_0.000125_0004/weights.dat --formulation neuron --time_limit 10800 --dataset CIFAR100-rgb --preprocess_all_samples
python get_activation_patterns.py -b --input ./model_dir/CIFAR100-rgb/dnn_CIFAR100-rgb_200-200_0.000125_0005/we... |
aed405377d761548aa6ee938a181c13c047d6fcb | 253 | #!/bin/bash
name=fourierc
# run latex
pdflatex $name.tex
# if latex terminated with errors, exit this script
[ $? -ne 0 ] && exit
# run latex again so that it gets all the cross-references right.
pdflatex $name.tex
# view pdf file
evince $name.pdf
|
a4a1ce25c2878ae64d581b8170a2e0fa0926f89c | 1,594 | #
# Copyright (C) 2016 The EFIDroid Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... |
785cdd74823fabb78d08795f8b2a3dd12a4f6476 | 439 | #!/bin/bash
function usage() {
echo "Usage $0 width height"
exit 1
}
if [ -z "$1" ]; then
usage
fi
if [ -z "$2" ]; then
usage
fi
width=$1
height=$2
point=`expr $width / 2`
for f in bmp gif jpeg jpg png tiff tif; do
convert -size ${width}x${height} xc:#97c03e \
-pointsize $point \
... |
d7a84bbb023f518a885e2726cbb7ca9493b0f6d8 | 339 | #!/bin/sh
case $1 in
generate)
exec node app.js -r -f /config/appservice-registration-irc.yaml -c /config/config.yaml -u "http://localhost:9995"
;;
start)
exec node app.js -c /config/config.yaml -p 9995 -f /config/appservice-registration-irc.yaml -u http://localhost:9995
;;
*)
echo "Usage:\n\t $0 (generate |... |
f20cd1c0e5abc8eba134c6268caafc3e86c05772 | 176 | #!/bin/bash
export LIBRARY_PATH=./ltp/lib:$LIBRARY_PATH
export LD_LIBRARY_PATH=./ltp/lib:$LD_LIBRARY_PATH
chmod +x ./tag
./tag ./ltp/model/pos.model ./ltp/model/parser.model
|
6527ee15c87dd5ca0a0c8070e93d10cb1ade69c6 | 63 | #!/bin/sh
export WINDOW_MANAGER=/usr/bin/xmonad
gnome-session
|
610a9729bd0825e930f03fbb88773a5fe2b3c72b | 204 | #!/bin/bash
#Shane Dalton CMPS128
#Initializes all servers
#listed in the ports list
#first positional argument is the number of servers to start, progressing from 1 to 5
runservers.sh 5
./killservers.sh |
fcf5487c4345d0bec96a43551dfa83598872f06d | 270 | #!/bin/bash
set -e
set -x
./setup.sh
./update_kicad.sh
./compile_wx.sh
./compile_kicad.py
./install_kicad.sh
./install_docs.sh
./install_libraries.sh
./update_install_translations.sh
./package_kicad.sh
./package_extras.sh
#cd bin/kicad.app/Contents/MacOS/
#open kicad
|
e966b8fa19c214b2234e7564435e15c79b3b5802 | 4,990 | #!/usr/bin/env bash
# This script is executed on Jenkins using
#
# $WORKSPACE/jenkins/build_matrix_entry_varan.sh BUILD_TYPE <VER> <WONTON_VER>
#
# BUILD_TYPE - pr, nightly, install
#
# if VER is abset, the HEAD of the master branch will be taken. If
# WONTON_VER is absent, the HEAD of the master branch of wonton... |
4805c471bcf6ebe613cd68787f52416c96e47bf5 | 315 | #!/bin/bash
cd ~/Code/raspberryCamera/bin
echo "Current Activity"
ps -ef | grep piCamera.py
tail ./log/images.log
ls -lrt ./images | tail -5
### Checking run status
status=`/bin/ps -ef | grep piCamera.py | wc -l`
if [ $status -eq "1" ]
then
echo "Need to start"
./startPiCamera.sh >./log/images.log &
fi
|
57e98592c0f3bc48979110094c6045638a92235a | 481 | #!/bin/bash
sudo ln -sf /home/box/web/etc/nginx.conf /etc/nginx/sites-enabled/default
sudo /etc/init.d/nginx restart
sudo rm -r /etc/gunicorn.d/*
#sudo ln -sf /home/box/web/etc/gunicorn-wsgi.conf /etc/gunicorn.d/test
sudo ln -sf /home/box/web/etc/django.qa.cofig /etc/gunicorn.d/django.qa.cofig
#sudo gunicorn -c /home/... |
7540af9c4f5f1198407aff4c4683c665943ad0f9 | 127 | #!/bin/bash
etot=`grep Conv output.out | head -1 | awk '{print $2}'`
awk -v e=$etot '/Conv/{print ($2 - e)*27.2}' output.out
|
4c1da3c1d7f578de6eb2c6cd7d9ec0aadd66b98a | 269 | #!/bin/bash
echo " A parancs neve: $0"
echo " Az első paramééter: $1"
echo " A második paraméter: $2"
echo " A paraméterek száma: $#"
if [ $1 -gt $2 ]; then
for I in $@ ; do
OSSZEG= `expr $OSSZEG + $I`
done
echo "A paraméterek összege: $Osszeg"
fi |
08fdc762c275c41d09f92f9aec5a9169d3825a6b | 282 | #!/bin/bash
esearch -db sra -query ERS1350172 | esummary | xtract -pattern DocumentSummary -ACC @acc -block DocumentSummary -element "&ACC" | cut -f 5 > acc/ERS1350172
bash /home/ubuntu/test/PSST/psst_2.sh -s acc/ERS1350172 -n snp.txt -d out/ERS1350172 -e jlever@bcgsc.ca -t 1 -p 1
|
827ee31f99131e3113cee3452b447da6a08d663e | 296 | #!/bin/bash
screen -L -S gatd-streamer-socketio -d -m forever streamer_socketio.js | tee -a streamer-socketio.log
screen -L -S gatd-streamer-tcp -d -m ./streamer_tcp.py | tee -a streamer-tcp.log
screen -L -S gatd-streamer-socketiopy -d -m ./streamer_socketio.py | tee -a streamer-socketiopy.log
|
808bbee132302d798434fbf783a0e2d1a45374b5 | 91 | #!/usr/bin/env bash
find {app/{apps,libs}/*,{admin,mobile}}/src/** -type f | xargs wc -l
|
eb295e0d38c5476aa9717a8c1585af604da283ba | 3,122 | #!/bin/bash
################################################################################
# Author : Awais Khan #
# Use this script as a root user. #
# This script is used to create a MySQL exporter service for pro... |
5e5dc94f8188c86cef7b029c3fe3210ce6c7765a | 1,019 | #!/usr/bin/bash
PATH=/opt/local/gnu/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/usr/sbin
JENKINS_VERSION='1.609.3'
# Exit if any commands fail
set -o errexit
# Ensure we have updated standard packages
echo "* Updating standard packages.";
pkg_delete -v nodejs smtools zoneinit
pkg_add -v nodejs smtools zoneinit
npm ... |
46907b8ffa2902a81c2bda35299ec22f017b6519 | 226 | FRONTEND_URL="http://localhost:7777"
PRISMA_ENDPOINT="https://us1.prisma.sh/paul-bratslavsky-ab9c93/graphQLwb/dev"
PRISMA_SECRET="ldfksjgfkjglkgdlfgdlk"
APP_SECRET="jwtsecret123"
STRIPE_SECRET="sk_123youchanget his"
PORT=4444
|
680cf6099f6005a4e7928d649d805efed853695d | 58 | nohup sudo node bin/www > /home/pi/hydra/hydra.log 2>&1 &
|
2cab573c96071a7cbf177c4ee5cafe7fe719626f | 769 | #!/bin/bash
# variables: CHANGE THESE!
dbase=name_of_my_dbase
wav_src=path_to_the_root_of_your_dbase
wav_tel_dst=path_to_where_the_telephone_version_of_the_dbase_must_be_written
# find all wav files and make a corpus file; since we have no orthographic transcription, we use '#' (silence) as transcription
find "${wav_... |
e819349d453b0024526d73c532442c8ff2fe1f38 | 622 | #! /usr/bin/bash
# declaring array
hobi=(renang 'baca buku' jalan)
echo hobi : ${hobi[@]}
echo indexes : ${!hobi[@]}
echo length of array : ${#hobi[@]}
echo hobi 1 : ${hobi[0]}
echo hobi 2 : ${hobi[1]}
echo hobi 3 : ${hobi[2]}
echo append new element
hobi[5]=kuliner # append new element
echo hobi : ${hobi[@]}
echo... |
771c90d4f4b950441d6b976f39b1d63e1b94dddd | 56 | #!/bin/bash
service tomcat start
service httpd start
|
ebdae47e76a3871818388b8c6ee0ea46cc72f2ba | 47 | REACT_APP_USER = gyjeong
REACT_APP_PASS = dummy |
ff66f28697b93912c7e4d932dec344a9f10c85c1 | 47 | javac ClimbingStairs.java
java ClimbingStairs
|
085a322d8f5466080328d013ced9fcd046602e09 | 11,317 | #!/bin/bash
ttycho(){
# override echo to only print out if being run in a terminal, not when output is piped
[[ -t 1 ]] && echo $1
}
if [ $# -eq 0 ]
then
if which condavision
then
ttycho "no arguments. condavision is already on your path, exiting"
exit
else
ttycho "adding co... |
7e5bbe7579683becac0c967703bac6cbe4b46f30 | 329 | VAR=$(ps -ef | grep apache2 | wc -l)
echo There is/are $VAR apache2 processes running
VAR=$(ps -ef | grep mysql | wc -l)
echo There is/are $VAR mysql processes running
VAR=$(ps -ef | grep http | wc -l)
echo There is/are $VAR http processes running
VAR=$(ps -ef | grep tcp | wc -l)
echo There is/are $VAR TCP processes... |
9dd85eeabd0949073ac482d4e3bed511ca832964 | 98 | gunicorn --bind 0.0.0.0:9061 --reload main:app --limit-request-field_size 0 --limit-request-line 0 |
b2d104ed9127bf88a4346281dabe5e72ed53e9a8 | 161 | #!/bin/sh
apk add git
mkdir /data
cd /data
git clone https://github.com/socketio/socket.io.git
cd socket.io/
npm install
cd examples/chat/
npm install
npm start
|
aebff89687eb379412208855330bed583e633cf2 | 1,441 | PROMPT_EOL_MARK=
KEYTIMEOUT=1
DEFAULT_USER=arc
. ~/.bashrc.env
setopt auto_pushd
setopt pushd_ignore_dups
setopt pushdminus
setopt rmstarsilent
setopt nonomatch
setopt long_list_jobs
setopt interactivecomments
setopt append_history
setopt extended_history
setopt hist_expire_dups_first
setopt hist_ignore_dups
setopt... |
a57cd9f33e4d697e55e240635d9680b93352741e | 295 | # example training script, put argparse arguments here
checkpoint_dir=checkpoints/debug/
rm -r ${checkpoint_dir} # remove if you don't want to wipe the folder
python3 train.py \
--checkpoint_dir ${checkpoint_dir} \
--mode train \
--init gaussian_circles1.5,0.75 \
--use_net \
--batch_size 2 \
|
2f4c39f0622ebdac4d4db940dab31b9eb191330b | 266 | # create virtualenv and install Python modules
# change paths if you want
PATH_ENV=$HOME/env
PATH_REPO=$HOME/repos/mlim
python3 -m venv $PATH_ENV
source $PATH_ENV/bin/activate
pip install --upgrade pip
pip install -r $PATH_REPO/setup/requirements.txt
deactivate
|
61eb649a11bdb632b7e9d502b101d8ebc0f404fc | 5,569 | #!/usr/bin/env sh
#
# CIS-LBK Recommendation Function
# ~/CIS-LBK/functions/recommendations/nix_ensure_source_routed_packets_not_accepted.sh
#
# Name Date Description
# ------------------------------------------------------------------------------------------------
# Eric Pinnell 10/22/20 ... |
a4679d79bcda813c77d54440fcf460ed514c0f49 | 103 | #!/bin/bash
mkdir -p ../../Root/usr/include/WindowServer/
cp *.h ../../Root/usr/include/WindowServer/
|
18e5916593141c0aadd688ce1ccba843ce88a018 | 198 | #!/bin/bash -x
read -p "enter the power:" n
ans=1
i=1
while [ $n -ne 0 ] && [ $ans -lt 256 ]
do
ans=$((2 * $ans))
echo "2^$i=$ans"
i=$(($i + 1))
n=$(($n - 1))
done
|
c7b83c515134c72a6925808d5cb318d7192ec871 | 309 | #!/bin/bash
KEYWORDS_NEWZEALAND="New(| )Zealand|\bNZ\b"
KEYWORDS_NEWZEALAND_ALL="$KEYWORDS_NEWZEALAND"
if [ "$1" == "" ]; #Normal operation
then
debug_start "New Zealand"
NEWZEALAND=$(egrep -i "$KEYWORDS_NEWZEALAND" "$NEWPAGES")
categorize "NEWZEALAND" "New Zealand"
debug_end "New Zealand"
fi
|
124a1182796e8129373f1c5f13a530946428c114 | 20 | ../install_procps.sh |
b6fbb4aef21a586fa0ae293a14258dd35aefad9b | 749 | # -*- mode:sh -*-
# source.N.dat
#
# Example seismic source data with llmwdc format
# Lines starting from '#' and blank line will be omitted.
# Please choose one of the following format, and remove (or comment out) the remaining.
# Multiple l... |
323f0e8356bf400cd94c21d6ac169720a7530a98 | 68 | SLEEP_MIN=20
LIST_TODO=scripts.todo.txt
WARNING_IP="141.39.145.123"
|
f0777428a52bd84902b8d525067917576afeacba | 6,024 | #!/usr/bin/env bash
#
# Removes old stopped docker container
#######################################
# Check if this is a running docker container with that entrypoint name
# Arguments:
# $1: The docker containers com.docker.compose.service name
# $2: The docker inspect json
# Returns:
# Exit code 0 on success, ... |
b44858c4623f9c21304727995cf5f22990ecb62d | 7,685 | #!/usr/bin/env bash
__ScriptVersion="0.1.5";
if [ -n "${XDG_CONFIG_HOME}" ]; then
CONFIG="${XDG_CONFIG_HOME}"
else
CONFIG="${HOME}/.config"
fi
if [ -n "${XDG_DATA_HOME}" ]; then
LOCAL="${XDG_DATA_HOME}"
else
LOCAL="${HOME}/.local/share"
fi
THEMES_DIR="${HOME}/.themes";
TEMPLATE_DIR="${PWD}/wpgtk-templates... |
2fd61d8d048b0590c49fedab4cb99b3fd400311e | 507 | #!/bin/bash
#SBATCH --partition=cpsc424_gpu
# set number of cpus per MPI process
#SBATCH --cpus-per-task=5
# set memory per cpu
#SBATCH --mem-per-cpu=6100mb
# set gre-flags
#SBATCH --gres-flags=enforce-binding
# set number of gpus
#SBATCH --gres=gpu:1
#SBATCH --job-name=MATMUL_TASK1C
#SBATCH --time=1:00:00
#SBAT... |
92a298f67a14e01bb81953d8c0c199ee120ef535 | 129 | cp temp/libscrypt.so /usr/lib && chmod 644 /usr/lib/libscrypt.so
cp src/scrypt.h /usr/include && chmod 644 /usr/include/scrypt.h
|
1af7ec04ab0a3e7269bb45ae4f50dc1ca16afbaa | 43 | brew cask install font-noto-sans-t-chinese
|
993407a15ba581ec8d30835f48dd0dd5535f31da | 95 | ATLAS_URI=mongodb+srv://user1:user1@cluster0-danet.mongodb.net/test?retryWrites=true&w=majority |
070a6d26b200d6cf23bf3eea0eef42ad63a3c78b | 178 | #!/bin/bash
cd $1
rpmbuild --define="dist $2" --define="_topdir `pwd`" -bb SPECS/$1.spec
rpmbuild --define="dist $2" --define="_topdir `pwd`" -bs SPECS/$1.spec
rm -rf BUILD/*
|
32d8dbab3ee81bc07e817a5408ebac819d93bb41 | 255 | #!/bin/sh
echo "Enter year to check whether it is leap year or not"
read inpyr
x=`expr $inpyr % 4`
y=`expr $inpyr % 100`
z=`expr $inpyr % 400`
if [ $x -eq 0 ] && [ $y -ne 0 ] || [ $z -eq 0 ]
then
echo "It is a leap year"
else
echo "Not a leap year"
fi
|
a9d7d08c9548e787b234fbe2a921ba5a36577c2d | 676 |
pkgname=radioitaliastreaming
pkgver=0.6
pkgrel=1
pkgdesc="This Amarok script allow you to listen Italian's Radios"
url="http://www.kde-apps.org/content/show.php/RecordStream?content=107095"
arch=('any')
license=('GPL')
depends=('amarok' 'streamripper')
# Install 'mplayer2' to record to wav.file!
# ==================... |
b94917ccc216aaea16883904973a32e3d4f18fcf | 2,069 | #!/bin/sh
kill -9 $(pidof simserver)
kill -9 $(pidof sleeper)
proc()
{
LD_PRELOAD=libtdi.so TRACEBUFFERSIZE=1 REMOVE=0 SELFINFO=100 ./simserver /tmp/s$1 &
sleep 1
local fcounter=1
while [ $fcounter -le `expr $4` ]
do
echo "mmap $2" | ./simclient /tmp/s$1
echo "code libcode$1.so f$fcoun... |
6918db7440b8dbd5b0eeb7407d3af0e1e0247e5a | 116 | REACT_APP_MAPBOX = pk.eyJ1IjoicXVhbmdraGFuaGRldiIsImEiOiJja3NtamwydHkwaDBiMzRveG8xdng1cml3In0.-Hxx-E7-0gJ0BBzBTj8-dQ |
5b88e28a21394468af2c6fe1a3008c2587cf58df | 188 | #!/opt/local/bin/mksh ../../.port.sh
port=jpeg
version=9c
useconfigure=true
files="http://www.ijg.org/files/jpegsrc.v9c.tar.gz jpegsrc.v9c.tar.gz 2ce111c8c0ac828a44b13ad28c265e954a342d07"
|
420e164dbf341baa364b8d6f96bee42df34f7d6d | 22 | source $ZDOTDIR/zshrc
|
3242d49dc5c8f16c312e7da54de460c6f3f4aca4 | 9,605 | #!/bin/bash
# testSuite_EmberSweep.sh
#######################################################################
#
# RRRR EEEEE A DDD M M EEEEE
# R R E A A D D MM MM E
# R R EEEE A A D D M MM M EEEE
# RRRR E AAAAA D D ... |
a53cf5ba5d969a82c67f586010a6994321de14bd | 127 | DB_DRIVER=mysql
DB_USER=root
DB_PASS=P@ssword123++
DB_NAME_DATABASE=dbbank
DB_HOST_DATABASE=192.168.1.221
DB_PORT_DATABASE=3306 |
69b237eadae6ad6395ac6d9e5a2f2588d5ba14a9 | 1,378 | #!/bin/sh
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# This script takes libcmt.lib for VS2005 and removes the allocation related
# functions from it.
#
# Usage: prep_libcmt.bat <VCInstallDir> <O... |
c3c21999c2bb3967de1422908e02771495adc351 | 1,702 | #!/bin/sh -l
set -e
grep -q "google_compute_instance" restrict-gcp-instance-image.sentinel || fail-message "You have not replaced '<data_source_type>' with 'google_compute_instance' yet."
grep -qL "<expression_1>" restrict-gcp-instance-image.sentinel && fail-message "You have not replaced '<expression_1>' yet."
gre... |
377ee67ec905fc2c916324506df5d524577fea33 | 1,647 | # ACCOUNT CREATE
curl -vXPOST http://localhost:9000/user -H Content-Type:application/json -d '
{
"username": "maltempe",
"email": "maltempe@gmail.com",
"password": "nohaymonedas"
}
'
# localhost: --user f1e46c68-6779-4755-98c2-1571872005b1:b66d285f414d67d6eef975c5c3d16f0a
curl -vXPOST http://hyper-api... |
980bc592c78bd65a9d459cc60df548aec470f61c | 179 | #!/bin/sh
set -e
clang++ -std=c++11 -stdlib=libc++ firstCpp.cpp -o firstCpp
clang++ -std=c++11 -stdlib=libc++ file.cpp -o file
./file
cd socket-programming/
sh getaddrinfo.sh
|
4cc12ab4dc437c43145cf432c20edd708d660ae4 | 1,588 | # Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: kevin <kevin@archlinux.org>
# Contributor: Eric Johnson <eric@coding-zone.com>
pkgname=perl-dbd-mysql
pkgver=4.050
pkgrel=6
pkgdesc='Perl/CPAN DBD::mysql module for interacting with MySQL... |
48a9069ec31677889f8f3e44c13d980ad26226ee | 610 | #!/bin/bash
subj_f="/data/raw_data/imagemend/uio/smri/subjects.csv"
subj_d="/data/raw_data/imagemend/uio/smri/raw"
file_1="swc1nu.nii"
file_2="swc2nu.nii"
rm -f runner; touch runner; chmod a+x runner
echo "if [[ \${1} == \\#* ]]; then" >> runner
echo " exit 1" >> runner
echo "fi" >> runner
echo "echo \"Exporting vox... |
f84715ac71e58290bdcc4a2f7ea43b864f3034e5 | 515 | #!/bin/bash
if [ `basename $PWD` != "JiraTestResultReporter" ]; then
echo "This script must be run from the JiraTestResultReporter directory" 1>&2
exit 1
fi
./src/main/bash/compile-plugin.sh
# https://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial
sudo service jenkins stop
sudo cp target/JiraTestResultRe... |
32f56f69c5a9b5efc798a7e1a6e52398a73d32ac | 156 | #!/bin/sh
name=retain
build() {
export GOOS=$1 ; shift
export GOARCH=$1 ; shift
go build -o $name-$GOOS-$GOARCH
}
build solaris amd64
build linux arm64
|
90dfbea16a8fc624736a5c61c6522ff59515b442 | 577 | # page only when needed, set term to truncate lines for minified code etc.
# default to insensitive matches and include a global agignore for minified exts.
# Some info http://unix.stackexchange.com/questions/109211/preserving-color-output-with-cut
ag_truncate_lines() {
tput rmam # turn off automatic margin mode.
... |
0193b55a125c4498f22814f64b57e4071da778be | 1,272 | #!/usr/bin/env bash
LINE="========================================================================="
PROJECT="mishamx/docker-yii2-app-advanced"
MODE="FBA"
STABILITY="dev"
function basecopy {
APP_PATH="/app/*"
echo ""
echo "Copy files"
for f in $APP_PATH;
do
if [[ $f = '/app/environments' ]... |
fa1dea0891eb048f9ace3a3035c934fe7015b1e1 | 18 | echo "I am v6607"
|
e9f09c73eaab54ce65490207680de39e01729a0c | 159 | #!/bin/bash
umask 0077
REALHOME=`echo $HOME | sed 's/::/:/g;'`
echo $IP > $REALHOME/last_pop3
echo "$USER from $IP" | logger -p mail.notice -t pop3
exec "$@"
|
316593ccee6d1cb7cce06ad2302e1024726d5d17 | 1,701 | #!/bin/bash -ev
export DISTRO=$(cat /etc/*-release|grep ^ID\=|awk -F\= {'print $2'}|sed s/\"//g)
if [[ "${DISTRO}" == "ubuntu" ]]; then
apt-get install -y apt-transport-https curl
fi
[[ -z ${MIRROR_BUILD_DIR} ]] && export MIRROR_BUILD_DIR=${PWD}
[[ -z ${MIRROR_OUTPUT_DIR} ]] && export MIRROR_OUTPUT_DIR=${PWD}/mir... |
df6819e0064a2d01271ab7c3199f49d08f9421b2 | 336 | #! /bin/bash
# stop script when an error occurs
set -e
psql -q -c "CREATE USER username SUPERUSER PASSWORD '123'"
echo "Created Postgres user 'username'"
psql -q -c "CREATE DATABASE projectcscs WITH OWNER username"
echo "Created Postgres database 'projectcscs'"
# cp -r example.env .env
# echo "Created .env containi... |
0a1957474f4f43b16384aadd7848d9b6b8b85165 | 55 | google-chrome --user-data-dir=/home/pulse --no-sandbox
|
d3aea69860d393482e9b3e1b400e49118b3994dd | 1,254 | #!/bin/bash
echo "script running..."
sudo apt-get update
sudo apt-get upgrade
sudo cp /tmp/shared/java.tar.gz /opt
sudo cp /tmp/shared/maven.tar.gz /opt
cd /opt
sudo tar zxvf java.tar.gz
sudo tar zxvf maven.tar.gz
echo "files moved"
update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_45/bin/java 100
update-... |
352e85a901cee743d079d5fb91c6d36eb18f97a7 | 1,128 | #!/bin/bash
##############################################################################
#Copyright HuaCloud Inc.
# This program isn't free software: but you can redistribute it and/or modify
# it when you deploy Huacloud iaas product for 1230 version.
##############################################################... |
1581259b8272cea349253692b060fdb87191de02 | 64 | #!/bin/bash
service mysql start -D
while :; do
echo ""
done |
3ecfd2f29e0d057ee38dd1d19d92b33b5c71b1f4 | 83 | #!/bin/bash
echo "starting mongo with db path ~/data/db"
mongod --dbpath ~/data/db
|
9619b9c43c0f3a1ac9b4084fafd624c0790b7866 | 490 | #! /bin/sh
# Build the networking TS
cd ranges-ts
git reset --hard origin/master
latexmk -pdf ranges
git apply ../ranges_htmlgen.patch
cd ../cxxdraft-htmlgen-ranges
cabal build
dist/build/cxxdraft-htmlgen/cxxdraft-htmlgen ../ranges-ts Bare
cd 14882
rm -r ../../gh-pages/ranges-ts/*
mv 14882.css index.html math ../../g... |
780deecb89aee5e901691138a2b1d12eb13ad734 | 163 | #!/bin/bash
# basic for command
# Reading values in a list
for test in Alabama Alaska Arizona Arkansas California Colorado
do
echo "The next state is $test"
done
|
f275c8f2770be15def9d5aaf512c3ba4c94e8588 | 3,163 | #!/bin/sh
help_display() {
echo ""
echo "===================================================================================="
echo " MWBACKUP is a bash script that helps you to create and rotate backups of Mediawiki site."
echo " It will create backup of files and database and place it into s... |
eb2c295467447960cebf2d40ea46227d9493c9a0 | 907 | #!/bin/bash
# The name of the script is myjob
#SBATCH -J congwang
# Only 1 hour wall-clock time will be given to this job
#SBATCH -t 1:00:00
# set the project to be charged for this
# should normally be of the format 2016-1 or 2016-16-1 or similar
#SBATCH -A 2017-103
# Number of nodes
#SBATCH -N 1
# Number of MPI... |
0554e3adc00cd80890aaa8f4ed05374b0e95b2f6 | 232 | #!/bin/bash
get_date () {
echo "[$(date +%Y-%m-%d\ %H:%M:%S)] - $1"
}
get_date "Generating pages"
hugo
get_date "Publishing pages"
rsync -vae ssh public/* ps-web-1:/var/www/html/mrbits.com.br/
get_date "Enjoy your new site"
|
e93de11f04eb610f9f7806c4ad92302d59af44f8 | 85 | gsql schema_fw_baydry.gsql
gsql -g fw_baydry "RUN SCHEMA_CHANGE JOB schema_fw_baydry" |
7d50260d71f85effbb73ce39566d461444551965 | 329 | #!/bin/bash
if [ $# -lt 1 ]; then
echo "Usage: ${0} <filename> [<varname>]" >&2
exit 1
fi
filename="${1}"
varname="${2:-$(basename ${filename} | tr '.' '_')}"
echo "${varname}"
while IFS='' read -r line || [[ -n "${line}" ]]; do
printf "%s\r\n" "${line}" | od -A n -t x1 | tr -d " \t\n\r"
done < "${filena... |
6be4a3d60caec03fcac8f08ccc6f14cfc037b505 | 59 | #!/bin/bash
set -o errexit
external/clang/bin/llvm-ar "$@" |
c8432d7b04b06ad7f9ba6bc68a00dda908685585 | 954 | # Contributor: Giovanni Scafora <giovanni@archlinux.org>
pkgname=hcfpcimodem-utils
pkgver=1.20full
pkgrel=1
pkgdesc="Linux drivers for the Conexant HCF Softmodem family (userspace tools and libraries)"
arch=('i686')
url="http://www.linuxant.com/drivers/hcf/"
license=('GPL' 'custom')
install=hcfpcimodem-utils.install
d... |
0b9ab66715d8f2c666b9403289c7c98bfa1bee02 | 209 | #!/bin/bash
n=$1
max=$2
inc=$3
if [[ ($inc == 0) || ("$inc" == "") ]]; then
let inc=10
fi
while [ $n -le $max ]
do
nombre="medicionesDeFacilesDe$n"
./problema3 $nombre < "testsFacilesDe$n"
let n+=inc
done
|
3b45e5deb60024306ca677e9a29d31f93d7cafc2 | 691 | # this replaces references to react and react-dom with references to preact-compat
echo "Replacing module usage of 'react' with 'preact-compat'..."
find ./node_modules/react* -type f -iname '*.js' -print0 | xargs -0 sed -i '' 's/'"'"'react'"'"'/'"'"'preact-compat'"'"'/g'
find ./node_modules/react* -type f -iname '*.js... |
225f42ed53b7a11bd0ca5e1052cf3586fc54d06a | 1,412 | #!/bin/sh
## menu6.sh for menu6 in /home/friaa_a/projet/plusoumoins
##
## Made by FRIAA Amine
## Login <friaa_a@etna-alternance.net>
##
## Started on Wed Nov 5 09:35:31 2014 FRIAA Amine
## Last update Wed Nov 5 16:54:41 2014 FRIAA Amine
##
echo -e "\033[31;5m░█▀▀█ ─█▀▀█ ░█─── ▀▀█▀▀ ░█▀▀█ ▀█▀ ░█▄─░█ ░█▀▀█ ░█─░█ ... |
a86345ef8796c37ec660c8ff430596b0861fd4e0 | 649 | #!/bin/bash
dpkg -i /root/bonding/ethtool_4.5-1_amd64.deb
dpkg -i /root/bonding/ifenslave_2.7ubuntu1_all.deb
dpkg -i /root/bonding/iproute_4.3.0-1ubuntu3_all.deb
cp -f /root/bonding/interfaces /etc/network/interfaces
sed -ie 's/^PermitRootLogin without-password/PermitRootLogin yes/g' /etc/ssh/sshd_config
cp -f /root/bo... |
f8441c8bc4e39f63234afb0102fd16559ef7bd45 | 198 | #!/bin/bash
# args
sql=$@
# initialise
db=bmslink
user=root
pass=
# user/pass
[ -n "$db" ] && [ -n "$user" ] || exit 1
[ -n "$pass" ] && pass=-p$pass
# main
mysql -u $user $pass $db -sNe "$sql"
|
81f52b634ae94d4b48f9e5a48333b7ab0c02e9bc | 13,849 | #!/usr/bin/env zsh
import os
import sys
import netCDF4 as nc4
import numpy as np
import logging
from datetime import datetime as dtime
from datetime import timedelta as tdelta
# Inter mediate file version
VERSION = 5
# Projection (only latlon is supported)
IPROJ = 0
# Radius of earth, in km
EARTH_RADIUS = 6367... |
c1ae978c5e90b2c103f4f09fb37472c6d6652767 | 1,367 | #!/bin/bash
#
# Copyright (c) 2017-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
set -ex
VERSION="${1:-"$(date +%Y.%m.%d)"}"
cd "$(dirname "$0")"
if [ $(uname -s) == "Darwin" ]; then
GREP=... |
e62bb99413da5feb4996c5290ec81edcd6f1276f | 161 | REACT_APP_API_URL="https://api.openstl.org/filter"
REACT_APP_MAPBOX_KEY="pk.eyJ1IjoibXJhbzIiLCJhIjoiY2ppZmFoazE5MGZiMjNwcXBtb3gyenk4cyJ9.nmFZofR-kOqj8yYfaJc2XQ"
|
993ead2c1f85c71e3609c76f4fe495513b9472ec | 1,866 | #!/bin/bash
function add_keyboard {
/usr/bin/xmlstarlet ed -P -s /xkbConfigRegistry/layoutList -t elem -n NewCustomlayout -v "" \
-s //NewCustomlayout -t elem -n configItem -v "" \
-s //NewCustomlayout/configItem -t elem -n name -v int \
-s //NewCustomlayout/configItem -t elem -n shortDescription -v i... |
c1ac10a5abcd61172bb473a703caaafd8c3fc453 | 324 | echo "[...]Installing Apps..."
apt update && apt -y upgrade
apt install -y net-tools php sudo php-curl python python-pip python3-pip postgresql postgresql-contrib ftp-ssl
pip install python-nmap sqlmap colorama PyX requests setuptools urllib3 wifi
pip3 install BeautifulSoup colorama pycparser six urllib3 wifi youtube... |
403f40d1399f21db6ad2d89df25d8a6debd53d02 | 936 | #!/bin/bash
# #############################################################################
# Deploys a new app version by rebuilding the image and containers
# This file is managed by Ansible. Any changes may be overwritten.
# #############################################################################
function pri... |
ddf52074ebccce9daa3a2c09e6de8340c74aba0d | 174 | #!/bin/bash
#
# Made with a little help from Pat
#
qsub -t 4002-6912 -e "/home/s1373240/errorLogs/" -o "/dev/null" -cwd -l h_rt=6:00:00 kmcJobArray.sh "jobInputs/testInput"
|
16885add627edf15236d5baf738313b00fb74123 | 1,996 | #!/bin/sh
# 今いるディレクトリパスの取得
path=`pwd`
# アプリケーションの説明の表示
eog 1.png
# Windowsで実行した場合のエラー処理
if [ $? -ne 0 ]
then
echo "Ubuntu以外で実行されました。"
echo "今いるディレクトリ内にある画像ファイル(1~5)までを読んで以下に進んでください"
# 上のやつを読む時間を待つための処理
sleep 20
fi
# 実行していいかの判断
read -p "実行してよろしいですか? yes(y)/no(n):" judge
if [ "$judg... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.