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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
993117030c85e6ba1619ee51bc9feec73fc32a20 | Shell | YunShiTiger/kubernetes-devops | /scripts/init_os/init.sh | UTF-8 | 3,273 | 3.296875 | 3 | [] | no_license | #!/bin/bash
#清理防火墙规则,设置默认转发策略
function disable_firewalld(){
systemctl stop firewalld
systemctl disable firewalld
iptables -F && iptables -X && iptables -F -t nat && iptables -X -t nat
iptables -P FORWARD ACCEPT
}
#同时注释 /etc/fstab 中相应的条目,防止开机自动挂载 swap 分区
function disable_swap(){
swapoff -a
sed ... | true |
84f734e2f383eaa59cf01885f39b5fd79acad913 | Shell | Aahana1/peellelab_scripts | /shell_scripts/fix_dir_names_local.sh | UTF-8 | 342 | 3.28125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# unzip of downloaded CNDA files creates unusable session folder names
# in the form NN-blerg (e.g., 7-T1w_MPR). Run this from on top of
# the directory tree to fix (e.g., cd to PL123346/scans)
for FILE in *
do
if [ -d ${FILE} ]; then
NEWNAME=`echo ${FILE} | cut -d- -f 1`
mv -v "${FILE}" "$... | true |
6520106de92da6b76019162f39f27e09aacc7af6 | Shell | robertonl/guessing-game-project | /guessinggame.sh | UTF-8 | 507 | 3.75 | 4 | [] | no_license | #!/usr/env/bin bash
# File: guessinggame.sh
function check_response {
read response
local num_files_in_dir="$(ls -h | wc -l)"
while [[ $response -ne $num_files_in_dir ]]
do
if [[ $response -lt $num_files_in_dir ]]
then
echo "Your guess was too low"
else
echo "Your guess was too high"
fi
ec... | true |
14d35f4200ebee292a8a1be9d04828ffe319fd04 | Shell | kriskall/Zeeguu-Reader | /dev_setup_mac.sh | UTF-8 | 1,605 | 4.15625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Run this script to setup your development environment.
echo "...."
TOP=$(cd $(dirname $0) && pwd -L)
if [ "$(id -u)" == "0" ]; then
echo "This script should not be run as root. " 1>&2
exit 1
fi
echo "Hello developer! Let's get you setup! :)"
brew install node
sudo npm install --no-optio... | true |
2d5d536793d9d4ee07861ec2b2d32c7f86663342 | Shell | cyrilsebastian1811/CSYE6225-AMI | /provisionerScript.sh | UTF-8 | 4,723 | 2.84375 | 3 | [] | no_license | sudo yum update -q
sudo timedatectl set-timezone UTC
date
# Java-11 Installation and Path Setup
sudo yum -y -q install java-11-openjdk-devel
echo "export JAVA_HOME=$(dirname $(dirname $(readlink $(readlink $(which javac)))))" | sudo tee -a /etc/profile
source /etc/profile
echo "export PATH=$PATH:$JAVA_HOME/bin" | sudo... | true |
a48a655f83050039d90f17a0533d47fdefe6c6be | Shell | lumeng/repogit-mengapps | /file_system/find-largest-files.sh | UTF-8 | 401 | 3.453125 | 3 | [] | no_license | #!/usr/bin/env bash
## Summary: find largest files recursively
TMPSUBDIR=$(mktemp -d "${TMPDIR:-/tmp/}$(basename 0).XXXXXXXXXXXX")
TIMESTAMP="$(date +%s)"
OUTPUTFILE="${TMPSUBDIR}/list_of_large_files__${TIMESTAMP}.txt"
touch $OUTPUTFILE
gfind -P -O2 . -type f -size +100M -user $USER -exec ls -pks '{}' \; | \
so... | true |
79b58de5abf2af29ff945018851edcf5660b6425 | Shell | KeesV/kv-home-automation-config | /backupscripts/backup_postgrescontainer.sh | UTF-8 | 488 | 4.03125 | 4 | [] | no_license | #!/bin/bash
CONTAINER=$1
USER=$2
TARGETFILE=$3
echo "Creating backup of container matching" $CONTAINER
CONTAINER_ID=`docker ps -l --filter "name=$CONTAINER" -q`
if [ -z "$CONTAINER_ID" ]
then
echo "Couldn't find any container matching $CONTAINER"
else
echo "Found container with id $CONTAINER_ID"
echo "Goi... | true |
14eaf2937bcdb3d98c11181b5508fb0d4ec5680b | Shell | adamrehn/spirv-installer | /install-unix.sh | UTF-8 | 969 | 4.0625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env sh
# Ensure this script is run as root
if [ `id -u` -ne 0 ]; then
echo "Error: this script must be run as root!"
exit
fi
# The installation locations for the SPIR-V tools and the wrappers/symlinks
export SPIRVVER=1.1
export SPIRVDIR=/usr/local/spirv/$SPIRVVER
export BINDIR=/usr/local/bin
# Create th... | true |
64e815dda8d7d20c04bbd39db259315349779629 | Shell | junewong/mybackupcode | /shell/tools_company/bak_createJsMvc | UTF-8 | 787 | 3.125 | 3 | [] | no_license | #!/bin/bash
mode=$1;
if [ $mode = "-v" ];then
classType="IView";
action="regView";
elif [ $mode = '-c' ];then
classType="ICtrl";
action="regCtrl";
elif [ $mode = 'm' ];then
classType="IModel";
action="regModel";
fi
if [ $classType = '' ];then
echo "Please enter the type of class, can be -v , -c or -m."
exit 0;... | true |
d2586b162a1d6d3ec1a066fa12b09a1e25d75365 | Shell | pbmiguel/spark-demo | /deploy/databricks/deploy-job.sh | UTF-8 | 7,199 | 3.390625 | 3 | [] | no_license | #!/bin/sh
#################################################################################################################
# Deploying to databricks involves 3 steps:
#
# 1. List existing jobs and find the job id with cluster name
#
# 2. Decide next step based on number of jobs found
# - If job doesn't exist, then cr... | true |
074133de80920b0ac975e1c726fa5b0fe6752703 | Shell | s-zanella/hacl-star | /.ci/script.sh | UTF-8 | 733 | 2.71875 | 3 | [] | no_license | #!/bin/bash
set -e
eval $(opam config env)
export Z3=z3-4.4.1-x64-ubuntu-14.04;
export PATH=/home/travis/build/mitls/hacl-star/$Z3/bin:$PATH;
export PATH=/home/travis/build/mitls/hacl-star:$PATH;
export PATH=/home/travis/build/mitls/hacl-star/FStar/bin:$PATH;
export PATH=/home/travis/build/mitls/hacl-star/kremlin:$PA... | true |
25972bb5d9ed8d7d18bfe732d15633a688504fd5 | Shell | NetBSD/pkgsrc | /mail/opensmtpd/files/opensmtpd.sh | UTF-8 | 867 | 3.140625 | 3 | [] | no_license | #!/bin/sh
#
# $NetBSD: opensmtpd.sh,v 1.3 2023/08/24 15:26:40 vins Exp $
#
# PROVIDE: smtpd mail
# REQUIRE: LOGIN
# KEYWORD: shutdown
# we make mail start late, so that things like .forward's are not
# processed until the system is fully operational
$_rc_subr_loaded . @SYSCONFBASE@/rc.subr
name="smtpd"
r... | true |
d2b814dbd5bb97b3e103af803f293f07b3b9db29 | Shell | yiuked/fabric-ca | /client/enroll.sh | UTF-8 | 571 | 3.296875 | 3 | [] | no_license | #!/bin/bash
. ./base.sh
echo -n "Enter user:"
read USER
echo -n "Enter pass:"
read PASS
HTTP="http"
TLS=""
for i in "$*"; do
case $i in
--tls)
HTTP="https"
TLS="--tls.certfiles=${FABRIC_CA_CLIENT_HOME}/users/admin/msp/cacerts/localhost-7054.pem"
;;
esac
done
set -x
./fabric-ca-clien... | true |
356ec362a71f3c4dc6d9d015ab63775737d5693f | Shell | J0sueTM/sfml-bench-files | /Pong/make.sh | UTF-8 | 778 | 3.53125 | 4 | [
"MIT"
] | permissive | # !/bin/bash
#create folders that can be unexistent
if ![[ -d "bin" ]]; then
echo "Log: Creating bin folder"
mkdir bin/
fi
#remove old files
echo "Log: Removing old files"
if [[ -f "bin/main" ]]; then
rm bin/main
fi
#compile main
echo "Log: Compiling main file"
if [[ -f "src/main.cpp" ]]; then
g++ -c... | true |
ccc9948c338c684468b41c3b42a6c0d0664496e7 | Shell | einzigartigerName/dotdotdot | /install | UTF-8 | 3,675 | 3.59375 | 4 | [] | no_license | #!/usr/bin/env bash
conf="$HOME/.config"
scp="$HOME/.scripts"
DEPS_PACMAN=(
"arandr"
"dunst"
"feh"
"fzf"
"git"
"htop"
"i3-gaps"
"nasm"
"playerctl"
"pulseaudio"
"python-pip"
"qutebrowser"
"redshift"
"surf"
"sxhkd"
"vlc"
"zathura"
"zathura-pdf-mupd... | true |
1aaa436d86aaaf6abd0d61a0a381a5aea62a4277 | Shell | BYU-ODH/yvideo-deploy | /scripts/gen_dev_keys.sh | UTF-8 | 1,168 | 3.75 | 4 | [] | no_license | #!/usr/bin/env bash
services="server"
rm_secrets () {
for x in $services; do
docker secret rm "$x""_cert"
docker secret rm "$x""_key"
done
}
gen_key_cert () {
BASE_DOMAIN="$1"
DAYS=1095
CONFIG_FILE="config.txt"
cat > $CONFIG_FILE <<-EOF
[req]
default_bits = 2048
prompt = no
d... | true |
f2d076f81d5df7278dcd41963d5d578b47f3c1c8 | Shell | ChrisPHL/advancedcaching | /make-maemo-deb.sh | UTF-8 | 992 | 3.09375 | 3 | [] | no_license | #!/bin/sh
#IPKG='../ipkg-utils-1.7/ipkg-build'
PKGROOT='maemo/advancedcaching/src/'
VERSION=$1
BUILD=$2
if [ "$VERSION" == "" ] ; then
echo "gimme version, plz"
exit
fi
if [ "$BUILD" == "" ] ; then
echo "gimme build, plz"
exit
fi
cp files/advancedcaching-48.png $PKGROOT/usr/share/icons/hicolor/48x48/hildon/ad... | true |
fdacfc124605a37e9bd2f08a997b9f336b94474f | Shell | bongiojp/hudson_build_scripts | /kickstart_scripts/ks_prepost.sh | UTF-8 | 1,937 | 3.03125 | 3 | [] | no_license | #!/usr/bin/perl
my %functionmap;
my $logfile = "/root/ks_prepost.out";
sub pre() {
#after networking is setup but before OS is installed
}
$functionmap{"preinstall"} = \&preinstall;
sub post() {
#after OS is installed and networking is still setup
}
$functionmap{"postinstall"} = \&postinstall;
sub installep... | true |
7c48e20bd13ff26f8130dcd08f25d2ea45ea20d7 | Shell | rfminelli/patrickbrandao_docker | /nuva-smokeping/run.sh | UTF-8 | 1,360 | 3.90625 | 4 | [] | no_license | #!/bin/sh
#
# Script para rodar observium em ambiente simples, de maneira rapida
#
_abort(){ echo; echo $@; echo; exit 1; }
# Variaveis
IMAGE=nuva-smokeping
NAME=$IMAGE
LOOPBACK=100.127.255.81
UUID=$(uuid -1)
# Apagar container atual
[ "$1" = "restart" ] && {
echo "Limpando..."
docker stop $NAME 2>/dev/null... | true |
b45c0a411438bee1d50871f30120e2ff64dc3ec9 | Shell | samwhelp/play-ubuntu-20.04-plan | /prototype-experiment/bspwm-enhance/config/wallpaper/bin/bsp-wallpaper | UTF-8 | 66,501 | 3.078125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
################################################################################
### Head: Link
##
# * https://github.com/samwhelp/skel-project-plan/blob/gh-pages/demo/sh/standalone/bin/demo-ctrl
# * https://github.com/samwhelp/play-ubuntu-20.04-plan/blob/master/prototype/bspwm/config/wallpaper/b... | true |
5a701d0a2ec6add1ddfb66443ec698d75fe3ea2f | Shell | parasbhanot/EvsB | /board/overlay/home/delsys/delservices/fwdd/download.sh | UTF-8 | 795 | 3.328125 | 3 | [] | no_license | #!/bin/bash
uid=$1
file=$2
url=$3
logger -p local3.info -t downloader "Downloading $file from URL $url"
if [ -d "/home" ];then
homedir=/home
else
homedir=$HOME
fi
fwdslogdir=$homedir/log/fwds
mkdir -p $fwdslogdir
echo "Downloading uid: $uid , File: $file , url: $url" > $fwdslogdir/download.txt 2>&1
#curl -u $ui... | true |
f1adeb4b1afb3606cc75ac0641ab1181cf75d5d6 | Shell | smearedink/phase-connect | /initialize_wraps.sh | UTF-8 | 1,271 | 3.71875 | 4 | [] | no_license | #!/bin/sh
### This must be run first, before update_wraps.sh
### Your .tim file must have a "PHASEA" and a "PHASEB" in it
### See the README for more info
# specify version of TEMPO we're using
# path to $TEMPO directory, which contains tempo.cfg, obsys.dat, etc.
TEMPO=
# path to tempo executable
alias tempo=
# Defi... | true |
c154815ed13e13ae514fe5efe521d8026732aaec | Shell | xianfengyuan/dockers | /jira/bin/setup_databases | UTF-8 | 976 | 2.9375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
echo ">> Start PostgreSQL 9.3"
docker run -d --name postgres postgres:9.3
echo ">> Waiting for PostgreSQL to start"
docker logs -f postgres 2>&1 | tee /dev/stderr | grep --color --silent 'PostgreSQL init process complete; ready for start up.'
echo ">> Creating JIRA database on PostgreSQL"
docker ... | true |
e2716a7ee032ae5e87e73715f92dd2e9cb55d630 | Shell | BevapDin/lfs-scripts | /fs/usr/sbin/updatekernel | UTF-8 | 1,044 | 4.28125 | 4 | [] | no_license | #! /bin/bash
usage() {
cat <<-HERE
This scripts updates the symlinks on /boot (vmlinuz.*) to thhe new kernel.
That is: move vmliniz to vmlinuz.old and vmlinuz.new to vmlinuz
HERE
exit 1
}
case "$1" in
-?|-h|--help)
usage
;;
'')
;;
*)
echo "Unknown paramter: $1" 1>&2
exit 1
esac
vm="/boot/vmlinuz"
v... | true |
1f9fbf6c27812d96bffff968b4e791560f7b44bd | Shell | grawity/code | /bin/annex-placeholder | UTF-8 | 1,730 | 4.09375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
. lib.bash || exit
url_size() {
local url=$1
size=$(curl -fsS --head "$url" |
tr A-Z a-z |
awk -F: '/^content-length:/ {print $2}' |
tr -dc 0-9)
echo $size
}
algo=""
name=""
size=-1
url=""
use_ext=0
while getopts ":125u:s:" OPT; do
case $OPT in
1) algo=SHA1;;
2) algo=SHA256;;
5) alg... | true |
a534f8d6941be78f942c02c979e13b06e54eead1 | Shell | dgreid/crosvm | /tools/install-armhf-deps | UTF-8 | 1,134 | 2.765625 | 3 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env bash
# Copyright 2021 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set -ex
sudo apt-get install --yes --no-install-recommends \
g++-arm-linux-gnueabihf \
gcc-arm-linux-gnueabihf \
libc-dev:... | true |
a35231050b95dac347c0dd1634d446b34bafd6b0 | Shell | seborama/Camp2018-Security-TT | /scripts/cmds/installers/helm.sh | UTF-8 | 639 | 3.4375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# A desirable attribute of a sub-script is that it does not use global env variables that
# were created by its parents (bash and system env vars are ok). Use function arguments instead to
# pass such variables
# There should be scarce exceptions to this rule (such as a var that contains the script ... | true |
04b80ed70c826a754f01cf4e046236e6c063632a | Shell | wturner/tangelo | /scripts/vagrant-provisioning.sh | UTF-8 | 1,504 | 3.1875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# 10gen repo for mongo
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | tee /etc/apt/sources.list.d/mongodb.list
# Install needed packages
apt-get update
apt-get install -y \
build-essential \
... | true |
674042d0b00c6adb086694be61f813b85d1e5c55 | Shell | bk1472/libdev | /utils/creatmak.sh | UTF-8 | 970 | 3.3125 | 3 | [] | no_license | #!/bin/bash
FILE=$(find . -name "makelist.txt")
find . -name "*.mak" | xargs rm -f
for list in $FILE; do
_dir=`dirname $list`
_mod=`basename $_dir`
_makfile="$_dir/`basename $_dir`.mak"
echo "#############################################################################" > $_makfile
echo "#" ... | true |
6feaf57084883eb70eade8d29d04bf405e31400d | Shell | aks60808/COMP9044 | /9044AS1/legit/legit-rm | UTF-8 | 4,178 | 3.46875 | 3 | [] | no_license | #!/bin/dash
# author: Heng-Chuan Lin (z5219960@unsw.edu.au)
# class: 9041 soft-con
# file description: remove the file from cached or cached + workingdir
# written in 14/07/2019
forced=0
cached=0
current=`ls -1 .legit/repo/master/commit | tail -1`
for argv in $@
do
if [ $argv = "--force" ]
then
forced=1
... | true |
a317b51b88cc54b02b6b085b0807b0d1fd3518cf | Shell | snapcrafters/arduino | /scripts/check-permissions | UTF-8 | 1,361 | 3.59375 | 4 | [] | no_license | #!/bin/bash
GROUP=$(stat -c '%G' /dev/ttyS0)
YAD_TITLE="Grant permissions"
TEXT1="\
<b>WARNING\\n\\n\
The Arduino IDE will not be able to upload programs to boards</b> because this user (<tt>$USER</tt>) does not have permission to access USB boards. To fix this, please open a terminal and run the following command.\\... | true |
99ded11faf32851500858150c232a79d5ae712b1 | Shell | chefgs/cloud_init_sample | /cloud_init_ansible.txt | UTF-8 | 1,004 | 3.375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
mkdir -p /data/installers
mkdir -p /data/ansible
cd /data/installers/
rm -rf /data/ansible/*
outfile='/var/log/userdata.out'
# Install wget
if [ ! -f /bin/wget ] ; then
yum install wget -y >> $outfile
fi
# Install Ansible
if [ ! -f /bin/ansible ] ; then
echo "Installing Ansible" >> $outfile
yum install ans... | true |
96a5577ab12a6d814dbabbcd83b6d3f5223821c8 | Shell | ivanvc/dotfiles | /_asdf/bin/asdf-magic | UTF-8 | 165 | 2.515625 | 3 | [
"WTFPL"
] | permissive | #!/bin/sh
[ ! -f .tool-versions ] && echo "Couldn't find .tool-versions file" && exit 1
cut -d ' ' -f1 .tool-versions | xargs -I{} asdf plugin add {}
asdf install
| true |
1ee75c6208326f75a485b24218a84fbf82154367 | Shell | blacksqr/dbus-snit | /examples/hello-server.tcl | UTF-8 | 1,330 | 3.046875 | 3 | [] | no_license | #!/bin/sh
############################################################################
# #
# Example of using dbus_snit library #
# #
#... | true |
1adeda11586b0c7424ecb163450a93c31c578ba7 | Shell | openshift/oc | /hack/generate-versioninfo.sh | UTF-8 | 2,065 | 3.375 | 3 | [
"Apache-2.0"
] | permissive | #! /usr/bin/env bash
source "$(dirname "${BASH_SOURCE}")/lib/init.sh"
# Generates the .syso file used to add compile-time VERSIONINFO metadata to the
# Windows binary.
function os::build::generate_windows_versioninfo() {
if [[ "${SOURCE_GIT_TAG}" =~ ^[a-z-]*([0-9]+)\.([0-9]+)\.([0-9]+).* ]] ; then
local major=$... | true |
33854e8f6ef85ee5aa1354e258188e2846645534 | Shell | twistedmove/jsalt2019-diadet | /egs/sitw_noisy/v1.py/path.sh | UTF-8 | 2,033 | 3.015625 | 3 | [
"Apache-2.0"
] | permissive |
export JSALT_ROOT=$(readlink -f `pwd -P`/../../..)
export TOOLS_ROOT=$JSALT_ROOT/tools
export KALDI_ROOT=$TOOLS_ROOT/kaldi/kaldi
export PATH=$PWD/utils/:$KALDI_ROOT/tools/openfst/bin:$KALDI_ROOT/tools/sph2pipe_v2.5:$PWD:$PATH
[ ! -f $KALDI_ROOT/tools/config/common_path.sh ] && echo >&2 "The standard file $KALDI_ROOT/... | true |
6dff3a8aff72a8e226c906554f303f1f55fb38e9 | Shell | bradhe/dumbos | /scripts/install_qemu.sh | UTF-8 | 319 | 2.984375 | 3 | [] | no_license | #!/bin/bash
##
# Installs QEmu from source.
#
cc=/usr/bin/gcc-4.2
tmp_dir=/tmp/qemu
mkdir -p $tmp_dir
cd $tmp_dir
curl http://wiki.qemu.org/download/qemu-0.15.1.tar.gz > qemu-0.15.1.tar.gz
tar -xf qemu-0.15.1.tar.gz
cd qemu-0.15.1
./configure --cc=$cc --disable-darwin-user --disable-bsd-user
make
sudo make install
| true |
6df84463bf2aa55444eb5cd10385045d2cff27f1 | Shell | prathmesh6464/JavaFellowShip | /ElIf/ConvertDigitToWord.sh | UTF-8 | 521 | 3.34375 | 3 | [] | no_license | #!/bin/bash -x
read -p "Enter Any Value : " digit
if [[ digit -eq 0 ]]
then
echo "Zero";
elif [[ digit -eq 1 ]]
then
echo "One";
elif [[ digit -eq 2 ]]
then
echo "Two";
elif [[ digit -eq 3 ]]
then
echo "Three";
elif [[ digit -eq 4 ]]
then
echo "Four";
elif [[ digit -eq 5 ]]
then
echo "Five";
elif [[ digit -eq... | true |
973d69ad81863585b32587e62e914ba7365b11ef | Shell | qpanvisz/oidc-testing-playground | /bin/keycloak/create | UTF-8 | 354 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
DOCKER_CONTAINER_NAME=keycloak
DOCKER_IMAGE=jboss/keycloak
KEYCLOAK_USER=user
KEYCLOAK_PASSWORD=password
DATABASE=H2
PORT=${PORT:-7777}
docker pull $DOCKER_IMAGE
docker run -p $PORT:8080 --name $DOCKER_CONTAINER_NAME \
-e KEYCLOAK_USER=$KEYCLOAK_USER \
-e KEYCLOAK_PASSWORD=$KEYCLOAK_PASSWORD \
-e DB... | true |
442c8fb84fd5a26ca5589ec988c9e4a298c1dd29 | Shell | deanomus/bash-scripts | /sort.sh | UTF-8 | 300 | 3.296875 | 3 | [] | no_license | #/bin/bash
for D in *; do
if [ -d "${D}" ]; then
echo "Enter directory: ${D}" # your processing here
mkdir ${D}/raw
mkdir ${D}/jpg
cd ${D}
for f in *.JPG; do
echo "moving: ${f}"
mv ${f} jpg/
done
for f in *.ARW; do
echo "moving: ${f}"
mv ${f} raw/
done
cd ..
fi
done | true |
5524441bd525c226af83dc83c1dbe751de849972 | Shell | court-jus/dotfiles | /bin/udev_monitor_change.sh | UTF-8 | 467 | 2.546875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# /etc/udev/rules.d/80-monitor.rules contains :
# ACTION=="change", SUBSYSTEM=="drm", RUN+="/home/ghislain/bin/udev_monitor_change.sh"
export DISPLAY=:0
export XAUTHORITY=/home/ghislain/.Xauthority
if xrandr | grep "HDMI-2 connected"; then
echo "ondock" | tee -a $LOG
/home/ghislain/.screenlayout/... | true |
841fe26e76563cd1a746340a153876ea1768d86e | Shell | seiyab/rust-cc | /test/test.sh | UTF-8 | 1,417 | 3.203125 | 3 | [] | no_license | #!/bin/bash
try() {
export CPATH=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/
expected="$1"
input="$2"
./main "$input" > tmp.s
gcc -o tmp tmp.s
./tmp
actual="$?"
if [ "$actual" = "$expected" ]; then
echo "$input => $actual"
else
echo "$input => $expected expected, but got... | true |
a1500025a4230879f66d02ba808739514f16d1e7 | Shell | paulboot/network-tools | /cron-vlandump-nexus.sh | UTF-8 | 2,307 | 3.109375 | 3 | [] | no_license | #!/bin/bash
##Crontab entry
# LANG="en_US.UTF-8"
# COLUMNS=240
# CISCOCMDPAD="/opt/ciscocmd"
# http_proxy=http://proxy.zzz.com:8080/
# https_proxy=http://proxy.zzz.com:8080/
# m h dom mon dow command
# Cisco-cmd commands
# */5 * * * * $CISCOCMDPAD/bin/cron-vlandump-nexus.sh >> $CISCOCMDPAD/log/cron-vlandump.log 2... | true |
1d99d396054199cac2df84a5ceb750ea7c984ca8 | Shell | GunioRobot/Data-Journalism-Developer-Studio | /Desktop/Install-Scripts/install-system.bash | UTF-8 | 604 | 2.5625 | 3 | [] | no_license | #! /bin/bash -v
export DISPLAY=:0.0
xhost +
export PATH=/usr/local/bin:$PATH
unset JAVA_HOME; R CMD javareconf # needed for rJava
R --vanilla --slave < load-system.R 2>&1 | tee load-system.log
# set up environment variables, e.g., PDF reader
if [ -e /usr/lib/R/etc/Renviron ]
then
cp Renviron32 /usr/lib/R/etc/Renvir... | true |
68f9371621a223f48a9d070794c0de5bc60b526c | Shell | nuttingd/gitlab-helm-chart | /scripts/database-upgrade | UTF-8 | 3,606 | 3.890625 | 4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/usr/bin/env bash
set -e
# Set the timestamp to something predictable so we can use it between backup and restore
fake_timestamp="database_upgrade_4"
script_name="database-upgrade"
usage() {
echo "USAGE: ${script_name} [-r RELEASE] [-n NAMESPACE] pre|post"
}
selector() {
base="app=${1}"
if [ -n "${rele... | true |
c37e1d0f1e1d633ada4646033b9dd60013695133 | Shell | ddmin/CodeSnippets | /ANACHRO/arch-2install | UTF-8 | 3,357 | 2.734375 | 3 | [] | no_license | #!/bin/bash
# install - installs and configure machine automatically (Arch)
# Update System
sudo pacman -Syyu
# base-devel
sudo pacman -S base-devel
# Install git
yes | sudo pacman -S git
# Papirus Icons
wget -qO- https://git.io/papirus-icon-theme-install | DESTDIR="$HOME/.local/share/icons" sh
# i... | true |
d653c4b554c07f749ca4559e423229d321d5bc7e | Shell | Bjoern-ek/RasPi-Relais | /set-i2c | UTF-8 | 462 | 2.984375 | 3 | [] | no_license | #!/bin/bash
ADDR=0x38
PRG="/usr/sbin/i2cset -y 1 $ADDR"
MW=`/usr/sbin/i2cget -y 1 $ADDR`
Z=$1
A=$2
bytefunc()
{
. f_bitmask
case $Z in
S)
Y=`clrbit $MW $A`
;;
C)
Y=`setbit $MW $A`
;;
*)
... | true |
33a54694441fcb670ca0f07b261f43ded0ca8958 | Shell | orrecx/martreiss | /3_build_final_sys/vfs_config_scripts/sys_config_main.sh | UTF-8 | 556 | 2.75 | 3 | [
"Apache-2.0"
] | permissive | #no need for shebang because /bin/bash does not exist and this script is being run by bash
SYS_CONF_SCRIPTS_DIR="$WRK/vfs_scripts"
source $SYS_CONF_SCRIPTS_DIR/utils.sh
echo "================ LFS SYS CONFIGURATION MAIN ================"
s_start $0
S=$?
$SYS_CONF_SCRIPTS_DIR/bootscripts.sh
$SYS_CONF_SCRIPTS_DIR/devic... | true |
298cd280625c55c9e7a6e6a91e8b009049707e5d | Shell | spkngb/webc | /.git-fixups/007-nginx.sh | UTF-8 | 252 | 2.546875 | 3 | [] | no_license | #!/bin/sh
echo "Fixing nginx permissions"
mkdir -vp /var/log/nginx/
touch /var/log/nginx/access.log
touch /var/log/nginx/error.log
chown root:adm /var/log/nginx/
chown www-data:adm /var/log/nginx/*
chmod 755 /var/log/nginx/
chmod 640 /var/log/nginx/*
| true |
96b7fa9f057eaaefbca5de9870a0fe4b2376419b | Shell | BackupTheBerlios/iphone-binutils-svn | /branches/landonf-odcctools/SDK/extract.sh | UTF-8 | 3,109 | 3.96875 | 4 | [] | no_license | #!/bin/sh
set -e
DISTDIR=arm-apple-darwin
SDKROOT=/Developer/SDKs/MacOSX10.4u.sdk
FRAMEWORK_ROOT=${SDKROOT}/System/Library/Frameworks
TOPSRCDIR=`pwd`
MAKEDISTFILE=0
UPDATEPATCH=0
while [ $# -gt 0 ]; do
case $1 in
--distfile)
shift
MAKEDISTFILE=1
;;
--updatepatch)
shift
UPDATEPATCH=1
... | true |
4b378b3855fde0cacc59c1d5c8a9be7b89d06cb6 | Shell | giuliostramondo/atrace_utils | /patterns_to_solve/das5_parallelization.sh | UTF-8 | 152 | 2.515625 | 3 | [] | no_license | #!/bin/bash
for p in $(ls | grep atrace )
do echo $p
for scheme in ReRo ReCo RoCo ReTr
do prun -np 1 ../schedule_atrace.py $p $scheme &
done
done
| true |
1a6b58212862b4119e1135e32cc437357276b613 | Shell | MisterCyp/dockerfiles | /rufy/transcode/rootfs/usr/local/bin/run.sh | UTF-8 | 1,252 | 2.609375 | 3 | [
"CC0-1.0"
] | permissive | #!/bin/sh
addgroup -g ${GID} rufy && adduser -h /var/www/RuFy -s /bin/sh -D -G rufy -u ${UID} rufy
if [ $WEBROOT != "/" ]; then
sed -i 's|<webroot>|'${WEBROOT}\/'|g' /etc/nginx/nginx.conf
sed -i 's|<webroot2>|'${WEBROOT}'|g' /etc/nginx/nginx.conf
sed -i -e '\#URI# s#/rufy#'${WEBROOT}'#' /var/www/RuFy/RuFy... | true |
c7e9e499c058e362d0ee946cf75b42394f03dd05 | Shell | paulburton/Arch-Linux-Repository | /ubuntu/humanity-icon-theme/PKGBUILD | UTF-8 | 516 | 2.640625 | 3 | [] | no_license | # Maintainer: György Balló <ballogy@freestart.hu>
pkgname=humanity-icon-theme
pkgver=0.5.3.4
pkgrel=1
pkgdesc="Elementary Icons for Humans"
arch=('any')
url="https://launchpad.net/humanity"
license=('GPL')
depends=('gnome-icon-theme')
source=(https://launchpad.net/ubuntu/+archive/primary/+files/${pkgname}_$pkgver.tar.g... | true |
180ccc924909212b48b377452dff7a0099f93755 | Shell | aceway/tools | /bash/remote_release.sh | UTF-8 | 6,885 | 3.421875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
RED="\033[0;31m"
GREEN="\033[0;32m"
BLUE="\033[0;34m"
YELLOW="\033[0;33m"
GRAY="\033[0;37m"
LIGHT_RED="\033[1;31m"
LIGHT_YELLOW="\033[1;33m"
LIGHT_GREEN="\033[1;32m"
LIGHT_BLUE="\033[0;34m"
LIGHT_GRAY="\033[1;37m"
END="\033[0;00m"
dt=`date +"%Y %m %d %H %M %S"`
array=($dt)
year=${array[0]}
month=$... | true |
989d6dda5637c6bcea1e98e3b8104dfe3fd20e43 | Shell | maledorak/LABS | /dotfiles/home/scripts/devices/ku-1255_set_sensitivity | UTF-8 | 837 | 3.8125 | 4 | [] | no_license | #!/bin/bash
#
# Set sensitivity for Lenovo Thinkpad KU-1255 Keyboard
# using: sudo ./ku-1255_set_sensitivity 250
#
# Resources:
# http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint
# https://wiki.archlinux.org/index.php/TrackPoint
#
SENSITIVITY=$1 # default 160
if [ -z "$SENSITIVITY" ]
then
SENSITIVITY=... | true |
4d3f17bb57198b441a81cf9396807ceb0a874484 | Shell | leograba/lava-tests | /apalis_tk1/resources/read-ahead-threshold-values.sh | UTF-8 | 266 | 2.796875 | 3 | [] | no_license | #!/bin/sh
set -x
MOD_ID=$(cat /proc/device-tree/toradex,product-id)
case $MOD_ID in
# apalis TK1 2GB
0034) export MMC=4096 ; export SD1=1024 ; export SD2=512
export MMC_MOUNT=mmcblk0 ; export SD1_MOUNT=mmcblk1 ; export SD2_MOUNT=mmcblk2 ;;
*) false ;
esac
| true |
eb3b2566a3cf863ffc342fba76eb28b742bfa848 | Shell | forno/dotfiles | /setup.sh | UTF-8 | 889 | 3.921875 | 4 | [
"Unlicense"
] | permissive | #!/bin/sh
filter_out_ignore(){
while read line
do
[ "$line" = '.' ] ||
[ "$line" = '..' ] ||
[ "$line" = '.git' ] ||
[ "$line" = '.gitignore' ] ||
[ "$line" = '.gitmodules' ] &&
continue
echo $line
done
}
DOT_FILES=`echo .* | tr ' ' '\n' | filter_out_ignore | tr '\n' ' '`
echo "Li... | true |
4b15355bb30cb37e55ae257dfcb51fbb2ef85bca | Shell | Nevondo/server-tools | /blocklist/start.sh | UTF-8 | 1,250 | 3.390625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
function checkDependencies {
dpkg --get-selections | grep '^ipset' >/dev/null
if [[ $? = 1 ]]; then
apt-get install ipset -y
fi
dpkg --get-selections | grep '^xtables-addons-source' >/dev/null
if [[ $? = 1 ]]; then
apt-get install xtables-addons-source -y
fi
dpkg --get-s... | true |
547e02416d6c1914131bb475c1eefc0017e3f9f8 | Shell | xebecproject/xebec | /docker/build-docker.sh | UTF-8 | 512 | 2.890625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/..
DOCKER_IMAGE=${DOCKER_IMAGE:-xebecproject/xebecd-develop}
DOCKER_TAG=${DOCKER_TAG:-latest}
BUILD_DIR=${BUILD_DIR:-.}
rm docker/bin/*
mkdir docker/bin
cp $BUILD_DIR/src/xebecd docker/bin/
cp $BUILD_DIR/src/xebec-cli docker/bin/
cp... | true |
d69d0bf442baa79488df00f0b98cb0004142121e | Shell | ChengGuan3/libOTe | /build.sh | UTF-8 | 189 | 2.6875 | 3 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain",
"Unlicense"
] | permissive | #!/bin/bash
mkdir -p out
mkdir -p out/build
mkdir -p out/build/linux
cd out/build/linux
#if [ ! -f ./Makefile ] || [ "$#" -ne 0 ]; then
#fi
cmake ../../.. $@
make -j
cd ../../.. | true |
08d1d3948eaf935acd53a94d0a4285f1c17723f9 | Shell | arcolinuxiso/carli-pkgbuild | /plymouth-theme-monoarch/PKGBUILD | UTF-8 | 883 | 2.515625 | 3 | [] | no_license | # Maintainer: Marco Buzzanca <marco /DOT/ bzn /AT/ gmail /DOT/ com>
pkgname=plymouth-theme-monoarch
pkgver=0.1
pkgrel=1
pkgdesc='Monochrome Arch Linux theme for Plymouth'
arch=('any')
url='https://farsil.github.io/monoarch/'
license=('MIT')
depends=('plymouth')
install=$pkgname.install
source=("https://github.com/farsi... | true |
24529f121d7641de38b2ea256593e23263efdebd | Shell | nikhil-thomas/wos | /shell-scripts/itimer | UTF-8 | 391 | 3.3125 | 3 | [] | no_license | #!/usr/bin/env bash
hrs=$1
mins=$2
secs=$3
cycles=$4
beeps=$5
hrs=${hrs:-0}
mins=${mins:-0}
secs=${secs:-0}
cycles=${cycles:-1}
function itimer() {
local interval=$1
for (( i=0;i<$cycles;i++ )); do
echo cycle=$(( i + 1 ))/$cycles
#for (( j=$interval;j>0;j-- ));do
# sleep 1
# echo ${j}s
# done... | true |
6665b06e7f8c6586f9e354b340b69f9f5857d7a7 | Shell | nevesnunes/env | /common/code/snippets/sysadmin/pdfs.sh | UTF-8 | 860 | 2.640625 | 3 | [
"MIT"
] | permissive | # start with a bunch of PNG images of your zine pages
# convert them all to PDF
for i in *.png
do
# imagemagick is the best thing in the world
convert $i $i.pdf
done
# pdftk is awesome for combining pdfs into a single pdf
pdftk *.pdf cat output zine.pdf
# pdfmod is a GUI that lets you reorder pages
... | true |
7cb246f82e6609acdfb6f0ecefc12927f79d792f | Shell | lvjonok/operating-systems-f21 | /week05/ex2_problem.sh | UTF-8 | 405 | 3.4375 | 3 | [] | no_license | # We should check existence of this file before writing to it anything
if ! [ -f ex2.txt ]
then
echo -n 0 >> ex2.txt
fi
while :
do
# nothing stops other processes to execute some operations on file ex2 here
# that means two processes easily could read the same last integer and
# result in missed patter... | true |
b2bfdc55b376ea9ecf901c4e310aff639914f60c | Shell | CMSgov/beneficiary-fhir-data | /ops/terraform/env/mgmt/base_config/scripts/edit-eyaml.sh | UTF-8 | 1,448 | 3.859375 | 4 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | #!/usr/bin/env bash
# This is a simple script that assists operators with editing values stored
# in encrypted yaml files. As of this writing, this targets the ansible-vault
# encryption mechanism, and depends on access to the appropriate SSM Parameter
# Store hierarchy to resolve the password.
# This is intended for u... | true |
9aa1bf8c782ab596c7ed1d7cba9d0895bce67200 | Shell | AlexandreMPDias/awesome-scripts-unix | /bin/yumm | UTF-8 | 1,418 | 3.734375 | 4 | [] | no_license | #!/bin/bash
if [ "$1" == "--help" ]; then
echo "Yumm"
echo "Builds and then runs"
echo "valid flags: [--r][--d][--no-package]"
echo
echo "-r : Skip run"
echo "-d : Skip declarations"
echo "-b : Skip build"
echo "-no-package: Builds all packages"
fi
for arg in "$@"; do
if [[ $arg ==... | true |
4ad39b71699169526a24c2e8a0774f267f725ce0 | Shell | DianaBelePublicRepos/BashBasics | /BashBasicsPartIII/basicsPassingOptionsWithValues.sh | UTF-8 | 605 | 4.15625 | 4 | [] | no_license | #! /bin/bash
#Sometimes you need options with additional parameter values like this:
#./myscript -a value1 -b -c value2
while [ -n "$1" ]; do # while loop starts
case "$1" in
-a) echo "-a option passed" ;;
-b)
param="$2"
echo "-b option passed, with value $param"
shift
;... | true |
42901a828f32093e89f5aa305911004136d6d6e6 | Shell | tioammar/tcp_bandwidth_tester | /change | UTF-8 | 289 | 2.84375 | 3 | [] | no_license | #!/bin/bash
#Change the current congestion control algorithm to the algorithm specified by commandline argument.
#Specified algorithm must be one of the available algorithms in /proc/sys/net/ipv4/tcp_available_congestion_control
#Run as root.
sysctl net.ipv4.tcp_congestion_control="$1"
| true |
adee824b64c5aa00574a5a4c8af520c4a70be68d | Shell | MrGunnery/Samba | /Script/Script.txt | UTF-8 | 495 | 3.1875 | 3 | [] | no_license | #!/bin/bash
fichier=$1
while read ligne
do
login=$(echo $ligne | cut -d: -f1)
mdp=$(echo $ligne | cut -d: -f2)
group=$(echo $ligne | cut -d: -f3)
echo "Création de l'utilisateur "$login
adduser $login -g $group
echo -e "$mdp\n$mdp" | (smbpasswd -a -s $login)
mkdir /profiles/$login
mkdir /profiles/$l... | true |
0adc1445d900917f45b559389d4dbe9b8fee9778 | Shell | SteeleDesmond/pcp-sdn | /pcp_sdn_source/scripts/resources/create_file.sh | UTF-8 | 2,949 | 5 | 5 | [
"MIT"
] | permissive | #!/bin/bash
#
# This script creates a file of the specified type in the "[home]/tmp" directory.
#
#===============================================================================
PROGNAME="$(basename "$0")"
#-------------------------------------------------------------------------------
TEMP_DIR="$HOME"'/tmp'
if [ ... | true |
33d33fdf43159288d1c8a9b2934ac49aea94f0fb | Shell | pegasus-isi/pegasus-ensemble-manager-examples | /workflows/wf-java/plan.sh | UTF-8 | 1,475 | 3.203125 | 3 | [] | no_license | #!/bin/bash
set -e
set -v
TOP_DIR=$( cd "$(dirname "${BASH_SOURCE[0]}")"; pwd -P )
cd $TOP_DIR
# build the dax generator
export CLASSPATH=.:`pegasus-config --classpath`
javac --release 8 BlackDiamondDAX.java
# generate the dax
java BlackDiamondDAX /usr blackdiamond.yml
# create the site catalog
cat >sites.xml <<EO... | true |
3e43aa29c8c800319eec7ae99b7f8ecbe62b69c8 | Shell | JRasmusBm/dotfiles | /bin/git-big | UTF-8 | 140 | 2.75 | 3 | [] | no_license | #!/bin/sh
set -e
_git_bisect_good() {
(
cd "$(git rev-parse --show-toplevel)"
git bisect good "$@"
)
}
_git_bisect_good "$@"
| true |
5ce194572f3337c8f8254f704b91a4a255b332b2 | Shell | shwchurch3/t5 | /bin/cron-sync.sh | UTF-8 | 700 | 2.984375 | 3 | [] | no_license | #!/bin/bash
. ~/.bashrc
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cronScriptPath=/etc/cron.d/hugo-sync
cronScriptEnv=/etc/cron.d/hugo-sync.env.sh
env > ${cronScriptEnv}
cat ${cronScriptEnv}
hugoGithubRoot=/home/ec2-user/hugo/github
syncFile=${hugoGithubRoot}/t5/bin/sync.sh
logPath=${... | true |
56aecaec333f4d23ceccfe222118e129804861be | Shell | vishnuak15/shell-scripting | /reader.sh | UTF-8 | 222 | 3.359375 | 3 | [] | no_license | #!/usr/bin/env bash
# read a file in linux shell
COUNT=1
while IFS='' read -r LINE
do
echo "LINE $COUNT: $LINE"
((COUNT++))
done < "$1"
exit 0
# command for writing a file: ./reader.sh names.txt >> output.txt | true |
6820e9d32df4c49c5b6c26734738eff98edcee8e | Shell | eacousineau/dotfiles_template | /tmux-copy.sh | UTF-8 | 172 | 2.796875 | 3 | [] | no_license | #!/bin/bash
set -e
if [[ -n "${_SSH_DISPLAY}" ]]; then
export DISPLAY=${_SSH_DISPLAY}
fi
mkdir -p ~/tmp
tee ~/tmp/tmux-clipboard.txt | xclip -in -selection clipboard
| true |
847d7d88953332f180db17ed72b0809d20d9820d | Shell | jpikl/tower-quest | /run.sh | UTF-8 | 243 | 3.5625 | 4 | [
"MIT"
] | permissive | #!/bin/sh
LOVE=/usr/bin/love
print_and_exec() {
echo "Executing: " "$@"
"$@"
}
if [ -x $LOVE ]; then
print_and_exec $LOVE . "$@"
else
echo "No $LOVE executable found"
echo "Download and install LOVE 2d from https://love2d.org"
fi
| true |
bca6c2595af6ab6a1ab5da60f3b14de60ac80c12 | Shell | nukala/docker | /redsen/scr2 | UTF-8 | 526 | 3.546875 | 4 | [] | no_license | #! /bin/sh
# /etc/init.d/redsen
#
REDSEN_CONFS=/redsen/conf
REDSEN_HOME=/usr/local/bin
export REDSEN_HOME REDSEN_CONFS
# Carry out specific functions when asked to by the system
case "$1" in
start)
echo "Starting script redsen "
/redsen/bin/redis.sh start 01
/redsen/bin/sentinel.sh start 01
;;
... | true |
092147fa5aabc7746f181c3606256ec20e33001b | Shell | mlibrary/chipmunk-client | /bin/batch-ead-bag | UTF-8 | 1,487 | 4.125 | 4 | [] | no_license | #!/bin/bash
if [[ -z "$4" ]]; then
echo "Usage: batch-ead-bag <audio|video> <EAD file> <EAD URL> <directory> [additional_directory...]"
exit 1
fi
if [[ -n "$CHIPMUNK_HOME" ]]; then
if [[ -x "$CHIPMUNK_HOME/bin/makebag" ]]; then
MAKEBAG="$CHIPMUNK_HOME/bin/makebag"
else
echo "If CHIPMUNK_HOME is set, i... | true |
0b02d7f9eaa5f02b5bab228b3f0dfdebde24c4f6 | Shell | CAIDA/grip-tools | /scripts/consumer-rerun/run-moas.sh | UTF-8 | 781 | 2.609375 | 3 | [] | no_license | #!/bin/bash
#SBATCH --job-name=grip-moas-2020
#SBATCH --output="logs/observatory-rerun-moas.%j.%N.out"
#SBATCH --error="logs/observatory-rerun-moas.%j.%N.err"
#SBATCH --partition=compute
#SBATCH -t 48:00:00
#SBATCH --mem=120G
#SBATCH --cpus-per-task=6
#SBATCH --nodes=1
#SBATCH --no-requeue ### SLURM will req... | true |
8e5f95fa34737af0ae7c7f580e5b5384fc70880f | Shell | arch-beryllium/bootsplash | /PKGBUILD | UTF-8 | 1,082 | 2.59375 | 3 | [] | no_license | pkgname=bootsplash
pkgver=0.1
pkgrel=2
pkgdesc='Bootsplash'
arch=('i686' 'x86_64' 'aarch64')
license=('GPL2')
makedepends=('gcc' 'imagemagick')
options=('!libtool' '!emptydirs')
source=('https://gitlab.manjaro.org/manjaro-arm/packages/extra/bootsplash-packer/-/raw/master/bootsplash_file.h'
'https://gitlab.manja... | true |
a19a3d0f409d51aa9ddefeaa73ee46486c4b5986 | Shell | TimSvensson/Introduction-to-Parallel-Programming | /ass_2/ex_1/integration_script.sh | UTF-8 | 477 | 3.421875 | 3 | [] | no_license | #!/bin/bash
f="./results.txt"
run="./out/integrate.out"
args="1 10 100 1000 10000 100000 1000000"
echo ""
echo "Running script" $0
echo ""
echo "Results from running integration.out with different arguments." > ${f}
echo "" >> ${f}
for i in {0..4}
do
numThreads=$((2 ** $i))
echo "Running with" $numThreads "... | true |
04c4816989d5af842e8575412eb0b9f846045f72 | Shell | miaocunfa/OpsNotes | /运维/Zabbix/指标/network_status.sh | UTF-8 | 807 | 2.953125 | 3 | [] | no_license | #!/bin/bash
eth=$1
io=$2
net_file="/proc/net/dev"
if [ $2 == "in" ]
then
n_new=`grep "$eth" $net_file|awk '{print $2}'`
n_old=`tail -1 /tmp/neti.log`
n=`echo "$n_new-$n_old"|bc`
d_new=`date +%s`
d_old=`tail -2 /tmp/neti.log|head -1`
d=`echo "$d_new-$d_old"|bc`
if_net=`echo "$n/$d"|bc`
ec... | true |
913a71022400e052ab23b60953d54fbd17545e83 | Shell | level5/LaTeX | /programming/code/shell/abs-guide/chapter04/variables.sh | UTF-8 | 540 | 3.5 | 4 | [] | no_license | #! /bin/bash
variable1=23
echo variable1 # variable1
echo $variable1 # 23
a=375
hello=$a # no whitespace between '=' and '$a'
echo hello # hello
echo $hello # 375
echo ${hello} # 375, same as above, in certain context, only this form works.
# "" weak quoting or partial quoting, no int... | true |
c5016a16c676301a7436a3c6135e33b102e1365a | Shell | cyborgmg/kraken.parent | /kraken.war/jrebel.sh | UTF-8 | 769 | 2.78125 | 3 | [] | no_license | #!/bin/bash
pserver=/root/java/servers/10.0.0.Final
pproject=/root/java/workspace/kraken/kraken.war
for pfile in $( find $pproject/src/main/webapp/ | grep -i \.xhtml$ )
do
file=$(basename $pfile)
for eappfile in $( find $pserver/standalone/ -iname $file )
do
cp -vu $pfile $eappfile
done
d... | true |
32231b1f7970ff4386e8986e90bedb791d170cd0 | Shell | Seni-J/SharedHosting | /addUser.sh | UTF-8 | 3,734 | 3.46875 | 3 | [] | no_license | echo "Enter the new username : "
read username
echo "Enter the domain name for this site : "
read domain
echo "Enter the new username password : "
read -s password
echo "Enter the actual mysql root password : "
read -s rootpwd
# ajoute un utilisateur
adduser --disabled-password --gecos "" $username
echo $username":... | true |
e731371e58177aee63ed2b1061a7830de12d3ef2 | Shell | sansajn/test | /bash/dist_version.sh | UTF-8 | 210 | 3.5 | 4 | [] | no_license | #!/bin/bash
# how to detect specified distribution like xenial, focal, ...
codename=`lsb_release -c|awk '{print $2}'`
if [ $codename == "xenial" ]; then
echo xenial detected
else
echo sorry, not xenial
fi
| true |
585cbb7cb8c2a243a14132882249484efaddb388 | Shell | timmyjose-study/cpp-crash-course | /runcpp.sh | UTF-8 | 144 | 2.796875 | 3 | [
"Unlicense"
] | permissive | #!/bin/bash
file="$1"
filename="${file%.*}"
shift 1
clang++ -Wall -std=c++20 -o ${filename} ${file} $@ && ./${filename}
rm -rf ${filename} *.o | true |
043379f6422fb13ae1dca8025ee689d5f8524b54 | Shell | elifesciences/builder-base-formula | /elife/config/etc-cron.daily-logrotate | UTF-8 | 1,150 | 3.765625 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# Clean non existent log file entries from status file
cd /var/lib/logrotate
test -e status || touch status
head -1 status > status.clean
sed 's/"//g' status | while read logfile date
do
[ -e "$logfile" ] && echo "\"$logfile\" $date"
done >> status.clean
mv status.clean status
test -x /usr/sbin/logrotat... | true |
4677008bf3e57b6f71a3ea5741c36989a282a1b0 | Shell | pablo-mayrgundter/freality | /fun/randcolor.sh | UTF-8 | 188 | 3.015625 | 3 | [] | no_license | #!/bin/bash
export TERM=linux
COLUMNS=$1
LINES=$2
while true ; do
x=$((RANDOM%COLUMNS))
y=$((RANDOM%LINES))
c=$((40+(RANDOM%10)))
echo -en "\033[$y;${x}f\033[1;${c}m "
done | true |
0be43325f76a0695ff92c727628d234e48c1f42c | Shell | mbautin/dev-env-setup | /run_from_bashrc.sh | UTF-8 | 803 | 2.84375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# This should be invoked from ~/.bashrc.
# --------------------------------------------------------------------------------
# gitprompt configuration
# --------------------------------------------------------------------------------
# Set config variables first
GIT_PROMPT_ONLY_IN_REPO=0
# GIT_PROMPT_F... | true |
d2d20543c579de0ae699c680d7e2f25ab893ea8d | Shell | htcondor/htmap | /docker/entrypoint.sh | UTF-8 | 627 | 3.296875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -e
# set up directories for state
_condor_local_dir=`condor_config_val LOCAL_DIR` || exit 5
mkdir -p "$_condor_local_dir/lock" "$_condor_local_dir/log" "$_condor_local_dir/run" "$_condor_local_dir/spool" "$_condor_local_dir/execute" "$_condor_local_dir/cred_dir"
# start condor
condor_master
... | true |
a5a94d3efe89333e5d44bd0629d5e213a3054538 | Shell | dbeley/scripts | /powermenu_wofi.sh | UTF-8 | 334 | 3.671875 | 4 | [] | no_license | #!/usr/bin/env bash
# This script displays a power menu with wofi
pgrep -x wofi && exit 1
OPTIONS="Reboot\nPoweroff\nSleep"
choice="$(echo -e $OPTIONS | wofi -i -dmenu )"
[ -z "$choice" ] && exit 1
case "$choice" in
Reboot)
systemctl reboot
;;
Poweroff)
systemctl poweroff
;;
Sleep)
systemctl suspend
;;
*)
;;... | true |
be9631bad7fc7acf0c75d74a0c169443b9e8b02a | Shell | markuslindenberg/debuilder | /build.sh | UTF-8 | 347 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
cp -r /input /build/source && chown -R build: /build/source
cd /tmp && mk-build-deps -i -r /build/source/debian/control
cd /build/source && sudo -E -u build debuild -us -uc -b
OWNER=$(stat -c %u:%g /output) && \
find /build -maxdepth 1 -type f \
-execdir cp -f -t /output '{}' \; \
-execdir chown... | true |
abe9f68c71ac3312ecb2ddb33dbcad348249196f | Shell | Alexis01/Practica1SistemasOperativos | /quien.sh | UTF-8 | 936 | 3.828125 | 4 | [] | no_license | #!/bin/bash
#Ejercicio propuesto pratica 1 SO - Valentin Blanco Gomez y Antonio Calvo Morata
#Comprueba el # de parametros
if [ $# != 1 ] ; then
echo "Uso: ./quien.sh fichero_de_passwd" 1>&2
exit 1
fi
#Comprueba el fichero password
if [ ! -f "$1" ] ; then
echo "El fichero $1 no existe o no es regular." 1>&2
exit ... | true |
0bc2f65605e897f87ee494526e440c52ce9295f9 | Shell | lnadolski/tracy-3.5 | /gnuplot/dynap_err_plt.sh | UTF-8 | 3,587 | 2.625 | 3 | [] | no_license | #!/bin/sh
prm1=${1-0}
gnuplot << EOP
ps = $prm1; phys_app = 0;
f_s = 24; l_w = 2;
if (ps == 0) \
set terminal x11; \
else if (ps == 1) \
set terminal postscript enhanced color solid lw l_w "Times-Roman" f_s; \
ext = "ps"; \
else if (ps == 2) \
set terminal postscript eps enhanced color solid lw l_w "Times-R... | true |
868108d40aca4138b44248fce37a2472c896dddc | Shell | DavidWittman/curbguide | /slack-notify.sh | UTF-8 | 530 | 3.765625 | 4 | [] | no_license | #!/bin/bash
set -e
# Set this to your Slack webhook URL
SLACK_WEBHOOK=""
INTERVAL="${INTERVAL:-300}"
log() {
echo "[$(date '+%T')] $*"
}
while :; do
log "Searching for available timeslot..."
RESULT=$(pipenv run ./curbguide.py "$@")
echo "$RESULT"
COUNT=$(grep -c "N/A" <<<"$RESULT")
if [[ "$... | true |
19e98abf6476afed1c1900008cfbb6030d5f1efa | Shell | ericfortmeyer/student-assignment-scheduler | /build/pre-production-deploy.sh | UTF-8 | 147 | 2.515625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env sh
REMOTE_HOST=$1
REMOTE_USER=$2
DIR="$(dirname $0)"
BRANCH=staging
source $DIR/deploy.sh
deploy $REMOTE_HOST $REMOTE_USER $BRANCH
| true |
9887f077842975f133d4e361d7c208df3151af49 | Shell | r2d4/go-starter | /rename.sh | UTF-8 | 954 | 2.9375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
NEW_PROJECT=$1
COMPANY=$2
CURRENT_ORG=$(realpath --relative-to=$GOPATH/src $PWD)
OLD_ORG=github.com/r2d4/go-starter
OLD_PROJECT=go-starter
mv cmd/$OLD_PROJECT cmd/$NEW_PROJECT
mv pkg/$OLD_PROJECT pkg/$NEW_PROJECT
find . -name $OLD_PROJECT.go -type f | sed -e "p;s/$OLD_PROJECT/$NEW_PROJECT/" | xargs -n2 ... | true |
8802ff8b7af945f0442f4ee985c4c818b1ec0243 | Shell | masayukist/sad_scripts | /useradd.sh | UTF-8 | 1,894 | 3.671875 | 4 | [] | no_license | #!/bin/sh +x
. ./config.sh
UID_NUMBER=`./include/nextid.sh`
echo User ID will be set to $UID_NUMBER
GID_NUMBER=${START_GID}
echo -n "${0}: login name? "
read USERNAME
STDOUT=`id ${USERNAME} 2>&1`
if [ ${?} = 0 ]; then
echo Username ${USERNAME} is already used. Please specify another username.
exit 1
fi
ech... | true |
01342ce6b162ebef9b253b4c92d53f34d6341517 | Shell | jukylin/cilium | /tests/11-getting-started.sh | UTF-8 | 4,703 | 3.59375 | 4 | [
"GPL-1.0-or-later",
"Apache-2.0"
] | permissive | #!/bin/bash
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
source "${dir}/helpers.bash"
# dir might have been overwritten by helpers.bash
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
TEST_NAME=$(get_filename_without_extension $0)
LOGS_DIR="${dir}/cilium-files/${TEST_NAME}/logs"
redirect_debug_logs ${L... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.