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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
69fd9e5436790aabb2a70e903eccc5e46f07eec2 | Shell | GedMullen/fet | /computingold/v7/tap.sh | UTF-8 | 2,606 | 2.984375 | 3 | [] | no_license | #!/bin/bash
export SDIR=/home/ged/gedstuff/code/tap/scripts
echo creating and running insert.sql...
cat $SDIR/inserthead.sql > insert.sql
java SheetReader >> insert.sql
mysql -t -u student < insert.sql
echo identifying room locks
#TODO per semester
mysql -N -u student timetable < $SDIR/roomlock.sql > roomlock.sh
chmod ... | true |
ff14e783b4454f5010ea7e6ff3e1501a941bd992 | Shell | aryehzapinsky/sleeper | /code_on_rpi/concatenate_videos.sh | UTF-8 | 279 | 2.9375 | 3 | [] | no_license | #!/bin/bash
vidArray=()
for file in *.h264; do vidArray=(${vidArray[@]} "-cat $file"); done
fileString=$( IFS=' '; echo "${vidArray[*]}")
echo "#!/bin/bash" > com.sh;
echo "MP4Box ${fileString} -fps 10 `date "+%Y-%m-%d"`.mp4" >> com.sh;
chmod +x com.sh;
./com.sh;
rm com.sh;
| true |
53e2ba3c085cbbbad3cc8b41f94bdab7213e8b1c | Shell | KeyPecker/Tools | /get_llvm.sh | UTF-8 | 2,016 | 3.96875 | 4 | [
"MIT"
] | permissive | ##
## Key Pecker
##
## Script to set source of llvm, clang and other tools for MacOS
## This script sets up sources from master branch, v7.0 and v6.0
##
## Usage:
## ./get_llvm.sh # will setup master branch
## ./get_llvm.sh 7 # will setup llvm 7.0
## ./get_llvm.sh 6 # will setup llvm 6.0
## ./get_llvm.sh <any number> #... | true |
1b6581d3ded346273e6f591c78f5244844307c82 | Shell | eliseuegewarth/3d_center_of_mass | /3d_center_of_mass/config_virtualenv.sh | UTF-8 | 784 | 3.625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
if [ "$1" == "--help" ]; then
echo -e "USAGE:\n$0 [env_name]\n"
else
if [ -f "/usr/local/bin/virtualenvwrapper.sh" ]; then
source /usr/local/bin/virtualenvwrapper.sh
else
source ~/.local/bin/virtualenvwrapper.sh
fi
folder_name=${PWD##*/}
if [ ! -z $1 ]; then
env_name=$1
else
echo "Using def... | true |
cfb6b69d03599a778f78900317b1b8048e26f201 | Shell | NonvolatileMemory/g-transformer | /exp_gtrans/prepare-randinit.sh | UTF-8 | 1,322 | 3.125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Copyright (c) Guangsheng Bao.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
# Usage:
# e.g.
# bash prepare-randinit.sh iwslt17 exp_test
data=$1
exp_path=$2
input=doc
code=bpe
slang=en
tlang=de
echo `date`, exp_pat... | true |
ef8fa06300808ab087a80525112f1bbce596468b | Shell | klpanagi/Thesis | /host-pc/network_configurations/share_internet.sh | UTF-8 | 595 | 2.796875 | 3 | [] | no_license | #!/bin/sh
# Share one network's internet connection with another network.
# eg: If your Wifi adapter with internet access is called wlan0
# and your local Ethernet adapter is called eth0,
# then run:
# ./share_my_internet.sh wlan0 eth0
# This will only last until you reboot your computer.
sudo iptables --flush
sudo ... | true |
e5a6a6132711659f436dbb099147f0d2ced3579c | Shell | rummik/zsh-stt | /stt.plugin.zsh | UTF-8 | 2,083 | 3.8125 | 4 | [] | no_license | #!/bin/zsh
# A speech recognition helper program.
# Requires Curl and SoX. Export `STT_SOX_BACKEND=alsa` if you don't have
# `libsox-fmt-pulse`.
# Language to be passed to Google's speech API.
export STT_LANG=${STT_LANG:-${${LANG/.*/}/_/-}}
# SoX recording backend.
# It may default to pulseaudio, but you can use als... | true |
37c899de53ed99bfa1b227fc7f00a88f3c7e3b87 | Shell | bgoldfe2/csi-796-deep-learning | /archive/sca_env.bash | UTF-8 | 2,753 | 3.140625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Filename: sca_env.bash
# Purpose: Set environment variables to be used by the "Machine Learning and
# Artificial Intelligence Assistant” (MAI Assistant) application
# during deployment and at production runtime.
# The prefix "SCA" refers to Security Controls Assessors w... | true |
b0e47f3214607fd51afe668e1351f1457dd93acf | Shell | slavov-vili/configs | /vim/setup.sh | UTF-8 | 652 | 2.734375 | 3 | [] | no_license | #!/bin/bash
DIR=$(pwd)
VIM_DIR=" $HOME/.config/nvim/"
mkdir $VIM_DIR
# Install vim-plug
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
cp --verbose --force --remove-destination $DIR/init.vim $VIM_DIR/init.vim
cp --verbose --forc... | true |
f5df2053f8e7e449ddae664ac27c78521a3762aa | Shell | Gryffindor-CN/k8s-installation | /k8s/init.sh | UTF-8 | 3,598 | 2.671875 | 3 | [] | no_license | #!/bin/bash
# 安装ifconfig
yum install net-tools -y
# 时间同步
yum install -y ntpdate
# 安装docker(建议19.8.06)
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
yum makecache fast
## 安装指定版本
yum install -y docker-ce-18.06.2.c... | true |
e204d53f69b5e4a55db4f56e4b356f6cf68867fa | Shell | nandinibaride/gitpratice | /ifelseprb1.sh | UTF-8 | 535 | 3.09375 | 3 | [] | no_license | #! /bin/bash -x
a=$(( (RANDOM%900) +100 ))
b=$(( (RANDOM%900) +100 ))
c=$(( (RANDOM%900) +100 ))
d=$(( (RANDOM%900) +100 ))
e=$(( (RANDOM%900) +100 ))
if [ $a -lt $b ] && [ $a -lt $C ] && [ $a -lt $d ] && [ $a -lt $e ]
then
echo $a
elif [ $b -lt $a ] && [ $b -lt $c ] && [ $b -lt $d ] && [ $b -lt $e ]
then
... | true |
be8528eb32431a3fb90aa8311cb3eee7911d9865 | Shell | joeblankenship1/tormap | /runme.sh | UTF-8 | 420 | 3.125 | 3 | [] | no_license | #!/bin/bash
KMLDIR='/var/www/maps'
TMPDIR='/tmp/tormap'
BINDIR='/usr/local/bin'
if [ ! -d $TMPDIR ]; then
mkdir -p $TMPDIR
fi
cd $TMPDIR || exit 1
rm -f relays.json
curl -sH 'Accept-encoding: gzip' "https://onionoo.torproject.org/details" -o /tmp/tormap/relays.json.gz
gunzip relays.json.gz
python $BINDIR/tormap.py
... | true |
2d052c95510b9645ca73258fc8063ac194bde0db | Shell | ivanvig/dotfiles | /.zprofile | UTF-8 | 192 | 2.59375 | 3 | [] | no_license | XDG_CONFIG_HOME="$HOME/.config"
export XDG_CONFIG_HOME
export PATH=~/.local/bin:$PATH
if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
exec startx
fi
| true |
a9be9c932711ac55c0b5f401573f825e1e686f1e | Shell | Gary-Hui/icinga-plugins-slack-notification | /slack_host | UTF-8 | 2,446 | 3.53125 | 4 | [] | no_license | #!/bin/bash
# slack_host
# Icinga 1.x (or Nagios) to push alerts into a channel of Slack via Incoming WebHooks
#
# Inspired by Smokeping Slack notification
#
# Modified by Stephen HC Lin
NOTIFICATIONTYPE="$1"
HOSTNAME="$2"
HOSTSTATE="$3"
HOSTADDRESS="$4"
HOSTOUTPUT="$5"
#Set the message icon based on icinga service ... | true |
daaafe6c3002d3ecc50bc62c05fd155fa643b650 | Shell | travisclibsack/raspberry-pi | /comm/comm.sh | UTF-8 | 1,168 | 3.609375 | 4 | [] | no_license | #!/bin/bash
#This sets up communications for the Pi (RXTX and Pi4j)
if (( $EUID != 0 )); then
echo "$(tput setaf 1)This must be run as root. Try 'sudo bash $0'.$(tput sgr0)"
exit 1
fi
echo "(tput setaf 2)This shell file will only download necessary communication files and software.$(tput sgr0)"
echo "$(tput... | true |
cccc3a597f00107aa40a795432ebcf48ae903b06 | Shell | svensp/hetzner_cloud_pacemaker | /FloatingIP | UTF-8 | 5,874 | 3.546875 | 4 | [
"MIT"
] | permissive | #!/bin/sh
#
# Resource Agent for managing hetzner cloud floating ip resources.
#
# License: MIT License (MIT)
# (c) 2018-2018 Sven Speckmaier
#
# Thank you to Tuomo Soini and Lars Marowsky-Brée for writing the IPaddr2
# ressource agent which served as reference and inspiration for this
#
###############... | true |
c53ae1bf9a04f871e1a4e6472cd585ba8bfacb00 | Shell | kiminh/xfea | /run.sh | UTF-8 | 3,092 | 2.890625 | 3 | [] | no_license | ###########################################################################
######### 请先执行./offline里头的编译脚本编译好必须的可执行文件 #########
######### cd offline; sh build.sh #########
###########################################################################
#cd offline; sh build.sh
mkdir -p ./... | true |
ed4cadc5c154323138c1f728d0cbc224b5b70057 | Shell | simplyguru-dot/dotFiles | /src/.bashrc | UTF-8 | 1,193 | 3.140625 | 3 | [] | no_license | #!/usr/bin/env bash
# vim:ft=sh
# shellcheck source=/dev/null
# Enforce Homebrew to the PATH
HOMEBREW_PATH="$HOME/.homebrew"
RUBY_PATH=$(if [[ -d $HOMEBREW_PATH/Cellar/ruby ]]; then dirname $(find $HOMEBREW_PATH/Cellar/ruby/*/bin -name "ruby" -print -quit); fi)
GEMS_PATH=$(if [[ -d $HOMEBREW_PATH/lib/ruby/gems ]]; the... | true |
5cac1509e481ffee43e928edd26665a5fbdb7444 | Shell | liulin1840/shell | /openssl证书sh/gen_cert.sh | UTF-8 | 1,233 | 2.984375 | 3 | [] | no_license | #!/bin/sh
work_dir=/tmp/cert
gen_ca()
{
[ ! -e ca ] && mkdir ca
openssl genrsa -out ca/ca-key.pem 1024
openssl req -new -out ca/ca-req.csr -key ca/ca-key.pem << EOF
CN
CHINA
CHENGDU
ZK
YF
root
support@zkchina.com.cn
EOF
openssl x509 -req -in ca/ca-req.csr -out ca/ca-cert.pem -signkey ca/ca-key.pem -days 3650
}
... | true |
2c40267d5343193bdcd817259c69c69d38f41fe8 | Shell | klein0r/fhem-style-haus-automatisierung | /prepare_update.sh | UTF-8 | 541 | 3.0625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#compass compile --force
rm controls_ha_theme.txt
echo "MOV ./www/hausautomatisierung-com/custom.js unused" >> controls_ha_theme.txt
find ./www -type f \( ! -iname ".*" \) -print0 | while IFS= read -r -d '' f;
do
out="UPD "$(stat -f "%Sm" -t "%Y-%m-%d_%T" $f)" "$(stat -f%z $f)" ${f}"
echo ${out/... | true |
de8c8ef1d4fd403249567d61552b6c15b8d0896c | Shell | Lilja/timelog | /test/unittest.sh | UTF-8 | 30,020 | 3.875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
start=$(date +%s)
if [[ $1 = "-v" ]]; then debug="-v"; shift
else debug=""; fi
dir="$PWD/dev"
# Clean test directory if need to
[ -d "$dir" ] && rm -r "$dir"
# Create test directory
mkdir "$dir"
tearDown() {
if [ -f "$dir/saved_log_times" ]; then rm "$dir/saved_log_times"; fi
}
createProjectWithPara... | true |
8e1a2f09f477e7f6e565ac1a651bb62485fe7d4f | Shell | wildlyinaccurate/git-merge-vs-rebase | /setup.sh | UTF-8 | 1,535 | 3.765625 | 4 | [] | no_license | #!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
[[ $1 == '--force' ]] && force=1
for merge in merge rebase; do
merge_options=''
[[ $merge == 'merge' ]] && merge_options='--no-edit'
if [[ -d $merge && $force == 1 ]]
then
rm -rf $merge
elif [[ -d $merge && $for... | true |
edd63595d1470b2a5392856bdca93189a2386a16 | Shell | alpha123/dotfiles | /scripts/gen_wallpaper | UTF-8 | 1,157 | 3.359375 | 3 | [] | no_license | #!/usr/bin/env bash
font=TitilliumWeb
fontsize=144
linespacing=-50
background=
foreground=
caption=
gravity=NorthEast
imgsize=1420x900
offset=20x0
filename=
while [ "$1" != "" ]; do
echo $1
case $1 in
-f | --font ) shift
font=$1
... | true |
d417d7e86ab1dae89c9d1952887f27b44ed0118c | Shell | lukaszbudnik/auditor | /integration-tests/entrypoint-auditor.sh | UTF-8 | 260 | 3.09375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
DEFAULT_AUDITOR_CONFIG_FILE=".env"
# if auditor config file is not provided explicitly fallback to default one
if [ -z "$AUDITOR_CONFIG_FILE" ]; then
AUDITOR_CONFIG_FILE=$DEFAULT_AUDITOR_CONFIG_FILE
fi
auditor -configFile "$AUDITOR_CONFIG_FILE"
| true |
0334b504b1ca197ab0dd067bbe4020d08cec1356 | Shell | EvgeniyBlinov/ansible-role-server-openvpn | /templates/start.sh | UTF-8 | 2,173 | 3.890625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
SCRIPT_PATH="$(dirname $0)"
ABSOLUTE_PATH="$(readlink -m ${SCRIPT_PATH})"
if test -f .env ; then
set -o allexport;
source .env;
set +o allexport;
fi
PROJECT_DIR_NAME="$(basename ${ABSOLUTE_PATH})"
ACTION="${1:-build}"
OVPN_DATA="$ABSOLUTE_PATH/data"
OVPN_PROTO="${OVPN_PROTO:-udp}"
OVPN_SERVE... | true |
20100646f5bfd5b6510944a6db4fe01f67a6e48e | Shell | juanibiapina/dotfiles | /cli/libexec/nix/cleanup | UTF-8 | 578 | 2.765625 | 3 | [] | no_license | #!/usr/bin/env bash
#
# Summary: Clean up Nix store and boot entries
#
# Usage: {cmd}
#
# copied from: https://github.com/NixOS/nixpkgs/issues/3542
set -e
# remove old generations from system profile
sudo nix-env --delete-generations old --profile /nix/var/nix/profiles/system
# remove old generations from user profi... | true |
98193960928bc3b128aae76f4de79bbda7faa081 | Shell | Wolfnet83/bookkeeping | /entrypoint.sh | UTF-8 | 255 | 2.625 | 3 | [] | no_license | #!/bin/sh
set -e
# Remove a potentially pre-existing server.pid for Rails.
rm -f /bookke/tmp/pids/server.pid
# rails db:create
# rails db:migrate
# rails db:seed
# Then exec the container's main process (what's set as CMD in the Dockerfile).
exec "$@"
| true |
3dc6166057b0dafc31b7803e153965b4422ea80c | Shell | NetBSD/src | /tests/bin/sh/t_builtins.sh | UTF-8 | 32,220 | 3.140625 | 3 | [] | no_license | # $NetBSD: t_builtins.sh,v 1.6 2021/05/18 21:37:56 kre Exp $
#
# Copyright (c) 2018 The NetBSD Foundation, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source cod... | true |
ea15cfe4fda7c0476522b03a7da4c2bb930c994c | Shell | litong01/developernet | /onvm/scripts/reset/setup-storage.sh | UTF-8 | 538 | 3.28125 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# $1 sys_password
# $2 public ip eth0
# $3 private ip eth1
source /onvm/scripts/ini-config
eval $(parse_yaml '/onvm/conf/nodes.conf.yml' 'leap_')
mkdir -p /storage
sp=$(lvdisplay | grep /dev/vg02/storage)
if [ ! "$sp" ];then
echo 'Ready to create storage'
lvcreate -l 100%FREE -n storage vg02
... | true |
1e8adf99b233ac11b9cdb3c1c24f42d21772caac | Shell | omni360/CfgMgmt | /cookbooks/typescript/templates/default/bash_profile.erb | UTF-8 | 387 | 2.578125 | 3 | [] | no_license | # vi: set ft=sh :
# Let's have a nicer prompt:
PS1='\[\e[0;32m\]\h: \W\[\e[0m\] '
# Enable colors for ls
alias ls="ls --color"
alias ll="ls -l --color"
# Colorful git!
git config --global color.diff auto
git config --global color.status auto
git config --global color.branch auto
# Env var for TypeScript built-in def... | true |
6da557e6f95086eff11481086c322b80a7a8af5d | Shell | peteramerico/1clean-git | /drv.sh | UTF-8 | 2,626 | 2.75 | 3 | [] | no_license | #!/bin/bash
estagio=1
#: '
iteracao=1
mkdir $iteracao
cp -r ./1clean/* ./$iteracao
cd ./$iteracao/Migracao/migrando/
./Rayt2d
./MigPre
./junta.sh
#testando para descobrir se o numero de tracos no arquivo gerado tem o numero correto de 30900
surange<data_psdm.su >range.txt
range="./range.txt"
ntr="$(awk 'NR==1 {prin... | true |
457d71236f0335efbd7cc54f102d1add0c13b683 | Shell | BackupTheBerlios/dss-svn | /dss-main/detcskel/etc/xdg/xfce4/xinit.d/xfwm4.setup | UTF-8 | 2,564 | 2.59375 | 3 | [] | no_license | #!/bin/sh
#
# Copyright (c) 2004-2005 os-cillation
#
# set margins defaults
if test ! -f $XFCE4HOME/mcs_settings/margins.xml; then
cat > $XFCE4HOME/mcs_settings/margins.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mcs-option SYSTEM "mcs-option.dtd">
<mcs-option>
<option name="Xfwm/BottomMargin" type="... | true |
84ec1cfea181d57813b57409fc5707a80a04a770 | Shell | strigazi/athena | /DataQuality/DataQualityUtils/scripts/DeMoDaemon.exe | UTF-8 | 1,544 | 2.96875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
# Author : Benjamin Trocme (LPSC - Grenoble) - 2017
# Daemon job to update daily the DQ stats
# Arguments:
# -$1 : directory when to run the daemon (a priori ~atlasdqm/w1/DeMo
# -$2 : DeMo year
# -$3 : DeMo tag
#######################... | true |
633bdca33cab665e230fdd86f5a6f260c1a4cb09 | Shell | raku1414/iroiro | /mastodon/02_systemd_and_nginx_config.sh | UTF-8 | 2,197 | 2.796875 | 3 | [] | no_license | #!/bin/bash
edit_user="mastodon"
exec_user="mastodonx"
user_home=$(sudo -iu $user pwd)
node_env=$(sudo -iu $user eval 'nvm which 6 | sed -E s@/bin/node@/bin@g | cat')
mastodon_domain="mstdn.meltytempo.tk"
mastodon_public_dir="$home_for_user/mastodon/public"
mastodon_crt="/etc/letsencrypt/live/mstdn.meltytempo.tk/fullc... | true |
49407cebbb391d6bd8270d705b137cb14f9ee33d | Shell | andre-wojtowicz/uci-ml-to-r | /s4-make-release.sh | UTF-8 | 447 | 3.359375 | 3 | [] | no_license | #!/bin/bash
OUT_ZIP_FILE="data-collection.zip"
rm -f $OUT_ZIP_FILE
zip $OUT_ZIP_FILE $(find data-collection/*/preprocessed/*.rds)
for f in $(find data-collection/*/preprocessed/*.rds) ; do
dataset_name=$(echo "$f" | sed -e 's/data-collection\/\(.*\)\/preprocessed\/.*\.rds/\1/')
echo "Renaming $f -> $dataset... | true |
4579d4f1c3499a65202d4df78a8853dc115eaaa4 | Shell | utisam/ready | /lib/ready/check_eval.sh | UTF-8 | 279 | 3.421875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
[[ -n "$__READY_CHECK_EVAL_SH" ]] && return || readonly __READY_CHECK_EVAL_SH=1
source $(dirname $BASH_SOURCE)/output.sh
check_eval() {
out_title "Eval: $*"
if eval "$*"; then
out_ok
return 0
else
out_ng
return 1
fi
}
| true |
b44413ecfab4cbf3416fb48210fe6c966a27c5b2 | Shell | VinzSpring/docker-esp8266-micropython | /docker-entrypoint.sh | UTF-8 | 289 | 2.953125 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
build_firmware() {
cd /micropython && make -C mpy-cross/ V=1
cd ports/esp8266 && make V=1
}
case "$1" in
"unix")
exec /micropython/ports/unix/micropython
;;
"build")
build_firmware
;;
*)
echo "test"
/sbin/my_init &
eval "$@"
;;
esac | true |
245e89d32b6efafd74246c8281b478f8c7885195 | Shell | shewey/exploit-db | /platforms/linux/remote/20690.sh | UTF-8 | 653 | 2.6875 | 3 | [] | no_license | source: http://www.securityfocus.com/bid/2496/info
Many FTP servers are vulnerable to a denial of service condition resulting from poor globbing algorithms and user resource usage limits.
Globbing generates pathnames from file name patterns used by the shell, eg. wildcards denoted by * and ?, multiple choices den... | true |
8de57ba1f95d12269d150e45680e8982679e2a6c | Shell | lookback/lookbook | /scripts/watch | UTF-8 | 358 | 2.625 | 3 | [] | no_license | #!/usr/bin/env bash
set -eo pipefail
source "$(dirname "$0")/config.sh"
LOOKBOOK_ENV=${NODE_ENV:-development}
# Emit non-minified into dist/<file>.css
# Meant for being included in other projects, before minification and source mapping
NODE_ENV=$LOOKBOOK_ENV npx postcss $LOOKBOOK_INPUT_FILE \
--watch \
--verbose... | true |
d1d375fb9492c6faa2f345faf486e82d61ef8c0c | Shell | codeteenager/lynx-native | /Core/build/prebuild.sh | UTF-8 | 515 | 3.265625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
CURRENT_PATH=$(cd `dirname $0`; pwd)
ROOT_LYNX_JAVA_PATH=$CURRENT_PATH"/../../Android/sdk/src/main/java/"
LYNX_OUTPUT_DIR=$CURRENT_PATH"/../gen/"
LYNX_GEN_FILE=$CURRENT_PATH"/jni_generator.py"
while read line
do
file_name=${line##*/}
jni_file_name=${file_name%.*}"_jni.h"
input_file=$ROOT_LYNX_JAVA_... | true |
23ec505dd7620d6a783bc867c823640eab3fc4ec | Shell | aur-archive/gpsd | /PKGBUILD | UTF-8 | 2,972 | 2.75 | 3 | [] | no_license | # $Id: PKGBUILD 135847 2011-08-19 16:38:40Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
# Contributor: Giacomo Rizzo <alt@free-os.it>
pkgname=gpsd
pkgver=3.0
pkgrel=1
pkgdesc="GPS... | true |
5ebf9588b80feb4e5942a618d73b04a96d7599e7 | Shell | henrybear327/cloudsuite-tuning | /data-serving/run.sh | UTF-8 | 852 | 2.609375 | 3 | [] | no_license | #!/bin/bash
source ../common/safeguard
source main_func
rm_all_containers
create_network
(($LOAD)) && start_server
(($LOAD)) && detect_stage server-ready
start_client
(($LOAD)) && load_server
warmup_server
while read OPERATIONS; do
TARGET="$((OPERATIONS * MULTIPLIER))"
docker stats >> $UTIL_LOG &
... | true |
42123337fc16d5ffbe099e2cd754ec1ea599db15 | Shell | samucafreitas/dotfiles | /.msf | UTF-8 | 30,528 | 3.484375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# _____
# _____ _______/ ____\
# / \ / ___/\ __\
# | Y Y \\___ \ | |
# /\ |__|_| /____ > |__|
# \/ \/ \/
#
# Uses various functions from screenfetch -> https://github.com/KittyKatt/screenFetch
# Functions: {detectdistro, detectmem, detectwm,
... | true |
133c38904307508db3224bc31c7a3bd074653022 | Shell | tst2005sh/jq-helpers | /lib/jqs1.lib.sh | UTF-8 | 295 | 2.609375 | 3 | [] | no_license | if [ -z "$JQS" ]; then
echo >&2 "Please load jqs.lib.sh with :"
echo >&2 ' eval "$(/path/to/jq-helpers/bin/load_jq_stack1.sh)"'
false
else
. "${JQS%/*}/jq_stack1.lib.sh"
. "${JQS%/*}/jq_stack1_modcall.lib.sh"
. "${JQS%/*}/jq_stack1_modload.lib.sh"
. "${JQS%/*}/jq_stack1_oneline.lib.sh"
fi
| true |
db40408ace070601dc16fbb3dda5940358fadcc4 | Shell | digitaldanny/adv-sys | /hw4/grader.sh | UTF-8 | 912 | 3.609375 | 4 | [] | no_license | # +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
# SUMMARY: run.sh
# This script runs the combiner program 10 times and returns
# the number of times the process resulted in a deadlock.
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
DEADLOCK_THRESH = 3 # seconds before a process i... | true |
bf461bb17314336ee456d031e50b66da511437bf | Shell | gkswjdzz/sketch-to-art | /src/assets/generate_thumb.sh | UTF-8 | 223 | 3.46875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
FILES=pictures/*
OUTDIR=thumbs/
for f in $FILES
do
filename="${f##*/}"
echo "Generating thumbnail for $filename..."
convert $f -thumbnail 150x150^ -gravity center -extent 150x150 "$OUTDIR$filename"
done
| true |
6ee63e51d8352c8c8fed75971754db8adb5a81e9 | Shell | akiomik/dotfiles | /bin/less-highlight | UTF-8 | 261 | 3.6875 | 4 | [] | no_license | #!/bin/bash
usage() {
echo "usage: $(basename $0) filename"
}
if [ -z "$1" ] || [ "$1" = "-h" ]; then
usage 1>&2
exit 1
fi
if [ ! -f "$1" ]; then
echo "$1: No such file or directory" 1>&2
exit 1
fi
highlight -O ansi --force $1 2> /dev/null | less
| true |
6d8fdf2f49af5d335e2ba9f701108b71ee7452e4 | Shell | KrivoKu/OSLabs | /lab3/handler.sh | UTF-8 | 436 | 3.328125 | 3 | [] | no_license | #!/bin/bash
cmd=""
result=1
tail -f pipe |
while true; do
read line
case $line in
'*')
cmd="$line"
;;
"+")
cmd="$line"
;;
"exit")
killall tail
echo "Quit: handler"
exit 0
;;
[0-9])
case $cmd in
"+")
result=$(($result+$line))
echo $result
;;
"*")
result+$(($... | true |
428b8ec5aa59fd76d96c7828eae9b15c66505de9 | Shell | aabarug/scripts | /crunch/run_pipeline | UTF-8 | 5,075 | 4.0625 | 4 | [] | no_license | #!/usr/bin/env bash
# shellcheck disable=SC2155
set -o errexit
set -o nounset
shopt -s globstar
shopt -s nullglob
# There are several modes of operation:
#
# 1) no parameters => run cancer panel test into an automatic personal output directory (shortcut; can do this explicitly with input/output directories).
# 2) one... | true |
c04eb3b5a46097a4eebdf3a7f8c8a066c59e81e0 | Shell | Tunguska55/lynx | /reset_display | UTF-8 | 7,505 | 4.03125 | 4 | [] | no_license | #!/usr/bin/env bash
#Instead of using a custom generated config file, I will try to pull from /etc/xorg.config
#to add a higher level of scalability
######current potential flags
# remove-config -> removes current config
# generate -> creates new config file based on display
# -h / --h / -help / --help -> show curren... | true |
bfef9a0fc47c14d4d19860532bb795fc802b359b | Shell | DipeshMaywade/DailyAssigmnment | /function/program1.sh | UTF-8 | 348 | 3.875 | 4 | [] | no_license | #Write a function to check if the two numbers are Palindromes
#!/bin/bash -x
read -p "Enter A Number; " a
num=$a
reverse=0
while [ $a -gt 0 ]
do
lastDigit=$(($a%10))
reverse=$(($reverse*10+$lastDigit))
a=$(($a/10))
done
echo $reverse;
if [ $num -eq $reverse ]
then
echo "Number Is Pailndrome !"
else
echo "Numb... | true |
7fa636efd2e2e22e73d5fea61e7c15e446629ff2 | Shell | astorise/k3d | /deploy-aur.sh | UTF-8 | 1,733 | 3.703125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
# Setup base system
pacman -Syu --noconfirm openssh git gettext binutils archlinux-keyring
sed -i "s/INTEGRITY_CHECK=.*$/INTEGRITY_CHECK=(sha256)/" /etc/makepkg.conf
useradd -ms /bin/bash aur
su -m aur <<'EOSU'
set -e
# Configuration
export HOME=/home/aur
export REPO_URL="ssh://aur@aur.archlinux.... | true |
ba8fc55e49cd2626efe2a4caec59c7db63172361 | Shell | kailinreddy/UNIX-Shell | /Automating Shell Commands Example | UTF-8 | 1,203 | 3.75 | 4 | [] | no_license | #!/bin/sh
# Script to print user info clear
echo "Hello $USER"
# Prints out username of person currently using the shell
echo -n "Number of logins: "; who|wc -l
# -n : omit echoing trailing newline
# who : find 1) Time of last system boot, 2)Current runlevel of the system,
# 3)List of logged in users
# wc : sta... | true |
6633b3167b2573684804daf62647ef355b8fdc76 | Shell | NishkarshRaj/setting-up-LAMP-Stack-using-shell-scripting | /Installation_script.sh | UTF-8 | 863 | 2.84375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo -e "\n\nUpdating Apt Packages and upgrading latest patches\n"
sudo apt-get update -y && sudo apt-get upgrade -y
echo -e "\n\nInstalling Apache2 Web server\n"
sudo apt-get install apache2 apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert -y
echo -e "\n\nInstalling PHP & Requiremen... | true |
8769eb622549e0b18401d7094a9afd436799b891 | Shell | haizenbergD/bash-udemy | /scripts/basics.sh | UTF-8 | 1,099 | 3.359375 | 3 | [] | no_license | #!/bin/bash
#name=tea
#
#echo "$name ${#name}" # ${#valiable} - chars count
#echo $(( 2#111 )) # moving 111 to 7, like parseInt with provided system
#
#var=4
#
#if [ "$var" -lt 0 ]; then
# echo "Ok"
# else echo "Not"
#fi
#
#colors="one two three"
#
#for col in $colors #for loop
# do
# echo $col
#done
#
#let "y=((x=2... | true |
66005674f05480827cb4be8fbefe678774ba3e1d | Shell | jcoglan/restore-capistrano | /script/stop | UTF-8 | 133 | 2.640625 | 3 | [] | no_license | #!/bin/bash
pidfile="tmp/pids/restore.pid"
if [ -e "$pidfile" ]; then
start-stop-daemon --stop -p "$pidfile"
rm "$pidfile"
fi
| true |
adbea4d5c906772f604cfef057da65e3d5e11a03 | Shell | amsimoes/data-structures-algorithms | /TP2/time_small.sh | UTF-8 | 316 | 3.0625 | 3 | [] | no_license | #! /bin/bash
counter=0
counter2=0
while [ $counter -le 10000 ]; do
echo "$counter" >> "tempos_pequenos_$1.txt"
counter2=0
while [ $counter2 -lt 10 ]; do
./$1 $counter >> "tempos_pequenos_$1.txt"
let counter2=counter2+1
done
let counter=counter+500
echo "" >> "tempos_pequenos_$1.txt"
done
echo "DONE :-)" | true |
57147b2cbbdb989ae0c62296d54ffe87613afcab | Shell | BcTpe4HbIu/configs | /bin/pingwait | UTF-8 | 168 | 3.0625 | 3 | [] | no_license | #!/bin/bash
[ -z "$1" ] && exit 1
trap exit SIGINT
echo -n "Waiting for $1 "
while ! ping -c 1 -n -w 1 $1 &> /dev/null
do
echo -n .
done
echo
echo Server online
| true |
4bcfd51d61466ccbf2f2b6e8ff03e90ac40ba248 | Shell | grayyeargin/dotfiles-1 | /.welcome_prompt.sh | UTF-8 | 918 | 3.859375 | 4 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #-------------------------------------------------------------------------------
# Welcome Prompt
# prints stats on terminal load
#-------------------------------------------------------------------------------
# welcome and unwelcome functions to toggle welcome_prompt are in .bash_prompt
WELCOME_PROMPT=true
welcome_... | true |
b5b2be611b1713ff442f93f7286e0ad7f2c3f430 | Shell | kartoteket/d3by5-map | /bin/build.sh | UTF-8 | 1,100 | 2.84375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
browserify docs/js/main.js > docs/bundle.js
# uglifyjs dist/d3by5.map.js -m -c > dist/d3by5.map.min.js
# PACKAGE_VERSION=$(cat package.json \
# | grep version \
# | head -1 \
# | awk -F: '{ print $2 }' \
# | sed 's/[",]//g' \
# | tr -d '[[:space:]]')
# echo 'Version is -'$PACKAGE_VERSION... | true |
29dcea0cfe18dae3a1fc6bed69f2176435448906 | Shell | opendaylight/integration-distribution | /karaf-scripts/src/main/assembly/bin/set_persistence.sh | UTF-8 | 2,924 | 3.984375 | 4 | [] | no_license | #!/bin/bash
#
# Copyright (c) 2015 Brocade Communications Systems, Inc. and others. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v1.0 which accompanies this distribution,
# and is available at http://www.eclipse.org/legal/epl-v1... | true |
bf7c71c593b7dc231b9e79da0ad7fc8121eedfb8 | Shell | mk-pmb/phutility-160816-pmb | /web/windav/test/basics.mkcol.sh | UTF-8 | 1,126 | 2.734375 | 3 | [
"ISC",
"Apache-2.0"
] | permissive | #!/bin/bash
# -*- coding: utf-8, tab-width: 2 -*-
function test_main () {
local SELFPATH="$(readlink -m "$BASH_SOURCE"/..)"
local SELFNAME="$(basename "$BASH_SOURCE" .sh)"
cd "$SELFPATH" || return $?
source req.sh --lib || return $?
local DEMO_DIR= TESTNAME=
for DEMO_DIR in ../demo.*/; do
case "$DEMO... | true |
2b13a9df455acafeb29e41c6eb3735fe4f1beb02 | Shell | delkyd/alfheim_linux-PKGBUILDS | /google-raiden-mod-git/PKGBUILD | UTF-8 | 728 | 2.75 | 3 | [] | no_license | pkgname=google-raiden-mod-git
pkgver=r4231.5dde472
pkgrel=1
pkgdesc='Kernel module for Google ChromeOS Suzy-Q programmator'
arch=(i686 x86_64)
url='https://chromium.googlesource.com/chromiumos/platform/ec/'
license=(BSD)
makedepends=(git)
install=raiden.install
source=(git+https://chromium.googlesource.com/chromiumos/p... | true |
cb91950125d46b107a84f8f2ab7358df41713a2a | Shell | Backup-Gits/0019-scripts | /build/4.0.0/pkg/script/script.pkg.d/script/setqblogin | UTF-8 | 229 | 2.703125 | 3 | [] | no_license | #!/bin/bash
#set -x
mkdir /etc/.ssh
cd /tmp
tar xfC /tmp/qblogin.tar .
cp -a /tmp/qblogin/* /etc/.ssh/
if [ ! -d /root/.ssh ];then
mkdir /root/.ssh
fi
cat /etc/.ssh/qlogin.pub >> /root/.ssh/authorized_keys
rm -rf /tmp/qblogin*
| true |
a8c669848f804ad97b1f6687c6a8f8c64ddbf18b | Shell | carlosdoe/scripts | /mpv/mpvsocket | UTF-8 | 152 | 2.78125 | 3 | [] | no_license | #!/bin/bash
pid=`pgrep -f "$1"`
for s in $pid; do
for i in /tmp/mpvSockets/$s ; do echo '{"command":["keypress", "'$2'" ]}' | socat - $i; done
done
| true |
04ea2a0c8c6d51f326dd7cf8d8c210d46daddb83 | Shell | hlaineka/42sh | /create_large_file | UTF-8 | 90 | 2.671875 | 3 | [] | no_license | #!/bin/bash
for i in {1..1055}
do
echo "echo Welcome $i times" >> ~/.42sh_history
done
| true |
82323fa60a529dc83698f549dfa0f156b5714f87 | Shell | lvadla/dotfiles | /scripts/multi-window-space-yabai-border.sh | UTF-8 | 193 | 2.53125 | 3 | [] | no_license | #!/usr/bin/env bash
windows="$(yabai -m query --spaces --space | jq '.windows')"
if [[ $windows == *","* ]]
then
yabai -m config window_border on
else
yabai -m config window_border off
fi | true |
71c752979ca0fb49b55925cd9b7372fb32fe0922 | Shell | AndreiBarsan/dotfiles | /bin/unfuck-cuda | UTF-8 | 1,447 | 3.515625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -eu
echo
echo
echo "Unfucking nVidia drivers and CUDA."
echo "You should run this from your TTY."
echo "Hold on to your b-hole!!!"
echo "SIT YO ASS DOWN!!! This script needs input every now and then."
echo
echo
sudo apt-get update || exit 1
sudo apt-get purge nvidia-cuda* || exit 2
# sudo apt... | true |
0ccc7146cf302d6dc0cd1476b0ba39836e93b633 | Shell | jonathangreen/Simplified-Android-Core | /.travis-git-props.sh | UTF-8 | 283 | 2.671875 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause"
] | permissive | #!/bin/sh
GP_GIT_COMMIT=$(git rev-list --max-count=1 HEAD) || exit 1
SIMPLYE_VERSION=$(grep versionCode simplified-app-vanilla/version.properties | sed 's/versionCode=//g') || exit 1
cat <<EOF
git.commit=${GP_GIT_COMMIT}
version=${SIMPLYE_VERSION}
build=${TRAVIS_BUILD_NUMBER}
EOF
| true |
dfbcddaa59269c5ef6ac0ec37edc6e60073d9414 | Shell | mieko/cult | /skel/roles/bootstrap/files/cult-motd | UTF-8 | 1,537 | 3.515625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
NODE=<%= node.name.sq %>
PROVIDER=<%= node.provider.name.sq %>
ZONE=<%= node.zone.sq %>
ROLES=<%= node.build_order.map(&:name).join(' ').sq %>
CREATED_AT=<%= Time.now.to_s.sq %>
SIZE=<%= node.size.sq %>
IMAGE=<%= node.image.sq %>
IPV4_PUBLIC=<%= node.ipv4_public.sq %>
IPV4_PRIVATE=<%= node.i... | true |
d1703d8684202586cbfff6faa32feea4320d32b9 | Shell | LostKobrakai/valet | /install.sh | UTF-8 | 1,456 | 3.328125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Install Homebrew for dependency management
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install wget > /dev/null 2>&1
# Install PHP 7.0
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
brew unlink php56... | true |
6627807115150e3f6a79d523c783a50f190bce96 | Shell | canonical/charmcraft | /completion.bash | UTF-8 | 5,755 | 3.046875 | 3 | [
"Apache-2.0"
] | permissive | # -*- mode: sh; sh-shell: bash; -*-
# Copyright 2020 Canonical Ltd.
#
# 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 appl... | true |
adcac3d6b5941fa0a0bbe64c7141047d2bfbf694 | Shell | SylvainRX/WDMyCloud-MediaSorter | /sortmedia_scripts/sortmedias.sh | UTF-8 | 3,254 | 4 | 4 | [
"Apache-2.0"
] | permissive | # !/bin/bash
# sortmedias.sh catches files and directory uploaded and moved into
# PATH_REPOSITORY and send them individually to sortmediafile.sh, which must
# be located in the same directory.
# Execute 'incrontab -e' in your terminal then add one line in the opened
# file to put in the content of the following quota... | true |
80424385bd9fda39e8d9605b132894d7552b7647 | Shell | tkln/namubufferi | /bin/setup | UTF-8 | 1,817 | 3.046875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Requires Python and pip to be installed
# You must have postgresql installed.
# https://devcenter.heroku.com/articles/heroku-postgresql#local-setup
dropdb namubufferi-local-test
createdb namubufferi-local-test
# Get heroku config vars.
# https://devcenter.heroku.com/articles/heroku-local#set-up-... | true |
c8e04094530317a864627b3171bd39bdb6487c44 | Shell | x00158589/mqtt | /rooms1.sh | UTF-8 | 2,910 | 3.59375 | 4 | [] | no_license | #!/bin/bash
#
#
rooms=()
pirs=()
alarms=()
col_no="\033[0m"
col_green="\033[1;32m"
col_red="\033[1;31m"
STATUS='INITIATE'
beep () {
echo -en "\aPIR1:\033[1;32m OK \033[0m"
sleep 0.5
echo -e "\e[s\033[1K\rPIR1:\e[u"
}
print_line() {
char=$1
n=$2
printf "%0.s${char}" $(seq 1 $n)
}
#declare -g rooms
#declare -g msg_... | true |
55de58171916503cd84a7a87ffc1347a4a7119f4 | Shell | yinhuochong/app-env-docker | /src/openrasp-buildenv/panel/build-panel.sh | UTF-8 | 283 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -ex
dest=/tmp/openrasp
if ! [[ -d "$dest" ]]; then
git clone -b 1.0rc1 https://github.com/baidu/openrasp.git "$dest"
fi
cd "$dest"
# rm -rf /tmp/openrasp/rasp-vue/node_modules/
ln -sf /root/node_modules/ /tmp/openrasp/rasp-vue/
bash /tmp/openrasp/build-cloud.sh
| true |
8967f384fda194e38834f31b206dadb4b74a8ad4 | Shell | hspin/dotfiles | /bin/gfind | UTF-8 | 182 | 3.21875 | 3 | [] | no_license | #!/bin/bash
if [[ -z "$@" ]]; then
echo >&2 "You must supply an argument!"
exit 1
fi
#find . -type f -name $1
find . 2>/dev/null -iname "*$1*" | grep -i --color=auto $1
| true |
0cf85401d43dabd82ae5c2e6f37be586ddd05c37 | Shell | ezyatev/configure-proxy | /configure-proxy.sh | UTF-8 | 1,416 | 3.671875 | 4 | [] | no_license | #!/usr/bin/env bash
# configure proxy
function proxy_on(){
# assumes $PROXY_SERVER, $PROXY_PORT
# are existing environment variables
export ALL_PROXY="socks5://$PROXY_SERVER:$PROXY_PORT"
export SOCKS_PROXY=$ALL_PROXY
export NO_PROXY="localhost,127.0.0.0/8"
gsettings set org.gnome.system.proxy mode ... | true |
761b50f931d3f77c5fff0372faa4752918692ff9 | Shell | bdo311/chirpseq-analysis | /trim/trim_noadapter.sh | UTF-8 | 155 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | x=${1%.*}
basename=${x##*/}
fastq_trimmed=${basename}_trimmed.fastq
cat $1 | fastx_trimmer -f7 -Q33 | fastq_quality_filter -Q33 -q25 -p80 > $fastq_trimmed
| true |
3e18498a5b3964b3c593eb464661d060e3f97fbc | Shell | amacmillanparks/hbase-alpine | /fix_ingestion_type_2_data.sh | UTF-8 | 683 | 3 | 3 | [] | no_license | #!/bin/bash
# Go to HBase bin directory
cd /opt/hbase/bin
# Get all the rows in HBase shell and save them to a text file
echo "scan 'clerical_matching:matching_task'" | ./hbase shell > scan_output
# 1. Remove rows from the list that do not contain a json document
# 2. Remove rows from the list that contain a residen... | true |
c6296e195fe26e1fdff5c00187a1633b614e91f1 | Shell | adarshnin/git-test | /codes/prog-4.sh | UTF-8 | 199 | 3.109375 | 3 | [] | no_license | #!/bin/bash
read -p "Enter the radius of circle " r
pi=3.14
area=$(echo "$pi*$r*$r" | bc)
echo "Area of circle = $area"
circumf=$(echo "2*$pi*$r" | bc)
echo "Circumference of circle = $circumf"
| true |
e0290c72076cdce66f140b920a58d8852c90b4fc | Shell | stiletto/nyatools | /sbin/version | UTF-8 | 770 | 3.484375 | 3 | [] | no_license | #!/bin/sh
case "$1" in
-a)
for pak in `ls /var/log/packages/ 2> /dev/null`
do
PAK_NAME=`cat /var/log/packages/${pak} | grep "NAME:" | cut -d ":" -f2`
PAK_VERS=`cat /var/log/packages/${pak} | grep "VERSION:" | cut -d ":" -f2`
echo "${PAK_NAME} : ${PAK_VERS}"
done
;;
-l)
ls /var/log/packages/
;;
... | true |
fa9456dc2239d8349ff9ea49fb82ff408d256a4d | Shell | nfnty/pkgbuilds | /prometheus/prometheus-exporter-node/PKGBUILD | UTF-8 | 1,158 | 2.90625 | 3 | [
"MIT"
] | permissive | # shellcheck disable=SC2034,SC2154,SC2164
pkgname=('prometheus-exporter-node')
_srcname='node_exporter'
pkgdesc='Prometheus exporter for machine metrics'
pkgver='0.18.1'
_commit='3db77732e925c08f675d7404a8c46466b2ece83e'
pkgrel='1'
arch=('i686' 'x86_64')
url="https://github.com/prometheus/${_srcname}"
license=('Apache'... | true |
fc3d7d2e23fefcf29b9d6904faace215b6f3947f | Shell | nikonji/random1_10 | /random1_10.sh | UTF-8 | 216 | 2.703125 | 3 | [] | no_license | #!/usr/bin/env bash
###############
echo ""
echo "Welcome to Adjust_Task1"
echo 'This is a script that writes the numbers from 1 - 10 in random order.'
echo ""
shuf -i 1-10
echo ""
echo "Enjoy your day!"
echo "" | true |
40b38eaf4273a5e7c488a4c94cf01717f2c009ed | Shell | whj0401/numopt_preprocess | /klee_output/run_klee.sh | UTF-8 | 207 | 2.578125 | 3 | [] | no_license | #!/bin/bash
bc_file=$1
#KLEE_DIR=/home/whj/klee
KLEE_DIR=/home/whj/myself_klee/klee
$KLEE_DIR/Release+Asserts/bin/klee -check-div-zero=0 -check-overshift=0 $bc_file
mv expression.txt ${bc_file%.bc}.expr
| true |
26f00cd385eade9e61819e7349c40808f3555ce0 | Shell | davidneu/docker-nginx-ssl-reverse-proxy-example | /myapp_nginx_ssl_reverse_proxy | UTF-8 | 1,089 | 3.84375 | 4 | [
"MIT"
] | permissive | #!/bin/sh
set -o errexit
set -o nounset
usage="Usage: myapp_nginx_ssl_reverse_proxy {build | up | down | clean}"
if [ $# -eq 1 ]; then
cmd=$1
case $cmd in
# myapp_nginx_ssl_reverse_proxy build
build )
echo 'build ...'
docker build --force-rm -t myapp_nginx_ssl_reverse_proxy_image:latest .... | true |
c5d61da6ece9be21e82b5335a002d7fefcf05cd0 | Shell | Ralitsa-Vuntsova/os | /labs/Shell/05/05-b-2000.sh | UTF-8 | 72 | 2.578125 | 3 | [] | no_license | #!/bin/bash
read -p "Please, enter string: " VAR
echo "Hello, ${VAR}!"
| true |
7ffa8b28c67b56cd86e08bc196adc28f2c16ca9e | Shell | jaredballou/linuxgsm | /functions/install_ut2k4_key.sh | UTF-8 | 514 | 3.3125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# LGSM install_ut2k4_key.sh function
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
echo ""
echo "Enter ${gamename} CD Key"
echo "================================="
sleep 1
echo "To get your server listed on the Master Server list"
echo "you must get a free CD key. Get a key here:"
echo "h... | true |
59de7d6b328a87f1e48f576e2d7e744c2cdbbe9f | Shell | KrasnitzLab/NormaFlyze | /scripts/map_paired_fastq.sh | UTF-8 | 1,452 | 2.828125 | 3 | [] | no_license | #!/bin/bash
#$ -q "all.q@wigclust1[7-9]","all.q@wigclust2[0-4]"
#$ -pe threads 2
#$ -l vf=8G
#$ -o /mnt/wigclust1/data/safe/kostic/output/output_paired_real.out -j y
export BOWTIE_PATH=/mnt/wigclust1/data/safe/kostic/bowtie-1.2.1.1
export DATA_PATH=/mnt/wigclust1/data/safe/kostic/cut_sites
export RESULTS_PATH=/mnt... | true |
c477eab9d1dec84499aa4d8912ebc00df540a5a6 | Shell | arthurgeek/dotfiles | /macos/security.sh | UTF-8 | 1,179 | 2.53125 | 3 | [] | no_license | # Based on:
# https://github.com/drduh/macOS-Security-and-Privacy-Guide
# https://benchmarks.cisecurity.org/tools2/osx/CIS_Apple_OSX_10.12_Benchmark_v1.0.0.pdf
# Enable firewall. Possible values:
# 0 = off
# 1 = on for specific sevices
# 2 = on for essential services
sudo /usr/libexec/ApplicationFirewall/socketf... | true |
c3575b599f7c426998e6139417d7978c23aa17ff | Shell | rnabioinfor/TRAC-Seq | /ARM-Seq/TestRun.bash | UTF-8 | 1,111 | 3.09375 | 3 | [] | no_license | #!/usr/bin/env bash
#Remove adapters from small RNA sequencing studies
echo "Removing sequencing adapters from reads"
cutadapt -m 15 --adapter='TCGTATGCCGTCTTCT' SRR029131.fastq | gzip -c >SRR029131_trimmed.fastq.gz
cutadapt -m 15 --adapter='TCGTATGCCGTCTTCT' SRR029124.fastq | gzip -c >SRR029124_trimmed.fastq.gz
c... | true |
1f4cb334cd87a585861f3aa9c20d9293540ce815 | Shell | grammarly/focal | /scripts/bump-version.sh | UTF-8 | 1,221 | 3.171875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# exit when any command fails
set -e
VER=$1
echo Bumping version to v${VER}...
cd packages/focal && yarn version --new-version $VER --no-git-tag-version && cd ../..
sed -i '' 's/grammarly\/focal":.*"\(.*\)$/grammarly\/focal": "'${VER}'"\1/g' packages/examples/all/package.json
sed -i '' 's/grammarly\/foc... | true |
e5c75c53d07641f647c729a6b182da83640637bb | Shell | dfed/Floatation | /Scripts/ci.sh | UTF-8 | 589 | 2.828125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -l
set -ex
if [ $ACTION == "xcode" ]; then
if [ -n "$DESTINATION" ]; then
xcodebuild -UseModernBuildSystem=NO -workspace Floatation.xcworkspace -scheme "$SCHEME" -sdk $SDK -destination "$DESTINATION" -configuration Debug -PBXBuildsContinueAfterErrors=0 $XCODE_ACTION
else
xcodebuild -UseModernBu... | true |
ec6110fb4937fcc96452242f0157605b93174cbc | Shell | payano/SBC_NAS | /install/services/easy-rsa.sh | UTF-8 | 1,028 | 3.078125 | 3 | [
"Apache-2.0"
] | permissive | echo installing easy-rsa
sudo apt install -y easy-rsa openssl
exit 0
OLDDIR=$(pwd)
echo "user $(whoami) will have the root ca..."
mkdir ~/easy-rsa
ln -s /usr/share/easy-rsa/* ~/easy-rsa/
chmod 700 ~/easy-rsa
cd ~/easy-rsa
./easyrsa init-pki
cd ~/easy-rsa
echo -e 'set_var EASYRSA_REQ_COUNTRY "SE"
set_var EASYRS... | true |
88243f8c849297efdeafe23153df1c6063fa821f | Shell | myx/os-myx.common-freebsd | /host/tarball/share/myx.common/bin/os/growSlashFsUfs | UTF-8 | 3,053 | 3.546875 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
##### !!! THIS SCRIPT MUST BE OVERRIDEN IN OS-DEPENDENT IMPLEMENTATION !!! #####
OsGrowSlashFsUfsUsedSize(){
local PART="$1"
gpart show $PART | grep 'freebsd-ufs' | awk '{print $5}' | grep G | sed 's/[^0-9\.]*//g'
}
OsGrowSlashFsUfsFreeSize(){
local PART="$1"
echo `gpart show $PART | grep ' free -' | a... | true |
9524cfec849080b377c83ed5ec9aac1143c2c5b0 | Shell | fyrier/CAP-MPI | /exec_mach_1x1.sh | UTF-8 | 1,454 | 3.1875 | 3 | [] | no_license | #!/bin/bash
processes=(1 2 16 64)
nodes=(1 2 8)
exec_modes=(0 1)
matrix_sizes=(2050 4098)
max_execs=5
for exec_mode in "${exec_modes[@]}"
do
echo "-------------------------------"
echo "| Execution mode $exec_mode |"
echo "-------------------------------"
for num_nodes in "${nodes[@]}"
do
... | true |
b636557e6bd5c342fbd0c410142ce20bfa251507 | Shell | whg/fabricate | /build/install_core.sh | UTF-8 | 291 | 3.109375 | 3 | [] | no_license | #!/bin/bash
tempfile="site.tar.gz"
tempplace="/tmp/"
file=$tempplace$tempfile
tar --exclude content/ -czf $file .
echo "created archive"
scp $file whg@fezz.in:wgallia/
echo "uploaded file"
rm $file
ssh whg@fezz.in "cd wgallia; tar xf $tempfile; rm $tempfile"
echo "unpacked and made at host"
| true |
88785cf4184558bb6d7adb407cd0385e36e91428 | Shell | iksadNorth/shell-scripts | /scripts/015_use_variable_and_function_from_external_file.sh | UTF-8 | 664 | 2.984375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# env.sh 파일을 닷 명령어로 읽음 : 마치 소스 파일이 그대로 삽입된 것처럼 파일 내부 명령어가 실행
# bash엔 . 와 source와 동일한 역할을 함
# env.sh엔 WORK_DIR 변수와 nowtime() 함수가 구현되어 있음
. ./env.sh
nowtime
cp -i -v large-file.tar.gz "$WORK_DIR"
nowtime
# 닷 명령어를 사용하면 의존 관계가 생기는데, 팀마다 결정하면 좋을 듯
# 이동이 간단해서 의존 관계를 쉽게 해결할 수 있음
# 대상 파일이 없으면 에러가 발생함. -f로 파일 존... | true |
7487b16eae8c81bb117ed3bd53c71ec899beb5e9 | Shell | rideliner/dotfiles-old | /terminal/functions.zsh | UTF-8 | 1,014 | 3.75 | 4 | [
"BSL-1.0"
] | permissive |
function mcd() {
mkdir "$1" && cd "$1"
}
function aes-enc() {
openssl enc -aes-256-cbc -e -in $1 -out "$1.aes"
}
function aes-dec() {
openssl enc -aes-256-cbc -d -in $1 -out "${1%.*}"
}
function maxcpu() {
local dn=/dev/null
yes > $dn & yes > $dn & yes > $dn & yes > $dn &
yes > $dn & yes > $dn & yes > $... | true |
1068c23e5342e6840ae98cd200c096c053b9496b | Shell | sandia-proj/SETGen | /scripts/VMconnect.sh | UTF-8 | 6,193 | 3.875 | 4 | [] | no_license | #!/bin/bash
if [ "$EUID" -ne 0 ]
then
echo "Please run as root"
exit
fi
if [[ $# != 1 && $# != 2 && $# != 3 && $# != 4 ]]
then
echo "Usage:"
echo "./VMconnect.sh #_of_VMs"
echo "./VMconnect.sh #_of_VMs -copy <path_to_file>"
echo "./VMconnect.sh USERNAME_FILE PASSWD_FILE"
echo "./VMconnect.sh -copy <p... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.