code stringlengths 2 1.05M | repo_name stringlengths 5 110 | path stringlengths 3 922 | language stringclasses 1
value | license stringclasses 15
values | size int64 2 1.05M |
|---|---|---|---|---|---|
#! /bin/bash
# Author : TiWim
# Date : 17 / 07 / 15
# Description : Pause/play switcher for vlc or any other media player
# Use : insert a line in your configs to bind it to a key combination
media="vlc"
pid=$(pidof $media)
state=$(ps aux | grep -v grep | grep $pid | awk '{print $8}')
if... | TiWim/packetList | scripts/soundswitcher.sh | Shell | gpl-2.0 | 455 |
#!/bin/sh
system="$1"
start="$2"
end="$3"
field="$4"
echo "SELECT UNIX_TIMESTAMP(creation) AS time, data_$field FROM loadavg WHERE system='$system' AND UNIX_TIMESTAMP(creation) > '$start' AND UNIX_TIMESTAMP(creation) <= '$end' ORDER BY row_id;" \
|mysql --batch --delimiter=: --skip-column-names sdc \
|awk '{print $1... | jheusala/sdc | rrdtool/db-query-loadavg.sh | Shell | gpl-2.0 | 330 |
!/bin/bash
MY_DIR=`dirname $0`
if [[ -z "$CREATEREPO" ]]
then
CREATEREPO="createrepo_c"
fi
pushd "$MY_DIR"
$CREATEREPO $EXTRAARGS --pkglist pkglist --revision foorevisionbar --distro cpe:/o:fedoraproject:fedora:17,foo --repo abc --content plm .
rm repodata/*filelists.sqlite*
rm repodata/*other.sqlite*
rm repodat... | Tojaj/DeltaRepo | acceptance_tests/repos/repo2_only_pri/gen.sh | Shell | gpl-2.0 | 396 |
convert images/OCS-630-A.png -crop 1551x471+0+0 +repage images/OCS-630-A-0.png
convert -append images/OCS-629-B-3.png images/OCS-630-A-0.png images/OCS-629-B-3.png
rm images/OCS-630-A-0.png
convert images/OCS-630-A.png -crop 1551x792+0+474 +repage images/OCS-630-A-1.png
convert images/OCS-630-A.png -crop 1551x959+0+126... | jonnymwalker/Staroslavjanskij-Slovar | scripts/findindents.OCS-630.sh | Shell | gpl-2.0 | 1,805 |
#!/bin/bash
tmux new-session -n Tmux-Log -s sys \
'sudo tail -f /var/log/messages' \; \
split-window 'sudo tail -f /var/log/syslog' \; \
split-window 'sudo -i' \; \
select-layout even-vertical
| architek/myfiles | files/bin/tmux_logs.sh | Shell | gpl-2.0 | 222 |
#!/bin/bash
for ((expo=8;expo<=8;expo++))
do
for ((numproc=1;numproc<=9;numproc++))
do
mpirun -np 7 ./WH_test 1.${numproc}e${expo}
done
done
| kel85uk/WH_Cpp | runall.sh | Shell | gpl-2.0 | 144 |
#!/bin/sh
# fix_stereodemux.sh
# LocalRadio
#
# Created by Douglas Ward on 7/28/18.
# Copyright © 2017-2020 ArkPhone LLC. All rights reserved.
# Fix libliquid and libsndfile dylibs to load properly for stereodemux
EXECFILE=${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}
EXECFOLDER=${BUILT_PRODUCTS_DIR}/${EXECUTABLE_F... | dsward2/LocalRadio | LocalRadio/Scripts/fix_stereodemux.sh | Shell | gpl-2.0 | 1,060 |
#!/system/bin/sh
# Copyright (c) 2009, Code Aurora Forum. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this ... | PyYoshi/is01_froyo_kernel | arch/arm/boot/mkbootimg/root/init.qcom.sh | Shell | gpl-2.0 | 2,149 |
#!/bin/sh
# Copy xusb file to initrd
#
mkdir -p "${DESTDIR}"/lib/firmware/nvidia/tegra210
xusbfile=/lib/firmware/nvidia/tegra210/xusb.bin
if [ -f "${xusbfile}" ]; then
cp "${xusbfile}" "${DESTDIR}"/lib/firmware/nvidia/tegra210
fi
usbold=/lib/firmware/tegra21x_xusb_firmware
if [ -f "${usbold}" ]; then
cp "${usbold}... | armbian/build | packages/blobs/jetson/jetson.sh | Shell | gpl-2.0 | 359 |
pubresdir="$(cd "$(dirname "${0}")" && pwd)"
cd "${1}" || exit
curdirec="$(pwd)"
CHOBAK_INSTALL_PREFIX="${HOME}"
export CHOBAK_INSTALL_PREFIX
CHOBAK_INSTALL_JAIL=""
export CHOBAK_INSTALL_JAIL
rm -rf tmp
mkdir -p tmp
# The following litany is in case any package has it's
# own tests that must be run before instal... | sophia-collaborations/chobakwrap | pub-res/uninstall.sh | Shell | gpl-2.0 | 4,191 |
#!/usr/bin/env bash
DATADIR=""
BACKUPDIR="/tmp/backup"
CONFIGFILE="/etc/mongod.conf"
BACKUP_CONFIGFILE="/tmp/mongod.conf.backup"
LOG="/tmp/psmdb_run.log"
SLES=0
if [ -f /etc/os-release ]; then
SLES=$(cat /etc/os-release | grep -c '^NAME=\"SLES' || true)
fi
if [ -f /etc/redhat-release -o ${SLES} -eq 1 ]; then
DAT... | Percona-QA/package-testing | scripts/psmdb_common.sh | Shell | gpl-2.0 | 4,891 |
#!/bin/sh
# ------------------------------------------------------------------------------
# --- Run sampe to generate SAM file
# ------------------------------------------------------------------------------
# Check that genome FASTA and genome code were passed as parameters
USAGE="$0 genome.fasta genome_code";
if [... | bergeycm/NGS-map | scripts/sampe.sh | Shell | gpl-2.0 | 721 |
#!/bin/bash
docker run -v "$(pwd):/build" wavbreaker-win32-build \
sh -e -x scripts/win32/run-build-inside.sh
| thp/wavbreaker | scripts/win32/run-build.sh | Shell | gpl-2.0 | 114 |
#! /bin/sh
. ../../testenv.sh
for t in physical_division; do
synth $t.vhdl -e $t > syn_$t.vhdl
analyze syn_$t.vhdl
clean
done
echo "Test successful"
| tgingold/ghdl | testsuite/synth/physical01/testsuite.sh | Shell | gpl-2.0 | 164 |
#!/bin/bash
#
# this script must be run from the woo/nsis directory
#
set -e -x
# must be absolute path where pyinstaller's-generated executable is
if [ -d /boot ]; then
# linux
BINDIR=/media/eudoxos/WIN7/src/woo/dist/wwoo-win64
else
# windows
BINDIR=/c/src/woo/dist/wwoo-win64
fi
DO_LIBS=false
DO_WOO=false
DO_EXTR... | gladk/woodem | nsis/nsis-runall.sh | Shell | gpl-2.0 | 2,498 |
#!/bin/bash
# File: newAVRproject.sh
# Date: 14.10.2019 12:52
# Author: Marek Nožka, marek <@t> tlapicka <d.t> net
# Licence: GNU/GPL
# Task:
############################################################
git clone https://github.com/spseol/AVRtools.git $1
| spseol/udelatka | bin/newAVRproject.sh | Shell | gpl-2.0 | 268 |
#!/bin/bash
# List compiled from:
# Slate: http://goo.gl/vPC4X4
# Wikipedia: http://goo.gl/mdcyT8
swear_words=(
'shit' 'fuck' 'damn' 'bitch' 'crap' 'dick' 'bitch' 'crap'
'dick' 'piss' 'pussy' 'fag' 'asshole' 'cock' 'bastard' 'darn'
'douche' 'slut' 'whore' 'christ' 'jesus' 'arse' 'bloody' 'bollocks'
)
if [... | bhalash/Fun | Shell/swearwords.sh | Shell | gpl-2.0 | 650 |
#!/bin/sh
set -xve
while read -r line; do
tag -a $line
done < "$1"
| iamthad/redditarchiver | mktags.sh | Shell | gpl-3.0 | 69 |
#!/bin/bash
# 文件名: ss-local.sh
# 描述: 用于CentOs7 系统,安装ShadowSocks的客户端。
# 版本: 1.0
# 创建时间: 2016年11月04日
# 修订: None
# 作者: Selphia (sp), admin@factory.moe
### 检测是否安装GCC
gcc --version
if [ $? != 0 ]
then
echo 'Before you proceed, make sure that your system has a C compiler'
exit 0
fi
# 显示python版本
echo "Python3 Versio... | selphia/ManagementScript | ss-local.sh | Shell | gpl-3.0 | 2,297 |
#!/bin/sh
copyrightNotice() cat << EOF
BEGIN COPYRIGHT NOTICE
This file is part of program "Podoscopista"
Copyright 2012 Rodrigo Lemos
This program 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... | rslemos/podoscopista | applylicense.sh | Shell | gpl-3.0 | 3,797 |
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
pushd $DIR
cmd='./../build/bin/geth attach'
eval $cmd
popd
| crazyquark/go-ethereum | run/attachGeth.sh | Shell | gpl-3.0 | 129 |
#!/bin/bash
echo "$(date): Setting up demo environment."
echo "$(date): Creating project: demo-abtesting."
oc new-project demo-abtesting --description "Demo of AB testing using PHP 7.2 and 7.0" --display-name "Demo - AB testing"
oc project demo-abtesting
echo "$(date): Creating an PHP 7.2 application."
oc new-app o... | mglantz/openshift-demos | source/abtesting/install.sh | Shell | gpl-3.0 | 1,241 |
#!/bin/bash
# PHP5
##########################
source setup/functions.sh # load our functions
source /etc/xenmailserver.conf # load global vars
# ### Removing PHP7.0
#echo "Removing all PHP packages..."
#apt-get remove php* > /dev/null 2>&1
#apt-get purge php* > /dev/null 2>&1
#apt-get autoremove > /dev/null 2>&1
#apt... | realizelol/xenmailserv | setup/php.sh | Shell | gpl-3.0 | 1,544 |
#!/bin/sh
echo enter youtube URL
read URL
echo enter format
read FORMAT
(youtube-dl -f $FORMAT --no-warnings -o /root/my-applications/playYT/playYT.$FORMAT $URL)
mplayer /root/my-applications/playYT/playYT.$FORMAT
rm /root/my-applications/playYT/playYT.$FORMAT | ThomasTheSpaceFox/GTKtools | BASHTEST1/bashtest2.sh | Shell | gpl-3.0 | 262 |
#!/bin/sh
curl http://www.public.asu.edu/~lwolf2/data/example_data.tar.gz > example_data.tar.gz && tar -zxvf example_data.tar.gz
| ljwolf/pyMaxFlow | getdata.sh | Shell | gpl-3.0 | 129 |
#! /usr/bin/bash
# Script: csv.bash
# Author: Ben Altman (csv.feedback.benalt at xoxy.net)
# Description: Convert csv files from Excel in to a format using a different separator.
#
# Usage: csv.bash [options] csv_file
# -i csv_file_field_separator (default is comma)
# -o output_field_separator (default i... | benalt613/csv | csv.bash | Shell | gpl-3.0 | 2,927 |
#!/bin/bash
set -e
echo "Installing build dependencies..."
sudo apt-get install -y libc6-dev-i386 >/dev/null
ARCHS[0]=386
ARCHS[1]=amd64
#ARCHS[2]=arm
OS=linux
#VERSION=$(git describe --tags)
VERSION=$TRAVIS_TAG
DIR=$(dirname $(cd $(dirname "${BASH_SOURCE[0]}") && pwd))
NAME=$(basename $DIR)
TMP_DIR="$DIR/tmp"
mk... | abeMedia/ira | scripts/release.sh | Shell | gpl-3.0 | 889 |
#!/bin/bash
python AnalyzeSimulation.py --paralog1 YMR143W --paralog2 YDL083C --simnum 97 > YMR143W_YDL083C_MG94_nonclock_Sim97_PrintScreen.txt
| xjw1001001/IGCexpansion | Simulation/ShFiles/MG94_YMR143W_YDL083C_sim97.sh | Shell | gpl-3.0 | 145 |
#!/bin/sh
set -e # Any commands which fail will cause the script to exit
set -x # Verbose script
# find out srcs path:
SCRIPTS_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
BRANCH_NAME="master"
# Regenerate doxygen docs:
cd "${SCRIPTS_DIR}/../libldaq/"
doxygen
cd "${SCRIPTS_DIR}/../"
git checkout gh-pages
se... | LibreDAQ/libredaq | scripts/rebuild_doxygen_docs.sh | Shell | gpl-3.0 | 526 |
#!/bin/bash
# USAGE: ./whole_intron_fasta.sh upstream_introns.bed downstream_introns.bed genome.fa
#wget -c http://hgdownload.cse.ucsc.edu/goldenPath/ce11/bigZips/chromFa.tar.gz -O - | gzip -dc | tar -xO > ce11.fa
upstream=$1
downstream=$2
genome=$3
bedtools getfasta -fi $genome -bed $upstream -s -name > left_introns... | alexandruioanvoda/autoBLAST | whole_intron_fasta.sh | Shell | gpl-3.0 | 399 |
#!/bin/bash
# shellcheck disable=SC2034
#--
# M A I N
#--
_parse_arg "$@"
APP_DESC='Administration script'
_rks_app "$0" "$@"
if test -s ../phplib/bin/toggle; then
PATH_PHPLIB=$(realpath ../phplib)
elif test -s ../../bin/toggle; then
PATH_PHPLIB=$(realpath ../..)
fi
case ${ARG[1]} in
build)
build;;
docs)
do... | RolandKujundzic/rkphplib | sh/run/main.sh | Shell | gpl-3.0 | 490 |
#!/bin/bash
set -i
set -e
killall lxpanel
find ~/.cache/menus -name '*' -type f -delete
nohup lxpanel -p LXDE > /dev/null &
| bboortz/archlinux-scripts | lxde_tools/restart_lxpanel.sh | Shell | gpl-3.0 | 126 |
#!/bin/sh
# P01 - Script de finalizacion de la practica
# Realiza las operaciones llevadas a cabo en la practica, dejando
# el equipo en el estado en que debe situarse tras finalizarla.
# Al terminar la practica P01 el equipo debe estar en el mismo estado que antes de realizarla
ACTUAL=`pwd` && cd `dirname $0` && ORIG... | carrodher/teleco | STA/P01/P01/P01final.sh | Shell | gpl-3.0 | 389 |
#!/bin/bash
# ----------------------------------------------------------------------
#
# Author: Myrto C Kontouli
# 999Design.com
# Date: 18/May/2017
# Last Updated: 28/June/2017
#
# ----------------------------------------------------------------------
#
# Backup wrapper/handler
#
# Backs up target directory and its ... | LimeWub/bkup | bkup.sh | Shell | gpl-3.0 | 2,836 |
#!/bin/bash
# modules/zfs/run.sh
# Copyright Vince Mulhollon 2014
# GPLv3 license
zfs set copies=2 zroot
exit 0
| vincemulhollon/nihconfig | modules/zfs/run.sh | Shell | gpl-3.0 | 115 |
#!/bin/bash
for i in `find . -name "RTRV-RTG-INFO.tl1" -print`
do
cat $i
done
| jmacauley/OpenDRAC | Mediation/Simulators/src/main/resources/Production/search.sh | Shell | gpl-3.0 | 80 |
#!/bin/bash
valgrind --leak-check=full --track-origins=yes --suppressions=./SI.supp ./build/SI-Debug
| wyllman/SI | valgrind-debug.sh | Shell | gpl-3.0 | 102 |
#!/bin/bash
docker rmi mythtv/keycloak
docker build --tag mythtv/keycloak /root/docker/keycloak
VERSION=`docker inspect quay.io/keycloak/keycloak | grep KEYCLOAK_VERSION | cut -f2 -d= | sed -e 's/",//g' | head -1`
docker tag mythtv/keycloak:latest mythtv/keycloak:${VERSION}
| MythTV/docker | rebuild-keycloak.sh | Shell | gpl-3.0 | 277 |
#!/bin/bash
#repo_url=`git remote show origin | grep 'URL zum Abholen: ' | grep -o -E "https://github.com/.+" | sed -rn 's/https:\/\/([^/]+)\/(.+)/git@\1:\2.git/p'`
repo_url=`git remote get-url origin`
#if [ "$repo_url" =~ "https://github.com/.+" ]
if [ "`echo $repo_url | grep -E 'https://.+'`" != "" ]
then
git remo... | user9209/LinuxScripts | git/switch_https_to_ssh.sh | Shell | gpl-3.0 | 531 |
#!/bin/bash
#$ -S /bin/bash
################################################################
# Penn Hippocampus Atlas: Intensity-Based Normalization Script #
################################################################
# Usage function
function usage()
{
cat <<-USAGETEXT
pmatas_ibn_long: penn hippo atlas longi... | sandhitsu/aloha | scripts/vacind_long_deformable_ITKv4_wb.sh | Shell | gpl-3.0 | 34,078 |
#!/bin/bash
/media/PiShare/Git/kiosk_JerrieMockWorld/dbuscontrol.sh volumedown #using dbus controller to send key strokes to omxplayer syntax: dbuscontrol.sh <variable>
#echo -n "-" > /bin/omxfifo
exit 0 | samhlabs/kiosk_JerrieMockWorld | volumeDown.sh | Shell | gpl-3.0 | 205 |
#!/system/bin/sh
# Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notic... | DestructoSphere/android_device_huawei_y6 | rootdir/etc/init.qcom.post_boot.sh | Shell | gpl-3.0 | 71,185 |
#!/usr/bin/bash --
# Helper script for using an external diff program with Clearcase
# Specifically: Windows clearcase, Dynamic Views
# Adapted from stackoverflow/snip2code
#
# Intended usage: from parent dir of file to diff, type: ./ctDiffHelper.sh file.cpp
# Used with alias: ctdiff file.cpp (alias: ctdiff='~/bin/ct... | tniles/refBin | ctDiffHelper.sh | Shell | gpl-3.0 | 1,247 |
export qtune_GPIO0_ACTIVE_CONFIG=0x80000000
export qtune_GPIO1_ACTIVE_CONFIG=0x90000800
export qtune_GPIO2_ACTIVE_CONFIG=0x90000800
export qtune_GPIO3_ACTIVE_CONFIG=0x90000800
export qtune_GPIO4_ACTIVE_CONFIG=0x80000000
export qtune_GPIO5_ACTIVE_CONFIG=0x80000000
export qtune_GPIO6_ACTIVE_CONFIG=0x80000800
export qtune... | dengcj0/QCA4010 | target/tool/tunable/tuneenv.sh | Shell | gpl-3.0 | 5,349 |
#!/bin/bash
# Crack PKCS12 file using a dictionary attack
DICCIONARIO=$1
ARCHIVO=$2
COUNT=0
for PSW in $(cat $DICCIONARIO)
do
let COUNT+=1
let VAL=COUNT%1000
if [ $VAL -eq 0 ]; then date; echo Intento $COUNT; fi
if ( openssl pkcs12 -noout -passin pass:${PSW} -in ${ARCHIVO} 2> /dev/null )
then
echo
echo Password fo... | crackpkcs12/crackpkcs12 | misc/sh/crackpkcs12.sh | Shell | gpl-3.0 | 344 |
#! /bin/bash
USER=user
PASSWORD=password
while true
do
mosquitto_pub -u ${USER} -P ${PASSWORD} -t /IoTmanager/dev-fake2/light5/status -m "{ \"status\" : \"OFF\", \"class3\" : \"calm-bg light padding-left padding-right rounded\" }"
mosquitto_pub -u ${USER} -P ${PASSWORD} -t /IoTmanager/dev-fake2/light6/status -m "{\"d... | bigjohnson/RaspyIot | fakeboiler.sh | Shell | gpl-3.0 | 1,349 |
#!/bin/bash
#tar xvzf PPPoEDI*
#cd PPPoEDI*
python3 setup.py install
| LAR-UFES/pppoe-plugin | install.sh | Shell | gpl-3.0 | 69 |
#
# A desktop-oriented virtual machines management system written in Shell.
#
# Code is available online at https://github.com/magenete/cuckoo
# See LICENSE for licensing information, and README for details.
#
# Copyright (C) 2016 Magenete Systems OÜ.
#
# Options definition
cuckoo_args()
{
ARGS_SHORT="s:irbIV:qd:... | magenete/cuckoo | cuckoo/lib/mgt/argv.sh | Shell | gpl-3.0 | 10,152 |
#!/bin/bash
#
set -e
rm -rf ./out
cp configs/.config-apl-cros .config
make EXTRAVERSION=-MrChromebox-`date +"%Y.%m.%d"`
filename="seabios-apl-mrchromebox_`date +"%Y%m%d"`.bin"
cbfstool ${filename} create -m x86 -s 0x00200000
cbfstool ${filename} add-payload -f ./out/bios.bin.elf -n payload -b 0x0 -c lzma
cbfstool ${fil... | MattDevo/SeaBIOS | build-apl-cros.sh | Shell | gpl-3.0 | 633 |
gfortran -c gauss_converge.f95 gauss_tools.f95
gfortran gauss_converge.o gauss_tools.o | wcdawn/matrix_math | fortran_system_solve/quick_build.sh | Shell | gpl-3.0 | 86 |
util_dir="$(dirname $(readlink -f $BASH_SOURCE))"
hookit_dir="$(readlink -f ${util_dir}/../../src)"
payloads_dir=$(readlink -f ${util_dir}/../payloads)
payload() {
cat ${payloads_dir}/${1}.json
}
run_hook() {
container=$1
hook=$2
payload=$3
docker exec \
$container \
/opt/nanobox/hooks/$hook "$pay... | nanobox-io/nanobox-hooks-postgresql | test/util/docker.sh | Shell | mpl-2.0 | 966 |
#!/bin/bash -ex
echo -e '\e[1m\e[36m========== Installing gulp & dependencies ==========\e[0m'
yarn install
# Install dependencies one-by-one to avoid race-conditions
yarn --cwd ./scripts/shared-hugo-scripts/wiki/
yarn --cwd ./scripts/shared-hugo-scripts/compatdb/
yarn hugo version
echo -e '\e[1m\e[36m========== Start... | citra-emu/citra-web | .ci/build.sh | Shell | agpl-3.0 | 659 |
#!/bin/bash
if [ -z "1" ]
then
ITERATIONS=10
else
ITERATIONS=$1
fi
echo "Running for $ITERATIONS";
for (( i=0; i < $ITERATIONS; i++ ))
do
echo "Iteration $i"
./delete-population.pl
./delete-population.pl
./initial-pop-with-eval.pl conf R-ip128-r64
./mini-ga-sort-adapt.pl conf R-ip128-... | JJ/SofEA | perl/run-mini-ga-sort-adapt-dis.sh | Shell | agpl-3.0 | 424 |
#!/bin/sh
MEM=128m
ROOT_DIR=$(dirname $(cd $(dirname "$0"); pwd););
LIB_DIR="$ROOT_DIR/lib";
CONFIG_DIR="$ROOT_DIR/config/config";
# set monitor mode for resuming java job from background
#set -o monitor
java \
"-Xms$MEM" "-Xmx$MEM" \
-jar "$LIB_DIR/jetty/start.jar"\
-Dsolr.solr.home="$ROOT_DIR/search"... | emilis/PolicyFeed | bin/start-solr.sh | Shell | agpl-3.0 | 521 |
#!/bin/bash
if [ "$1" == "all" ]
then
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker rmi $(docker images -q)
docker volume rm $(docker volume ls -qf dangling=true)
else
# stop and rm all containers
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
# stop and... | ttssdev/appflow | containers/bin/docker-cleanup.sh | Shell | agpl-3.0 | 445 |
#!/bin/bash
DIRBIN="./"$(dirname $0)
CSVMOTS=$1
TXTMOTS=$(echo "$CSVMOTS" | sed 's/\.txt.nossenateurs.fr.5mots.txt/.txt/')
DIRMOTS=$(echo $TXTMOTS | sed 's/.txt//' | sed 's/ /_/g' | sed "s/'//ig")"/html"
mkdir -p "$DIRMOTS"
cat "$CSVMOTS" | grep -v Texteloi | grep -v NonObjectPage | awk -F ';' '{print "echo DIRMOT... | regardscitoyens/LobbyTrack | compare_from_mots.sh | Shell | agpl-3.0 | 1,081 |
#!/bin/sh
git clone git@github.com:timetabio/config
| timetabio/code | scripts/setup.sh | Shell | agpl-3.0 | 53 |
#!/bin/bash
empty_translations=$(grep -r '""' locale -c)
empty_translations_count=0
for line in $empty_translations
do
count=$(cut -d ':' -f2 <<< $line)
empty_translations_count=$((empty_translations_count+count))
echo "empty: $line"
done
fuzzy_translations=$(grep -r 'fuzzy' locale -c)
fuzzy_translation... | HelloLily/hellolily | checks/git/translations.sh | Shell | agpl-3.0 | 575 |
#!/bin/bash
META_INF_DIR=/opt/Ephesoft/Application/WEB-INF/classes/META-INF
DB_PROPERTIES_FILE=$META_INF_DIR/dcma-data-access/dcma-db.properties
OPEN_OFFICE_CONFIG=$META_INF_DIR/dcma-open-office/open-office.properties
#set Operational sistem as RedHat
echo "os_name=redhat" >> /etc/Ephesoft/ephesoft.conf
#Remove all... | gsdenys/ephesoft | assets/post-install.sh | Shell | agpl-3.0 | 1,696 |
#!/bin/bash -x
# Typical usage:
# lockrun -L=/tmp/timit.lock --wait --sleep=60 -- <thisfile> <begin_epoch> <end_epoch>
# Example:
# lockrun -L=/tmp/timit.lock --wait --sleep=60 -- run-continue-timit.sh 1100 1200
# python theanodbn/runners/run_dbn_rambatch.py -c conf/timit/timit_c2001_l6_2048.py --continue-run --finet... | jraman/gpupetuum | src/util/run-continue-timit.sh | Shell | lgpl-2.1 | 1,532 |
#!/bin/bash
# set -e
# set -x
python setup.py sdist bdist_wheel
python pack.py
| Neutree/COMTool | tool/test.sh | Shell | lgpl-3.0 | 81 |
#!/bin/bash
#arkExportMapForSave.sh
#script for correctly and safely exporting Ark saved data while running
#if incorrect number of arguments passed
if [ $# -ne 1 ]; then
echo "No arguments supplied"
exit 1
fi
#check if argument is appropriate
if [[ "$1" =~ [^a-zA-Z0-9-_] ]]; then
echo "INVALID"
exit 1
fi
baseDi... | Pikachar2/ServerController | Ark Scripts/arkExportMapForSave.sh | Shell | lgpl-3.0 | 698 |
#!/bin/bash
#
# Check All IPMI Sensors
#
if $(grep -Eq 'flags.*hypervisor' /proc/cpuinfo); then
echo "OK. This is a virtual machine"
exit 0
fi
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
ipmitool_bin=$(which ipmitool 2> /dev/null)
if [[ $? -ne 0 ]]; then
echo "ERROR: No... | WZQ1397/automatic-repo | shell/system/check_ipmi_sensor_summary.sh | Shell | lgpl-3.0 | 1,365 |
#!/bin/bash
#
# Model adaptation:
#
# ./speech_sentences.py -l de gspv2
# cut -f 1 -d ' ' data/models/kaldi-generic-de-tdnn_f-latest/data/local/dict/lexicon.txt >vocab.txt
# lmplz -o 4 --prune 0 1 2 3 --limit_vocab_file vocab.txt --interpolate_unigrams 0 <data/dst/text-corpora/gspv2.txt >lm.arpa
# ./speech_kaldi_ada... | gooofy/speech | 12review.sh | Shell | lgpl-3.0 | 1,432 |
#!/bin/bash
echo -n "# Update package index files "
apt-get update
echo -n "# Install updates "
apt-get dist-upgrade -y
apt-get upgrade -y
apt-get install -f
echo -n "# Remove unused packages "
apt-get autoclean
apt-get autoremove -y
apt-get clean
dpkg --purge `COLUMNS=300 dpkg -l "*" | egrep "^rc" | cut -d" " -f3`
... | Croxarens/bashy | system-apt-update.sh | Shell | unlicense | 357 |
#!/bin/bash
set -xe
# TODO: this whole thing seemed like a good idea at first but now I get the feeling that ansible would be better for this.
# ssh keys + config in place?
(test -e ~/.ssh/id_rsa.pub && grep jaXVXHL ~/.ssh/id_rsa.pub &> /dev/null) || (echo "are your ssh keys in place duder?" && exit 1)
mypath=$(exec... | filmaj/dotfiles | install.sh | Shell | unlicense | 3,641 |
#!/bin/sh
T=$(date -Iseconds | tr : - | tr + - | tr T - | awk -F- {'print($4$5$6)'})
screen -AdmS blink_$T /root/blink/while.sh
| kirr2/MR3020 | projects/blink/run.sh | Shell | unlicense | 129 |
#!/bin/bash -f
# Vivado (TM) v2016.4 (64-bit)
#
# Filename : output_fifo.sh
# Simulator : Aldec Riviera-PRO Simulator
# Description : Simulation script for compiling, elaborating and verifying the project source files.
# The script will automatically create the design libraries sub-directories ... | TWW12/lzw | ip_repo/edit_axi_compression_v1_0.ip_user_files/sim_scripts/output_fifo/riviera/output_fifo.sh | Shell | unlicense | 4,823 |
# man zshcontrib
zstyle ':vcs_info:*' actionformats '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f '
zstyle ':vcs_info:*' formats '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{5}]%f '
zstyle ':vcs_info:*' enable git #svn cvs
# Enable completion caching, use rehash to clear
zstyle ':completion::complete:*' use-cach... | megalithic/bits-and-bobs | zsh/completion.zsh | Shell | unlicense | 2,242 |
#!/bin/bash -x
#
# Generated - do not edit!
#
# Macros
TOP=`pwd`
CND_PLATFORM=GNU-Linux
CND_CONF=Debug
CND_DISTDIR=dist
CND_BUILDDIR=build
CND_DLIB_EXT=so
NBTMPDIR=${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM}/tmp-packaging
TMPDIRNAME=tmp-packaging
OUTPUT_PATH=${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/tutorial23
OUTPU... | TennisGazelle/cs791ALopez | ogldev-source/tutorial23/nbproject/Package-Debug.bash | Shell | apache-2.0 | 1,457 |
#!/bin/bash
# Creates the mapping for any and all new indexes
curl -XPUT "http://localhost:9200/_template/nodesstats" -d "
{
\"order\" : 0,
\"template\": \"nodesstats*\",
\"settings\" : {
\"number_of_shards\" : 3,
\"number_of_replicas\" : 1
},
\"mappings\" : {
\"node_stats\... | jpodeszwik/elasticsearch-monitoring | scripts/elasticsearch-nodesstats-template.sh | Shell | apache-2.0 | 1,083 |
#!/bin/bash
#
# Output Cassandra cluster and pod status
find_cassandra_pods="kubectl get pods -l name=cassandra"
first_running_seed=$($find_cassandra_pods --no-headers | \
grep Running | \
grep 1/1 | \
head -1 | \
awk '{print $1}')
cluster_status=$(kubectl exec $first_running_seed \
-c cassandra ... | vyshane/cassandra-kubernetes | cassandra-status.sh | Shell | apache-2.0 | 876 |
# To run we need to specify the modules path and the entry module name
$JAVA9_HOME/bin/java -p output/mlibs -m simplecalculator | wesleyegberto/java-new-features | java-9/modules/simple_deps/run_module_calculator.sh | Shell | apache-2.0 | 127 |
#!/bin/bash
set -e
rm -rf build
npm run build
cd build
python3 -m http.server
cd ..
echo "Ready."
| codetojoy/gists | bash/react_handy_jan_2022/build_and_serve_from_python.sh | Shell | apache-2.0 | 103 |
#!/bin/sh
# Read the marker line to echo it after stdin is closed
read -r marker_line_after_eof_from_stdin
# Echo all lines received from stdin
while read -r line; do echo "$line"; done
# Show that stdout still function after closing stdin
echo "$marker_line_after_eof_from_stdin"
| tejksat/docker-java | docker-java/src/test/resources/closeStdinWithStdinOnce/echo_stdin.sh | Shell | apache-2.0 | 281 |
#! /bin/bash
echo "cdh4-node-install.sh: About to install cdh4 packages, mongoDB..."
##updating the sources list first
sudo apt-get update
## installing packages
echo "cdh4-node-install.sh: Installing packages: bigtop-utils bigtop-jsvc bigtop-tomcat hadoop hadoop-hdfs hadoop-httpfs hadoop-mapreduce hadoop-yarn hadoo... | fastconnect/cloudify-cloudera | services/cloudera/cdh4-node/scripts-sh/cdh4-node-install.sh | Shell | apache-2.0 | 1,166 |
#!/usr/bin/env bash
set -eu
# This is a trivial example, but this command could run anything to
# calculate the value.
echo 3.4.5
| dnephin/dobi | examples/env-vars/print-version.sh | Shell | apache-2.0 | 131 |
#!/bin/bash
# Copyright 2015 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | drud/vault-consul-on-kube | sidecar_logging_image/config_generator.sh | Shell | apache-2.0 | 1,119 |
# Run this on MacOS with Xcode from the diplib directory
# set $PYPI_TOKEN to the PyPI token for the diplib project
# This is a modified version of `deploy_macos.sh`, written for macOS on
# an Apple Silicon machine. Homebrew offers only 3.8 and up for these
# machines, and by default installs in a different directory ... | DIPlib/diplib | tools/travis/deploy_macos_m1.sh | Shell | apache-2.0 | 1,909 |
# Copyright 2021 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | google/shoptimizer | env.sh | Shell | apache-2.0 | 774 |
#!/bin/bash
# https://github.com/apache/bigtop/tree/master/bigtop-test-framework
# "ITEST" is an integration testing framework written for and by the
# apache bigtop project. It consists of typical java tools/libraries
# such as junit, gradle and maven.
# This script is a helper to run itest on any hadoop system wit... | jctanner/odp-scripts | run_itest.sh | Shell | apache-2.0 | 7,501 |
#!/bin/bash
# *****************************************************************
#
# (C) Copyright IBM Corporation 2018.
#
# 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.o... | WASdev/sample.voice.gateway | sms/high-availability/deploy-xsld/join-xsld-members.sh | Shell | apache-2.0 | 2,814 |
#!/bin/bash
#
# Launch Gerrit Code Review as a daemon process.
# To get the service to restart correctly on reboot, uncomment below (3 lines):
# ========================
# chkconfig: 3 99 99
# description: Gerrit Code Review
# processname: gerrit
# ========================
### BEGIN INIT INFO
# Provides: ger... | WANdisco/gerrit | resources/com/google/gerrit/pgm/init/gerrit.sh | Shell | apache-2.0 | 17,080 |
pkg_name=sshpass
pkg_origin=core
pkg_version="1.06"
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_license=("GPL-2.0-or-later")
pkg_filename="${pkg_name}-${pkg_version}.tar.gz"
pkg_source="https://downloads.sourceforge.net/project/${pkg_name}/${pkg_name}/${pkg_version}/${pkg_filename}"
pkg_shasum="c63... | be-plans/be | sshpass/plan.sh | Shell | apache-2.0 | 555 |
#!/bin/bash
if [ ! -d /home/vagrant/.ssh ]; then
mkdir -p /home/vagrant/.ssh
chown vagrant:vagrant /home/vagrant/.ssh
fi
if [ ! -f /home/vagrant/.ssh/authorized_keys ]; then
wget --no-check-certificate https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub -O /home/vagrant/.ssh/authorized_keys || exit 1... | Sher-Chowdhury/vagrant-openldap | scripts/set-private-keys.sh | Shell | apache-2.0 | 448 |
#!/usr/bin/env bash
cd ..
git pull origin master
mvn clean install -Dmaven.test.skip=true
mvn package -Dmaven.test.skip=true
#docker-compose -f ./eureka/docker/docker-compose.yml up -d --build --force-recreate;
docker-compose -f ./Api/docker/docker-compose.yml up -d --build --force-recreate;
docker-comp... | java110/MicroCommunity | docs/bin/reBuildAll.sh | Shell | apache-2.0 | 990 |
#!/bin/bash
source ~/.profile
source ~/.rvm/scripts/rvm
rvm --version
# rvm install ruby-1.8.7
# rvm use ruby-1.8.7
rvm install ruby-1.9.3
rvm use ruby-1.9.3
# rvm install ruby-2.0.0
# rvm use ruby-2.0.0
set -e
ruby -v
echo "gem version"
gem --version
gem install bundler --no-rdoc --no-ri
bundle install --without ... | biemond/vagrant-puppetmaster | puppet/modules/orawls/test.sh | Shell | apache-2.0 | 1,333 |
#!/usr/bin/expect
set timeout 30
if { [llength $argv] < 1} {
puts "Usage:"
puts "$argv0 ip"
exit 1
}
spawn ssh banmo.ch@[lindex $argv 0]
expect {
"*assword:*" {
set timeout 1000
send "xxxxxxxxxx\r"
#exp_continue
}
"*es/no)?*" {
send "yes\r"... | ch710798472/MyTools | script/mac/ssh.sh | Shell | apache-2.0 | 535 |
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | googlearchive/graphd | test/unit/david_5.sh | Shell | apache-2.0 | 1,736 |
#!/bin/bash
echo "`pwd`"
echo `g++-4.9 -o ../build/maejs ../convert.cpp -static-libgcc -static-libstdc++ -static`
output="$(../build/maejs trash.aes memes.aes)"
echo "$output"
| waffleston/modulaether-script | test/test.sh | Shell | apache-2.0 | 176 |
#!/bin/bash
printf 'Which Linux distribution do you know? '
read DISTR
case $DISTR in
ubuntu)
echo "I know it! It is an operating system based on Debian."
;;
centos|rhel)
echo "Hey! It is my favorite Server OS!"
;;
windows)
echo "Very funny..."
... | becloudready/devopstraining | bash/conditions/case.sh | Shell | apache-2.0 | 398 |
#!/bin/bash
set -ex
export KOKORO_GITHUB_DIR=${KOKORO_ROOT}/src/github
source ${KOKORO_GFILE_DIR}/kokoro/common.sh
gcloud -q components update beta
cd ${KOKORO_GITHUB_DIR}/php-docker
export TAG=`date +%Y-%m-%d-%H-%M`
cp "${PHP_DOCKER_GOOGLE_CREDENTIALS}" \
./service_account.json
# For nightly build
if [ "${GOO... | GoogleCloudPlatform/php-docker | scripts/acceptance.sh | Shell | apache-2.0 | 447 |
#!/bin/sh
###
### Job name
#SBATCH --job-name=THA_bpdn_uniform_q3
### Time limit of total run time of the job
#SBATCH --time=500:00:00
### Number of nodes required for the job
#SBATCH --nodes=1
### Number of processor cores
#SBATCH -n 8
#SBATCH --sockets-per-node=2
#SBATCH --cores-per-socket=4
### Amount of memory per ... | ThomasA/cs-correlated-noise | code/bpdn/test_uniform_ord_vs_scale_q3.sh | Shell | apache-2.0 | 691 |
#!/bin/bash
#
# For testing installer
#
unit_test_main() {
local arg=${1:-** call with arg1 **}
if [[ $arg != arg1 ]]; then
install_err "$arg: install_extra_args failed"
fi
if ! install_download data1 | grep -s -q value1; then
install_err 'data1: install_download failed'
fi
local... | radiasoft/download | installers/unit-test/radiasoft-download.sh | Shell | apache-2.0 | 1,035 |
#!/bin/bash
# Generate test coverage statistics for Go packages.
#
# Works around the fact that `go test -coverprofile` currently does not work
# with multiple packages, see https://code.google.com/p/go/issues/detail?id=6909
#
# Usage: script/coverage.sh [--html]
#
# --html Additionally create HTML report and... | prebid/prebid-server | scripts/coverage.sh | Shell | apache-2.0 | 1,101 |
#!/bin/bash
# Copyright 2015 The Kubernetes Authors All rights reserved.
#
# 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 require... | gtank/kubernetes | hack/update-api-reference-docs.sh | Shell | apache-2.0 | 3,910 |
#!/usr/bin/env bash
DOCKER=`/usr/bin/which docker` || { /bin/echo "docker not found in path... $?"; exit 1;}
usage() {
cat <<EOF
Usage: stop-cluster.sh
EOF
}
${DOCKER} stop $(docker ps -a -q --filter="name=sfs_example")|| { echo "failed to stop containers ${DIRECTORY}. Exiting... $?"; exit 1;}
| pitchpoint-solutions/sfs | sfs-example/stop-cluster.sh | Shell | apache-2.0 | 305 |
#!/bin/bash
# Repo ref: https://github.com/jhajek/itmo-544-444-env/blob/master/install-webserver.sh
sudo apt-get update -y
sudo apt-get install -y apache2 git php5 php5-mysql php5-curl mysql-client curl php5-imagick
sudo git clone https://github.com/Langenoir1878/FP.git
mv ./FP/images /var/www/html/images
mv ./FP/... | Langenoir1878/FP | install-webserver.sh | Shell | artistic-2.0 | 982 |
#!/bin/sh
wget https://packagecontrol.io/Package%20Control.sublime-package -P ~/.config/sublime-text-3/Installed\ Packages/
| gunzy83/dotfiles | dot_scripts/run_once_after_12_sublime_package_control.sh | Shell | bsd-2-clause | 124 |
#!/bin/bash
set -e
VERSION=3.9.2-r1
SQLITE_VERSION=3.9.2
wget -O apsw.zip \
"https://github.com/rogerbinns/apsw/releases/download/${VERSION}/apsw-${VERSION}.zip"
rm -rf "apsw-${VERSION}"
unzip apsw.zip
cd "apsw-${VERSION}"
python setup.py fetch --version="${SQLITE_VERSION}" --missing-checksum-ok --all build --e... | octobear2/ob2 | build_apsw.sh | Shell | bsd-2-clause | 349 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.