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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
eadd24468ae7ead199175405f1e281017c474ce4 | Shell | Jhingun1/repo | /archlinuxcn/google-earth/googleearth.sh | UTF-8 | 601 | 2.765625 | 3 | [] | no_license | #!/bin/sh
# Always run Google Earth from this shell script and not directly!
# This script makes sure the app looks in the right place for libraries
# that might also reside elsewhere.
#
# Ryan C. Gordon, Thu Jul 20 14:32:33 PDT 2006
# We alredy know the path
cd /opt/google/earth/free
## Fix the coordinates regressi... | true |
391d3928966d9a2c2eeeaeb348d5e51a044cc2ed | Shell | GuoJiafeng/Blog | /kill.sh | UTF-8 | 397 | 3.234375 | 3 | [] | no_license | #!/bin/bash
#################################
## @author guojiafeng ##
#################################
pid=`ps -ef | grep run.sh | grep -v "grep" | awk '{print $2}'`
ishave=`ps -ef | grep Blog.jar | grep -v "grep" |wc -l`
if [ $ishave -le 0 ];then
echo "ๆฒกๆๆฎ็่ฟ็จ"
else
echo "ๆๆฎ็่ฟ็จ"
for id in ... | true |
71c8e2110a37d19cce280179a6a4640877ba9292 | Shell | aguther/wireshark-build | /wireshark-build.sh | UTF-8 | 537 | 3.265625 | 3 | [] | no_license | #!/usr/bin/env bash
# defaults
WIRESHARK_VERSION_TAG=v2.4.6
WIRESHARK_BUILD_DIRECTORY=/tmp/wireshark
# ensure directory is not present
rm -rf ${WIRESHARK_BUILD_DIRECTORY}
# get git repository
git clone https://code.wireshark.org/review/wireshark ${WIRESHARK_BUILD_DIRECTORY}
# change to git repository
pushd ${WIRESH... | true |
24f8489ee5237bf6eec4d09d79c8463ddd048943 | Shell | Nebo15/mithril.api | /bin/hooks/pre-start.sh | UTF-8 | 216 | 2.6875 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | #!/bin/sh
# `pwd` should be /opt/mithril_api
APP_NAME="mithril_api"
if [ "${DB_MIGRATE}" == "true" ]; then
echo "[WARNING] Migrating database!"
./bin/$APP_NAME command "Elixir.Mithril.ReleaseTasks" migrate!
fi;
| true |
b3ce318768388f79c1a932fabf596cf49fc5839e | Shell | lubiedo/lite-macos | /bundle_macos.sh | UTF-8 | 956 | 2.8125 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
# macos release
./build.sh release macos
rm lite-macos.zip 2>/dev/null
rm โrf lite.app 2>/dev/null
mkdir -p lite.app/Contents/{Frameworks,MacOS,Resources}
# frameworks
cp -RH /Library/Frameworks/SDL2.framework lite.app/Contents/Frameworks/
rm -fr lite.app/Contents/Frameworks/SDL2.framework/Versions/A/Head... | true |
e88620024eef4f4a787b78695be6cda60db9d221 | Shell | Patil-94/Assignment_shell | /While-statement/magicno.sh | UTF-8 | 574 | 3.703125 | 4 | [] | no_license | #! /bin/bash
read -p "enter the number between 1 and 100 " x
echo Think of any number between 1 and 100
low=1
high=100
while [ $low -lt $high ]
do
mid=$(( $(($low+$high))/2 ))
echo "press 1 if your value is mid=" $mid
echo "press 2 if your value is greater than mid"
echo "press 3 if your value is lesser th... | true |
dbcab68663ce7f901a38528ffffa937019b057d8 | Shell | datadevopscloud/sqlraytracer | /create.sh | UTF-8 | 965 | 3.484375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
PGHOST=localhost
PGPORT=5432
PGUSER=raytracer
PGDB=raytracer
PGPASSWORD=raytracer
export PGPASSWORD
# Creating this file overrides which scenes get rendered
scenelist_override=scenelist_override.txt
scenelist=scenelist.txt
psql \
--host=${PGHOST} \
--port=${PGPORT} \
--username=${PGUSER} \
--dbname=$... | true |
e32004edee370a0c91a682b9a33ed3f5eea19b0b | Shell | oda-hub/oda-dda-chart | /make.sh | UTF-8 | 907 | 2.71875 | 3 | [] | no_license | function create-secrets(){
kubectl -n staging-1-3 create secret generic dda-interface-token --from-file=./private/token.txt
# kubectl create secret generic odatests-tests-bot-password --from-file=./private/testbot-password.txt
# kubectl create secret generic odatests-secret-key --from-file=./private/secret... | true |
ad83d0dac3af4da2661e87c2f3b61fb83b786eeb | Shell | maese18/imonet | /scripts/source-base-env.sh | UTF-8 | 1,148 | 3.03125 | 3 | [] | no_license | #!/bin/bash
# Import environment variables
printf "Loading environment variables from\n"
set -o allexport
printf "\t.env-${ENV}\n"
source ./.env-${ENV}
set +o allexport
# END IMPORT
export DEPLOYMENT=run-docker-services
export API_HOST_SCHEME=localhost # Allows WebApp to derive correct API url
# Calculate and set... | true |
641cdf4f384a273e023a44d970b927c7efb62805 | Shell | marakere/jubilant-temperature-data-logger | /src/app_build.sh | UTF-8 | 1,532 | 3.890625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/bash
# $1 - project-dir
# $2 - api-name
# $3 - env-name
PROJECT_SRC=${PWD%/*}
PROJECT_SRC=${PROJECT_SRC}/src
API_NAME=$1
ENV_TYPE=$2
ENV_NAME=$3
echo $PROJECT_SRC
# By default - dev will be assigned
ENV_NAME=${ENV_NAME:=dev}
APP_NAME=recordtemperature
ASSET_BUCKET=REPLACE_WITH_AWS_BUCKETNAME
BUILD_DIR=... | true |
3324d2b69834569a12e0d706b0400439f622766d | Shell | janeyoung2018/symbolic-math | /cloud_setup.sh | UTF-8 | 711 | 2.71875 | 3 | [] | no_license | # Install requirements
sudo apt-get install -y build-essential checkinstall libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev zlib1g-dev openssl libffi-dev python3-dev python3-setuptools wget
# Prepare to build
mkdir /tmp/Python36
cd /tmp/Python36
# Pull down Py... | true |
d87f9c00320e317e45e16262ae2c23b55306fa80 | Shell | CrisBogucki/cb-msc-env | /update.sh | UTF-8 | 2,379 | 3.03125 | 3 | [] | no_license | #!/usr/bin/env sh
set -eu
path_msc="microservices"
PRINT_BANNER() {
echo '
โโโโโโโโโโโโโโ โโโโ โโโโโโโโโโโโ โโโโโโโ โโโโโโโโโโโโ โโโโโโ โโโ
โโโโโโโโโโโโโโโโ โโโโโ โโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโ โโโโโโ โโโ
โโโ โโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโ โโโโโโ โโโโโโ โโโโโโ โโโ
โ... | true |
59427907d78388e4995b2f20998f46602c308147 | Shell | bohyeon9888/Graduation_Thesis | /sample.sh | UTF-8 | 781 | 3.15625 | 3 | [] | no_license | #!/bin/bash
XSB_PATH=/home/stu1/XSBench/openmp-threading
FILEB_PATH=/home/stu1/filebench-1.5-alpha3/workloads
OUTPUT_ANON=Anon_usage.out
OUTPUT_ANONHUGE=Anonhuge_usage.out
TIME_SEQ=$(seq 0 300)
#THP enable
echo always > /sys/kernel/mm/transparent_hugepage/enabled
echo always > /sys/kernel/mm/transparent_hugepage/de... | true |
0e9c38123cf7b7527453da94b7e050ecaf63cd9a | Shell | aleivag/pycon2018 | /pycon/mon.sh | UTF-8 | 261 | 2.546875 | 3 | [
"MIT"
] | permissive | #/bin/bash
watch -n0.5 '
test -e /run/systemd/transient/mys.service &&
cat /run/systemd/transient/mys.service && echo ;
ps axf | tail -n 15 |grep -v "ps\|tail\|cat\|test\|watch";
systemctl -q is-active mys.service || systemctl reset-failed;
'
| true |
a571c3d290376861d78f08daadd176ebf3849818 | Shell | HPCToolkit/hpctoolkit-tests | /dyninst/mk-dyninst.sh | UTF-8 | 4,331 | 3.9375 | 4 | [] | no_license | #!/bin/sh
#
# Copyright (c) 2017, Rice University.
# See the file LICENSE for details.
#
# Mark W. Krentel
# March 2017
#
# This script uses an hpctoolkit-externals install directory to build
# a dyninst application. It adds the include and lib directories for
# binutils, boost, libelf, libdwarf, dyninst and zl... | true |
0addb4ce384827a08b918c07cad32edd00888b0f | Shell | latifkabir/Computation_using_Fortran90 | /cubpack/details.sh | UTF-8 | 563 | 3 | 3 | [] | no_license | #!/bin/bash
#
ar x $HOME/lib/$ARCH/libcubpack.a precision_model.mod
ar x $HOME/lib/$ARCH/libcubpack.a cui.mod
#
gfortran -c -g details.f90 >& compiler.txt
if [ $? -ne 0 ]; then
echo "Errors compiling details.f90"
exit
fi
rm compiler.txt
#
rm *.mod
#
gfortran details.o -L$HOME/lib/$ARCH -lcubpack
if [ $? -ne 0 ]; th... | true |
b7194711d55e97ac1ca94518624dd6d52a0dd61a | Shell | salfter/bdarchiver | /settings-example.sh | UTF-8 | 442 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
export MYSQL_HOST="MYSQL_SERVER_HOSTNAME"
export MYSQL_USER="MYSQL_USERNAME"
export MYSQL_PASSWD="MYSQL_PASSWORD"
export MYSQL_DB="backup_index"
eval `echo "select name, value from settings;" | mysql -h $MYSQL_HOST -u $MYSQL_USER --password=$MYSQL_PASSWD $MYSQL_DB | grep -Pv "name\tvalue" | sed "s/\t/=\"/;s... | true |
a93d43fd20515474d3a7c5a0fb4d65efc04dae90 | Shell | Toucher-F/deploy | /update/after_test.sh | UTF-8 | 3,181 | 3.3125 | 3 | [] | no_license | #/bin/bash
case $1 in
"30prod")
DTPATH=/media/sf_src
#for rewrite url
DT_URL="app.dprod.dealtap.ca"
#-------App-core config file argument start--------
ConfigAnalytics_SERVICE_URL="analytics.dprod.dealtap.ca"
AppFrontEnd_MAIN="http://app.dprod.dealtap.ca/"
AppFrontEnd_ALPHA="http://app.dprod.dealtap.ca/"... | true |
6c2bd6bd24b7d50f075fb67c9cc16bd2463eb5e3 | Shell | leavesofgrass/rpi-stuff | /a11y-configs/alarmpi/console-espeakup/scripts/140-install-tclx.sh | UTF-8 | 575 | 3.5 | 4 | [] | no_license | #!/bin/bash
set -e
cd "${BUILD_PATH}"
echo '-- Checking to see if tclx is already installed...'
if [ $(which tclx) ]; then
echo "-- tclx is already installed"
exit 0
fi
echo '-- Installing tclx from the AUR...'
cower -d tclx
pushd tclx
echo "-- Adding 'armv6h' to the PKGBUILD architectures..."
sed -i-old "s:^arch=(... | true |
83377d2cd50572c623099a4b70840ab2d2a0b18b | Shell | rutsky/prometheus_bot | /t/curl.t | UTF-8 | 451 | 3.390625 | 3 | [] | no_license | #!/bin/bash
files=$(find testdata -name *.json)
echo "1..$(echo "$files"|wc -l)"
for file in $files
do
result="$(curl -sw '\n%{http_code}' --data-binary "@$file" 127.0.0.1:9087/alert/${TELEGRAM_CHATID})"
code=$(echo "$result"|tail -1)
responce=$(echo "$result"|head -n -1 )
test "$code" -eq 200 && msg="o... | true |
9e222866fcff5af108fac7a478a1af9a0427f61d | Shell | interserver/vps_host_server | /vps_kvm_lvmcreate.sh | UTF-8 | 1,174 | 3.3125 | 3 | [] | no_license | #!/bin/bash
export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin"
name=$1
size=$2
IFS="
"
if [ $# -ne 2 ]; then
echo "Create a New LVM (non destructivly)"
echo "Syntax $0 [name] [size]"
echo " ie $0 windows1337 101000"
#check if vps exists
else
echo "Crea... | true |
bc0fbec646c13b1e00215f354f70c7c2e4415ac5 | Shell | cdesaintleger/navigator | /hack/e2e.sh | UTF-8 | 15,295 | 3.484375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
set -o xtrace
# Close stdin
exec 0<&-
: ${TEST_PREFIX:=""}
: ${NAVIGATOR_IMAGE_REPOSITORY:="quay.io/jetstack"}
: ${NAVIGATOR_IMAGE_TAG:="build"}
: ${NAVIGATOR_IMAGE_PULLPOLICY:="Never"}
export \
NAVIGATOR_IMAGE_REPOSITORY \
NAVIGATOR_IMAGE_TAG \
... | true |
6699f96c1484410e9f4b73ad71201f8f1a9172be | Shell | EatShanZha/cpp-lsac | /deplibs/cryptopp/script/build.sh | UTF-8 | 244 | 2.84375 | 3 | [
"BSL-1.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #sh
# $1 source directory
# $2 libcryptopp.a cp directory
#
#
cd $1
#make disclean
#make clean
make
if [[ ! -f "libcryptopp.a" ]]; then
echo "build crptycpp error."
else
ehco "copy libcryptopp.a to $2"
cp "libcryptopp.a" $2
fi
| true |
fb27addc9466a5de6fe6a67c71559a58cf209268 | Shell | jbasem/mssk | /src/resources/project_template/base_files/deploy_ecr_to_ecs.sh | UTF-8 | 2,532 | 4.03125 | 4 | [] | no_license | #!/usr/bin/env bash
##############
#### NOTE ####
# Use this script to update an ECS service (defined by $ECS_CLUSTER_NAME and $ECS_SERVICE_NAME) with
# the ECR image defined in the task defenition. (i.e. the LATEST), without updating the task revision.
##############
set -eo pipefail
# more bash-friendly output f... | true |
b8452af6d54edf7726f2bbe6c308ef5b3a22e95a | Shell | ulloa/blockchairScrape | /combineBlockData.sh | UTF-8 | 515 | 3.859375 | 4 | [] | no_license | #!/bin/bash
OutFileName="fulldata.csv" # Fix the output name
i=0 # Reset a counter
for filename in ./data/*.csv; do
if [ "$filename" != "$OutFileName" ] ; # Avoid recursion
then
if [[ $i -eq 0 ]] ; then
head -1 $filename > $OutFileName... | true |
bbf9f58a9f29394cc81373b8cc397d1aa96f3f5e | Shell | fujin/dockerfiles | /etcd/start.sh | UTF-8 | 261 | 2.953125 | 3 | [] | no_license | #!/bin/sh
# Start etcd.
ETCD="/etcd/bin/etcd"
HOSTNAME=$(hostname)
IPADDRESS=$(
ip -o -4 addr show dev eth0 |
cut -d' ' -f7 |
cut -d'/' -f1
)
echo 127.0.0.1 $HOSTNAME > /etc/hosts
echo $IPADDRESS $HOSTNAME >> /etc/hosts
$ETCD -vv -h $IPADDRESS $@
| true |
eac1c79f1430dafac2b04fe7ecc967cd5b15ffff | Shell | 980venkat/costing | /tags/add_tag_snap.sh | UTF-8 | 425 | 3.296875 | 3 | [] | no_license | #!/bin/bash
for region in `aws ec2 describe-regions --output text | cut -f3`
do
echo -e "\nListing Instances in region:'$region'..."
aws ec2 describe-snapshots --region $region --query 'Snapshots[*].{ID:SnapshotId}' > $region-snp.json
jq -c '.[]' $region-snp.json | while read i;
do
SNAP_ID=$(... | true |
539f2cf54100903e563100a54b4b6e1a9e81ce43 | Shell | schaefer-dev/UNI-Mips-Project | /sorted/runtests | UTF-8 | 497 | 3.21875 | 3 | [] | no_license | #! /bin/sh
set -eu
SOURCES="testmain.asm util.asm sorted.asm"
NTEST=0
NFAIL=0
for I in tests/*.asm; do
NTEST=$(($NTEST + 1))
echo "===> $I"
if [ ! -f "${I%.asm}.ref" ]; then
echo "reference file missing"
elif RES=$(mars ae1 me nc sm 1000000 $SOURCES "$I"); then
if echo "$RES" | diff -u "${I%.asm}.ref" -; then... | true |
f32900fb801f8ab527f1a3dcdfa54b7652fe88b6 | Shell | tluck/OpsMgr | /k8s/deploy_Operator.bash | UTF-8 | 895 | 3.109375 | 3 | [] | no_license | #!/bin/bash
d=$( dirname "$0" )
cd "${d}"
source init.conf
# Optinal - Create the metrics server
#kubectl apply -f /opt/Source/metrics-server/components.yaml
# Create the namespace and context
kubectl create namespace ${namespace}
kubectl config set-context $(kubectl config current-context) --namespace=${namespace}... | true |
d59354719d61763436a9199d31e5ce2d1a4efbf4 | Shell | HexRabbit/clubfair_106_2 | /magic_txt/mk.sh | UTF-8 | 118 | 2.734375 | 3 | [] | no_license | #!/bin/bash
for ((i=0; i<1000; i++)); do
zip flag.zip flag.txt
rm flag.txt
mv flag.zip flag.txt
echo $i
done
| true |
1cfc14a46e8a60cb10799af5bce93d2e96379b30 | Shell | Vectra130/vdr_scripts | /.scripte_sortieren.sh_all | UTF-8 | 9,347 | 3.53125 | 4 | [] | no_license | #!/bin/bash
# v1.14 all
#nur einmal ausfuehren!
sleep 1
[ $(pidof -x $(basename $0) | wc -w) -gt 2 ] && exit 0
if [ $(avahi-browse -ltk _VDR-Streaming-Bash._tcp | awk -F"|" '{ print $2 }' | grep scriptupdate | wc -l) != 0 ]; then
echo -e "\n\nEin anderes System aktualisiert gerade seine Skripte ... breche ab"
[ -e /... | true |
ffb7a77a2c5913e97506dea7b2cf77ea349c73b6 | Shell | quequotion/mmug-qq | /glibc-git-multilib/PKGBUILD | UTF-8 | 8,284 | 2.953125 | 3 | [] | no_license | pkgbase=glibc-git-multilib
pkgname=({lib32-,}glibc-git)
_pkgname=glibc
pkgver=2.21.617.gd87630e
pkgrel=1
pkgdesc="GNU C Library"
arch=('x86_64')
url="http://www.gnu.org/software/libc"
license=('GPL' 'LGPL')
groups=('base')
depends=('linux-api-headers>=3.7' 'tzdata' 'filesystem>=2013.01')
makedepends=('gcc' 'git')
backu... | true |
d95e242ab1e284bd8201b600cac416533a2e97fd | Shell | thales17/dotfiles | /bin/podcast | UTF-8 | 981 | 3.421875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
URL="play.pocketcasts.com"
WIN="ajr-pocketcasts"
start () {
wmctrl -a $WIN
if [ $? -eq 0 ]; then
return
fi
wmctrl -a "Firefox"
if [ $? -eq 1 ]; then
echo "Starting firefox"
firefox &
sleep 2
wmctrl -r "Firefox" -b add,maximized_vert,maximized_horz
wmctrl -r "Firefox" -t 1
... | true |
c8255f5f93283a3bbac415c35448211c370e4ad5 | Shell | vignat/vignat | /nf/testbed/hard/bench-all.sh | UTF-8 | 931 | 3.4375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Initialize the machines, i.e. software+scripts
. ./init-machines.sh
# Clean first, just in case
. ./clean.sh
VNDS_PREFIX="$HOME/vnds/nf"
NOW=$(date +"%d.%m.%Y_%H_%M")
MIDDLEBOXES=("$VNDS_PREFIX/vignat" "$VNDS_PREFIX/unverified-nat" "$VNDS_PREFIX/nop")
SCENARIOS=("mg-new-flows-latency" "mg-existing-flo... | true |
a65a80d1cd54e7292833c8ce49b5d369bca95103 | Shell | cometsong/symlinks | /test/generate-rootfs.sh | UTF-8 | 4,675 | 3.4375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#
# Unit test for symlinks
# Generate artificial rootfs for testing purpose
#
SYMLINKS_BIN=../symlinks
ROOTFS_FOLDER=rootfs
TEST_FOLDER=$(dirname $0)
# create rootfs folder and cd into it
mkdir -p $TEST_FOLDER/$ROOTFS_FOLDER
cd $TEST_FOLDER/$ROOTFS_FOLDER
echo "* Creating artificial rootfs in $TE... | true |
0852bf614b4fee93e5a3654569a99e6976a42375 | Shell | Cloudxtreme/snltd-monitor | /checks/hardware/check_link.sh | UTF-8 | 1,666 | 3.46875 | 3 | [] | no_license | #=============================================================================
#
# check_link.sh
# -------------
#
# Check to see if we have a consistent link speed on all our cabled ethernet
# ports. We've had some oddities with autoneg and changing speeds on the
# 10.10.4 network, so I thought it would be a good idea... | true |
516169a8c4ad944843d5eb231692dfa81d2ca4d4 | Shell | julie777/user_environment | /dot_files/bashrc | UTF-8 | 1,371 | 3.390625 | 3 | [] | no_license | # ! #/bin/bash
### ~/.bashrc ###
# ~/.bashrc: executed by bash(1) for non-login shells.
# and executed by .bash_profile for login shells
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
echo 'Running .bashrc'
USER_ENV_DIR=$(dirname "$(readlink -f "${BASH_SOURCE}")")
. ${USER_... | true |
00ed276ce0cf8a22dd44996d2b71e1c7c937747f | Shell | SnakeDoc/LiLiCompiler | /scripts/compiler/zlib.sh | UTF-8 | 884 | 3.375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Install Zlib
set -e
set -u
. settings/config
. settings/toolchain
. scripts/utils/utils.sh
pkg_dir="$(locate_package 'zlib')"
. "${pkg_dir}/package.mk"
cd "${CLFS_SOURCES}/"
if [ ! -e "${CLFS_SOURCES}/${PKG_NAME}-${PKG_VERSION}.tar.gz" ]; then
wget --read-timeout=20 "${PKG_URL}"
fi
cd "${CLFS_S... | true |
6a0ed3f77559ac6b5465974b6da346399ba9d9c5 | Shell | liudongfei/PythonExamples | /make.sh | UTF-8 | 939 | 2.953125 | 3 | [] | no_license | #!/usr/bin/env bash
echo "ๅผๅงๅถไฝ้ๅ..."
image_tag=`date +%Y%m%d` #_%H%M
echo "ๅฝๅๆถ้ด๏ผ$image_tag"
docker build -t registry.cn-shanghai.aliyuncs.com/liudongfei/python:v${image_tag} .
echo "ๅถไฝ้ๅๆๅ!"
docker login --username=ๆนๅไธ็็็
็ -p=liudf110628 registry.cn-shanghai.aliyuncs.com
# push้ๅ
docker push registry.cn-shanghai.ali... | true |
c096ada92d882ac7eb9a428d81285088f103528b | Shell | aiguy110/proto-mesh | /proto-mesh/channels/.eth/start.sh | UTF-8 | 387 | 3.078125 | 3 | [] | no_license | #!/bin/bash
# Make sure config exists
if [ ! -f ./.eth/config ]; then
echo 'WiFi config file not present! Please add one at "proto-mesh/channels/.wifi/config"'
echo 'Aborting...'
exit
fi
# Load config
source ./.eth/config
# Get our classic 802.11 ad-hoc network up
ip link set down dev $IFACE
ip link set ... | true |
15a4cec2b3d5674cc7a5e60dea3861422ddafb41 | Shell | matcls/holberton-system_engineering-devops | /0x0F-load_balancer/1-install_load_balancer | UTF-8 | 810 | 2.765625 | 3 | [] | no_license | #!/usr/bin/env bash
# Install and configure HAproxy on a server.
apt -y update
apt -y install haproxy
cp /etc/haproxy/haproxy.cfg /etc/haproxy/haproxy.cfg.backup3
sed -i 's/ENABLED=0/ENABLED=1/' /etc/default/haproxy
cp /etc/haproxy/haproxy.cfg /etc/haproxy/haproxy.cfg.backup4
#sed -i "$ a\listen webapp 0.0.0.0:80\n\tmo... | true |
d6dbd049bdda79fab44b0a415fd6cfcbcc5693dc | Shell | zgdkik/myops | /่ชๅจๅ่ฟ็ปด/ansible/ๅฎๆๆกไพ/ๅบไบansibleๅฎ็ฐ็ๅบ็จๅๅธ้จ็ฝฒๆนๆก/jenkins_deploy/lx-passport/shell/scripts/template/tomcat/bak/check_captcha_url | UTF-8 | 613 | 3.546875 | 4 | [] | no_license | #!/bin/bash
#description: check tomcat url...
TOMCAT_DIR=/usr/local/tomcat/webapps
for APP in $(ls -1 ${TOMCAT_DIR}/*.war | sed -r "s#(.*/)(.*)#\2#g" | sed "s#.war##g")
do
x=1
while((x<=10))
do
URL="http://127.0.0.1:8080/$(echo ${APP/\#/\/})"
RETURN_CODE=$(curl -I -m 5 --retry 3 --connect-... | true |
b4860c0b19fe62b869c3ad177b50ccfca651fee1 | Shell | ShellShoccar-jpn/Open-usp-Tukubai | /COMMANDS.SH/yarr | UTF-8 | 2,422 | 3.75 | 4 | [
"MIT"
] | permissive | #! /bin/sh
# designed by Nobuaki Tounaka
# written by 321516
# print the usage and exit
print_usage_and_exit () {
cat <<-__USAGE 1>&2
Usage : ${0##*/} [-<n>] [-d[<string>]] [num=<n>] <file>
Version : Wed Sep 23 17:33:47 JST 2015
: Open usp Tukubai (POSIX.1 Bourne Shell/POSIX.1 commands)
__USAGE
ex... | true |
d2716e4537fb1f6aa96c659226866f9c01a150c6 | Shell | aravindkarri/Shell-Programming | /Day6/Day6Prob3/checkPalindrome.sh | UTF-8 | 462 | 3.84375 | 4 | [] | no_license | #!/bin/bash -x
read -p "Enter a number : " num
reverse=0
temp=$num
function checkPalindrome()
{
while [ $num -ne 0 ]
do
remainder=$(($num%10))
reverse=$((($reverse*10)+$remainder))
num=$(($num/10))
done
if [ $temp -eq $reverse ]
th... | true |
1aa1e1e5433521eba8b5cd4a76c3251193a78374 | Shell | test-mass-forker-org-1/implementation-patterns | /diagnostics-log-analytics/components/diag.subscription.sh | UTF-8 | 1,220 | 2.9375 | 3 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | #!/bin/bash
# Params
subscription_id=""
location=""
log_analytics_resource_group_name=""
log_analytics_workspace_name=""
# Get LA resource ID, needed for az monitor command
log_analytics_resource_id="$(az monitor log-analytics workspace show --subscription "$subscription_id" -g "$log_analytics_resource_group_name" -... | true |
51391d687f6e0feb1361959f2f30c78e7b20fe3d | Shell | ak352/melanomics | /genome/fasd/snp_fasd_woCheck.sh | UTF-8 | 1,385 | 2.90625 | 3 | [] | no_license | #!/bin/bash --login
OUT_DIR="${SCRATCH}/fasd_genome"
mkdir ${OUT_DIR}
reference="/work/projects/melanomics/data/NCBI/Homo_sapiens/NCBI/build37.2/Sequence/WholeGenomeFasta/genome.fa"
pileup()
{
sample=$1
input="/work/projects/melanomics/analysis/genome/${sample}/bam/${sample}.bam"
output="${OUT_DIR}/${samp... | true |
edc1ac02c9aae646e5e68934b7bd0d8e6d02e6ac | Shell | elguapo1611/monorepo | /examples/scala/restapi/e2e_test.sh | UTF-8 | 1,222 | 3.765625 | 4 | [] | no_license | #! /bin/bash
set -euo pipefail
finish() {
echo "Stopping the server and returning $1"
echo "Finish status: $2"
ps ax | grep -v grep | grep run.*restapi | awk '{print $1}' | xargs kill
exit $1
}
if [ ! -f WORKSPACE ] ; then
finish 1 "Error, run this from the top level monorepo folder"
fi
echo "Star... | true |
1a4543eec0c476be02b6f95b3b38653c9cf3b601 | Shell | 8yt3r/tno-pki-m | /auto/config | UTF-8 | 602 | 2.671875 | 3 | [] | no_license | #!/bin/sh
# --debootstrap-options "--variant=minbase" \ This command generates a Kernel Panic.
# --apt-indices false \
# --apt-recommends false \
# Adding 'vga=37' to the bootappend-live option gives more lines in a test VM to catch errors
set -e
lb config noauto \
--architectures i386 \
--bootappend-live "boot=li... | true |
1bd544383d8ce3613c2f850e99244765dacab8e0 | Shell | rikdev/archinstall | /3_post_installation.d/03_booting.sh | UTF-8 | 1,632 | 2.984375 | 3 | [
"MIT"
] | permissive | # https://wiki.archlinux.org/index.php/General_recommendations#Booting
source common.sh
print_section "Booting"
# https://wiki.archlinux.org/index.php/GRUB#Generate_the_main_configuration_file
print_subsection "GRUB config"
sed --in-place '
# https://wiki.archlinux.org/index.php/GRUB/Tips_and_tricks#Multiple_entrie... | true |
afd33e75adee53f6de3f5307c81268fe02845949 | Shell | egnappahz/ReverseShell | /reverseshell_configmaker_minimal.sh | UTF-8 | 2,126 | 3.96875 | 4 | [] | no_license | #!/bin/bash
BRED="\033[1;31m"
BYELLOW='\033[1;93m'
BORANGE='\033[01;38;5;214m'
BGREEN='\033[1;92m'
NOCOLOR='\033[0m'
installdir=~/.ReverseShell #Local only
if [ "$1" == "-h" ] || [ "$1" == "--h" ] || [ "$1" == "--help" ] || [ "$1" == "-help" ]; then
echo "this script creates the configs for diffrent hosts where you... | true |
5448ed334916710323303e0257322ad166094435 | Shell | SpicyGarlicAlbacoreRoll/AI_Water | /fix_negative_res.sh | UTF-8 | 382 | 3.015625 | 3 | [] | no_license | # https://gis.stackexchange.com/a/352944
# fix negative resolution
for file in *.tif;
# https://gis.stackexchange.com/questions/108673/using-gdal-command-line-to-copy-projections
PROJ=$(gdalsrsinfo -o wkt $file)
do echo "$PROJ"
# adjust NS resolution
# do echo "$file"; gdalwarp -t_srs $PROJ ... | true |
f18a1b54f6f3e552e3cd8e0af2df3fecd537050b | Shell | ZengGroup/Corcoran_et_al_2017 | /great_tit/get_mapping_stats.sh | UTF-8 | 1,205 | 3.625 | 4 | [] | no_license | #!/bin/bash
set -u
set -e
if [ "$1" == -h ]; then
echo ""
echo "This script call samtools flagstat command to get a summary of
the percentage reads mapped and unmapped"
echo ""
echo ""
echo ""
echo "The first command line argument is a text file listing the full
paths to the BAM files to be ... | true |
763d3886f7c0bfa3333f64df6129fb73873f4c68 | Shell | swoodford/raspberrypi | /install-air-pi.sh | UTF-8 | 926 | 3.25 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# This script will install the Shairport Airplay emulator for Raspberry Pi
# Install deps
sudo apt-get install -y git libao-dev libssl-dev libcrypt-openssl-rsa-perl libio-socket-inet6-perl libwww-perl avahi-utils libmodule-build-perl libavahi-client-dev libasound2-dev libpulse-dev
# Install perl net sdp
g... | true |
411fe12841db41ba4262139d7c24dc3f1d14a06c | Shell | ckarthik17/common-scripts | /counter.sh | UTF-8 | 327 | 3.796875 | 4 | [] | no_license | #!/bin/sh
if [ $# -eq 0 ]; then
echo "Please pass the counter name"
exit 1
fi
counter=$1
path=/usr/local/counter
mkdir -p ${path}
file_name=${path}/${counter}.dat
if [ ! -f "${file_name}" ] ; then
value=0
else
value=`cat ${file_name}`
fi
value=`expr ${value} + 1`
echo "${value}"
echo "${value}" > ${file... | true |
548be6ba94f18b11a30e33dfd0c4a2596386060b | Shell | gshakir/aws-price-api | /ansible/scripts/sns-subscribe.sh | UTF-8 | 556 | 2.5625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -o errexit
set -o pipefail
set -o nounset
# set -o xtrace
account_id=$1
lambda_function=$2
aws lambda add-permission --function-name ${lambda_function} \
--statement-id ${lambda_function} \
--action lambda:InvokeFunction \
--principal sns.amazonaws.com \
--source-arn arn:aws:sns:us-e... | true |
1c84b6f9a24369bfcabeaba7c51bf6d85716fe87 | Shell | xfangfang/studyShell | /changeMAC.sh | UTF-8 | 611 | 3.546875 | 4 | [] | no_license | #!/usr/bin/env bash
argv=$#
u=$(id -u)
if [[ u -ne 0 ]]; then
echo permission denied
else
if [[ $argv = 2 ]]; then
ifconfig $1 ether $2
ifconfig $1 down
ifconfig $1 up
echo $1 "has changed it's mac address to "$2
elif [[ $argv = 1 ]]; then
mac=$(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$... | true |
6d692c12539232ac25a243e8e59397f79cd385f4 | Shell | xtofl/gitrebase | /script.sh | UTF-8 | 1,172 | 3.328125 | 3 | [] | no_license | rm -rf rebasing_repo1
rm -rf rebasing_repo2
mkdir rebasing_repo1
pushd rebasing_repo1
git init
echo "a tool to demonstrate rebasing" > readme.txt
git add readme.txt
git commit -m "create initial repo"
git branch development
git checkout development
git branch feature2
git checkout feature2
echo > feature2.txt
git a... | true |
8bb0c5544e62a7d7db3a2c49d218483e2e35b321 | Shell | kubernetes-sigs/image-builder | /images/capi/scripts/ci-ova.sh | UTF-8 | 4,394 | 3.1875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright 2020 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | true |
8f893dc75f6dd6b47e9a73fc41404e2925ff23d2 | Shell | xajler/voidrice | /.bashrc | UTF-8 | 3,312 | 2.640625 | 3 | [] | no_license | stty -ixon
export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 3)\]\u\[$(tput setaf 2)\]@\[$(tput setaf 4)\]\h \[$(tput setaf 5)\]\W\[$(tput setaf 1)\]]\[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]"
shopt -s autocd #Allows you to cd into directory merely by typing the directory name.
#Generic shortcuts:
alias m... | true |
4d01d06743f56066b4ed5ed1776f5cb49bff205c | Shell | stSoftwareAU/acme-cluster | /sync.sh | UTF-8 | 253 | 2.671875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
send_files(){
SERVER=$1
#echo "send files to $SERVER"
rsync -rtpqu ~/certs $SERVER:
rsync -rtpqu ~/challenges $SERVER:
rsync -rtpqu ~/csr $SERVER:
rsync -rtpqu ~/sites $SERVER:
rsync -rtpqu ~/keys $SERVER:
}
#send_files www2
| true |
f5e114ba0264ae5a81632dbee41c2a55a4b14596 | Shell | SirJson/Springbok | /generate_emscripten.sh | UTF-8 | 262 | 2.59375 | 3 | [] | no_license | #!/bin/bash
EMSCRIPTEN=/home/sirjson/projects/emscripten
if [ -d "build" ]; then
rm -rf build
fi
mkdir build
cd build
cmake -DHTML5BUILD=ON -DCMAKE_TOOLCHAIN_FILE=$EMSCRIPTEN/cmake/Platform/Emscripten.cmake -DCMAKE_BUILD_TYPE=Debug -G "Unix Makefiles" ../
| true |
5a30ab3e4bc328e60b72b77e60f470594160bc8d | Shell | framallo/framallo-blog | /thumb.sh | UTF-8 | 354 | 2.734375 | 3 | [] | no_license | #!/bin/bash
# Example
# ./thumb.sh videos/2011-06-25.m4v
V=$1
# filename without extension
B=${V##*/}
F=${B%.*}
vlc -I dummy --video-filter scene -V dummy --no-audio \
--scene-format=jpg --scene-replace \
--start-time=6 --stop-time=7 \
--scene-prefix=$F \
--s... | true |
9d6a4f4da73b96d9431fd20aeaec8d5ea2b42618 | Shell | ulm/gentoo-historical | /src/patchsets/gpm/make-tarball.sh | UTF-8 | 320 | 3.46875 | 3 | [] | no_license | #!/bin/bash
if [[ $# -ne 2 ]] ; then
echo "Usage: $0 <ver> <patch ver>"
exit 1
fi
gver=$1
pver=$2
tar=gpm-${gver}-patches-${pver}.tar.bz2
rm -rf tmp
rm -f ${tar}
mkdir -p tmp/patch
cp -r $gver/*.patch tmp/patch/ || exit 1
cp ../README* tmp/patch/
tar -jcf ${tar} \
-C tmp patch || exit 1
rm -r tmp
du -b ${tar}
| true |
d8a59ec927e8b655ef3b50b2783b0a9d9d8f6007 | Shell | UTNuclearRoboticsPublic/project-crunch | /release.sh | UTF-8 | 1,260 | 4.40625 | 4 | [] | no_license | #!/usr/bin/env bash
# This script reads in a version number, creates a build directory
# and freezes both the launcher/app fbs project and the installer
# fbs project. It links to the created executables and creates a
# tar.
# Print usage
if [ $# -lt 2 ];
then
echo "Usage:"
echo "\tbash release.sh <-v|--ver... | true |
4f66c656bb80a9074fe5393a068e02b73293f1a9 | Shell | nlphacker/mosesdecoder | /irstlm/install | UTF-8 | 1,378 | 3.8125 | 4 | [] | no_license | #! /bin/sh
#set machine type for compilation
if [ -z $MACHTYPE ];then
echo "MACHTYPE is actually undefined"
echo "Set environment variable MACHTYPE with \"uname -m\""
MACHTYPE=`uname -m`
fi
#set operating system for compilation
if [ -z $OSTYPE ];then
echo "OSTYPE is actually undefined"
echo "Set en... | true |
e12d43cbe27c9cd0b9596d81155cf8ae6b9a57c4 | Shell | jamesandariese/dotnix | /nixme.sh | UTF-8 | 2,355 | 3.203125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
cd "$HOME"
echo "BOOTSTRAPPING... one sec"
sudo yum -y install xz
curl -L https://nixos.org/nix/install | sh
. ./.nix-profile/etc/profile.d/nix.sh
# pass this AWK_CMD into nix-shell to produce the width/height to use. perdy darn convoluted, huh?
export AWK_CMD='{printf("MAXH=%s\nMAXW=%s", $2, $3);}'
# a... | true |
e9b9558a70c1b9629f47ccc5d819ca612977e808 | Shell | whl1729/note | /tool/linux/setup_ubuntu.sh | UTF-8 | 1,484 | 2.78125 | 3 | [] | no_license | #!/bin/bash
set -x
sudo apt install vim
sudo apt install vim-gnome
sudo apt install git
sudo apt install curl
sudo apt install ctags
git config --global user.name "along"
git config --global user.email "wuhl6@mail2.sysu.edu.cn"
git config --global push.default simple
git config --global core.editor "vim"
sudo ap... | true |
b8477ddb2855471ac4ac1d99a9555addf712cfda | Shell | gregga/iot-sdks-e2e-fx | /scripts/create-new-edgehub-device.sh | UTF-8 | 837 | 2.953125 | 3 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | # Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
echo $(dirname "$0")
python3 $(dirname "$0")/../pyscripts/create_new_edgehub_device.py $1
[ $? -eq 0 ] || { echo "create_new_edgehub_device.py failed"; exit 1; }
python3... | true |
13bf9d5cb708325b9ed5402e5c4e6958c5b94fd9 | Shell | lwllvyb/dotfiles | /1_karabiner/setup.sh | UTF-8 | 236 | 3.1875 | 3 | [] | no_license | #!/bin/bash
DIR=$(dirname "$0")
cd "$DIR"
. ../scripts/functions.sh
SOURCE="$(realpath ./)"
APP="karabiner"
info "Setting up $APP..."
rm -rf ~/.config/karabiner
ln -s $SOURCE ~/.config/karabiner
success "Finished setting up $APP."
| true |
8de305f0667e6d0b5ae629b01e41a51755c07f4b | Shell | brunocampos-ssa/zabbixzone | /mysql-restore-backup.sh | UTF-8 | 678 | 3.296875 | 3 | [] | no_license | #!/bin/bash
#
# mysql-restore-backup.sh
# v0.1 - 20140910
#
# Restore Full Backup for Zabbix w/MySQL
#
# Author: Bruno Campos (bruno.campos at bemobi.com.br)
#
MYSQLUSER="bkpuser"
MYSQLPASS="p@ssw0rd"
MYSQLCNF="/etc/mysql/my.cnf"
MYSQLDIR="/var/lib/mysql"
BASEDIR="/var/lib/xtrabackup"
BKPDIR="${BASEDIR}/mysql-zabb... | true |
335e567b58b4de7596039618e7903a06b79d8cfb | Shell | alexeilebedev/orgfile | /bin/gcache-install | UTF-8 | 185 | 2.703125 | 3 | [] | no_license | #!/bin/sh
echo "setting up gcache..."
mkdir -p /tmp/gcache
chmod -R 0775 /tmp/gcache
# inheric group writable flag
find /tmp/gcache -type d -exec chmod g+s {} \;
gcache-use
echo "done"
| true |
c21df630bf4a17915b3bd0c0748f3ef7c2b54866 | Shell | columbia/crane | /eval-container/configs/mongoose.sh | UTF-8 | 2,525 | 2.78125 | 3 | [] | no_license | # Setups for mongoose
source configs/default-options.sh
app="mg-server" # app name appears in process list
# evaluation options.
xtern=1 # 1 use xtern, 0 otherwise
proxy=1 # 1 use proxy, 0 ... | true |
7bddf5e0d29ec01333ee627155c3c3b0fa43162d | Shell | ChaosTong/RainReminder | /scripts/travis/testflight.sh | UTF-8 | 1,243 | 3.046875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
echo "This is a pull request. No deployment will be done."
exit 0
fi
if [[ "$TRAVIS_BRANCH" != "master" ]]; then
echo "Testing on a branch other than master. No deployment will be done."
exit 0
fi
# Thanks @djacobs https://gist.github.com/djacobs/24110... | true |
74296160434846cfb94298535c5f53a5ec26e619 | Shell | w0rng/knowlage-base | /scripts/np | UTF-8 | 312 | 2.5625 | 3 | [] | no_license | #!/bin/bash
mkdir $PWD/$1
mkdir $PWD/$1/Temp
mkdir $PWD/$1/Temp/Notes
mkdir $PWD/$1/Temp/Sketches
mkdir $PWD/$1/Resources
mkdir $PWD/$1/Source
cd $PWD/$1/
python3 -m venv .venv
touch README.md
echo ".gitignore\n Temp/\n .venv/\n *pyc" > .gitignore
git init
git add .
git commit -m "ะะพะฒัะน ะฟัะพะตะบั" | true |
f4021f45d95a38244958af2ec1c9e9640fd82c2e | Shell | pavelexpertov/dotfiles | /installation_scripts/install_fasd.sh | UTF-8 | 102 | 2.75 | 3 | [
"MIT"
] | permissive | if [[ -z "`type -P fasd`" ]]
then
sudo apt-get install fasd
else
echo "fasd is installed"
fi
| true |
ddd066e08700fe4e1f7d33bdeed9651553c6a67e | Shell | LaraPruna/gestion_virtualbox_script | /libreria.sh | UTF-8 | 102,120 | 4.03125 | 4 | [] | no_license | #!/bin/bash
#Esta funciรณn comprueba si eres root.
#No acepta argumentos
#Devuelve 0 si eres root y 1 si no lo eres.
function f_eres_root {
if [[ $(whoami) = 'root' ]]
then
return 0
else
return 1
fi
}
#Mediante esta funciรณn, comprobamos la existencia de un directorio.
#Devuelve un 0 si el directorio existe... | true |
0a51538adb1c3a8e918ba95ae59a161d12847595 | Shell | lazarcamelia/OperatingSystems | /maxLengthString.sh | UTF-8 | 228 | 3.546875 | 4 | [] | no_license | #!/bin/bash
declare -i maxim=0
maximString=""
while [ $1 ];
do
length=`echo -n $1 | wc -m`
if [ $length -gt $maxim ];
then
maxim=$length
maximString=$1
fi
shift
done
echo "String-ul maxim e: $maximString"
| true |
e7f9f49cd23432db75b51bc0b0a4745d4208716f | Shell | Arturzl/SHELL-SCRIPT | /Exerciciod.sh | UTF-8 | 145 | 3.109375 | 3 | [] | no_license | #!/bin/bash
echo 'Digite o nome do arquivo'
read arq
if [ -e "$arq" ] ; then
echo "o arquivo ja existe"
else
touch $arq
chmod 4 $arq
fi
| true |
d9940847f7da3f447513d14dd9d245393e144818 | Shell | ravikumarwaghmare/shellscripting | /basic_create_file_folder_if_not_present.ksh | UTF-8 | 568 | 3.21875 | 3 | [] | no_license | #!/bin/bash
##Create folder if not present. Create FIle if not present
if [ -d /home/ravi/basic_shell_scripting/folder1 ];then
echo "Folder exist.. /home/ravi/basic_shell_scripting/folder1"
else
mkdir /home/ravi/basic_shell_scripting/folder1
chmod 777 /home/ravi/basic_shell_scripting/folder1
fi
if... | true |
5977a94aa744c112045760c3583bc55130a90162 | Shell | mybigman/dots-1 | /.local/bin/etc/volume | UTF-8 | 1,110 | 3.25 | 3 | [
"CC0-1.0"
] | permissive | #!/usr/bin/env sh
color="#F7E599'>"
col="<span color='"
end="</span>"
FULL="โข"
EMPTY="โ"
value="${3:-10}"
case $1 in
alsa)
send_notification() {
vol=$(amixer get Master | awk '/Left:/{gsub(/[[:punct:]]/,"",$5);left=$5}
/Right:/{gsub(/[[:punct:]]/,"",$5);right=$5}
END {print left}')
barFull=$(seq -s "$FULL"... | true |
28b09b941419bba0f8693164355e4829c8e54eaf | Shell | rhynix/portcheck | /portcheck | UTF-8 | 1,481 | 4.3125 | 4 | [
"Unlicense"
] | permissive | #!/bin/sh
set -eu
echo_v() {
if [ "${verbose}" = true ]; then
echo "${1}"
fi
}
fail() {
echo "${1}"
exit 1
}
red() {
tput setaf 1; printf "%s" "${1}"
tput sgr0
}
green() {
tput setaf 2; printf "%s" "${1}"
tput sgr0
}
valid_commit_ref() {
git rev-parse --verify --quiet "... | true |
435cd338450f268082ed4c6b2dbad5688dbeb2ca | Shell | regnerjr/DotFiles | /.zshrc | UTF-8 | 4,627 | 2.59375 | 3 | [] | no_license | echo "loaded zshrc"
# show possible completions (not just a beep)
setopt autolist
# If LOCAL_OPTIONS is set in a function (or was already set before the
# function, and not unset inside it), then any options which are changed inside
# the function will be put back the way they were when the function finishes
setopt lo... | true |
5baa705d51476bc3b980ca3697b41bb7e45c804c | Shell | 2017212212228/homework | /2017212212109/็ฌฌไบๆฌกไฝไธ_adduser.sh | UTF-8 | 341 | 3.25 | 3 | [] | no_license | #!bin/bash
prefix = 'user'
for(i=0;i<10;i++)
do
USER_NAME=${prefix}${i}
PASSWORD=$(date +%s%N$ | sha256sum | head -c3)$(echo '!@#$%^&*()_+=' | fold -w1 | shuf | head -c1)$(date +%s%N$ | sha256sum | head -c3)$(echo '!@#$%^&*()_+=' | fold -w1 | shuf | head -c1)
useradd -g users -p ${PASSWORD} ${USER_NAME}... | true |
7e4c6aef9703c5b22a8f0cf8e4266e5dfb2f6d55 | Shell | greflm13/configs | /.bashrc | UTF-8 | 10,391 | 3.03125 | 3 | [] | no_license | #
# ~/.bashrc
#
[[ $- != *i* ]] && return
screenfetch
colors() {
local fgc bgc vals seq0
printf "Color escapes are %s\n" '\e[${value};...;${value}m'
printf "Values 30..37 are \e[33mforeground colors\e[m\n"
printf "Values 40..47 are \e[43mbackground colors\e[m\n"
printf "Value 1 gives a \e[1mbold-faced look\e... | true |
d3f8ef27742744d070858da8de92b2a88c44c6f3 | Shell | zRrrGet/OS-Course | /week10/ex3.sh | UTF-8 | 459 | 2.75 | 3 | [] | no_license | echo "Mikhail" > _ex3.txt
chmod ugo-x _ex3.txt
ls -l _ex3.txt > ex3.txt
chmod uo+rwx _ex3.txt >> ex3.txt
ls -l _ex3.txt >> ex3.txt
chmod g=u _ex3.txt
ls -l _ex3.txt >> ex3.txt
echo "660 means that owner and group members can write and read the file, others can't" >> ex3.txt
echo "775 means owner have all permiss... | true |
051ab6bafa0350f4fe2274752107dbac17fbd2c3 | Shell | ralevn/shell_scripts | /AIX/aixerrlog.sh | UTF-8 | 1,554 | 3.125 | 3 | [] | no_license | #!/bin/bash
out_dir="$(pwd)"
out_html_filename="lpar_errlog.htm"
TIMEOUT=10
CMD="errpt|sed -e 's/ \{1,\}/,/1' -e 's/ \{1,\}/,/1' -e 's/ \{1,\}/,/1' -e 's/ \{1,\}/,/1' -e 's/ \{1,\}/,/1'"
# HTML meta info
cat <<_EOF > ${out_dir}/${out_html_filename}
<!doctype html>
<html>
<head>
<style>
table, th, td {
font-family:... | true |
81c41cf1f487104d8b52d450bde75079327833e1 | Shell | jimbopants/Metagenomics_assembly | /bash_scripts/annotate/batch_annotate.sh | UTF-8 | 758 | 2.8125 | 3 | [] | no_license | #!/bin/bash
#MSUB -N annotate_BINS.sh
#MSUB -A b1042
#MSUB -q genomics
#MSUB -m ae
#MSUB -M jamesgriffin2013@u.northwestern.edu
#MSUB -l nodes=1:ppn=24
#MSUB -l walltime=48:00:00
#MSUB -o /projects/b1042/Wells/Jim/Wells01/logs/annotate_BINS.o
#MSUB -e /projects/b1042/Wells/Jim/Wells01/logs/annotate_BINS.e
# PATHS
#ma... | true |
1e7db673adda1b57b7929175d6e8fd09368739bd | Shell | greymd/teip | /tests/test_without_teip.sh | UTF-8 | 440 | 2.71875 | 3 | [
"MIT",
"CC-BY-NC-4.0",
"Unlicense"
] | permissive | #!/bin/bash
set -u
# smart version
# grep -n -C 3 admin < test_secure | awk -F '[-:]' '{print $1}' | awk NF | awk '{ do{ for(s=e=$1; (r=getline)>0 && $1<=e+1; e=$1); print s==e ? s : s","e }while(r>0) }'| awk '{print $0"s/./@/g"}' | sed -f- test_secure > tmp
# inefficient version
grep -n -C 3 admin < test_secure | awk ... | true |
f4c1e94aec3a9058a7233eec7ae16b449b5bd3db | Shell | myurasov/Kaggle-BirdCLEF-2021 | /docker/docker.sh | UTF-8 | 1,734 | 4.1875 | 4 | [] | no_license | #!/bin/bash
UP1_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")"/.. >/dev/null && pwd)"
THIS_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
IMAGE_NAME=`cd "${UP1_DIR}" && echo ${PWD##*/} | tr '[:upper:]' '[:lower:]' | sed -e 's/[-_ ]+/-/g'`
JUPYTER_PORT=8888
TENSORBORAD_PORT=6006
DOCKER_RUN_FLAGS="it"
GPUS="... | true |
2152c2894c9f44d55f8415fbc84c875ec5045775 | Shell | ygwane/scripts | /MySQL_Backup/dump_dbs_server.sh | UTF-8 | 1,706 | 4.28125 | 4 | [] | no_license | #!/bin/bash
#
# Name: dump_dbs_[server].sh
#
# Description: Dump databases from localhost to
# NFS mount directory stored on NAS server
#
#######################################################
## VARS
SRV=$(/bin/hostname)
MAIL=user@domain.com
LOG=/var/log/dump_${SRV}.log
BACKUPDIR=/mnt/backup
LCK=/tmp/du... | true |
27070e0e2c986d1d4c9b94747184b7a8e8592323 | Shell | succi0303/terraform-simple-eccube-on-aws | /user-data.sh | UTF-8 | 686 | 2.53125 | 3 | [] | no_license | #!/bin/bash
yum update -y
amazon-linux-extras install -y lamp-mariadb10.2-php7.2
yum install -y mariadb-server
yum install -y httpd php php-xml php-mbstring php-zip php-intl
cd /usr/local/src/
wget http://downloads.ec-cube.net/src/eccube-4.0.4.zip
unzip eccube-4.0.4.zip
mv eccube-4.0.4 /var/www/html/ec
chown -R apache:... | true |
f45e540e6743d76c513a109abded6f50ef52cefa | Shell | hashbang/stack | /images/stack-base/files/usr/local/bin/enable-faketime | UTF-8 | 386 | 2.921875 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/usr/bin/env bash
set -e;
# Set faketime date to match in-use debian archive
cat /etc/apt/sources.list \
| grep archive \
| head -n1 \
| sed -e 's/.*debian\/\([0-9]\+T[0-9]\+Z\).*/\1/g' \
| sed -r 's/(....)(..)(..)T(..)(..)(..)Z/@\1-\2-\3 \4:\5:\6/' \
> /etc/faketimerc
# Enable faketime globally
echo "/usr/lib... | true |
4525bfdca0f9a99ff5f568f42071f533e4c1c0db | Shell | iamhsa/pkenv | /bin/pkenv | UTF-8 | 1,179 | 3.96875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
if [ -n "$PKENV_DEBUG" ]; then
export PS4='+ [${BASH_SOURCE##*/}:${LINENO}] '
set -x
fi
# http://stackoverflow.com/questions/1055671/how-can-i-get-the-behavior-of-gnus-readlink-f-on-a-mac
readlink_f() {
local target_file=$1
local file_name
while [ "$target_file" != "" ]; do
cd... | true |
05ba6afaeedb5f507471f0600cdaefb8789e5eb6 | Shell | mannd00/Final_Pack | /week7/week7-runlevel.sh | UTF-8 | 144 | 2.515625 | 3 | [] | no_license | #! /bin/bash
echo "Welcome to Week 7 runlevel checker."
echo "Your runlevel is: "
who -r
echo "Alternative Method using runlevel"
runlevel
| true |
31052e1ad4180aa895e7675886c5021d80397e7d | Shell | Ecommerce-org/subbufirstrepo | /hello.sh | UTF-8 | 184 | 2.890625 | 3 | [] | no_license | echo "Hello"
date
whoami
echo $0
echo $1
echo $$
if [ $# -eq 2 ]
then
echo "Received 2 Args"
else
echo "need 2 args"
fi
date
if [ $? -eq 0 ]
then
echo "success"
else
echo "failure"
fi
| true |
6938349131eaa91bb13bb9d386b5e873fd5d9d06 | Shell | qq18436558/livezilla-docker | /entrypoint.sh | UTF-8 | 976 | 2.84375 | 3 | [] | no_license | #!/bin/bash
set -o errexit -o nounset -o pipefail
if [ "${INSTALL_MODE}" = "false" ]; then
sed 's,{{DB_HOST}},'"${DB_HOST}"',g' -i /var/www/html/_config/config.php
sed 's,{{DB_DATABASE}},'"${DB_DATABASE}"',g' -i /var/www/html/_config/config.php
sed 's,{{DB_USERNAME}},'"${DB_USERNAME}"',g' -i /var/www/html/_config/... | true |
d01fa489d35b2fe32a655ede735b2d113113fb4c | Shell | Demelza/homura | /homura.sh | UTF-8 | 11,872 | 3.53125 | 4 | [] | no_license | #!/bin/bash
reset
echo "********************************************************************************"
echo "* Homura *"
echo "********************************************************************************"
echo ""
echo "1/ Download sources for... | true |
2e1cbd12824056c7193e3b2f3ec60721b9c2fc1b | Shell | chaquo/chaquopy | /server/pypi/packages/llvmlite/llvm-config | UTF-8 | 612 | 3.3125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -eu
llvm_version=$(grep chaquopy-llvm $(dirname $0)/meta.yaml | sed 's/.*chaquopy-llvm //')
chaquopy_dir=$(realpath -e ../../requirements/chaquopy)
# Support arguments used by ffi/build.py.
if [ "$*" == "--version" ]; then
echo $llvm_version
elif [ "$*" == "--includedir" ]; then
echo $chaquopy... | true |
02dd05cd13bb7242dd1257fbc2659c4f334d4cb9 | Shell | AlexHowansky/shmd | /bin/dumpCollection.sh | UTF-8 | 377 | 3.53125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# This script will dump the contents of an AWS Rekognition collection.
if ! hash aws 2>/dev/null
then
echo "ERROR: Requires awscli. See https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html"
exit 1
fi
if [ ${#} -ne 1 ]
then
echo "Usage: ${0} <collection>";
exit
fi
aws --... | true |
684ce2ef665a860392194149aae8557270e3c393 | Shell | Einherjarulian/FG-turbo-lappies | /Laptops.sh | UTF-8 | 19,094 | 3.4375 | 3 | [] | no_license | #!/bin/bash
# https://askubuntu.com/questions/1705/how-can-i-create-a-select-menu-in-a-shell-script
DIALOG_HEIGHT=17
DIALOG_WIDTH=50
HEIGHT=15
WIDTH=50
CHOICE_HEIGHT=6
TITLE="Laptop Scripts"
MENU="Choose one of the following options:"
CHOICE=$(dialog --clear \
--title "$TITLE" \
--me... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.