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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
c3b534d8bc1cdf48636d4e397401815310a3d837 | Shell | danibaena/pydevlib | /scripts/shared_utils/clean_pyc_files.sh | UTF-8 | 116 | 2.75 | 3 | [] | no_license | #!/bin/bash
for pyc_file in $(find . -path *docker_data* -prune -o -name '*.pyc' -print); do
rm $pyc_file
done
| true |
c52278435485a4d3b0fc8c6b8ca7b53f145788de | Shell | FollowMeDown/mailbsd | /MailBSD.sh | UTF-8 | 4,192 | 3.125 | 3 | [] | no_license | #!/usr/bin/env bash
# -----------------------------
# Define some global variables.
# -----------------------------
ROOTDIR="$(dirname $0)"
echo ${tmprootdir} | grep '^/' >/dev/null 2>&1
if [ X"$?" == X"0" ]; then
export ROOTDIR="${tmprootdir}"
else
export ROOTDIR="$(pwd)"
fi
cd ${ROOTDIR}
export CONF_DIR=... | true |
b98949c02bd424adaeec2c527e4debd69c54e93f | Shell | kdungs/clafoutis-example | /run-local-docker.sh | UTF-8 | 277 | 2.5625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e -u
here="$(cd "$(dirname "${0}")" && pwd)"
docker run \
--privileged \
--volume="${here}/dist":/dist:ro \
--volume="${here}/image":/image \
kdungs/clafoutis:latest \
clafoutis \
--distdir /dist \
--outdir /image \
--name clafoutis-example
| true |
2e1b4a78cf17977c8e8da2be483dc8e281a0ada9 | Shell | jxlwqq/setup-php | /src/scripts/tools/blackfire.sh | UTF-8 | 1,443 | 3.8125 | 4 | [
"CC-BY-SA-4.0",
"CC-BY-4.0",
"MIT"
] | permissive | add_blackfire_linux() {
sudo mkdir -p /var/run/blackfire
get -s -n "" https://packages.blackfire.io/gpg.key | sudo apt-key add -
echo "deb http://packages.blackfire.io/debian any main" | sudo tee /etc/apt/sources.list.d/blackfire.list
sudo "${debconf_fix:?}" apt-get update
${apt_install:?} blackfire-agent
}
... | true |
3a74057015905ff2d9406f7dbe177dcb50428f01 | Shell | kaustubhhiware/Scripted | /06/ss11.sh | UTF-8 | 171 | 3.296875 | 3 | [] | no_license | #conditionals - if then else
echo "Enter file to be renamed and new name"
read source target
if mv $source $target
then
echo "File renamed !"
else
echo "Failure !"
fi | true |
b17e493ce9809319c149a3693438436584b8428f | Shell | pcrews/system-config | /modules/openstack_project/files/mirror/fedora-mirror-update.sh | UTF-8 | 2,875 | 2.953125 | 3 | [] | no_license | #!/bin/bash -xe
# Copyright 2016 Red Hat, Inc.
#
# 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 agr... | true |
986a1626232ac72f72011f09e12498c0fec1201a | Shell | Environmental-Informatics/05-simplifying-complex-tasks-with-shell-scripts-wagne216 | /ProcessStations.sh | UTF-8 | 2,732 | 3.65625 | 4 | [] | no_license | #!/bin/bash
# created 2-26-20 by wagne216 (Danielle W.) for ABE 651 ass't 5
# Goal: Run this script to assess data from given stations in the StationData directory to (1) identify high elevation stations (2) Plot station locations and (3) convert the output figure into other formats.
# (PART 1) identify high elevatio... | true |
55456fbc64503863bddf14de501364dda225db5f | Shell | rrbuchholz/code_database | /shell_scripts/batch_redistribute_emiss.sh | UTF-8 | 914 | 3.21875 | 3 | [] | no_license | #!/bin/bash
#-------------------
# Concatenates emission
# files using NCO
# (netCDF operators)
#-------------------
# set up code directory
codedir=/home/buchholz/code_database/ncl_programs/data_processing
#arr=(OC BC SO4 VBS SOAG SOAG1.5) # options
#arr=(SOAG SOAG1.5) # options for SOAG 1.5
year_arr=(... | true |
17fc56b9f5720196120603cdaddd2df2b3ce4000 | Shell | matthiasr/statphy | /blatt5/aufg16-plot.sh | UTF-8 | 873 | 2.625 | 3 | [] | no_license | #!/bin/sh
gnuplot << EOF
set terminal pdf
set output "$2"
set xlabel 'p'
set ylabel 'relative Häufigkeit'
set xrange [0:1]
# cumulative gaussian distribution
set fit logfile '`basename $2 .pdf`.log'
f_10(x)=(1+erf((x-x0_10)/(sqrt(2)*s_10)))/2
f_100(x)=(1+erf((x-x0_100)/(sqrt(2)*s_100)))/2
f_1000(x)=(1+erf((x-x0_100... | true |
fe7c970f9e75fbfd42c593062a8d01e640b0c764 | Shell | jeden/Xamapod | /build | UTF-8 | 5,442 | 4.0625 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Initialization
yellow=`tput setaf 3`
reset=`tput sgr0`
arrow='\033[33m▸\033[0m'
OUTPUT_FAT_LIBRARIES_PATH="Generated/Fat libraries"
FINAL_FRAMEWORK_NAME=""
# Arguments
while getopts ":p:s:l:" opt; do
case $opt in
p) POD_NAME="$OPTARG"
;;
s) SUBPODS="$OPTARG"
;;
l) PODFILE_E... | true |
32f87c4e02e72dbdc17eaaeadf23d9a6f0120aa1 | Shell | fluxsauce/DrupalDeploySkel | /config/install.sh | UTF-8 | 1,785 | 2.578125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
DIR="$( cd "$( dirname "$0" )" && pwd )"
source "${DIR}/setup.sh" $1
# Get files
cd ${base_path_workspace}
drush -y make --force-complete --no-patch-txt "${base_path_project}/${name}/config/drush.make" ${name}
# Install
cd ${base_path_workspace}/${name}
drush -y site-install --config="${base_path_project}... | true |
10057e1f58077571428796c1d57d5a67a2324888 | Shell | asmeurer/ClangLite | /bin/conda/python-clang/build.sh | UTF-8 | 1,519 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | set -ve
sed -i -e 's/*B0/*BB0/g' $SRC_DIR/include/clang/Analysis/Analyses/ThreadSafetyTraverse.h
mkdir build_clang
cd build_clang
if [ -n "$MACOSX_DEPLOYMENT_TARGET" ]; then
# OSX needs 10.7 or above with libc++ enabled
export MACOSX_DEPLOYMENT_TARGET=10.9
fi
cmake -G "Unix Makefiles" -DBUILD_SHARED_LIBS=ON ... | true |
6c37bd30f50a6b21c6892209be39cbe43c0b65ec | Shell | cn-cerc/summer-install | /centos/inst-java8.sh | UTF-8 | 547 | 2.671875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
yum install java-1.8.0-openjdk.x86_64 -y
yum install java-1.8.0-openjdk-devel.x86_64 -y
yum install unzip -y
# 修改配置文件
echo "JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk" >> /etc/profile
echo "JRE_HOME=/usr/lib/jvm/java-1.8.0-openjdk/jre" >> /etc/profile
echo "PATH=\$PATH:\$JAVA_HOME/bin:\$JRE_HOME/bin" >> /etc... | true |
6fa0829eaca8b9d3a9a823bca7c700cd0ceb0206 | Shell | jokester/my-heroku-apps | /start-dev.sh | UTF-8 | 1,141 | 3.984375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -ue
cd "$(dirname "$0")"
RUN_LOCK="$PWD/temp/running-dev.lock"
export PGDATA="$PWD/temp/pgdata.dev"
ensure-deps () {
echo "checking for dependcies"
for bin in redis-server pm2 yarn node pg_ctl postgres ; do
if ! command -v $bin ; then
echo "$bin not found. quitting"
exit 1
fi
... | true |
d30811c3a343024f6d64eaa5f77c88bb70c8371c | Shell | betafcc/dots | /bin/e | UTF-8 | 5,095 | 3.46875 | 3 | [] | no_license | #!/usr/bin/env sh
_debug_mode() {
[ "${_DEBUG_MODE}" = 'TRUE' ]
}
# _DEBUG_MODE='TRUE'
if _debug_mode; then
get_shell() {
ps -o cmd $$ | tail -1 | cut -f1 -d' ' | rev | cut -f1 -d'/' | rev
}
set -x
if [ get_shell = 'bash' ]; then
set -e
set -E
set -u
set ... | true |
8d6336de6d306e0ba7c5853240c6aba1ded6bb5f | Shell | gwn/my-unix-scripts | /gitilog | UTF-8 | 262 | 3.0625 | 3 | [] | no_license | #!/bin/bash
# gitilog is for "git interactive log"
logs="$(git log --oneline)"
selectedCommit=$(echo "$logs" | vis-menu -i -l $(expr $(tput lines) - 1) | cut -d' ' -f1)
clear
test -n "$selectedCommit" && git show --color --stat -p "$selectedCommit" | less -RS
| true |
4372c8fbe983b2df15c6837edad6bf7719311f2e | Shell | BackupTheBerlios/quad-pres-svn | /quad-pres/tags/versions/0.10.3/installer/tests/stop-on-error/test1.bash | UTF-8 | 606 | 3.375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if [ -e in-out ] ; then
rm -fr in-out
fi
mkdir "in-out"
cd "in-out"
quadp setup slides --dest-dir=`pwd`/dest
cp -rf ../template/slides/{Contents.pm,src} ./slides/
if (cd slides && quadp render -a) > dump.txt 2>&1 ; then
echo "Error! quadp render -a did not stop on a broken input." 1>&2
exit 1... | true |
acc59b2f26a8b175d9940e59b0ac625a75a8c0a3 | Shell | petronny/aur3-mirror | /autostart/PKGBUILD | UTF-8 | 677 | 2.515625 | 3 | [] | no_license | # Contributor: shamrok <szamrok@gmail.com>
pkgname=autostart
pkgver=0.5
pkgrel=2
pkgdesc="KDE Control Center module to configure which applications start at KDE startup."
arch=('i686')
url="http://beta.smileaf.org/"
license=('GPL')
depends=('kdelibs')
makedepends=('autoconf')
source=("http://beta.smileaf.org/files/auto... | true |
1c9dd93028be8576f7120c00402ee223eef16b2f | Shell | Kerkil/arrayfire_examples | /vs-files/create | UTF-8 | 419 | 3.21875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
set -eu
[ $# = 1 ] || { echo "usage: $0 example.cpp" >&2; exit 1; }
vsdir=$(dirname $0) # visual studio configs
src=$(basename $1)
bin=${src%.*}
pat="s/XXX_SRC/$src/g; s/XXX/$bin/g"
#sed -e "$pat" $vsdir/vs2010.sln >${bin}_vs2010.sln
#sed -e "$pat" $vsdir/vs2012.sln >${bin}_vs2012.sln
sed -e "$pat" $vsdi... | true |
92e2ae547da46d216f1573e92e93825d423b645a | Shell | thekevinlemon2/ucr-cs100 | /scripts/allgrades.sh | UTF-8 | 1,135 | 3.46875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
scriptdir=`dirname "$0"`
source "$scriptdir/config.sh"
###############################################################################
function pad {
ret="${1:0:$2} "
ret="${ret:0:$2}"
echo "$ret"
}
echo "======================================... | true |
ec89787d2c2a3bd7c485a0d81c3a4ecc0e858bca | Shell | dileep92s/cpp_revision | /build.sh | UTF-8 | 312 | 2.84375 | 3 | [] | no_license | #!/bin/bash
app=${1}
echo --------------------------
echo make ${app}
echo --------------------------
echo
make ${app}
errval=$?
echo
if [ $errval = 0 ]
then
echo --------------------------
echo ./bin/${app:-test}
echo --------------------------
echo
./bin/${app:-test}
echo
fi
| true |
032248928a900d15efe30cc57fcfdb3db260b565 | Shell | gentrexha/machine-learning | /Project 1 - Classification/classifiers/run_all.sh | UTF-8 | 27,648 | 2.53125 | 3 | [] | no_license | #!/usr/bin/env bash
export PYTHONPATH=.
# k: number of neighbors, w: ['uniform', 'distance'], p: [None, 'normalize', 'scale', 'min_max_scale'] - pre process method
# fs: [None, 'k_best', 'decision_trees', 'drop_correlated'], fp: characteristic for feature selection (K>1for k_best, 0<threshold<1 for drop_correlated)
# ... | true |
73c6da62411bb223674f1e1540b0e3a4e00f4afc | Shell | swarrington1/cluster_blueprints | /aveBP_thr.sh | UTF-8 | 1,180 | 3.046875 | 3 | [] | no_license | #!/bin/bash
module load connectome-uon/workbench-1.3.2
StudyFolder=/gpfs01/share/HCP/HCPyoung_adult/Diffusion
scriptsDir=/gpfs01/share/HCP/HCPyoung_adult/scripts/blueprinting
output=${StudyFolder}/blueprint_atlas
tractNames=${scriptsDir}/blueprint_tracts
subID=$1
thr=$2
bpFile="${StudyFolder}/${subID}/MNINonLinear/... | true |
db84267321c4255d72240d02774f5d547bcc6268 | Shell | SalesVista/cockroach-installer | /systemdInstaller.sh | UTF-8 | 1,948 | 4.1875 | 4 | [] | no_license | #!/bin/bash
APP_DIR="/usr/local/bin"
SYSTEMD_DIR="/etc/systemd/system"
DATA_DIR="/var/data/cockroachdb"
ETC="/etc/cockroachdb"
CERT_DIR="$ETC/certs"
CERT_PRIVATE_DIR="$CERT_DIR/private"
function usage {
printf "Cockroachdb Installer\nUsage: $1 /path/to/cockroachdb.tgz [user]\n"
echo "download cockroachdb tgz file f... | true |
f91b17be4cb2d329c08e7acfb4018253008952af | Shell | BORI-BoB/L7-monitor | /frontend/create-env-file.sh | UTF-8 | 76 | 2.609375 | 3 | [] | no_license | #/bin/bash
touch .env
for envvar in "$@"
do
echo "$envvar" >> .env
done | true |
35aeaf042e9ef6eda863ca519bfb1ecc126edc81 | Shell | amazingfate/nklmsync | /syncutils/backup/sync-mirror.sh | UTF-8 | 2,239 | 4 | 4 | [] | no_license | #!/bin/bash
# Make sure only 1 instance runs
SYNC_LOCK_DIR="/ftp/syncutils/sync_update_state"
SYNC_LOCK_FILE="${SYNC_LOCK_DIR}/mirror-updating"
if [ -e ${SYNC_LOCK_FILE} ] ; then
exit 1
else
touch ${SYNC_LOCK_FILE}
fi
# ================= Configuration Begin ===================
# Mirrors to sync
# - prefix a... | true |
5c4854e66413af840acc04ee91c2436894059d16 | Shell | ismd/screenshotgun-deploy | /launchpad/deploy.sh | UTF-8 | 1,157 | 3.234375 | 3 | [] | no_license | #!/bin/bash
set -e
set -o pipefail
if [[ -z "${VERSION}" ]]; then
echo "No VERSION variable"
exit 1
fi
useradd ismd
bzr whoami "Vladimir Kosteley <zzismd@gmail.com>"
wget -q -O screenshotgun.tar.gz https://github.com/ismd/screenshotgun/archive/v${VERSION}.tar.gz
tar xzf screenshotgun.tar.gz
eval $(ssh-agent -s)... | true |
81223b75968d08f25132b80d91a2967b72dcfc25 | Shell | alexdao3/advent-of-code | /2019/elm/run.sh | UTF-8 | 448 | 2.84375 | 3 | [] | no_license | #!/usr/bin/env bash
YEAR="${1}"
DAY="${2}"
INPUT="Year${YEAR}/Day${DAY}.elm"
OUTPUT="js/${YEAR}-${DAY}.js"
MODULE="Year${YEAR}.Day${DAY}"
clear;
tput reset;
elm make "${INPUT}" --output "${OUTPUT}" && \
echo "this.Elm.${MODULE}.init();" >>"${OUTPUT}" && \
echo "--------------------------------------" && \
node --ma... | true |
fe0106172389b3ffbd225edea69d1f75b197d9eb | Shell | bcicen/safertar | /safertar | UTF-8 | 908 | 4.21875 | 4 | [] | no_license | #!/bin/bash
ARCHIVE=$1
[ $# != 1 ] && {
echo "usage: safertar /path/to/archive.tar"
exit 2
}
#check that we have fakechroot and chroot installed
[ -z $(which fakechroot 2> /dev/null) ] && {
echo "unable to find fakechroot in path, exiting"
exit 1
}
[ -z $(which chroot 2> /dev/null) ] && {
echo "... | true |
51ded3b055881db2638f3ca284217bf27b19dba1 | Shell | RyanKung/psqlog | /company.sh | UTF-8 | 679 | 2.578125 | 3 | [] | no_license | #!/bin/sh
#-- COPYRIGHT 2007 Eugene Koontz <ekoontz@hiro-tan.org>
#-- This file is part of Psqlog : an
#-- implementation of Prolog in PostgreSQL
#--
#-- Licenced under the GNU General Public License version 3.
#--
#--
#start from scratch..
dropdb -U www company || exit
createdb -U www company || exit
echo "CREATE ... | true |
80ff6fb25040ad66c9da8ab9097bde5f5d45171f | Shell | jixiuf/dotfiles | /linux/bin/sway-move-to-prev-workspace | UTF-8 | 642 | 3.21875 | 3 | [] | no_license | #!/bin/sh
# -*- mode:sh -*-
# move window to next workspace ,if workspace not fount creat a new one
# 将当前窗口 移到上一个 workspace 中, 最多支持 5 个 workspace ,可调整 max_ws 的值
# 若当前 workspace 已经是第一个,则移到最后一个 workspace 中
max_ws="7"
wsinfo=`swaymsg -t get_workspaces | jq '.[] | select(.focused==true)'`
ws_index=`echo $wsinfo|jq '.num'... | true |
8476afd179e3a0be92245a807cd9fedcc4b78ad8 | Shell | joaocosta-azores/vagrantbase | /install/database.sh | UTF-8 | 2,370 | 3.265625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
reboot_webserver_helper() {
if [ $INSTALL_NGINX_INSTEAD != 1 ]; then
sudo service apache2 restart
fi
if [ $INSTALL_NGINX_INSTEAD == 1 ]; then
sudo systemctl restart php7.2-fpm
sudo systemctl restart nginx
fi
echo 'Rebooting your webserver'
}
# /*===========... | true |
21893662483b4f51f2a3c154a8e465954e187b3c | Shell | ccunning/dotfiles | /.bin/aws-prof | UTF-8 | 294 | 3.515625 | 4 | [] | no_license | #!/bin/bash
if [[ ! -z ${1} ]]; then
export AWS_PROFILE=${1}
else
prof=${1}
if which fzf &>/dev/null; then
prof=$(aws configure list-profiles | grep -E -iv "\-sso$" | fzf)
[[ ! -z "$prof" ]] && export AWS_PROFILE="$prof" || unset AWS_PROFILE
else
unset AWS_PROFILE
fi
fi
| true |
0fd36cfa4c7f9a1e3863077ae453689c0259ea5e | Shell | mdjames094/dotfiles | /backup/Scripts/remarkable/pipes-and-rust/uninstall.sh | UTF-8 | 693 | 3.078125 | 3 | [] | no_license | #!/usr/bin/env sh
# Set hostname or ip address of your reMarkable
host="rmk"
echo "Stopping service..."
ssh "$host" "test -f /lib/systemd/system/pipes-and-rust.service && systemctl disable --now pipes-and-rust.service" || exit 1
ssh "$host" "pidof pipes-and-rust > /dev/null && killall pipes-and-rust" || exit 1
echo ... | true |
05b6b40f2c748c8e351e7b7acecf72af08618014 | Shell | hangphan/resistType | /src/runResistTypeBody.sh | UTF-8 | 4,052 | 3.546875 | 4 | [] | no_license |
while [[ $# > 1 ]]
do
key="$1"
case $key in
-d|--bamdir)
BAMDIR="$2"
shift # past argument
;;
-s|--sampleid)
SAMPLEID="$2"
shift # past argument
;;
-t|--nthread)
NTHREAD="$2"
shift # past argument
;;
-r|--refid)
REFID="$2" #if your sample is Ecol or Kpne, plea... | true |
718cc675a9b89eb9c237ed6333b9772f310d576c | Shell | kaihendry/clipmenu | /clipmenu | UTF-8 | 649 | 3.65625 | 4 | [] | no_license | #!/bin/bash
dmenu_lines=${CLIPMENU_LINES-8}
declare -A selections
for file in /tmp/clipmenu/*; do
first_line=$(sed -n '/./{p;q}' "$file")
lines=$(wc -l "$file")
lines=${lines%% *}
if (( lines > 1 )); then
first_line+=" ($lines lines)"
fi
selections[$first_line]=$file
done
chosen_l... | true |
4460092191e2b78cc235f302e98c6e568b1bccda | Shell | Polyomino/meteor-buildpack-horse | /extra/phantomjs.sh | UTF-8 | 325 | 3.0625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
VERSION=2.0.0
PHANTOM_URL="https://s3.amazonaws.com/travis-phantomjs/phantomjs-$VERSION-ubuntu-12.04.tar.bz2"
echo "-----> Installing phantomjs."
# Just extract the one file (the binary) and not all the examples/readme's/etc.
FILE="phantomjs"
curl -L -sS $PHANTOM_URL -o - | tar -jxf - -C $COMPILE_DIR/bin $... | true |
701abbbbef27dd1dd4554b9befaf1099d0654d25 | Shell | donutbrew/BIO_scripts | /krakpipe_classify.sh | UTF-8 | 6,968 | 3.40625 | 3 | [] | no_license | #!/bin/bash
# krakpipe classify module
# Modified 2015-08-03 NOT TESTED
# Defaults
krakdb=/ramdisk/defaulth
filter=0
customtax=0
custlabel="Archea"
batchdir=""
rawtot="-"
krakenpath=$HOME/bin/kraken
PATH="$krakenpath:$PATH"
readtot=0;unclass=0;humantot=0;bacteriatot=0;archaeatot=0;virustot=0;phixtot=0;phixtot=0;
... | true |
0ae9bd99170da815c841a0ad7e2a525fc6847161 | Shell | LuAnVaRmO/holberton-system_engineering-devops | /0x04-loops_conditions_and_parsing/8-for_ls | UTF-8 | 137 | 3.15625 | 3 | [] | no_license | #!/usr/bin/env bash
# Print a script for list current dir in a list format
l="$(ls)"
for i in $l
do
echo "$i" | cut -d '-' -f2
done
| true |
c6c180aa3336a4fdd1b8d6c002078251e2ab29a6 | Shell | joshmcarthur/dotfiles | /bin/goto-qr | UTF-8 | 303 | 3.78125 | 4 | [] | no_license | #!/bin/bash
# Build a QR code pointing to this machine's IP address and a port.
# Useful for getting to an address on a mobile quickly.
PORT="$1"
if [ -z "$PORT" ]
then
echo "Port is required!"
echo "Example usage: goto-qr 3000"
exit 1
fi
ADDR=`ip`
qrcode-terminal "http://$ADDR:$PORT"
| true |
e3316d6d12d3c97985edf482c67512ff0c0cfdf4 | Shell | zhanghhhua/FLUSI | /tests/job_unittest_turing.ll | UTF-8 | 3,799 | 3.265625 | 3 | [] | no_license | #!/bin/bash
#=========== Global directives ===========
#@ job_name = UNITTEST
#@ shell = /bin/bash
#============= pre-parallel step =============
#@ step_name = sequential_preprocessing
#@ job_type = serial
#@ class = archive
#@ cpu_limit = 0:10:00
#@ output = $(job_name).$(jobid).pre
#@ error = $(output)
#@ queue
... | true |
a4b6cc21a0f7bd7bf4431836096b9ce8d962b65f | Shell | dcervenkov/dst-rho-ana | /tools/backup_results.sh | UTF-8 | 299 | 3.078125 | 3 | [] | no_license | #!/bin/bash
DATE=$(date +%y%m%d)
BAKDIR="old/$DATE"
for APP in DSRhoBackground DSRhoCPFit DSRhoLifetime DSRhoYield; do
echo "Backing up $APP logs, plots, and results to $BAKDIR"
cd ../$APP/ && mkdir $BAKDIR && mv logs plots results $BAKDIR/. && mkdir logs plots results && cd ../tools
done
| true |
78c4855cf2c82362d2a074fece26b6cd0278e1be | Shell | gbsf/archlinux-packages | /imlib2/repos/extra-x86_64/PKGBUILD | UTF-8 | 978 | 2.6875 | 3 | [] | no_license | # $Id$
# Maintainer: arjan <arjan@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=imlib2
pkgver=1.4.0
pkgrel=1
pkgdesc="Imlib2 is the successor to Imlib. It is NOT a newer version -- Imlib 2 can be installed alongside Imlib 1.x"
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/enlighten... | true |
3d6c4dfbc6c864a3b76b88b7717c35913951f70e | Shell | chscott/ConnectionsDocker | /tdi/base/run.sh | UTF-8 | 1,252 | 4.125 | 4 | [] | no_license | #!/bin/bash
# This is the install script used to build a container with TDI installed. Once TDI has been installed the container
# can be committed to a new image that is then used to provision a TDI for Connection container.
WORK_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
APP_DIR="/app"
DATA_DIR="/data"
#... | true |
2166260bfe42a361768f0d3d3519413fb8a00476 | Shell | puzzle/origin-metrics | /hack/tests/base.sh | UTF-8 | 3,356 | 3.984375 | 4 | [] | no_license | #!/bin/bash/
source $(dirname "${BASH_SOURCE}")/common.sh
source $(dirname "${BASH_SOURCE}")/test-base.sh
function cleanup {
out=$?
if [ $out -ne 0 ]; then
Info
Error $SEPARATOR
Error "Test failed"
Error $SEPARATOR
Info
... | true |
8b406c2419022fee2b588fa85db5a34ec2afe558 | Shell | scriptlib/sh | /mvfiles | UTF-8 | 663 | 3.953125 | 4 | [] | no_license | #!/bin/bash
APPNAME="mvfiles"
APPVER="0.1"
APPDESC="move files in sub folders to their parent"
APPUSAGE="[FILESPEC] (foldername)"
ARGS=$*
if [ -z "$ARGS" ];then
echo "$APPNAME V$APPVER"
echo -e "\t $APPDESC"
echo -e "Usage: $0 $APPUSAGE"
exit 0
fi
NOR="\033[0m"
BOLD="\033[1m"
RED="\033[91m"
YEL="\033[93m"
GRE="... | true |
5ec9ce910546a037ec6012fd542c238b332d054d | Shell | CesarBallardini/pve6-lab | /03-cluster-con-ceph/instala-templates-vm.sh | UTF-8 | 6,756 | 3.25 | 3 | [] | no_license | #!/usr/bin/env bash
##
# VMIDs:
#
# 9001-9999: templates de VMs
# 5001-9000: VMs
# 1001-5000: CTs
#STORAGE_POOL="local"
STORAGE_POOL="ceph-vm"
vm_template_ubuntu_2004() {
VMID=$1
PVE_NODE_NAME=pve1
VM_NAME=ubuntu-20.04-template
URL_BASE=https://cloud-images.ubuntu.com/focal/current
FILENAME=focal-server-... | true |
0c27a8cef945eff099bcd6bbf8f1952aa4963de0 | Shell | cnaf-mw-devel/ca_CMS-TTS-CA | /jenkins-build.sh | UTF-8 | 567 | 2.921875 | 3 | [] | no_license | #!/bin/bash
set -ex
BUILD_TAG=${BUILD_TAG:-test}
PKG_IMAGE=${PKG_IMAGE:-italiangrid/pkg.base}
PLATFORM=${PLATFORM:-centos6}
IMAGE=${PKG_IMAGE}:${PLATFORM}
docker pull ${IMAGE}
docker run --name ${BUILD_TAG} -t \
--env-file ./build-env \
${IMAGE}
mkdir repo
docker cp ${BUILD_TAG}:/stage-area/centos6 rep... | true |
aa58b1020baa91478fde2cb5ba10d34c92ffed6f | Shell | eosdac/DACtools | /eosdac-testnet/build.sh | UTF-8 | 800 | 2.734375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
source ./conf_private.sh
source ./conf_dac.sh
source ./conf.sh
source ./functions.sh
echo -e "\n\n----------------- BUILDING CONTRACTS -------------------\n\n";
PWD=`pwd`
cd $DACCONTRACTS/daccustodian/
git pull
$EOSIOCPP -DTOKEN_CONTRACT='"eosdactokens"' -DTRANSFER_DELAY=10 -o daccustodian.wasm daccusto... | true |
2b546b198b16867b8514137e3315509db08a0725 | Shell | FDOS/share | /build.sh | UTF-8 | 1,597 | 3.4375 | 3 | [] | no_license | #!/bin/sh
if [ x"${COMPILER}" = "xgcc" ] ; then
export CC="ia16-elf-gcc"
export CFLAGS="-mtsr -Wall -fpack-struct -mcmodel=tiny -c -Os -o"
export EXTRA_OBJS="gcc_help.obj"
export LD="ia16-elf-gcc"
export LDFLAGS="-mtsr share.obj \${EXTRA_OBJS} -o share.com -li86 -Wl,-Map=share.map"
elif [ x"${COMPILER}" = "... | true |
7c2029f97cbeeeb0e577680e33550d4271162296 | Shell | annacrombie/sc | /src/sc/util.zsh | UTF-8 | 1,869 | 3.6875 | 4 | [] | no_license | return_() {
typeset -g returned="$@"
}
log_() {
echo "[sc log] $@"
}
log_debug_() {
[[ $sc_verbosity -gt 1 ]] && log_ "[debug] $@" >&2
}
log_err_() {
log_ "[error] $@" >&2
}
die_() {
log_err_ "$@"
cleanup_
exit 1
}
need_pipe_() {
[[ ! $sc_pipe ]] && die_ "no data"
}
cleanup_() {
for dir in $sc_t... | true |
a7d5da1891b485f3e7904d87b53e4c76052cdd73 | Shell | RAKWireless/rak2247_usb_for_ubuntu | /install.sh | UTF-8 | 179 | 2.8125 | 3 | [] | no_license | #!/bin/bash
# Stop on the first sign of trouble
set -e
if [ $UID != 0 ]; then
echo "ERROR: Operation not permitted. Forgot sudo?"
exit 1
fi
cd rak2247_usb
./install.sh
| true |
ecbbbe196f4b5d182cf35631ca93f5bc0c5c85f0 | Shell | elturner/webcomics_compiler | /bbc.sh | UTF-8 | 889 | 3.640625 | 4 | [] | no_license | #!/bin/bash
bbc_file="bbc.html"
# This script will download the latest stories on BBC, and
# output a formatted version of the comic's image
# in html to the screen
NUM_LINES=10
# get latest file from website
wget www.bbc.co.uk/news/ -o /dev/null -O ${bbc_file}
# get information
echo "<hr>"
echo "<h2><a href=\"htt... | true |
69d97f896a8a66c90465cc57ac9014bf8bfcd5f1 | Shell | sireeshapotnuru/azure-linux-automation | /remote-scripts/test_docker.sh | UTF-8 | 420 | 3.1875 | 3 | [
"Apache-2.0"
] | permissive | # This script is meant for quick & easy install via:
curl -fsSL get.docker.com -o get-docker.sh
sh get-docker.sh
systemctl status docker > /dev/null
dockerServiceStatus=$?
systemctl status docker > ./dockerServiceStatusLogs.txt
docker version > dockerVersion.txt
if [ $dockerServiceStatus -eq 0 ];then
echo "DOCKER_VE... | true |
b4e72c15acd5b3cc698d727b055237783cdcbb13 | Shell | phpdave/centos-dotfiles | /system/bash_profile.symlink | UTF-8 | 346 | 2.984375 | 3 | [] | no_license | # .bash_profile
# vim:syntax=sh
# Get the good stuff...
[ -f "${HOME}/.bashrc" ] && source "${HOME}/.bashrc" ;
# Print a shell banner for login shells
echo ; bash --version ; echo ;
# Print .dotfiles version
[ -f "${HOME}/.dotfiles/VERSION" ] && echo "This shell has been enhanced by .dotfiles version $(cat $HOME/.do... | true |
d2acd6aaa1bb65eaba2e6695b329d65c4ab82e0a | Shell | jwuVT/dev-vm | /dev-box-build/puppet-refresh.sh | UTF-8 | 318 | 2.8125 | 3 | [] | no_license | #!/bin/sh
PUPPET_DIR='/opt/puppet-provision'
VAGRANT_DIR='/vagrant'
if [ -d "$VAGRANT_DIR" ]; then
rm -rf $PUPPET_DIR
fi
mkdir $PUPPET_DIR
cp -r $VAGRANT_DIR/* $PUPPET_DIR/
cd $PUPPET_DIR && librarian-puppet install --verbose
puppet apply -vv --modulepath=$PUPPET_DIR/modules/ $PUPPET_DIR/manifests/default.pp | true |
49baea22d2b455c8fdcdad48c06a040512c20e3f | Shell | jl-montes/samples | /Ansible/playbooks/files/scaleio-mdm-destroy.sh | UTF-8 | 451 | 3.09375 | 3 | [] | no_license | #!/bin/bash
USER=$1
PWD=$2
echo -e "--> Running Scaleio MDM destroy commands..."
VOL=$1
SDC=$2
unmap_volume ()
{
echo -e "Unmapping volume.."
/opt/bin/scli --unmap_volume_from_sdc --volume_name $1 --sdc_ip $2 --i_am_sure
}
remove_volume ()
{
echo -e "Removing volume.."
/opt/bin/scli --remove_volume --... | true |
85aec743343c247904b44fa736405a4bb3cc4edd | Shell | lror/0 | /url_ip.sh | UTF-8 | 940 | 2.734375 | 3 | [] | no_license | #!/bin/bash
if [ "$1" == "" ]
then
echo "USE $0 endereço.do.site"
else
echo "#####################################"
echo "######### BUSCANDO ... #############"
echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
echo " "
wget -c --no-check-certificate "$1" -O "$1" >> "$1".log
echo " "
echo "######################... | true |
5082bf62ef83aafe5af98c689af4ec4aad7c277b | Shell | JulianGoeltz/myConfigFiles | /i3blockscripts/blocks_ethernet.sh | UTF-8 | 263 | 2.71875 | 3 | [] | no_license | #!/bin/bash
# set -euo pipefail
source /home/julgoe/myConfigFiles/i3blockscripts/blocks_defines.sh
if [ "$(ifconfig enp0s31f6 | grep -c inet)" -gt 1 ]; then
echo -n "Eth: "
echo -n "$(ethtool enp0s31f6 2>/dev/null| grep Speed | awk '{print $2}')"
echo
fi
| true |
c4fa1aafe5686bcea0d22b316421d52d56538bdb | Shell | angshuman0baruah/LinuxPackageShell | /Nodejs/ubuntu_nodev4_install.sh | UTF-8 | 683 | 3.625 | 4 | [] | no_license | #! /bin/bash
# Install Nodejs _4.x.x In Ubuntu 14.04
# Run as root on RHEL, CentOS or Fedora, for Node.js v4 LTS Argon:
LightCyan='\033[0;36m'
printf "${LightCyan}=================================================== ${NC} \n"
printf "${LightCyan}===- Download Nodejs 4.x.x From Node Resource -=== ${NC} \n"
printf "${Lig... | true |
7ea02da53b0522e2f2dadb141ba177b6a713d48d | Shell | ddavila0/osg-flock | /node-check/itb-singularity-extras | UTF-8 | 2,665 | 3.578125 | 4 | [] | no_license | #!/bin/bash
#
# This script is run *once* after the GWMS Singularity detection,
# and can be used to do additional Singularity capability testing
# and advertising.
#
glidein_config="$1"
export glidein_config
function info {
echo "INFO " $@ 1>&2
}
function my_warn {
echo "WARN " $@ 1>&2
export GLIDEIN_... | true |
fc22ab9397715fd3129e2c4339027b0f973f78f4 | Shell | fbroen/plesk-service-checker | /fvb-plesk-service-check.sh | UTF-8 | 5,365 | 3.71875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# shellcheck source=/dev/null
##########################################################################################################################
# Autor: Falk von Broen <info@it-fvb.de>
# Internet: https://it-fvb.de
# Version: 1.0.3
# Daten letzter Änderungen: 2018-06-06
############################... | true |
adbe5e1d8493299cf961e47c9bf840f6690bf279 | Shell | nightillusions/dotfiles | /.zshrc | UTF-8 | 5,411 | 2.53125 | 3 | [] | no_license | ############# zplug config #############
# run
# curl -sL zplug.sh/installer | zsh
# to install zplug itself
source ~/.zplug/init.zsh
zplug "zsh-users/zsh-completions"
zplug "zsh-users/zsh-syntax-highlighting"
zplug "zsh-users/zsh-history-substring-search"
zplug "zsh-users/zsh-autosuggestions"
zplug "plugins/pass/", ... | true |
43e605ac944ec8fc9a2cbc486449e29c5ff0c73e | Shell | choisant/TNG | /src/cluster_run.sh | UTF-8 | 636 | 3.390625 | 3 | [] | no_license | #!/bin/bash
while getopts t:i:n:g: flag
do
case "${flag}" in
t) tng_run=${OPTARG};;
i) job_id=${OPTARG};;
n) test_name=${OPTARG};;
g) file_number=${OPTARG};;
esac
done
if [ $file_number -gt 0 ]
then
list_path="./data/$tng_run/cutdata/id_file_1/central_id_$file_number.txt"
... | true |
031e4d53e8746256f401a9bf7cf98ad1027bb90d | Shell | bblackwind/AliOS-Things-Linux-Edition | /meta-bsp/meta-mont/recipes-core/initscripts/initscripts/dw | UTF-8 | 219 | 3.34375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
addr=$1
len=$2
if [ $# = 0 ]; then
echo "Usage: dw addr [len]"
return
fi
[ -f /sbin/wlcmd ] &&
{
wlcmd reg get $1 $2
} ||
{
echo dw $1 $2 > /proc/reg
cat /proc/reg
}
| true |
32cfc9ad620682d52c0c1fcaac30c188c5515c72 | Shell | vbusch/jboss-amqmaas-image | /agent/modules/agent-rpm/install.sh | UTF-8 | 513 | 2.921875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
set -e
SOURCES_DIR=/tmp/artifacts/
cd ${SOURCES_DIR}
rpm -ivh -r "${SOURCES_DIR}" "${SOURCES_DIR}/nodejs-amqmaas-agent-zip.rpm"
{
find / -name "*agent*" 2>/dev/null
mkdir -p /opt/app-root/src/
unzip /tmp/artifacts/usr/share/doc/nodejs-amqmaas-agent-1.0.0-1.zip -d /opt/app-root/src/
}
cd /opt/app-root/... | true |
ad1f1933fed40bb233cede10e1f0b26fd6267ddc | Shell | stefaanc/devenv | /at_host/DevEnv/at_guest/devenv/scripts/generate-certificate-browseruser.sh | UTF-8 | 1,230 | 3.5 | 4 | [
"MIT"
] | permissive | #!/bin/bash
CLUSTERNAME=$1
NAMESPACE=$2
SERVICE=$3
SERVERNAME=$4
USERNAME=$5
PASSWORD=$6
if ! [ -d ~/.certs/$USERNAME ] ; then
mkdir -p ~/.certs/$USERNAME
fi
FILENAME=$USERNAME@$SERVERNAME.$CLUSTERNAME
echo "#"
echo "# generate a personal certificate for the browser"
echo "#"
openssl pkcs12 -export -clcerts -p... | true |
fbbf2a5ed627080f2a361eaf4629373b6e5e54c2 | Shell | kulinacs/cowrie-attack | /attacks/login_brute_force.sh | UTF-8 | 293 | 3.15625 | 3 | [] | no_license | #!/bin/sh
# Tactic: Credential Access
# Name: Brute Force
# ID: T1110
# Makes some silly guesses as to the password for the "daemon" user
i=1
while [ $i -le 25 ]
do
echo "Trying guess$i"
sshpass -p guess$i ssh -p 2222 daemon@127.0.0.1
i=$(($i+1))
done
echo "Brute forcing failed"
| true |
370ee65addf0d17dd798e6cb843d570109598372 | Shell | AhmedELShafaie/commandctl | /cmd.d/history.cmdrc | UTF-8 | 1,881 | 3.796875 | 4 | [] | no_license | #!/bin/bash
# =============================================================================
# - HISTORY
# =============================================================================
# -----------------------------------------------------------------------------
# ----------------------------------------------------... | true |
a675d97059e5c12259af22a68e471e4df281615e | Shell | aierui/config | /.zshrc | UTF-8 | 1,897 | 2.78125 | 3 | [] | no_license | # this file where is?
# ~/.zshrc
####################################
######export global variables ######
####################################
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
if [[ "$OSTYPE" == "darwin"* ]];then
export DEV_PATH=/Users/develop
elif [[ "$OSTYPE" == "linux-gnu"* ... | true |
90fe5e279cec2bd19617b25d39698263eff37050 | Shell | mdnsfr/docker-sftp | /build.sh | UTF-8 | 220 | 3.109375 | 3 | [] | no_license | #!/bin/bash
if [ "$1" = "" ]
then
echo "Usage : $0 tag"
exit 1
fi
[ ! -e "Dockerfile" ] && echo "Missing Dockerfile" && exit 2
docker build -t mdns/sftp:$1 .
if [ "$2" = "push" ]
then
docker push mdns/sftp:$1
fi
| true |
dc1c80230ebed77efecfc015275d9fb1b7f0c3f0 | Shell | ironeagle-ir/McDebian | /rootfs/etc/network/mcdebian-model-check | UTF-8 | 1,700 | 3.640625 | 4 | [] | no_license | #!/bin/sh
MODEL_NUMBER=`strings /dev/mtd3 | grep 'modelNumber='`
HARDWARE_VERSION=`strings /dev/mtd3 | grep 'hw_revision='`
if [ ! $MODEL_NUMBER ]
then
echo "mcdebian: Devinfo is corrupted, no MODEL_NUMBER found" > /dev/kmsg
else
echo "mcdebian: $MODEL_NUMBER $HARDWARE_VERSION" > /dev/kmsg
if [ $MODEL_NUMBER = 'mo... | true |
69a4e17a14f4234e2b76e4e0d3bf04a623a70ec0 | Shell | sw00t/confluent-operator-local | /swop-minikube.sh | UTF-8 | 1,008 | 2.59375 | 3 | [] | no_license | #!/bin/bash -x
minikube start --cpus=4 --memory=8G
export CPOPDIR=~/0/Confluent/Operator && echo $CPOPDIR
read -n 1 -r -s -p $'Run sudo minikube tunnel in a new term tab, then press enter to continue...\n'
read -n 1 -r -s -p $'Run minikube dashboard in a new term tab, then press enter to continue...\n'
#sudo mini... | true |
828e5fcc73ad477ddfd56c141ba7e33051f86128 | Shell | Shippable/buildami | /updateImages/adapter.sh | UTF-8 | 811 | 3.765625 | 4 | [] | no_license | # Source this where required.
RESPONSE_FILE=/tmp/response
request() {
REQUEST_TYPE="$1"
URL="$2"
AUTHORIZATION_HEADER="$3"
DATA="$4"
{
RESPONSE_CODE=$(curl \
-H "Content-Type: application/json" \
-H "Authorization: $AUTHORIZATION_HEADER" \
-X "$REQUEST_TYPE" "$URL" \
-d "$DATA" \... | true |
5ad3d53d308f38ad807596bd355633c5303eda5f | Shell | g0053/cloudify3-blueprints | /blueprint-template/server-scripts/install.sh | UTF-8 | 745 | 3.46875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
source ${CLOUDIFY_LOGGING}
# CLOUDIFY_FILE_SERVER provides cfy_download_resource for grabbing resources in the blueprint directory via CLOUDIFY_FILE_SERVER_BLUEPRINT_ROOT
source ${CLOUDIFY_FILE_SERVER}
cfy_info "Calling test install"
# pull down a utility script that defines a function for setting
# run... | true |
ae7ffcee3159c0f17acba60bfe0614b3c3de9e48 | Shell | rancococ/docker-testenv | /demo/init.sh | UTF-8 | 2,731 | 4.125 | 4 | [] | no_license | #!/bin/bash
##########################################################################
#
# init.sh
#
##########################################################################
set -e
# set echo color
COLOR_RED='\033[0;31m'
COLOR_GREEN='\033[0;32m'
COLOR_YELLOW='\033[0;33m'
COLOR_BLUE='\033[0;34m'
COLOR_END='\033[0m'... | true |
6698009a596b3b7fae65c64dbd4fcbd8e519c386 | Shell | oliverhulett/hello-world | /typescriptlang.org/react-and-webpack/init.sh | UTF-8 | 1,385 | 3.953125 | 4 | [] | no_license | # shellcheck shell=bash
##
## This file is intended to be sourced. It will setup a development environment for this project.
## This file is as idempotent as possible, so it should be able to be run multiple times without ill effect. Subsequent runs should be very fast.
## The install of taskfile (and any dependencie... | true |
903c80df774e5d5b8a6aab52dd7a00fe1c199493 | Shell | uvalib/patrondb | /misc/scripts/testReadTerm | UTF-8 | 228 | 2.578125 | 3 | [] | no_license | #!/bin/sh
HOMEUSER=slb
APPHOME=/home/${HOMEUSER}/patrondb/
cd ${APPHOME}/classes
CURRTERM="1152"
for i in `ls ${APPHOME}/lib/*.jar`
do
CLASSPATH=$i:$CLASSPATH
done
export CLASSPATH
/usr/bin/java ReadTermData "${CURRTERM}"
| true |
d32f05d1c930653037ae97bfefccf125feef52b1 | Shell | TestTheTests/TTT_RecombinationGenomeScans | /src/repInversion_serial.sh | UTF-8 | 4,042 | 3.21875 | 3 | [] | no_license | #!/bin/bash
set -e
set -u
set -o pipefail
source activate msprime-env
conda list
#mypath="/home/k.lotterhos/k_store/TestTheTests/TTT_RecombinationGenomeScans"
mypath="/Users/katie/Desktop/Repos/TestTheTests/TTT_RecombinationGenomeScans"
nreps=210 #number of reps
start=10900 #10900 10950
finish=$(($start + $nreps-1)... | true |
f693c111c8ca766ebff1e537dca3ea7894360665 | Shell | mersocarlin/dotfiles | /postinstall.sh | UTF-8 | 376 | 3.59375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Remove existing symlinks/dotfiles from $HOME
for file in $HOME/.{zshrc,exports,aliases,functions,extras}; do
[ -r "$file" ] && [ -f "$file" ] && rm $file;
done;
unset file;
# Symlink dotfiles
DOTFILES_DIR=$(pwd)
for file in $DOTFILES_DIR/.{zshrc,exports,aliases,functions,extras}; do
[ -r "$file" ] &&... | true |
b9ef2b4510cac4348c78b5933f46960b67d319b4 | Shell | Ultimater/dotfiles | /.zshrc | UTF-8 | 2,768 | 2.640625 | 3 | [] | no_license | # Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="machuga-short"
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ... | true |
0a1e09f6eaeda28d9fbf61b6232ec640d8c33cb7 | Shell | kurogane13/Automation-Linux-Multiprogram | /create-bridge-interfaces.sh | UTF-8 | 1,175 | 2.609375 | 3 | [] | no_license |
sudo apt-get install uml-utilities
sudo apt-get install bridge-utils
modprobe tun
#below command will creat tap interface
sudo tunctl -u $USER
#below command will create a bridge interface (br0), and bond tap and etho together
sudo brctl addbr br0
sudo brctl addif br0 tap0
sudo brctl addif br0 eth0
sud... | true |
08e07eb2426fe3c24ea24b94a217fb0588c55d8b | Shell | rodrigorootz/scripts-shell | /variaveis.sh | UTF-8 | 99 | 2.65625 | 3 | [] | no_license | #!/bin/bash
USUARIO=rodrigo.fonseca
echo $USUARIO
echo "Qual seu nome? "
read NOME
echo $NOME
| true |
cc0209d65c41a16036352ff6aeb9d70fde1cb9b7 | Shell | julmon/pg_track_slow_queries | /tests/deb_pg_run_tests.sh | UTF-8 | 857 | 2.828125 | 3 | [
"PostgreSQL"
] | permissive | #!/bin/bash -eux
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
PGPORT="${PGPORT:-5433}"
PGVERSION="${PGVERSION:-11}"
pg_ctlcluster $PGVERSION main start
sudo -u postgres psql -p $PGPORT -c "SELECT version();"
PG_CONFIG=/usr/lib/postgresql/$PGVERSION/bin/pg_config make -C ${DIR}/.. clean i... | true |
edbdd1634e0847107f5e841029fcb680a7a0ca3f | Shell | shapada/rofi-scripts | /rofi-ytdl.sh | UTF-8 | 148 | 3.25 | 3 | [] | no_license | #!/bin/bash
URL=$(rofi -dmenu -i -l 0 -p "Video URL")
DIR="$HOME/ytdl"
if [ -n "$URL" ]; then
youtube-dl -i -o "$DIR/%(title)s.%(ext)s" "$URL"
fi | true |
3ddad4575490eff6cef16ef7243896b6a6bd436d | Shell | vikks15/LinuxProject | /install.sh | UTF-8 | 1,836 | 3.15625 | 3 | [] | no_license | #!/bin/bash
#echo "hello"
dn=`dirname $0`
#root check
if [ "$EUID" != 0 ]
then echo "I need to be root"
exec sudo $0 root #replace this programm by
fi
#dir check
if [ $0 = "./install.sh" ]; then
echo "nothing"
else cd $dn
fi
useradd -m myuser
passwd -d myuser
echo "Starting to install"
echo "Install bc"
sudo a... | true |
6ced17fa7ab1de3554fe9e1da2d61d8831cce08f | Shell | wzbbbb/bkp_home | /pj1_DuMaint/tmp/ClrLogController.sh | UTF-8 | 3,368 | 3.359375 | 3 | [] | no_license | #!/bin/sh
#Thu Mar 25 17:28:59 EST 2004
#Orsyp Software Inc
#Zhibing Wang
#Version 1.1.1 Aug. 31st, 2004
#################################
#Purpose:
#1. To reuse the PS "IU_CLRLOG.000" script for $U log in testing/development environment
#2. TO enhance the "IU_CLRLOG.000" script to give the option of Non-backup
###... | true |
2371c3432d2ffd59f3424ca6e59ea112267f894d | Shell | wangfuli217/ld_note | /debug/hacks-kernel.sh | UTF-8 | 1,024 | 3.125 | 3 | [] | no_license |
netconsole(利用netconsole将linux的内核printk消息发送到远程主机的udp端口)
{
modprobe netconsole netconsole=[srcport]@[srcip]/[srcdev],[dstport]@dstip/[dstmac]
srcport: udp 源端口 (缺省为6665)
srcip: 源ip地址 (缺省为接口地址)
srcdev: 网络接口
dstport: udp 目标端口 (缺省为6666)
dstip: 目标ip地址
dstmac: 目标主机接口的 MAC 地址
#modprobe netconsole netco... | true |
409f8043f9a588c4c6bbaeb0939860033fba645c | Shell | skadai/cnode_imitation | /setup.sh | UTF-8 | 1,142 | 2.625 | 3 | [] | no_license | # clone 代码到 /var/www/web23
# 换源
ln -f -s /var/www/web23/misc/sources.list /etc/apt/sources.list
mkdir -p /root/.pip
ln -f -s /var/www/web23/misc/pip.conf /root/.pip/pip.conf
apt-get update
# 系统设置
apt install -y zsh curl ufw
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/ins... | true |
be042db5a45920d4c4cf050aaf73cf2800a3da67 | Shell | EnginesOS/System | /system/templates/services/backup/EnginesSystem/database/sql/pgsql/replace.sh | UTF-8 | 1,006 | 3.140625 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/sh
script=$0
Script_Dir=`dirname $0`
Archive=/tmp/big/archive
cd /tmp
if test -z $dbname
then
echo dbname cant be nill
exit -1
fi
mkdir -p /tmp/big/
cat - > $Archive
$Script_Dir/backup.sh > /tmp/big/backup.sql
cat $Script_Dir/drop_tables.sql | env PGPASSWORD=$dbpasswd pgsql -h $dbhost -U $d... | true |
9b929e7b03ffd35db9bad849ac96df1b590c415b | Shell | chilkari/rpi-music | /organ/setup | UTF-8 | 3,062 | 3.5625 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# Add Autostatic PPA, and update, if necessary
if [ -f /etc/apt/sources.list.d/autostatic-audio-raspbian.list ];
then
echo "autostatic PPA already here. Not adding...";
else
wget -q -O - http://rpi.autostatic.com/autostatic.gpg.key | sudo apt-key add -
sudo wget -q -O /etc/apt/sources.list.d/auto... | true |
30aa62ce8e40c0ca1788fb99dd7265e25f1cd8c9 | Shell | iecedge/compass4nfv | /repo/openstack/special_pkg/RedHat/make_kibana.sh | UTF-8 | 1,462 | 2.625 | 3 | [
"Apache-2.0"
] | permissive | ##############################################################################
# Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, ... | true |
5207bc3f022729e57f5322d6b4b3510e974bfea7 | Shell | stefano-garzarella/ptnetmap | /picobsd/netmap/floppy.tree/root/initialize_real.sh | UTF-8 | 1,419 | 3.234375 | 3 | [] | no_license | #!/bin/sh
#set -x
usage()
{
echo -e "\nUSAGE: initialize [options]"
echo -e "\nOptions:"
echo -e " -h\t\t\tHelp"
echo -e " -dack\t\tEnable(def)/Disable delayed ack (net.inet.tcp.delayed_ack=1)"
echo -e " -msb\t\tvalue\tSet the maxsockbuf value (kern.ipc.maxsockbuf)"
echo -e " -maxfrags\t\tvalue\tSet the ma... | true |
ec5681861dab61baad319ac4e7921879a1d09a3a | Shell | mtcronin99/gs_docker | /sani.sh | UTF-8 | 569 | 2.875 | 3 | [] | no_license | #!/bin/ash
SRCFILE=$1
DPI=$2
TMPFILE=`mktemp ~/gs_XXXXXXX`
OPTIONS="-dDownsampleColorImages -dColorImageDownsampleType=/Bicubic -dColorImageResolution=${DPI} -dDownsampleGrayImages -dGrayImageDownsampleType=/Bicubic -dGrayImageResolution=${DPI} -dDownsampleMonoImages -dMonoImageDownsampleType=/Subsample -dMonoImageReso... | true |
6ac656bad41b342608da67421f624709e821a3ba | Shell | miminashi/awkgis | /distance | UTF-8 | 654 | 2.734375 | 3 | [] | no_license | #!/bin/sh
awk '
function pi() {
return atan2(0, -1)
}
function deg_to_rad(deg) {
return pi() * deg / 180
}
function distance(lat_1, lon_1, lat_2, lon_2) {
rx = 6378137.000
ry = 6356752.314245
e2 = (rx^2 - ry^2) / rx^2
rad_lat_1 = deg_to_rad(lat_1)
rad_lon_1 = deg_to_rad(lon_1)
rad_lat_2 = deg_to_rad(lat... | true |
4f4728b456165ddb76b76f9cf2050fff0219ec4b | Shell | dark0dave/dotfiles | /bin/git-deploy | UTF-8 | 1,888 | 4.15625 | 4 | [] | no_license | #!/usr/bin/env zsh
GREEN="\033[1;32m"
YELLOW="\033[1;33m"
RED="\033[1;31m"
RESET="\033[0m"
usage() {
echo "usage: git deploy <branch>"
echo
echo "Tags and push against both origin and deploy remotes for the specified branch."
echo -e "The next tag format will be "$YELLOW$(getcurrenttag)$RESET
}
getcurrenttag() {... | true |
27ec8d0e3e82fd86774a554f010fd293f7987273 | Shell | arif332/tng-bench-experiments | /openstack-vnfs/tng-bench-mp/image-build-tng-bench-mp.sh | UTF-8 | 2,168 | 2.6875 | 3 | [] | no_license | #/bin/bash
#
# Author: Arif Hossen (earihos@mail.uni-paderborn.de / arif332@gmail.com)
#
# tng-bench-mp Build Script for Ubuntu 18.04 LTS
# virt-customize is used to build customized image in offline
#
# V1 20191230 "Prepared Initial build script"
#
#
image_in_web_1804=https://cloud-images.ubuntu.com/releases/bionic/... | true |
752376dc6a1277f62634d69ee456d37b3e5332f3 | Shell | HumanArk/hafarm | /slurm_frames_job.schema | UTF-8 | 1,793 | 2.953125 | 3 | [] | no_license | #!/bin/bash
#SBATCH --array={{ slurm_array_list|join(',') }}
#SBATCH --nice={{ priority }}
#SBATCH -N {{ tile_x }}-{{ tile_x * tile_y }}
#SBATCH{% if slots %} -n {{ slots }}{% else %} --exclusive{% endif %}
{%- if rerun_on_error %}
#SBATCH --requeue
{%- endif %}
{%- if job_on_hold %}
#SBATCH -H
{%- endif %}
{%- if re... | true |
b2d9c6fa25548571ec5c7d5d0f2204075d61de02 | Shell | nathanieljblack/W251_Project | /salt/saltcloud_init.sh | UTF-8 | 3,407 | 3.609375 | 4 | [] | no_license | #!/bin/bash
# parse input arguments
usage() { echo "Usage: $0 [-u <string> softlayer username] [-k <string> softlayer api key] [-h <string> hostname] [-i <string> SSH key id]" 1>&2; exit 1; }
while getopts ":u:k:h:i:" opt; do
case $opt in
u) user="$OPTARG"
;;
k) key="$OPTARG"
;;
h) hostname="$OP... | true |
5ccf8575eeb4fe60bd303357624fd520ac3d3bfa | Shell | MatthewCroughan/NixOS-Configuration | /task.sh | UTF-8 | 378 | 2.59375 | 3 | [
"MIT"
] | permissive | #! /bin/sh
echo "Pull the latest version"
git fetch
git pull origin --ff-only
echo "Copy dotfiles into place"
cp -a -r ./dotfiles/.background-image /home/pokej/
cp -a -r ./dotfiles/.config/* /home/pokej/.config/
cp -a -r ./dotfiles/ /home/pokej/
echo "Push config into position"
sudo cp -r -a ./config/* /etc/nixos/
... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.