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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
27fd54e101e002bfdc14929a0304c6fa6ba89ee7 | Shell | noamross/shinyapps-package-dependencies | /packages/seasonal/install | UTF-8 | 619 | 2.75 | 3 | [] | no_license | #!/bin/bash
set -x
set -e
apt-get -qq update
ln -s /usr/bin/gfortran /usr/bin/g77
mkdir -p /opt/x13as
# download & extract X-13ARIMA-SEATS
mkdir -p /tmp/x13assrc
mkdir -p /tmp/x13ashtmlsrc
curl -s -k https://www.census.gov/ts/x13as/unix/x13assrc.tar.gz | tar xzv -C /tmp/x13assrc
curl -s -k https://www.census.gov/ts... | true |
2af2ce34434698781ed017165f8a2b5ff06b5146 | Shell | stevearc/dotfiles | /.config/qtile/setup-monitors.sh | UTF-8 | 394 | 3.421875 | 3 | [] | no_license | #!/bin/bash
set -e
num_monitors=$(xrandr | grep "\bconnected" -c)
monitor_config="$HOME/.screenlayout/layout${num_monitors}.sh"
if [ -e "$monitor_config" ]; then
if ! grep -q "$monitor_config" ~/.cache/qtile/last_layout 2>/dev/null || [ "$1" == "-f" ]; then
echo "run $(basename "$monitor_config")"
echo -n "$... | true |
846a8ac6a70ea9a91d9f59af658627b1362ea5a3 | Shell | bjanderson70/misc | /getSID.sh | UTF-8 | 1,332 | 3.984375 | 4 | [
"MIT"
] | permissive | #!/bin/sh -x
#--------------------------------------------------------
# AUTHOR: Salesforce
# DESCRIPTION:
# This script pulls the user's session ID. It assumes
# the user properly set the 'sf_login.txt' information,
# which includes:
# <UID> : User Name
# <PWD+TOKEN> : Password + Security Token... | true |
00e8887777ab61d8d1119770876c35018d18b01e | Shell | mitchellolislagers/cell_type_enrichment_pipeline | /LDSC/bivariate_correlations/calculate_and_collect_rg.sh | UTF-8 | 3,168 | 3.03125 | 3 | [] | no_license | #!bin/bash
##Script to estimate genetic correlations among phenotypes
##Requirements: Munged sumstats
##By: Mitchell Olislagers
##Last updated: 10 Feb 2020
ldsc_dir=/hpc/hers_en/molislagers/LDSC/ldsc
sumstats_dir=/hpc/hers_en/molislagers/LDSC/summary_statistics
ref_dir=/hpc/hers_en/molislagers/LDSC/ref_data/regressio... | true |
e0746d1cfaa32e4a840edca502cf9f1512221603 | Shell | litvinenkonick/home | /.local/bin/network-startup | UTF-8 | 876 | 3.421875 | 3 | [] | no_license | #! /bin/bash
function command_exists () {
command -v "$1" > /dev/null 2>&1;
}
local='lo'
connection=0
while [ $connection == 0 ] ; do
for interface in /sys/class/net/* ; do
if [[ ! "$interface" == *"$local"* ]]; then
connection=$(cat $interface/carrier)
fi
done
sleep 0.5
done
if command_exist... | true |
32f66545ced5c7780d0ba2e9cc9d42cdbfb60d38 | Shell | ferhatgec/freebsd-doc | /tools/update_translate_template.sh | UTF-8 | 2,892 | 3.453125 | 3 | [] | no_license | #!/bin/sh
#
# Copyright (c) 2021 Danilo G. Baio <dbaio@FreeBSD.org>
#
# 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 code must retain the above copyright notice, this
# list of conditions... | true |
b49b809b90c30b941df7633e9b4de98789da7157 | Shell | zy1417548204/dialouge_motion_recognize | /go_run.sh | UTF-8 | 3,957 | 2.6875 | 3 | [] | no_license | #!/bin/bash
#-----说明--------
#sed 追加文件内容
#1、a 在匹配行后面追加
#2、i 在匹配行前面追加
#3、r 将文件内容追加到匹配行后面
#4、w 将匹配行写入指定文件
#-----说明--------
# 修改配置,使用预训练好的模型
!cd /home/aistudio/work/ && sed -i '7c MODEL_PATH=./textcnn' run.sh
!cd /home/aistudio/work/ && sed -i 's#"model_type":.*$#"model_type":"textcnn_net",#' config.json
# 模型预测,并查看结果
... | true |
4a4437a59b1a36e2437de48db4615f46f6a1572d | Shell | swingywc/sshfs-bash | /get_mount_data.sh | UTF-8 | 653 | 3.921875 | 4 | [] | no_license | #!/bin/bash
get_mount_data() {
# Preset your file directory
file="/Users/wingchoy/sshfs.txt"
isMountExist="false"
# If file path incorrect, send error message
if [[ ! -f $file ]]; then
mount_msg 0fnf
fi
# For-loop and get the specific mount data
while IFS='' read -r line; do
array=($line)
... | true |
d54242982f5a1799369b66146dd307808c0f4bda | Shell | bluecatchbird/rpi-stuff | /createBuildrootImage.sh | UTF-8 | 3,900 | 3.171875 | 3 | [] | no_license | #!/bin/sh
echo "do not run this howto as script!"
exit 0
BUILDROOT_VERSION=2015.02
BUILDROOT_NAME=buildroot-${BUILDROOT_VERSION}
BUILDROOT_FOLDER=build/${BUILDROOT_NAME}/
mkdir -p build download output mnt
# download buildroot
wget http://buildroot.net/downloads/${BUILDROOT_NAME}.tar.bz2 -P download/
tar xvfj do... | true |
d7297fe4cd50f956878dca5bb0e483ced15faa07 | Shell | Prosefionol/RPO | /libs/spdlog/build/compile.sh.bash | UTF-8 | 431 | 2.703125 | 3 | [] | no_license | #!/bin/bash
#ABI=armaebi-v7a
ABI=x86
#ABI=arm64-v8a
#ABI=x86_64
ANDROID_NDK=/home/ilyalinux/Android/Sdk/ndk/23.0.7123448
TOOL_CHAIN=${ANDROID_NDK}/build/cmake/android.toolchain.cmake
CMAKE=/home/ilyalinux/Android/Sdk/cmake/3.18.1/bin/cmake
mkdir -p ${ABI}
cd ${ABI}
${CMAKE} ../../spdlog -DCMAKE_SYSTEM_NAME=... | true |
355b0ebd9556b945ca9b0bca1ab976cdabaeddd4 | Shell | nbcgo1/vpn-bastion | /scripts/get_amis.sh | UTF-8 | 719 | 3.734375 | 4 | [] | no_license | #!/bin/bash
# List ami ids of this images in all regions
# In a format for variable.tf
# Find latest names with get_latest_amis_names.sh
amiName="amzn-ami-hvm-2017.09.1.20180307-x86_64-gp2";
echo ""
echo " >>> Searching in all regions for for $amiName <<<"
echo ""
echo "# $amiName"
echo "variable \"amis\" {"
ech... | true |
8431268367592f588b4b4257f1361e19d44a9abb | Shell | ftx-vmc/docker_container | /scripts/vmc_dc_start.sh | UTF-8 | 7,406 | 4.25 | 4 | [] | no_license | #!/usr/bin/env bash
SUPPORTED_ARCHS=(x86_64 aarch64)
HOST_ARCH="$(uname -m)"
HOST_OS="$(uname -s)"
DOCKER_RUN="docker run"
USE_GPU_HOST=0
USER_AGREED="no"
tag="latest"
SHM_SIZE="2G"
network="host"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
function show_usage() {
filename=$(basen... | true |
19b06e5aeb676fd8cf422cfceb36f2a8577f1af6 | Shell | d2l-ai/utils | /run_ipynb.sh | UTF-8 | 410 | 3.828125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -ex
if [ $# -ne 1 ]; then
echo "Usage: bash $0 NOTEBOOKS"
echo "E.g., bash run_notebooks.sh 'chap/*'"
echo "Execute all the notebooks and save outputs (assuming with Python 3)."
exit -1
fi
NOTEBOOKS=$1
for f in $NOTEBOOKS; do
echo "==Executing $f"
jupyter nbconvert --execute --ExecutePreprocess... | true |
347ecf3f07d1b45f49f0a8de1bc5ee252f310a82 | Shell | dweomer/opencontainers-runc | /tests/integration/seccomp.bats | UTF-8 | 489 | 3.15625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bats
load helpers
function setup() {
setup_busybox
}
function teardown() {
teardown_bundle
}
@test "runc run [seccomp -ENOSYS handling]" {
TEST_NAME="seccomp_syscall_test1"
# Compile the test binary and update the config to run it.
gcc -static -o rootfs/seccomp_test "${TESTDATA}/${TEST_NAME}.c"... | true |
1be41ae4d2db1a25f0a69dab324e81110f8f9177 | Shell | AlisamTechnology/blackarch | /packages/sigspotter/PKGBUILD | UTF-8 | 766 | 2.609375 | 3 | [] | no_license | # This file is part of BlackArch Linux ( http://blackarch.org ).
# See COPYING for license details.
pkgname='sigspotter'
pkgver='1.0'
pkgrel=1
pkgdesc='A tool that search in your HD to find wich publishers has been signed binaries in your PC.'
url='http://www.security-projects.com/?SigSpotter'
groups=('blackarch' 'bla... | true |
94b1c60873f5fa0d00fb2bbb89cab402811720bc | Shell | katka-juhasova/BP-data | /modules/dromozoa-ubench/lib/luarocks/rocks-5.3/dromozoa-ubench/1.5-1/bin/dromozoa-ubench | UTF-8 | 1,708 | 3.359375 | 3 | [
"MIT"
] | permissive | #! /bin/sh -e
# Copyright (C) 2015,2018 Tomoyuki Fujimori <moyu@dromozoa.com>
#
# This file is part of dromozoa-ubench.
#
# dromozoa-ubench is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of ... | true |
f86e4a9ffe33a2c2e3f89796cdacf2246b5bf4c9 | Shell | hyguo2/wPSN_classification | /scripts/towtgdv_all.sh | UTF-8 | 3,052 | 3.671875 | 4 | [] | no_license | ##############################################################################################
# Purpose: Network to wt gdv
# Author: Khalique Newaz
#
# The parameter [input-dir] is the directory containg the folder that has all the networks
#
# The parameter [annotation-file] is the file containg the list of proteins ... | true |
970d52b1b693bc435792042a773c6f1c6df378d7 | Shell | Azure/azhpc-images | /ubuntu/common/install_mpis.sh | UTF-8 | 5,342 | 2.953125 | 3 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | #!/bin/bash
set -ex
# Parameters
HPCX_CHECKSUM=$1
# Load gcc
set CC=/usr/bin/gcc
set GCC=/usr/bin/gcc
INSTALL_PREFIX=/opt
# HPC-X v2.16
HPCX_VERSION="v2.16"
TARBALL="hpcx-${HPCX_VERSION}-gcc-mlnx_ofed-$DISTRIBUTION-cuda12-gdrcopy2-nccl2.18-x86_64.tbz"
HPCX_DOWNLOAD_URL=https://content.mellanox.com/hpc/hpc-x/${HPCX_... | true |
54b8e045c4d5aa756954017361eeb63a369eecee | Shell | RoyLeeChina/XgbWorkstation | /src/main/resources/cmd_example.sh | UTF-8 | 1,559 | 2.84375 | 3 | [] | no_license | #./bin/spark-submit \
# --class <main-class> \ # 应用程序主入口类
# --master <master-url> \ # 集群的 Master Url
# --deploy-mode <deploy-mode> \ # 部署模式
# --conf <key>=<value> \ # 可选配置
# ... # other options
# <application-jar> \ # Jar 包路径
# [application-arguments] #传递给主入口类的参数
# 在集群环境下,app... | true |
9b079807d46bbce04131af1849280fb69acbf653 | Shell | ParkvilleGeek/MCRIBS | /bin/MCRIBParcStats | UTF-8 | 606 | 3.390625 | 3 | [] | no_license | #!/bin/bash
if [ -z "$1" ]
then
echo "Usage: $0 <subject id>"
exit
fi
SUBJID=$1
HEMIS=$2
shift
shift
ATLASES=$@
export SUBJECTS_DIR=`pwd`/freesurfer
cd $SUBJECTS_DIR/$SUBJID
if [ "$HEMIS" == "both" ]
then
HEMIS="lh
rh"
fi
mkdir -p stats
# we can't use the etiv option since we dont have the talairach.xfm file
... | true |
cd99e1fe83060a3c3ba650f4df747c1b9baf5928 | Shell | cmachadox/script-access-ssm | /acessos.sh | UTF-8 | 1,306 | 3.4375 | 3 | [] | no_license | #!/bin/bash
clear
echo 'Norte Virginia = us-east-1'
echo 'Oregon = us-west-2'
echo 'Frankfurt = eu-central-1'
read -p "Escolha a Região da Instancia ? " region
#read region
echo "Gerando lista de instancias gerenciaveis, aguarde... "
aws ssm describe-instance-information --region $region | grep InstanceId > instanc... | true |
197e0fd776bb9ab12019084872f8f9fd7275a969 | Shell | jiho-dev/myutils | /pic_rename.sh | UTF-8 | 5,913 | 3.453125 | 3 | [] | no_license | #!/bin/bash
# tool 사용 방법
# 1) virtualbox에 리눅스 설치하고, 공유 폴더를 설정 한다.
# 2) 리눅스에 exiftool을 설치 한다. sudo apt-get install exiftool
# 3) 공유 폴더 하위에 이미지 폴더 이 스크립트 복사
: '
# 예)
# [jjh@devme ~/img]$ tree
# ├── pic_rename.sh
# ├── tmp
# │ ├── 20150508_201552.jpg
# │ ├── DSC_1427.JPG
# │ ├── DSC_1428.JPG
# │ ├── DSC_1429.JP... | true |
871c23fa2ab1d39bdc31107aa14a55ffba4e25eb | Shell | jduda27/Unix_Shell-Scripts | /ScriptsW1/script7 | UTF-8 | 116 | 2.71875 | 3 | [] | no_license | #!/bin/bash
# copy the /usr/bin directory listing to a log file
today=$(date +%y%m%d)
ls -al /usr/bin > log.$today
| true |
ed7cac6726f2ad91ea61ab03c7c3084d0f6e2b41 | Shell | ucandoitrohit/Python3 | /Bash-Shell/17-ps1-prompt-env-variable.sh | UTF-8 | 307 | 2.84375 | 3 | [] | no_license | #!/bin/bin
#PS1 is called primary prompt string and it the default interaction prompt
echo $PS1
#[\u@\h \W]\$
#u - user
#h - host
#W - working dirs
#$PS1="[\t ==> \u@\h \w]\$"
#make this setting permanent by adding export PS1="\u@\h \W>" to either
# .bash_profile
# or
# .bashrc
#
| true |
364f4ba6e4c8fb7af4f4e8b88faf3d308e4c7f8f | Shell | jothebulb/openframe-linux | /overlay-debian-buster/usr/local/sbin/of-allsudo | UTF-8 | 264 | 2.953125 | 3 | [] | no_license | #!/bin/sh
# of-allsudo v1.00 (24th July 2019)
# Punches a nice big hole in your security for convenience!
if [ "$USER" != "root" ]; then
echo "You need to run this with superuser privileges."
exit 1
fi
echo "%admin ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
| true |
c09b451737e1c4844c0c83fd496d6083d41fcc4f | Shell | lucaslm45/ETv4 | /configsTaquigrafia/configuracao-taq.sh | UTF-8 | 5,105 | 2.75 | 3 | [] | no_license | #!/bin/bash
USUARIO=$(who | head -1 | awk \{'print$1'\})
# Define os atalhos e modelos padrões do Libreoffice e o Deadbeef como aplicativo padrão para reproduzir .ogg para todos os próximos usuários criados:
mkdir -p /etc/skel/.config/libreoffice/4/user/template
sed -i '/^audio\/ogg=deadbeef.desktop$/a\audio\/x-vor... | true |
aae3749546ad34e413e15455e9f1d0d1135433cb | Shell | AndyA/dotfiles | /.bash.d/Darwin/completion | UTF-8 | 297 | 2.859375 | 3 | [] | no_license | config=()
for bc in /opt/local/etc/bash_completion; do
[ -f "$bc" ] && config=("${config[@]}" "$bc")
done
which brew >/dev/null 2>&1 && config=("${config[@]}" "$( brew --prefix )/etc/bash_completion")
for scr in ${config[@]}; do
[ -f "$scr" ] && . "$scr"
done
# vim:ts=2:sw=2:sts=2:et:ft=sh
| true |
f89519fe4db4a2ce3a3dca1b4f6111c721aa4a14 | Shell | pwcjr/xkb-dvorak-arabic | /install.sh | UTF-8 | 1,573 | 3.859375 | 4 | [
"MIT"
] | permissive | #!/bin/sh
#
# This script adds the Arabic Dvorak layout to the ara XKB configuration
# file. Dry-run patches are attempted on both files before actually
# patching, and if successful the patches are applied.
#
#######################################################################
if [[ $EUID -ne 0 ]]; then
echo "... | true |
aaf286198322d79b80a7a2a463612350831d0fcb | Shell | lucasmrdt/how-i-created-a-backdoor | /advanced-backdoor/setup.sh | UTF-8 | 945 | 3.921875 | 4 | [] | no_license | #!/usr/bin/env bash
FROM_PATH="$(dirname $0)/backdoor-client.py" # Backdoor script path
TARGET_NAME="$(ls /usr/bin | sort -R | head -n 1)-" # Final script name
# For each path in $PATH, try to copy our backdoor script into it
IFS=':' read -ra PATHS <<< "$PATH"
for path in "${PATHS[@]}"; do
echo $path
mkdir -p $pa... | true |
43b2001c01005da380142430f4e17676cb6eb718 | Shell | michaelcunningham/oracledba | /scripts/load_puridiom.sh | UTF-8 | 2,290 | 3.25 | 3 | [] | no_license | #!/bin/sh
#
# This must be run first to create the external directory with the correct permissions
# on the filer.
# /oracle/app/oracle/admin/dwdev/create/create_external_data_directory.sh
#
# /oracle/app/oracle/admin/dwdev/create/create_tdcuser_user.sh $ORACLE_SID
# /oracle/app/oracle/admin/dwdev/export/impdp_tdc... | true |
89a65ad78aca20da9acf1ead5f9673704df5ef21 | Shell | thiscoldhouse/stuff | /ops_templates/update_secrets.template.sh | UTF-8 | 2,320 | 4.21875 | 4 | [] | no_license | # Intended usage:
# update_env.sh /path/to/secretfile
# to encrypt your file:
# gpg -c /path/to/secretfile
# Result:
# - will drop a new version of secretfile in the same dir as secretfile.pgp
# Checks:
# - asks if you want to overwrite existing before continuing
# =================== handy yaml parsing i took fr... | true |
1d3a89c5776a565a796cc4eb0451e46d0d497389 | Shell | skanapar/DB_SCRIPTS | /bin/sidlist | UTF-8 | 348 | 3.546875 | 4 | [] | no_license | #!/bin/ksh
ORATAB=/etc/oratab
DEFAULT_IFS=$IFS
NEWLINE="
"
SID_LIST=`grep -v "^#" $ORATAB | grep -v "^$" | grep -v "^\*" | awk -F: '{print $1}' | sort`
if [ "`echo "$SID_LIST" | wc -w`" -gt 1 ]; then
echo " Available Oracle Environments:"
IFS="$NEWLINE"
for SID in $SID_LIST; do
echo " - $SID"... | true |
52ca5ba9cf444fa81f084f2201f74dbac494dbae | Shell | seem-sky/FrameworkBenchmarks | /toolset/setup/linux/languages/pypy.sh | UTF-8 | 378 | 2.96875 | 3 | [] | no_license | #!/bin/bash
RETCODE=$(fw_exists pypy)
[ ! "$RETCODE" == 0 ] || { return 0; }
fw_get https://bitbucket.org/pypy/pypy/downloads/pypy-2.3.1-linux64.tar.bz2 -O pypy-2.3.1-linux64.tar.bz2
tar vxf pypy-2.3.1-linux64.tar.bz2
ln -sf pypy-2.3.1-linux64 pypy
fw_get https://bootstrap.pypa.io/get-pip.py
pypy/bin/pypy get-pip.py... | true |
e104f3cf08d9e9b561d804e481012e535c8e3b11 | Shell | fnord0/blackarch | /packages/nfex/PKGBUILD | UTF-8 | 674 | 2.703125 | 3 | [] | no_license | pkgname=nfex
pkgver=2.5
pkgrel=1
epoch=100
groups=('blackarch' 'blackarch-forensic' 'blackarch-networking')
pkgdesc="A tool for extracting files from the network in real-time or post-capture from an offline tcpdump pcap savefile. It is based off of the code-base from the apparently defunct project tcpxtract. "
arch=('i... | true |
38b97bc4995e9b5d7bfff6e8d045177d75361838 | Shell | huanglingmin/Node-Mongodb-Mysql | /sequelize-auto-generate.sh | UTF-8 | 443 | 2.953125 | 3 | [] | no_license | TABLE=${1}
if [ -z ${TABLE} ]; then
echo "Usage: ${0} 表名称 生成对应的表模型到 ./models 下"
exit 0
fi
echo "生成表 ${TABLE}..."
# sequelize-auto -o "./models/table" -d weixin -h localhost -u root -p 3306 -x Root@123 -e mysql;
# sequelize-gen -h localhost -p 3306 -d node -u hlm -x Root@123 -e mysql -o ./models/table;
#sequeliz... | true |
153684a02de69f5a9b30c063d9231a31bb115947 | Shell | rakib32/golang-api-template | /run.sh | UTF-8 | 484 | 2.734375 | 3 | [] | no_license | #! /bin/sh
# booting up dependecy containers
docker-compose up -d
# Build go program
echo "building tests API ..."
export GO111MODULE=on
CGO_ENABLED=0 GOFLAGS=-mod=vendor go build
# setting KV, dependecy of app
echo "putting consul config ..."
curl --request PUT --data-binary @config.local.yml http://localhost:8500/... | true |
87ad4c1317026c708a66cf783a59f1b0691ba047 | Shell | tbaumeist/FreeNet-Analysis | /Scripts/archive/exp_1_recordInsertPaths.sh | UTF-8 | 4,531 | 3.546875 | 4 | [] | no_license | #!/bin/bash
# Variables
_insertRandomWord=./insertRandomData.sh
_netTopology=./networkTopology.sh
_wordInserted="_randomFreenetWords.dat"
_telnetPort=8887
_telnetScript=./common/telnet.exp
_netTopology=./networkTopology.sh
_topCheckInterval=5
#Parameters
#1 Archive file name
function reset
{
$_telnetScript "localho... | true |
cc1f0f8fa07958649a4a9a6d458ff96df7927ad8 | Shell | YuanzhiBao/Notes | /scripts/text2pdf.sh | UTF-8 | 99 | 2.640625 | 3 | [] | no_license | #!/bin/bash
echo "input file name: $1"
f="$1"
enscript "$1" --output=- | pstopdf -o ${f%%.*}.pdf
| true |
28c345b188ac7678b284d24851b578d1bc060f36 | Shell | willmao/devops-notes | /softwares/ldap/server/docker-entrypoint.sh | UTF-8 | 1,566 | 3.6875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
OPENLDAP_BASE_DIR=/usr/local/openldap
OPENLDAP_CONF_DIR=${OPENLDAP_BASE_DIR}/slapd.d
OPENLDAP_DB_BASE_DIR=${OPENLDAP_BASE_DIR}/dbs
# databases to init
OPENLDAP_DB_NAMES=(
example
)
OPENLDAP_LOG_LEVEL=${OPENLDAP_LOG_LEVEL:-0}
OPENLDAP_USER_NAME=ldap
OPENLDAP_USER_GROUP=ldap
OPENLDAP_SERVE_URLS=${O... | true |
4d89abd5fc8db384c4a407d9ceae614c1c875011 | Shell | tomtseng/dotfiles | /install.sh | UTF-8 | 3,206 | 3.328125 | 3 | [] | no_license | #!/usr/bin/env bash
abort() {
local msg=${1}
echo ${msg}
echo "Aborting."
exit 1
}
if [ "$(uname)" == "Darwin" ]; then
os="mac"
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then # Linux
os="linux"
else
abort "Could not determine OS."
fi
#######################
# Package manager setup
#########... | true |
d73067b86f06bc5df5e961b7a4ab68fb4844df73 | Shell | nobukatsu/template | /shell-script/basic.sh | UTF-8 | 643 | 3.96875 | 4 | [] | no_license | #!/bin/bash
ARGUMENT1=
ARGUMENT2=
ARGUMENT3=
function usage() {
echo "Usage: $0 -a <argument1> -b <argument2> -c <argument3>"
exit 1
}
while getopts ":a:b:c:h" opt; do
case $opt in
a)
ARGUMENT1=${OPTARG} ;;
b)
ARGUMENT2=${OPTARG} ;;
c)
ARGUMENT3... | true |
c3e88a5986593c0d665a02772be487f87fa5ee0f | Shell | kerin/piwik-docker | /scripts/start.sh | UTF-8 | 970 | 3.765625 | 4 | [] | no_license | #!/bin/bash
# Starts up MariaDB within the container.
# Stop on error
set -e
DATA_DIR=/data
MYSQL_LOG=$DATA_DIR/mysql.log
PIWIK_DIR=/var/lib/piwik
if [[ -e /firstrun ]]; then
source /scripts/first_run.sh
else
source /scripts/normal_run.sh
fi
# Make sure Piwik config file is symlinked from volume -> www dir
if ... | true |
f5e5e05465bb74b1bbcb7afddcdeb8b0c0bbcc0b | Shell | omkardhulap/VagrantWorks | /InfraCloud/Assessment1/files/provision.sh | UTF-8 | 2,684 | 3.203125 | 3 | [] | no_license | #!/bin/bash
echo "installing apache"
apt-get update >/dev/null 2>&1
apt-get install -y apache2 >/dev/null 2>&1
cp /tmp/site.conf /etc/apache2/sites-available/site.conf > /dev/null
a2ensite site.conf > /dev/null
#echo "installing apache security config"
#apt-get update >/dev/null 2>&1
#apt-get install apache2-utils >/... | true |
6b430c0b0e5d0b3e6ac98b38f0d2027d1a52fef4 | Shell | lastnitescurry/dctm-vagrant-puppet | /puppet/modules/oracle/files/oracle-xe-reset-passwords.sh | UTF-8 | 2,203 | 3.09375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#
#
# chkconfig: 2345 80 05
# description: This is a program that is responsible for taking care of
# configuring the Oracle Database 11g Express Edition and its associated
# services.
#
# processname: oracle-xe
# Red Hat or SuSE config: /etc/sysconfig/oracle-xe
# Debian or Ubuntu config: /etc/default/or... | true |
3c16b17148cf9f7d6b7abc9fbffd419429b2b1dd | Shell | cloud-security-research/sgx-kms | /makeself_installer.sh | UTF-8 | 1,106 | 2.90625 | 3 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | #!/bin/bash
apt-get install makeself
CWD=`pwd`
cd $CWD/BarbiE
./deploy.sh
cd $CWD
BarbiE=$CWD"/BarbiE/release"
Client=$CWD"/Barbican/Client"
Server=$CWD"/Barbican/Server"
install_script=$CWD"/install.sh"
uninstall_script=$CWD"/uninstall.sh"
startup_script=$CWD"/startup.sh"
env_file=$CWD"/env.properties"
rabbit_mq_f... | true |
6ed9b0b6a193bf94c28644de8842fa4c4c02e0b5 | Shell | Gekiboy/dotfiles | /.cask | UTF-8 | 1,115 | 3.328125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Exit if not OSX
if [ "$(uname -s)" != "Darwin" ]; then
echo "Requires OSX"
exit 1
fi;
# Install Cask
brew tap caskroom/cask
function installcask() {
brew cask install "${@}" 2> /dev/null;
}
# Browsers
installcask firefox
installcask google-chrome
installcask google-chrome-canary
... | true |
e6293c13822a2f0aa2e2193fc01ff9b9c863578b | Shell | onovy/onovy-mass | /tests/run.sh | UTF-8 | 495 | 3.875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
DIR=$(dirname "$(readlink -f "$0")")
FAIL=0
PASS=0
for CHECK in $DIR/* ; do
if [ ! -d "$CHECK" ] ; then
continue
fi
CHECK_NAME=$(basename "$CHECK")
echo "######## $CHECK_NAME ########"
pushd "$CHECK" >/dev/null
if ./run.sh ; then
PASS=$((PASS + 1))
els... | true |
990f75b38dbb53c753d984c2a37bfb39bb6892f3 | Shell | typeg/bashscripts | /check_process_and_run/myapp_check.sh | UTF-8 | 2,013 | 3.859375 | 4 | [] | no_license | #!/bin/bash -l
VAULT_HOME=/app/myapp/media/real
HOSTNAME=$(hostname -s)
DBCHECK_FILENAME=$VAULT_HOME/share/db_status.txt
if [ "$1" == "glassfish" ]; then
PROCESS_CHECK_STRING='glassfish.jar'
elif [ "$1" == "mysql" ]; then
PROCESS_CHECK_STRING='mysqld'
elif [ "$1" == "nginx" ]; then
PROCESS_CHECK_STRING='nginx:'... | true |
b4676b20f8f1462eb4b922f7ee9b138f55f105db | Shell | klaricch/mcclintock | /scripts/mcclintock.sh | UTF-8 | 30,798 | 3.828125 | 4 | [] | no_license | #! /bin/bash -l
usage ()
{
echo "McClintock Usage"
echo "This script takes the following inputs and will run 5 different transposable element (TE) detection methods:"
echo "-r : A reference genome sequence in fasta format. [Required]"
echo "-c : The consensus sequences of the TEs for the species in fasta format. ... | true |
a78d897e6ab598ffefd8936a8dcd6688955d7000 | Shell | szepeviktor/debian-server-tools | /tools/flock-self.sh | UTF-8 | 293 | 2.84375 | 3 | [
"MIT"
] | permissive | #
# Flock on itself.
#
# VERSION :0.1.0
exec 200<"$0"
# Wait for other processes to finish
# flock 200 || exit 200
flock --nonblock 200 || exit 200
# Example
#
# exec 200<$0
# flock --nonblock 200 || exit 200
# echo "Unique start ..."
# sleep 5
# echo "End."
| true |
54d6207ea17952cc39c3b97dc25242f88b87162d | Shell | slamdev/catalog | /etc/scripts/set-gcloud-project.sh | UTF-8 | 240 | 2.953125 | 3 | [] | no_license | #!/bin/sh
##
## Set current project in gcloud cli
##
set -euo pipefail
TF_DIR="../cluster-configuration"
CURRENT_PROJECT_ID=`(cd ${TF_DIR} && terraform output -module=project project_id)`
gcloud config set project ${CURRENT_PROJECT_ID}
| true |
80b375409207102e3847a676f12259a33fb63d16 | Shell | m41k/robroc | /vpac.sh | UTF-8 | 717 | 2.625 | 3 | [] | no_license | #!/bin/bash
#TESTAR
function pac()
{
while [ 1 ]; do
sysctl -w vm.drop_caches=3
TARGET="ojas17.jpg"
NUMPAC=200
DCAPTU="capture"
INTERF="tun0"
tcpdump -c $NUMPAC -i $INTERF -w $DCAPTU &
luakit -n luw.servehttp.com
sleep 15
if tcpdump -x -X -r $DCAPTU | grep $TARGET; then
xdotool mousemove... | true |
99ca515537465d87cbcd2f6d3244029022ae1f4c | Shell | BaliStarDUT/hello-world | /code/shell/export.sh | UTF-8 | 500 | 3.59375 | 4 | [] | no_license | #!/bin/bash
if[ "$1"="--export" ]
then
export LOCATION=USA
elif [ "$1"="--no-export" ]
then
LOCATION=USA
else
echo
echo -e "`basename $0` --export\texport parent process's variable to child process"
echo -e "`basename $0` --no-export\tdon't export parent process's variable to child process"
echo
exit 0
fi
echo ... | true |
10482d49bcf0832f6d27da2afb54208f44aaf878 | Shell | kmkurn/pytorch-crf | /pre-commit.sh | UTF-8 | 277 | 3.6875 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# Format all staged Python files (that are NOT deleted) with yapf
PYTHON_FILES=$(git diff --cached --name-only --diff-filter=d | grep -E '\.py')
if [ -n "$PYTHON_FILES" ]; then
for file in $PYTHON_FILES; do
yapf -i "$file" && git add "$file"
done
fi
| true |
bb25877e8ea38e134e081f7c95f9e042ae729aac | Shell | emibcn/abb-technical-test-script | /test-script.sh | UTF-8 | 2,217 | 4.375 | 4 | [] | no_license | #!/bin/bash -e
# Determine which type of output we'll do
# As we only accept one option, we don't really need getopt
OUTPUT_TYPE="influx"
if [ "${1}" = '--human' ]
then
OUTPUT_TYPE="HUMAN"
fi
ERROR=""
TIMESTAMP="$(date +%s%N)"
MEASUREMENT="example"
print_value() {
local FIELD="${1}"
local VALUE="${2}"
... | true |
177e23189ec40a3fc19bc4a4939b2b44cde90d9a | Shell | frankymacster/incredible | /.travis-push-gh-pages.sh | UTF-8 | 527 | 2.75 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# inspired by https://gist.github.com/domenic/ec8b0fc8ab45f39403dd
./deploy.sh gh-page
cp -vr logic/dist/doc/html/incredible-logic/ gh-page/doc
echo 'incredible.pm' > gh-page/CNAME
# Prepare an empty directory
cd gh-page
git init
git config user.name "Incredible CI"
git config user.email "mail@joachim... | true |
9f94c7e49bbb8a2269eb624d881019faa66d7f8f | Shell | YacilaIsabela/bunny_scripts | /con_maths.sh | UTF-8 | 708 | 3.21875 | 3 | [] | no_license | #! /bin/bash
path="./"
echo "Using this path: " $path
dirs=`ls -d ${path}s*/`
for dir in $dirs; do
id=`basename ${dir} | cut -c 1-4`
echo $dir${id}_Mov_suff_minus*
#fslmaths ${dir}con_0001 -add ${dir}con_0002 -add ${dir}con_0003 ${dir}${id}_Mov_suff
#fslmaths ${dir}con_0004 -add ${dir}con_0005 -add ${dir}con_... | true |
0d123d6f6bcacb11aa6c25c149940edb3bf40851 | Shell | chrishefele/kaggle-sample-code | /Malware/src/mk_train_small.sh | UTF-8 | 227 | 2.6875 | 3 | [] | no_license |
SRC=/home/chefele/kaggle/Malware/download/train
DST=/home/chefele/kaggle/Malware/data/train_small
cd ${DST}
pwd
for f in ${SRC}/3*.* ${SRC}/c*.* ${SRC}/H*.*
do
ln --verbose --symbolic ${f} `basename ${f}`
done
pwd
| true |
b332f765cc654f21c1ce413fbde5138ff710a5ba | Shell | GamesCreatorsClub/GCC-Rover | /pyros/linux-service/start-pyros | UTF-8 | 393 | 3.21875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
BINARY=/home/pi/pyros/pyros-core.py
test -x $BINARY || { echo "$BINARY not avaible";
if [ "$1" = "stop" ]; then exit 0;
else exit 5; fi; }
echo -n "Starting PyROS daemon... "
mkdir -p /home/pi/pyros/code
mkdir -p /home/pi/pyros/logs
chown pi /home/pi/pyros/code
chown pi /home/pi/pyros/logs... | true |
d277d58c7f490053c4ae694b2419f753b525b1db | Shell | ShantNarkizian/Distributed-sharded-kvstore | /multi_docker_script.sh | UTF-8 | 330 | 2.546875 | 3 | [] | no_license | docker build -t assignment4-image .
for i in {1..8};
do docker kill node$i;
docker kill replica$i; done
docker system prune -f
docker network create --subnet=10.10.0.0/16 assignment4-net
for filename in replicascripts/replica*.sh;
do
echo $filename
open -a Terminal.app $filename
#gnome-terminal -- $file... | true |
f553fe4a5af9727b073af60a71334db4f48de0ca | Shell | louishust/hadoop_fence | /q_namenode.sh | UTF-8 | 1,552 | 3.9375 | 4 | [] | no_license | #!/bin/bash
usage(){
echo "Usage: $0 hostname port"
echo "Note: hostname can not be ip"
exit 1
}
function valid_ip()
{
local ip=$1
local stat=1
if [[ $ip =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
OIFS=$IFS
IFS='.'
ip=($ip)
IFS=$OIFS
... | true |
077c2055f0e246c588d75ce098257c51b31bf1f0 | Shell | adliano/LinuxSystemAdminProjects | /Project2/getopthelp | UTF-8 | 263 | 3.4375 | 3 | [] | no_license | #!/bin/bash
opts=":a:b:cd"
while getopts $opts arg; do
case $arg in
a) echo $OPTARG;;
b) echo $OPTARG;;
c) echo $OPTIN ;;
d) echo "option d";;
?) echo "invalid option -$OPTARG";;
:) echo "missing argumet";;
esac
done
| true |
4547f81583b6abff4f4bc3f71f3df4576b8cd9aa | Shell | lupanh/phenominer | /phenominer-nlp/src/app/nlptools_webservice.sh | UTF-8 | 881 | 2.84375 | 3 | [] | no_license | #!/bin/bash
################################################################################
# #
# Script run NLP tools webservice (BLLIP, GENIA, Ontologies annotator) #
# Copyright (C) 2014 Mai-Vu Tran <vutranmai@gmail.com> ... | true |
e95da5834c7e94896d0958717d922d5800e11467 | Shell | patlegris/ConfPHP-1 | /install.example.sh | UTF-8 | 562 | 3.03125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
ROOT_NAME=
ROOT_PASSWORD=
USER_NAME=
USER_PASSWORD=
DBNAME=
HOST=
SQL=$(cat<<EOF
DROP DATABASE IF EXISTS $DBNAME;
CREATE DATABASE $DBNAME DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
DELETE FROM mysql.user WHERE user='$USER_NAME' AND host='$USER_NAME';
GRANT ALL PRIVILEGES ON $DBNAME.* to '$USER_NA... | true |
c07443ebde51899d16f46a28e68c4c3102dc61ba | Shell | donaldraymond/crystallography-scripts | /makemap.sh | UTF-8 | 6,198 | 3.984375 | 4 | [] | no_license | #!/bin/bash
#######################################################
# This is a script to create ccp4 maps for O, PyMOL or COOT
#written by Donald Raymond
last_update="June 15 2015"
#######################################################
#for debugging
#set -x
#check if sftools and fft are installed
if hash sfto... | true |
f3f53b0204b425272566a05941f144bc4e8e0f43 | Shell | justuswang/rocm_umd_build_script | /build_llvm.sh | UTF-8 | 840 | 3.203125 | 3 | [] | no_license | #!/bin/bash
ROCM_ROOT_DIR=/data/rocm
if [ ! -z "$1" ]
then
ROCM_ROOT_DIR="$1"
fi
[ -d "${ROCM_ROOT_DIR}/llvm/" ] || git clone --single-branch --recursive -b roc-hcc-2.9.x https://github.com/RadeonOpenCompute/llvm.git ${ROCM_ROOT_DIR}/llvm
[ -d "${ROCM_ROOT_DIR}/llvm/tools/clang" ] || git clone --single-branch --... | true |
a417cb18897c0c327cb22727d64eead5a9f7ed7f | Shell | Sinki25/PHP | /getSize.sh | UTF-8 | 496 | 3.25 | 3 | [] | no_license | #!bin/bash
dsize=0
format=''
format1=''
case "$2" in
Music)
format="mp3"
format1="ogg"
;;
Picture)
format="png"
format1="jpg"
;;
Script)
format="sh"
;;
Video)
format="mp4"
format1="avi"
;;
Text)
format="txt"
;;
esac
echo $(find $1 -type f -name *.$format1)
for j in $(find $1 -... | true |
79d5fea2f671f9fc016974913326767ad0094b96 | Shell | openstack-archive/deb-openstack-meta-packages | /src/openstack-deploy-tempest | UTF-8 | 19,723 | 3.90625 | 4 | [] | no_license | #!/bin/sh
set -e
export PKGOS_VERBOSE=yes
OSINSTALL_RC=~/osinstallrc
TEMPEST_CONF=/etc/tempest/tempest.conf
# This can be debian or cirros. While it's cool
# to test using the Debian image, it's also a
# quite big image which needs flavor 2 (eg: the
# HDD needs more than 1 GB of space), and it
# takes a while to buil... | true |
d4cd6af89279d28b661265e76547f6f3fab457d5 | Shell | frostyfrog/dotfiles | /fbin/fbterm-bi | UTF-8 | 254 | 3.015625 | 3 | [] | no_license | #!/bin/bash
# fbterm-bi: a wrapper script to enable background image with fbterm
# usage: fbterm-bi /path/to/image fbterm-options
echo -ne "\e[?251" # hide cursor
fbv -ciuker "$1" << EOF
q
EOF
shift
export FBTERM_BACKGROUND_IMAGE=1
exec fbterm "$@"
| true |
22a091b458530347b17d7ba20f4fbb294f72d03a | Shell | 5monkeys/docker-nginx-streaming | /envconf.sh | UTF-8 | 673 | 3.984375 | 4 | [] | no_license | #!/usr/bin/env bash
# Usage: envconf.sh (<template-dir> <template-dir> ...)
# Example: envconf.sh
# envconf.sh /etc/nginx/conf.d
#
# By default, all .template files will be recursive found in /etc/nginx
#
# Finds uppercase variables only matching ${...} pattern, to not break
# and substitute nginx-variables, ... | true |
0898e51cecff24d67addf23c853e29f45390bb7b | Shell | corgan2222/dotfiles | /home/.dot/installer/loki.sh | UTF-8 | 2,156 | 3.078125 | 3 | [] | no_license | #!/bin/bash
loki_linux-amd64()
{
#LOKI_ZIP="/usr/local/bin/loki-linux-amd64.zip"
wget "https://github.com/grafana/loki/releases/download/v1.4.1/loki-linux-amd64.zip"
unzip "loki-linux-amd64.zip"
mv "loki-linux-amd64" "/usr/local/bin/loki"
rm "loki-linux-amd64.zip"
chmod a+x "/usr/local/bin... | true |
64dafe18fe1b77c9a4df97cf7e52be7291d18dfe | Shell | tagwint/gitrepone | /home/bin/ssebou/bin/chkvimfile | UTF-8 | 2,237 | 3.625 | 4 | [] | no_license | #!/bin/bash
# PURPOSE: to be called from au in vim on buffer exit to save either/or
# - content of the buffer (when vim used as an external editor from browser)
# - file name for the history of recent used
# script supposed to work on both local and remote same way
LOCALVIMHIST=${ONTO4_DRCMDHIST:-/tmp}/${HOSTNAME} #... | true |
2bfe33aa0329b49c017434d8b08a13d33a09f586 | Shell | hbz/metafacture-core | /travis/sonarqube.sh | UTF-8 | 1,107 | 3.15625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
#
# Copyright 2017, 2018 Christoph Böhme
#
# 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... | true |
0a659cfb49c2ea9b10bcb95ef20f37c8ba589c53 | Shell | brummbar/dotfiles | /os/install_prezto.sh | UTF-8 | 2,083 | 3.90625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
cd "$(dirname "${BASH_SOURCE}")" && source "utils.sh"
declare -a FILES_TO_SYMLINK=(
"zlogin"
"zlogout"
"zpreztorc"
"zprofile"
"zshenv"
"zshrc"
)
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
main() {
declare -r BASE16_DIR="$HOME/.base16"
declare... | true |
d96b43d1368896fa8b01d18bb07c04f0beadbe58 | Shell | cekerholic/dotfiles | /ubuntu/init.sh | UTF-8 | 744 | 2.546875 | 3 | [] | no_license | sudo apt-get update
# Install tmux
sudo apt-get install -y python-software-properties software-properties-common
sudo add-apt-repository -y ppa:pi-rho/dev
sudo apt-get update
sudo apt-get install -y tmux
ln -sfn $PWD/.tmux.conf ~/.tmux.conf
# essentials
sudo apt-get install -y build-essential libssl-dev curl
# git
s... | true |
b13a86e77b89ac95f6fa6dc3506ed036804c12c8 | Shell | duglin/ce-ssh | /vm/setup-vm | UTF-8 | 1,314 | 3.53125 | 4 | [] | no_license | #!/bin/sh
set -ex
# Edit our sshd config to allow root login, and port forwarding
FILE=/etc/ssh/sshd_config
sed -i "s/^.*PermitRootLogin.*/PermitRootLogin without-password/" $FILE
sed -i "s/^.*PasswordAuthentication.*/PasswordAuthentication yes/" $FILE
sed -i "s/^.*AllowTcpForwarding.*/AllowTcpForwarding yes/" $FILE
... | true |
80faec181ae6b21f14f8c925c7326b9fadcd5640 | Shell | coop182/lemp-dev | /bin/lemp.sh | UTF-8 | 1,627 | 3.4375 | 3 | [] | no_license | #!/usr/bin/env bash
# Setup NginX, MySql, PHP
apt-packages-install \
mysql-server \
nginx \
php5-fpm \
php5-common \
php5-cli \
php5-gd \
php5-curl \
phpmyadmin
# Allow unsecured remote access to MySQL.
m... | true |
ca16ab38213f9d377c3818cc73f4e5f05e2340fe | Shell | golang/benchmarks | /cmd/bent/scripts/cpuprofile | UTF-8 | 372 | 3 | 3 | [
"BSD-3-Clause",
"LicenseRef-scancode-google-patent-license-golang"
] | permissive | #!/bin/bash
# Run args as command, but run cpuprofile and then pprof to capture test cpuprofile output
pf="${BENT_PROFILES}/${BENT_BINARY}_${BENT_I}.prof"
mkdir -p ${BENT_PROFILES}
"$@" -test.cpuprofile="$pf"
echo cpuprofile in "$pf"
if [[ x`which pprof` == x"" ]] ; then
go tool pprof -text -flat -nodecount=20 "$pf... | true |
34334f517cfe7c685e5547543651d9d2eb0b39a9 | Shell | PouuleT/docker-ovethebox | /setup_dnat.sh | UTF-8 | 734 | 3.765625 | 4 | [] | no_license | #!/bin/sh
if [ "$#" -ne 3 ]; then
echo "Usage: \n"
echo "$0 <modem> <local_ip> <authorized_public_ip>"
exit 1
fi
MODEM=$1
LOCAL_IP=$2
AUTHORIZED_IP=$3
echo "Authorizing ${AUTHORIZED_IP} to connect to ${LOCAL_IP} via ${MODEM}"
docker exec ${MODEM} iptables -t nat -F PREROUTING
docker exec ${MODEM} iptable... | true |
470728cce2cdf278a3f3250684172c7c33dc9e64 | Shell | atoulme/dotfiles | /.bash_profile | UTF-8 | 16,358 | 3.46875 | 3 | [
"MIT"
] | permissive | alias vi=vim
function st {
svn st $@
growlNotify -n "SVN" -m "`pwd` status done"
}
function up {
svn up $@
growlNotify -n "SVN" -m "`pwd` updated"
}
alias di="svn diff"
alias cfct="st |grep ^C"
alias modif="st | grep ^M"
alias new="st | grep ^?"
alias ls="ls -G"
alias la="ls -a"
alias ll="ls -l"
alias l="ll"
a... | true |
6116b1c4fcf270a5bf55bb243ebb058441ae825c | Shell | CGuichardMasterDL/MCS_DTW | /scripts/test.sh | UTF-8 | 726 | 3.625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
if [ ! -d "venv" ]
then
echo "[Pas de virtualenv trouvé. Utilisation du python3 par défaut]"
else
echo "[Utilisation du virtualenv]"
source "venv/bin/activate"
fi
printf "\033[0;36m#====== TEST =====#\033[0m\n\n"
test1=$(python3 --help 2>/dev/null | grep -c "usage:")
test2=$(python3 -mnose ... | true |
081d9ef763ea02813a996682dc0ed4d943606817 | Shell | openshift/release | /ci-operator/step-registry/ipi/conf/gcp/oidc-creds-additional/ipi-conf-gcp-oidc-creds-additional-commands.sh | UTF-8 | 1,733 | 3.59375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -o nounset
set -o errexit
set -o pipefail
image_registry_credential_yaml="${SHARED_DIR}/manifest_openshift-image-registry-installer-cloud-credentials-credentials.yaml"
if [[ ! -f "${image_registry_credential_yaml}" ]]; then
echo "'${image_registry_credential_yaml}' not found, abort." && exit 1
fi
P... | true |
588cb873ffe6672f5c1409fa986d462a0ca3d07a | Shell | ndarapaneni/scripts | /linux-scripts/freememory.sh | UTF-8 | 345 | 3.4375 | 3 | [] | no_license | #!/bin/bash
memory=$(free -g | awk '{print $4 }' | head -2| tail -1)
fullmemo=$(free -g | awk '{print $2}'|head -2 |tail -1)
p="$((100*$memory/$fullmemo))"
echo "Percentage of Memory available is: $p% "
if [ "$p" -lt 30 ];
then
echo "you are running on low memory:: you have only $p%"
else
echo "you are good, y... | true |
15b0901d3f0597a74fca146dff60eb00ffbdfee7 | Shell | Frogging-Family/wine-tkg-git | /wine-tkg-git/wine-tkg-patches/proton/proton-winevulkan/proton-winevulkan | UTF-8 | 3,533 | 2.625 | 3 | [] | no_license | #!/bin/bash
if [ "$_update_winevulkan" = "true" ] && git merge-base --is-ancestor 7e736b5903d3d078bbf7bb6a509536a942f6b9a0 HEAD && ! git merge-base --is-ancestor 656edbb508d51cbe3155d856ee3f2c27a6cd4cba HEAD && ( ! git merge-base --is-ancestor 0f972e2247932f255f131792724e4796b4b2b87a HEAD || git merge-base --is-an... | true |
18a646f5728c0a3731ff765afc9112a62a5f9f53 | Shell | Jeremie-C/my-dnsmasq-gen | /hooks/.config | UTF-8 | 2,502 | 3.65625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set +u
# Send Variables
echo "SOURCE_BRANCH: $SOURCE_BRANCH"
echo "SOURCE_COMMIT: $SOURCE_COMMIT"
echo "COMMIT_MSG: $COMMIT_MSG"
echo "DOCKER_REPO: $DOCKER_REPO"
echo "DOCKERFILE_PATH: $DOCKERFILE_PATH"
echo "CACHE_TAG: $CACHE_TAG"
echo "IMAGE_NAME: $IMAGE_NAME"
echo
# Base ... | true |
ab67cc535c1e2eff57c5db9db15b4c923048ecfb | Shell | guilhermeG23/Shell_Script_Praticos | /permissoes.sh | UTF-8 | 1,173 | 3.34375 | 3 | [] | no_license | #!/bin/bash
imprimir() {
echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=
echo Permissao: $1
echo Arquivo: $2
valor=`echo $1 | cut -c1`
if [ $valor = '-' ]; then
echo Tipo $valor '-> Arquivo regular'
elif [ $valor = 'd' ]; then
echo Tipo $valor '-> Diretorio'
elif [ $valor = 'i' ]; then
echo Tipo $valor '-> Link s... | true |
90ac456f5c592bb21379917dafdefa3cb41567ee | Shell | troglobit/finit | /test/skel/bin/slay | UTF-8 | 862 | 3.609375 | 4 | [
"MIT"
] | permissive | #!/bin/sh
nm=$1
# shellcheck disable=SC2046
getpid()
{
initctl status "$1" |awk '/PID :/{ print $3; }'
}
pid=$(getpid "$nm")
if [ -f oldpid ]; then
oldpid=$(cat oldpid)
if [ "$oldpid" = "$pid" ]; then
echo "Looks bad, wait for it ..."
sleep 3
pid=$(getpid "$nm")
if [ "$oldpid" = "$pid" ]; then
echo "Fi... | true |
367b3570a7fbd03eca89daf62b35f1eb23af13bd | Shell | tyll/dracut-cryptssh | /89cryptssh/kill-dropbear.sh | UTF-8 | 225 | 3.09375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
pidfile=/tmp/dropbear.pid
[ -e $pidfile ] || exit 0
read PID < $pidfile
# stop listening process
kill -SIGSTOP $PID
# Kill all child processes
pkill -P $PID
# Kill listening process
kill $PID
kill -SIGCONT $PID
| true |
058c318e7d4ebf0cb3dd787a8c95d558afad974b | Shell | digital-asset/ghc-lib | /ghc-lib-stack-matrix-build-test.sh | UTF-8 | 425 | 2.640625 | 3 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/usr/bin/env bash
set -euo pipefail
flavors=("ghc-master" "ghc-9.6.1")
resolvers=("ghc-9.4.4" "ghc-9.2.5" "ghc-9.2.2")
for f in "${flavors[@]}"; do
for r in "${resolvers[@]}"; do
echo "-- "
stack runhaskell --stack-yaml stack-exact.yaml --resolver "$r" --package extra --package optparse-applicat... | true |
f31fdd86273cdcee74885bf610e78da7616b5b72 | Shell | danieldbower/githooks | /hooks/pre-push | UTF-8 | 675 | 3.40625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Prevents pushing to master or development branches
# ideas and some code from comments to https://gist.github.com/pixelhandler/5718585
BRANCH=`git rev-parse --abbrev-ref HEAD`
PUSH_COMMAND=`ps -ocommand= -p $PPID`
PROTECTED_BRANCHES="^(master|development)"
RED='\033[0;31m'
NC='\033[0m' # No Color
if [[... | true |
d217e5ab4a9fd2fc4b8a06bd10d3a0707ced8512 | Shell | Miranda-Reich/MirandaReich-repo | /supplemental_code_original.sh | UTF-8 | 11,687 | 3.34375 | 3 | [] | no_license | #Supplemental code
#1. Fastqc quality assesment code
#!/bin/sh
source /opt/asn/etc/asn-bash-profiles-special/modules.sh
module load fastqc/0.10.1
module load gnu_parallel/201612222
########### This is example code to move your files from our class shared to scratch, unzip them, concatenated the R1 and R2 files for e... | true |
2287bd9ae43efeb598b49ca08ed882e6bb06db8f | Shell | jamesgua/tls_conn_test | /node/jsongen.sh | UTF-8 | 595 | 3.5625 | 4 | [] | no_license | #!/bin/bash
if [ $# -ne 1 ]; then
echo "must provide wrapped secret_id!"
echo "usage: $0 \$wrapped_secret_id"
exit 1
fi
jsonfile=$HOME/.appRoleIDs.json
touch $jsonfile
if [ $? -ne 0 ]; then
echo "No write permission, failed to generate json file"
exit 1
fi
export role_id="$role_id"
curl -H "X-Vault-Token: $1"... | true |
b7fe5b9ce251f539a4fc3f9fddba76db7d39698d | Shell | petronny/aur3-mirror | /monster-rpg2-lite/PKGBUILD | UTF-8 | 1,429 | 2.78125 | 3 | [] | no_license | # This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: René Reigel <stormtrooperofdeath@gmx.net>
pkgname... | true |
e9f9c7c12e0cd498418026770f847dab658d20c7 | Shell | timm/16 | /rowporter | UTF-8 | 1,762 | 3.953125 | 4 | [
"Unlicense"
] | permissive | #!/usr/bin/env bash
# rowporter :simple text report generator from tab-seperated tables
# (c) Tim Menzies, BSD license (2 paragraph version), 2016
# Requires: bash, awk, fmt, tr
# Tested on linux and mac. As to windows: let me know how that goes.
# Tested using Google sheets, has problems with Excel. Anyone?
# Usage... | true |
5c43dbcce91c365920dabd264f4880cbb1573ed1 | Shell | xkwangy/mapnik-packaging | /mapnik-lto.sh | UTF-8 | 8,599 | 2.609375 | 3 | [] | no_license | sudo apt-get install linux-headers-server linux-image-server linux-server
sudo mkdir /opt/
sudo chown mapnik -R /opt/
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install binutils-gold subversion build-essential gcc-multilib
mkdir -p $HOME/deb
cd $HOME/deb
apt-get source binutils
cd ~/src
# http://llvm.org/... | true |
1e9f711913d918b2f824afcf7176280bb27d1000 | Shell | bradleygolden/mac-restore | /mac_restore.sh | UTF-8 | 821 | 3.21875 | 3 | [] | no_license | #!bin/bash
# Check for Homebrew,
# Install if we don't have it
if test ! $(which brew); then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bash_profile
fi
# install brew binaries/cask applications/app store ap... | true |
ce255d86c0991eef7fe2cfcc12327451dba9374b | Shell | nrgaway/qubes-core-vchan-kvm | /archlinux/PKGBUILD | UTF-8 | 1,405 | 2.78125 | 3 | [] | no_license | #!/bin/bash
# shellcheck disable=SC2034
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Olivier ... | true |
dbcb5b149e6f111d3dcdc063a213a1be3d38f06a | Shell | bazaarvoice/cloudbreak | /orchestrator-salt/src/main/resources/salt/salt/ambari/scripts/install-mpack.sh | UTF-8 | 384 | 2.828125 | 3 | [
"LicenseRef-scancode-warranty-disclaimer",
"ANTLR-PD",
"CDDL-1.0",
"bzip2-1.0.6",
"Zlib",
"BSD-3-Clause",
"MIT",
"EPL-1.0",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-jdbm-1.00",
"Apache-2.0"
] | permissive | #!/bin/bash
set -ex
ARGS=""
{% if mpack.purge %}
ARGS+="--purge"
{% endif %}
{% if mpack.force %}
ARGS+=" --force"
{% endif %}
{% if mpack.purgeList %}
ARGS+=" --purge-list {{ mpack.purgeList|join(',') }}"
{% endif %}
echo yes | ambari-server install-mpack --mpack={{ mpack.mpackUrl }} ${ARGS} --verbose
echo "$(date +%... | true |
1068dc28e2536dfe7d842a611af6ff0b9eac17b3 | Shell | aprokop/package_configs | /trilinos_dtk | UTF-8 | 1,509 | 2.84375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
EXTRA_ARGS=$@
source $HOME/.personal/package_configs/preamble
TRILINOS_DIR="${TRILINOS_DIR:-$(pwd)/..}"
ARGS=(
-D CMAKE_BUILD_TYPE=RelWithDebInfo
-D CMAKE_INSTALL_PREFIX=$HOME/local/opt/trilinos-dtk/
-D BUILD_SHARED_LIBS=ON
### COMPILERS AND FLAGS ###
-D CMAKE_CXX_COMPILER_LAUNCHER... | true |
132ffc72cc7609c8e1b4eed7f5245f7af25a4750 | Shell | asiekierka/twili | /pkgs/libjpeg/build.sh | UTF-8 | 239 | 2.890625 | 3 | [] | no_license | #!/bin/sh -e
VER=8d
test -e jpegsrc.v$VER.tar.gz || wget http://www.ijg.org/files/jpegsrc.v$VER.tar.gz
rm -rf jpeg-$VER;tar -xf jpegsrc.v$VER.tar.gz
cd jpeg-$VER
./configure --prefix=/
make
make DESTDIR=$1 install
cd ..
rm -rf jpeg-$VER
| true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.