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
for i in *.png; do autotrace "$i" -despeckle-level 14 --output-file "$(echo $i | sed 's/.png/.svg/')"; done | automata/tri-delaunay | util/png2svg.sh | Shell | mit | 120 |
#@desc 列出指定目录大小
#@author linjunjie
#@keyword du
#@env osx
du -h -d=1 ./shell_handbook/ | linjunjie/shell_handbook | du.sh | Shell | mit | 108 |
#!/bin/bash
$(pwd)/docker/run.sh npm install | hugo-cardenas/video-backupper | docker/init.sh | Shell | mit | 45 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DSA-2763-1
#
# Security announcement date: 2013-09-24 00:00:00 UTC
# Script generation date: 2017-01-01 21:06:41 UTC
#
# Operating System: Debian 7 (Wheezy)
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - pyopenssl:0.13-2+deb7u1
# - pytho... | Cyberwatch/cbw-security-fixes | Debian_7_(Wheezy)/x86_64/2013/DSA-2763-1.sh | Shell | mit | 1,349 |
#!/bin/bash
rm -r ./lib
rm -r ./samples
rm -r ./screenshots
echo "Directores removed"
mkdir ./screenshots
mkdir ./lib
mkdir ./lib/ios
mkdir ./samples
mkdir ./samples/ios
echo "Directores created"
rsync ../screenshots/* ./screenshots
echo "Screenshots copied"
rsync ../library/bin/release/mTouchPDFReaderLibrary.dll .... | AlexanderMac/mTouch-PDFReader | Component/build_component.sh | Shell | mit | 528 |
#!/bin/bash -x
#
# Generated - do not edit!
#
# Macros
TOP=`pwd`
CND_CONF=default
CND_DISTDIR=dist
TMPDIR=build/${CND_CONF}/${IMAGE_TYPE}/tmp-packaging
TMPDIRNAME=tmp-packaging
OUTPUT_PATH=dist/${CND_CONF}/${IMAGE_TYPE}/debug_express.X.${IMAGE_TYPE}.${OUTPUT_SUFFIX}
OUTPUT_BASENAME=debug_express.X.${IMAGE_TYPE}.${OUT... | ep1cman/FM | Code/Debug Express.X/nbproject/Package-default.bash | Shell | mit | 1,401 |
docker build -t udid .
| chedabob/whatismyudid | build.sh | Shell | mit | 24 |
#!/bin/sh
# failure
../build/examples/test3 -f=9 -f=1.0.0 -s=asdf asdf asdf > tmp.out 2>&1
if cmp -s tmp.out $srcdir/test32.out; then
exit 0
else
exit 1
fi
| mjkoo/tclap | tests/test32.sh | Shell | mit | 161 |
#!/bin/bash
set -e
rm -rf public
git clone -b master git@github.com:takus/takus.github.com.git public
hugo
cd public
git add .
git commit --allow-empty -m "Site updated at $(date -u --iso-8601=seconds)"
git push origin master
| takus/takus.github.com | ci/deploy.sh | Shell | mit | 229 |
#!/bin/bash
results="../results/inference_queries"
mkdir -p "$results"
echo -e "\tinfer([happens(e(S,A),T),subject(e(S,A),S),act(e(S,A),A)])"
cat "$results/kb.log" | tr -d '[:blank:]' | sed 's/:/\t/g' | sed 's/infer(\[happens(e(/{S\//g' | sed 's/),/,T\//g' | sed 's/,T\/subject/}\t/g' | sed 's/sit/A\/sit/g' | sed 's/sta... | kevinmcareavey/secproblog | scripts/format-inference_queries.sh | Shell | mit | 347 |
export CLASSPATH=$CLASSPATH:/home/kim/gitspace/java/lib/dom4j-1.6.1.jar:/home/kim/gitspace/java/lib/jaxen-1.1.6.jar | sggdv/java | demo.sh | Shell | mit | 115 |
mkdir MyIcon.iconset
sips -z 16 16 icon.png --out MyIcon.iconset/icon_16x16.png
sips -z 32 32 icon.png --out MyIcon.iconset/icon_16x16@2x.png
sips -z 32 32 icon.png --out MyIcon.iconset/icon_32x32.png
sips -z 64 64 icon.png --out MyIcon.iconset/icon_32x32@2x.png
sips -z 128 128 icon.png --out MyIcon.i... | huzecong/FlowFree | icon/build_icns.sh | Shell | mit | 731 |
#!/bin/bash
set -ue
BASE_URL=https://thebraithwaites.co.uk/wp-content/uploads/2016/09
DL_DIR=world
WORLD_DIR=~/.minecraft/games/com.mojang/minecraftWorlds/
function download_unzip(){
wget $1
unzip `basename $1`
}
mkdir -p $DL_DIR
cd $DL_DIR
download_unzip $BASE_URL/Tnt-Trouble.zip
download_unzip $BASE_URL/The-... | takahasi/utility | minecraft-pi/get-world.sh | Shell | mit | 1,176 |
#!/bin/bash
[[ ! -e /.dockerenv ]] && [[ ! -e /.dockerinit ]] && exit 0
apt-get update -yqq
apt-get install -yqq git python3 python3-dev python3-pip wget
| number13dev/mincloud | ci/docker_install.sh | Shell | mit | 155 |
#!/bin/sh
xrdb -merge $HOME/.Xresources
xrandr --dpi 96
xrandr --output eDP1 --mode 2560x1440 --pos 1920x0 --rotate normal --output DP1 --off --output DP2-1 --off --output DP2-2 --mode 1920x1200 --pos 0x0 --rotate normal --output DP2-3 --off --output HDMI2 --off --output HDMI1 --off --output DP2 --off
| chrcoe/dotfiles | screenlayout.symlink/docked-single_DP2-2.sh | Shell | mit | 303 |
#!/bin/sh
Service_Dir=~/.kde/share/kde4/services/ServiceMenus/
mkdir $Service_Dir -p
cd $Service_Dir
wget -c https://foreachsam.github.io/book-editor-atom/book/resource/integration/atom.desktop
| foreachsam/book-editor-atom | book/resource/integration/atom-install.sh | Shell | cc0-1.0 | 195 |
export JAVA_PATH=/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
if [ ! -f $JAVA_PATH ]
then
export JAVA_PATH=/usr/lib/jvm/java-8-oracle/bin/java
fi
CORENLP_OPTIONS="-parse.flags \" -makeCopulaHead\"" CORENLP=stanford-corenlp-full-* python3 -m corenlp --memory 1g -p 8999 &
for job in `jobs -p`; do echo $job; ... | ProjetPP/Deployment | run_corenlp.sh | Shell | cc0-1.0 | 336 |
#!/bin/bash
if [ -z $1 ]; then
echo "Usage: $0 <dbr_file>"
else
head -1 $1 | tr '","' '\n' | grep -v '^ *$' | awk '{print NR" "$0}'
fi
exit
| bmarcondes/toolbox | dbr_colums.sh | Shell | gpl-2.0 | 145 |
#!/bin/bash
echo "gen_misc.sh version 20150511"
echo ""
echo "Please follow below steps(1-5) to generate specific bin(s):"
echo "STEP 1: choose boot version(0=boot_v1.1, 1=boot_v1.2+, 2=none)"
echo "enter(0/1/2, default 2):"
read input
if [ -z "$input" ]; then
boot=none
elif [ $input == 0 ]; then
boot=old
elif ... | nvl1109/esp_iot_device | gen_misc.sh | Shell | gpl-2.0 | 3,387 |
#!/bin/sh
# Copyright (C) 2010-2012 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public L... | jh80chung/lvm2 | test/shell/lvextend-snapshot-dmeventd.sh | Shell | gpl-2.0 | 1,802 |
for (( ;; ))
do
sleep 1
cat /sys/class/gpio/gpio12/value
done
| ElvisLouis/code | work/project/Edison/elvis/work/cpp/listen.sh | Shell | gpl-2.0 | 64 |
#!/usr/bin/env bash
#pragma repo-format darcs-2
. lib
mkdir future
cd future
darcs init
touch titi
darcs add titi
darcs record -am titi
cat > _darcs/format <<EOF
hashed|gobbledygook
darcs-2
EOF
cat _darcs/format
cd ..
if grep darcs-1 .darcs/defaults; then
exit 200
fi
# get future repo: should be ok
darcs get ... | DavidAlphaFox/darcs | tests/issue1978.sh | Shell | gpl-2.0 | 433 |
convert images/OCS-467.png -crop 1711x5122+0+0 +repage images/OCS-467-A.png
convert images/OCS-467.png -crop 1735x5122+1711+0 +repage images/OCS-467-B.png
#/OCS-467.png
#
#
#
| jonnymwalker/Staroslavjanskij-Slovar | scripts/middlesplit.OCS-467.sh | Shell | gpl-2.0 | 175 |
USERNAME=gor
HOSTNAME=myarch
# Check if it is really UEFI, the output should lists the UEFI variables
efivar -l
# Check for connection
output=$(./ping_test.sh | tail -1)
if [ "$output" == "ip is up" ]; then
echo -e "connection is up"
else
echo -e "connection is down. trying to acquire IP....."
dhcpcd
fi
# Partit... | keeper575/arch-linux-uefi-installer | install.sh | Shell | gpl-2.0 | 2,506 |
#!/bin/sh
#
# Build a fat binary on Mac OS X, thanks Ryan!
# Number of CPUs (for make -j)
NCPU=`sysctl -n hw.ncpu`
if test x$NJOB = x; then
NJOB=$NCPU
fi
# SDK path
if test x$SDK_PATH = x; then
SDK_PATH=/Developer/SDKs
fi
# Generic, cross-platform CFLAGS you always want go here.
CFLAGS="-O3 -g -pipe"
# We d... | ZiberLTD/windows | sdl/build-scripts/fatbuild.sh | Shell | gpl-2.0 | 7,184 |
pip uninstall vishap -y
rm build -rf
rm dist -rf
rm builddocs.zip
rm src/vishap.egg-info -rf
| barseghyanartur/vishap | scripts/uninstall.sh | Shell | gpl-2.0 | 93 |
#!/bin/bash
dir_include=/home/lijiaying/Research/GitHub/ZILUv2/scripts
. $dir_include"/include.sh"
Nv=0
Nb=0
home_path=/home/lijiaying/Research/GitHub/ZILUv2
dir_cfg="cfg"
dir_test="test"
dir_temp="tmp"
dir_tool="tools"
dir_parser="parser"
prefix=$1
mkdir -p tmp
file_cfg=$prefix".cfg"
file_cpp=$prefix".cpp"
file_v... | lijiaying/ZILUv2 | backup/build.sh | Shell | gpl-2.0 | 3,561 |
#!/bin/bash
##
## Gebruik: sg-extract.sh bestand xmltag
## Bijvoorbeeld: sg-extract.sh polissen.xml kenteken
##
txtrst=$(tput sgr0) # Text reset
txtbld=$(tput bold) # Bold
START=$(date +%s)
STARTPP=$(date +%s)
cat << "EOF"
_ _
_____ _| |_ _ __ __ _ ___| |_
/ _ \ \/ / __| '__/ _`... | wtrdk/sg-scripts | sg-extract.sh | Shell | gpl-2.0 | 2,583 |
#!/bin/bash -
#===============================================================================
#
# FILE: return-big-number.sh
#
# USAGE: ./return-big-number.sh
#
# DESCRIPTION: 获得大整数"返回值"
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: YOUR ... | yaowenqiang/bash | function/return-big-number.sh | Shell | gpl-2.0 | 1,026 |
gst-launch-1.0 -e \
decklinkvideosrc mode=1080p30 connection=sdi device-number=4 \
! video/x-raw, width=1920, height=1080 \
! videoconvert \
! videoscale \
! video/x-raw, width=1920, height=1080 \
! x264enc bframes=0 key-int-max=60 tune=zerolatency pass=cbr bitrate=4000 speed-preset=ultrafast \
... | gamernetwork/gutbuster | stream.sh | Shell | gpl-2.0 | 1,366 |
# update desktop entries
if [ -x usr/bin/update-desktop-database ]; then
usr/bin/update-desktop-database 1> /dev/null 2> /dev/null
fi
# update mime databases
if [ -x usr/bin/update-mime-database ]; then
usr/bin/update-mime-database usr/share/mime 1> /dev/null 2> /dev/null
fi
| mmwanga/gsb-build-system | src/go/abiword/doinst.sh | Shell | gpl-2.0 | 281 |
#! /usr/bin/env bash
#
# Copyright (C) 2009 - 2019 Internet Neutral Exchange Association Company Limited By Guarantee.
# All Rights Reserved.
#
# This file is part of IXP Manager.
#
# IXP Manager is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published ... | inex/IXP-Manager | tools/runtime/tacacs/update-tacacs.sh | Shell | gpl-2.0 | 3,168 |
NDK=/Users/shutup/Documents/cocos2dx/android-ndk-r10e
SRC_PATH=/Users/shutup/Documents/player/3rd_libs/libvorbis-1.3.5
PLATFORM=$NDK/platforms/android-8/arch-arm/
PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64
CROSS_PREFIX=$PREBUILT/bin/arm-linux-androideabi-
CPU=arm
PREFIX=/Users/shutup/Docu... | shutup/ffmpeg-4-android | alone/build_vorbis.sh | Shell | gpl-2.0 | 1,096 |
#!/bin/bash -x
#
# Generated - do not edit!
#
# Macros
TOP=`pwd`
CND_PLATFORM=GNU-Linux-x86
CND_CONF=Release
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}/ejercicio0... | pdavila13/Program_C | ejerciciosExamen/ejercicio05/nbproject/Package-Release.bash | Shell | gpl-2.0 | 1,469 |
#! /bin/sh
# Copyright (C) 2010-2017 Free Software Foundation, Inc.
#
# 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 2, or (at your option)
# any later version.
#
# This program ... | pylam/automake | t/configure.sh | Shell | gpl-2.0 | 1,786 |
#!/bin/bash
# Colorize and add text parameters
red=$(tput setaf 1) # red
cya=$(tput setaf 6) # cyan
txtbld=$(tput bold) # Bold
bldred=${txtbld}$(tput setaf 1) # red
bldcya=${txtbld}$(tput setaf 6) # cyan
txtrst=$(tput sgr0) # Reset
version=1.8
DATE_START=$(date +"%s")
############################################... | Grarak/grakernel-tuna | build.sh | Shell | gpl-2.0 | 2,568 |
#!/bin/sh
#
#
if /usr/bin/test ! "$(id -u)" = "0"
then
printf -- "ERROR: This script must be run as the root user\n"
exit 1
fi
CURDIR=$(cd $(dirname $0) && pwd)
MODULES_PATH="${CURDIR}/modules"
DEFAULT_MANIFEST="${CURDIR}/manifests/site.pp"
PUPPET_OPTS="$@"
if /usr/bin/test ! -f ${DEFAULT_MANIFEST}
then
... | fccagou/puppet-local-apply | puppet-apply.sh | Shell | gpl-2.0 | 576 |
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# make_link rel_path source_dir dest_dir
make_link() {
ln -s $2/$1 $3/$1
}
#########################################
# Bash
#########################################
BASH_IT_DIR="${HOME}/.bash_it"
if [ ! -d $BASH_IT_DIR ]; then
git clone --d... | ntwyman/config | setup.sh | Shell | gpl-2.0 | 1,233 |
#python3 sobol_dispatcher.py -d ms-ov -n -N 8192 -MS -i 64 -r
#-net "'basic.net'"
#python3 sobol_dispatcher.py -d inv -n -N 1024 -i 32 -r -MS -o 0 0 -oe 0 0 -u 0 0 -ue 0 0 -D 0 0 -g 0 0 -e 0 0
#python3 sobol_dispatcher.py -d inv-ov -n -N 1024 -i 32 -r -MS -o 0.2 0.2 -oe 0 0 -u 0 0 -ue 0 0 -D 0... | earlbellinger/asteroseismology | grid/run_inv.sh | Shell | gpl-2.0 | 2,012 |
#!/bin/bash
# Populate git repositories on first run
if [ ! -d /home/patches/patches ]; then
/bin/su - patches -c 'git clone https://github.com/stefanha/patches.git'
fi
if [ ! -d /home/patches/qemu.git ]; then
/bin/su - patches -c 'git clone --mirror git://git.qemu-project.org/qemu.git'
fi
exec /usr/sbin/crond -n
| stefanha/qemu-patches | run.sh | Shell | gpl-2.0 | 319 |
#! /bin/sh -e
# tup - A file-based build system
#
# Copyright (C) 2018 Mike Shal <marfey@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed i... | jonatanolofsson/tup | test/t4203-pthreads.sh | Shell | gpl-2.0 | 1,837 |
#!/bin/bash
#
# Build a tweaked libmagic from file-4.26
# Extra ocfa magic entries embedded in magic.mgc
#
# Store lib in ./libmagic/lib to build file module
# against the static lib libmagic.a
prefix=/usr/local/digiwash
tar zxf file-4.26_ocfa.tar.gz
cd file-4.26_ocfa
./configure --prefix=$prefix --exec-prefix=$p... | DNPA/OcfaModules | extractor/file426/build_libmagic.sh | Shell | gpl-2.0 | 381 |
#
# Copyright (C) 2010 OpenWrt.org
#
. /lib/ramips.sh
PART_NAME=firmware
RAMFS_COPY_DATA=/lib/ramips.sh
platform_check_image() {
local board=$(ramips_board_name)
local magic="$(get_magic_long "$1")"
[ "$#" -gt 1 ] && return 1
case "$board" in
3g150b|\
3g300m|\
a5-v11|\
ai-br100|\
air3gii|\
all0239-3g|\
... | f3flight/lede | target/linux/ramips/base-files/lib/upgrade/platform.sh | Shell | gpl-2.0 | 3,694 |
ffmpeg -i data.mpg -ss 00:08:00 -to 00:11:20 -c copy cut.mp4; #Cuts the data from data.mpg from 1:00 to 11:20 and writes it to cut.mp4
ffmpeg -i cut.mp4 -ab 160k -ac 1 -ar 44100 -vn audio.wav; #Extracts the audio from the video
ffmpeg -i input.jpg -vf scale=320:-1 output_320.png
#https://trac.ffmpeg.org/wiki/Create%... | RedHenLab/Audio | GSoC2015/CommercialDetection/src/ffmpeg_scripts.sh | Shell | gpl-2.0 | 783 |
#!/bin/bash
compiler=gfortran
for file in ./*.f90 ; do
$compiler -c $file
done
for file in ./*.f ; do
$compiler -c $file
done
for file in ./*.F90 ; do
$compiler -c $file
done
# renorm-library.f renorm-main.f90 enorm-renorm-ndelta.f90 renorm-nocore.f90 renorm-phaseshift.f90 renorm-potentials.f renorm-vkrg.f90 renorm-v... | schuncknf/TALENT | undefined_reference/Project-Lorenzo-Contessi/Morten_Black_Box/compileme.sh | Shell | gpl-2.0 | 338 |
#!/bin/bash
RUN_FOLDER=$(dirname $0)
SUPP_FILE="${RUN_FOLDER}"/default.supp
valgrind --leak-check=full --show-leak-kinds=definite --suppressions="${SUPP_FILE}" $@
| hexagonal-sun/bic | etc/bic_valgrind.sh | Shell | gpl-2.0 | 165 |
#!/bin/bash
##########################################################################
## ##
## This script converts PSF files into a PSI files. ##
## It may need modification depending upon your requirments ##
## ... | henri/printer-setup | ExampleFiles/ImportExport/printer-setup/sh-convert-psf-to-psi.bash | Shell | gpl-3.0 | 8,579 |
#!/bin/sh
BBPATH="$PWD/BusyBee_"
if [ -f "${BBPATH}linux" ]; then
BBPATH="${BBPATH}linux"
elif [ -f "${BBPATH}mac" ]; then
BBPATH="${BBPATH}mac"
fi
while [ ! -f $BBPATH ]; do
read -p "Location of BusyBee (FullPath): " BBPATH
done
eval "$BBPATH"
if [ $? -gt 0 ]; then
echo "Passed in Arguments did no... | dixonwille/busybee | UnixInstall.sh | Shell | gpl-3.0 | 589 |
if [[ "$1" == "" ]] ; then
MS="L2010_20981"
#MS="L2010_08450"
else
MS="$1"
fi
for (( a=1 ; $a<23 ; a++ )) ; do
if (( $a<10 )) ; then
lse="lse00$a"
else
lse="lse0$a"
fi
if [[ "`ssh ${lse} -C ls /data3/|grep ${MS}`" != "" ]] ; then
lsesubs="`ssh ${lse} -C \"find /data3/${MS}/\"|grep SB|grep \\\... | jjdmol/LOFAR | CEP/DP3/AOFlagger/scripts/distributed/list.sh | Shell | gpl-3.0 | 396 |
#!/bin/bash
# Scripts that run during deployment.
# XXX: DELETE ME: THIS IS NOT RUN ANYMORE
echo "Collecting static files..."
python manage.py collectstatic --noinput
echo "Executing database migrations..."
python manage.py migrate
echo "Compiling messages..."
python manage.py compilemessages
echo "Killing gunicorn"
k... | domino14/Webolith | scripts/deploy.sh | Shell | gpl-3.0 | 348 |
#!/bin/bash
###########################################################
# installs IUS Community YUM Repository
# https://iuscommunity.org/pages/Repos.html
# for access to Python 2.7, 3.2, 3.3 and 3.4 on CentOS as default
# is Python 2.6 for CentOS 6
#
# i.e. python 3.4
# yum -y install python34u python34u-devel python... | centminmod/centminmod | addons/python34_install.sh | Shell | gpl-3.0 | 5,761 |
cd ~/downloads
#php
yum install php php-devel
#php扩展
yum install php-mysql php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc
yum list installed | grep mysql
yum install mysql
yum install mysql-devel
#yum install mysql-server (无法安装)
#方法1
#MariaDB数据库管理系统是MySQL的一个分支,主要由开源社区在维护,采用GPL授权许可。开发这个分支的原因之一是:甲骨文公司收购了MySQL后,有将M... | mikestrange/shell | mysql.sh | Shell | gpl-3.0 | 1,404 |
ifconfig
sockstat -4 -6
freebsd-update fetch
freebsd-update install
pkg update
pkg upgrade
sysrc ifconfig_em1="inet 192.168.30.1/24 up"
service netif restart
pkg install -y gsed bash bash-completion sudo isc-dhcp44-server-4.4.2_1 apache24-2.4.48 bind916-9.16.18 curl php74 mod_php74 php74-mbstring php74-pecl-mcr... | tuxtter/myScripts | bsdservices.sh | Shell | gpl-3.0 | 4,153 |
#!/usr/bin/env bash
# You must have virtualenv installed, and the virtualenv command in your path for this to work.
# Assuming you have python installed, you can install virtualenv using the command below.
# curl -O https://raw.github.com/pypa/virtualenv/master/virtualenv.py
# This should be run from the project direct... | podiobooks/podiobooks | devscripts/virtualenv/setup_dev_env.sh | Shell | gpl-3.0 | 473 |
#!/bin/bash
#check if given host is reachable by ping
iface="enp4s0f1"
[[ ! -z $2 ]] && iface="$2"
ping -c1 -W1 -q -I $iface $1 &>/dev/null
status=$( echo $? )
if [[ $status == 0 ]] ; then
#Connection success!
echo 1
exit 0
else
#Connection failure
echo 0
exit 1
fi
| xcy7e/bash_scripts | scripts/check_host_up.sh | Shell | gpl-3.0 | 300 |
#!/bin/sh
nmap -p T:21,22,23,25,32,79,80,110,111,135,137,139,143,389,443,445,855,871,873,993,995,1090,1098,1099, \
1100,1101,1198,1433,1556,1577,1882,1900,3128,3260,3306,3343,3389,3528,3873,4095,4105,4444,4445,4446, \
4447,4448,4457,4712,4713,4750,5001,5353,5666,5701,5900,6400,6410,7900,8000,8001,8005,8009,8080,8083, ... | HynekPetrak/nmap2web | scan.sh | Shell | gpl-3.0 | 1,352 |
elm-live Main.elm --output=elm.js
| surprisetalk/elm-bulma | demo/elm-live.sh | Shell | gpl-3.0 | 34 |
langs=(ar cs de fr)
for x in `seq 1 4`
do
i=$langs[$x]
next=`echo $x+1 | bc`
for y in `seq $next 4`
do
j=$langs[$y]
nextnext=`echo $y+1 | bc`
for z in `seq $nextnext 4`
do
k=$langs[$z]
nextnextnext=`echo $z+1 | bc`
for a in `seq $nextnextnext 4`
do
l=$langs[$a]
echo $i $j $k $l
python bleu_computer.py /windroot/raj/co... | prajdabre/knmt | nmt_chainer/bleu_all.sh | Shell | gpl-3.0 | 11,133 |
#!/bin/sh
set -eux
. ./extra/gitlab/env.sh
cmake . -DCMAKE_INCLUDE_PATH=$CACHE_DIR/usr/lib -DENABLE_TESTS=OFF -DENABLE_WERROR=OFF
make VERBOSE=1
| LawlingBear/uTox | extra/gitlab/osx-script.sh | Shell | gpl-3.0 | 147 |
#!/bin/sh
GEM_PATH=/home/ubuntu/every_word_the_musical/vendor/bundle/ruby/2.0.0:
ruby2.0 every_word.rb
| davidbalbert/every_word_the_musical | run.sh | Shell | gpl-3.0 | 104 |
#!/bin/sh
# Liquid War 6 is a unique multiplayer wargame.
# Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Christian Mauduit <ufoot@ufoot.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published b... | lijiaqigreat/liquidwar-web | reference/doc/perf-update.sh | Shell | gpl-3.0 | 1,438 |
#!/bin/bash -x
#
# Generated - do not edit!
#
# Macros
TOP=`pwd`
CND_PLATFORM=Cygwin-Windows
CND_CONF=Release
CND_DISTDIR=dist
CND_BUILDDIR=build
CND_DLIB_EXT=dll
NBTMPDIR=${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM}/tmp-packaging
TMPDIRNAME=tmp-packaging
OUTPUT_PATH=${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/libactua... | gatATAC/motorCtrl | nbproject/Package-Release.bash | Shell | gpl-3.0 | 1,463 |
#!/bin/bash
# VIRT-M
# cd /tmp && yum install wget && wget https://github.com/munishgaurav5/ks/raw/master/ins/virt.sh && chmod 777 virt.sh && ./virt.sh
egrep '(vmx|svm)' /proc/cpuinfo
yum groupinstall "Virtualization Host" -y
yum install -y qemu-kvm qemu-img libvirt virt-install libvirt-python virt-manager virt-ins... | munishgaurav5/ks | ins/virt.sh | Shell | gpl-3.0 | 924 |
#!/bin/bash
##################################################################
# (C) ZE Computer- Medienservice, Humboldt-Universitaet zu Berlin
# Written by Daniel Rohde <d.rohde@cms.hu-berlin.de>
##################################################################
DEBUG=0
DONTCOMPRESS=0
FORCEMINIFY=0
while getopts "d... | DanRohde/webdavcgi | htdocs/views/simple/minify.sh | Shell | gpl-3.0 | 2,853 |
#!/bin/sh
# -- run in the current working (submission) directory --
if test X$PBS_ENVIRONMENT = XPBS_BATCH; then cd $PBS_O_WORKDIR; fi
# load the required modules
export PATH=/appl/schroedingerFreeMaestro/2013-3:${PATH}
para_testapp
| marcindulak/accts | accts/schrodinger/FreeMaestro-2013-3/para_testapp.sh | Shell | gpl-3.0 | 236 |
#!/bin/bash
wget -O musmus.fa.gz ftp://ftp.ncbi.nlm.nih.gov/genomes/M_musculus/protein/protein.fa.gz
wget -O homsap.fa.gz ftp://ftp.ncbi.nlm.nih.gov/genomes/H_sapiens/protein/protein.fa.gz
wget -O danrer.fa.gz ftp://ftp.ncbi.nlm.nih.gov/genomes/D_rerio/protein/protein.fa.gz
wget -O taegut.fa.gz ftp://ftp.ncbi.nlm.nih.... | tsackton/ratite-genomics | 02_annotation/maker/run1/get_proteins.sh | Shell | gpl-3.0 | 1,051 |
#!/bin/bash
## service_check.sh
## version 1.5.1
## Written by Tyler Francis on 2016-09-27 for Jelec USA.
## A list of everyone you want to email when a problem occurs, separated by spaces.
alertEmail="me@jelec.com"
alertSMS="555.555.foo@txt.voice.google.com"
## How often do you want to receive emails about the same... | Linkz57/r-shell-scripts | automation/service_check.sh | Shell | gpl-3.0 | 5,603 |
:
# $APPASERVER_HOME/utility/graphviz_render.sh
# ---------------------------------------------
# Freely available software: see Appaserver.org
# ---------------------------------------------
if [ "$#" -ne 1 ]
then
echo "Usage: $0 filename_label" 1>&2
exit 1
fi
filename_label=$1
dot -Tps ${filename_label}.gv -o $... | timhriley/appaserver | utility/graphviz_render.sh | Shell | gpl-3.0 | 399 |
# gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
# gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=capg1_Auxiliar_Administrativo-compressed.pdf capg1_Auxiliar_Administrativo.pdf
#... | MTEySS/concursos | utils/compress_pdf.sh | Shell | gpl-3.0 | 878 |
#!/bin/bash
#SBATCH --job-name=fds_cylinder_change_rot_finer_reso
#SBATCH --workdir=/scratch/niangxiu/fds/apps/
#SBATCH --output=out
#SBATCH --error=out
#SBATCH --nodes=4
#SBATCH --ntasks-per-node=16
#export PYTHONPATH=$PYTHONPATH:/master/home/niangxiu/.local/lib/python3.5/site-packages
export PYTHONPATH=/master/home/... | qiqi/fds | apps/charles_cylinder3D/main/parallel_job.sh | Shell | gpl-3.0 | 411 |
#!/bin/sh
. ../meta.sh
# parameters
dir="beta error_lfmm register_lfmm U V data_lfmm lfmm"
for i in $dir
do
cd test_$i
echo "$BLUE ###### file: test_$i ######"
sh test_file.sh
cd ..
done
| frichote/replop | CL_code/code/test/LFMM/test_dir.sh | Shell | gpl-3.0 | 195 |
#!/bin/bash
zypper addrepo -f http://packman.inode.at/suse/openSUSE_Leap_42.1/ packman
zypper addrepo -f http://download.opensuse.org/distribution/leap/42.1/repo/oss/ oss
zypper addrepo -f http://download.opensuse.org/distribution/leap/42.1/repo/non-oss/ non-oss
zypper addrepo -f http://download.opensuse.org/update/lea... | jtk1rk/xsubedit | scripts/old/openSuSE-install-missing.sh | Shell | gpl-3.0 | 842 |
#!/bin/bash
# set environmental variables
source ../../bin/setsgenvars.sh
progname=analyse
echo Compiling analyse
echo $SGENFC ${progname}.f90 -o ${progname}.x $SGENFLAG $SGENLIB
$SGENFC ${progname}.f90 -o ${progname}.x $SGENFLAG $SGENLIB
echo Copying executable to surfgen directory
cp ${progname}.x $SGENDIR
echo D... | virtualzx-nad/surfgen | utilities/analyse/install.sh | Shell | gpl-3.0 | 325 |
# How do I fix mess created by accidentally untarred files in the current dir?
cd /var/www/html/
/bin/rm -f "$(tar ztf /path/to/file.tar.gz)"
# reference
# http://www.cyberciti.biz/open-source/command-line-hacks/20-unix-command-line-tricks-part-i/
| cloud-sharknado/scripts | system/disk/clear_untar_mess.sh | Shell | gpl-3.0 | 251 |
#!/bin/sh
# Copyright (C) 2011, 2012, 2013, 2014, 2015 Free Software Foundation, Inc.
#
# This file is part of GNU Inetutils.
#
# GNU Inetutils 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... | CodeResearch/inetutil-syn | tests/ftp-localhost.sh | Shell | gpl-3.0 | 16,504 |
#!/bin/bash
#--
# Create mysql dump. Abort if error.
#
# @param save_path
# @param options
# @global MYSQL_CONN mysql connection string "-h DBHOST -u DBUSER -pDBPASS DBNAME"
# @abort
# shellcheck disable=SC2086
#--
function _mysql_dump {
test -z "$MYSQL_CONN" && _abort "mysql connection string MYSQL_CONN is empty"
... | RolandKujundzic/rkscript | src/mysql_dump.sh | Shell | gpl-3.0 | 725 |
sudo pip3 install kombu
sudo apt-get install rabbitmq-server
sudo rabbitmqctl add_user user 123456
sudo rabbitmqctl add_vhost host
sudo rabbitmqctl set_permissions -p host user '.*' '.*' '.*'
| lexdene/learn-kombu | setup.sh | Shell | gpl-3.0 | 192 |
#!/bin/bash
# This script make the project and execute the test
#
#
# Dynamic Library PATH Check
#
if [ ! `echo $LD_LIBRARY_PATH | grep MATLAB` ] ; then
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/MATLAB/R2017a/bin/glnxa64
fi
# Make the program
make
#
# Part of I/O file name variables
#
# Single run with given ... | accordionwb/Develop | matfile/easymake.sh | Shell | gpl-3.0 | 623 |
#!/bin/bash
set -e
set -u
#trap "echo 'INT signal received'" INT
#trap "echo 'TERM signal received'" TERM
cd `dirname $0`
source ./util.sh
source ./tengine_func.sh
log "PID is $$"
log "CMD is $0 $@"
eval "`parse_argument_and_set_variable config_file virtual_server_names versions tengine_reload dynamic_refresh_post_... | leonindy/camel | camel-agent/src/main/resources/script/tengine.sh | Shell | gpl-3.0 | 791 |
#!/bin/sh
exec /usr/bin/mono --verify-all /usr/lib/mhed/mhed.exe "$@"
| xvitaly/mhed | packaging/linux/mhed.sh | Shell | gpl-3.0 | 71 |
#!/bin/bash
# Autor: Robson Vaamonde
# Site: www.procedimentosemti.com.br
# Facebook: facebook.com/ProcedimentosEmTI
# Facebook: facebook.com/BoraParaPratica
# YouTube: youtube.com/BoraParaPratica
# Data de criação: 30/11/2016
# Data de atualização: 30/11/2016
# Versão: 0.5
# Testado e homologado para a versão do Ubunt... | vaamonde/samba4-l2 | conf/find_files.sh | Shell | gpl-3.0 | 1,062 |
#!/bin/bash
source $scpt_path/_loadconf.sh
source $scpt_path/_utils.sh
echo "---------------------------------------------"
echo "DOING THE BACKUP"
echo "---------------------------------------------"
if [ "$repo_name" == "" ] ; then
repo_name="${1}"
fi
if [ "$repo_name" == "" ] ; then
echo "Repository name not ... | neogodo/borgshell | _dobackup.sh | Shell | gpl-3.0 | 1,092 |
./build-all-infrastructure.sh
./build-all-microservices.sh
| psachdev6375/microservices-bootcamp | build-all.sh | Shell | gpl-3.0 | 59 |
USER=root
PASS=
DBNAME=ertheia
DBHOST=localhost
| pantelis60/L2Scripts_Underground | dist/authserver/sql/mysql_settings.sh | Shell | gpl-3.0 | 48 |
#! /bin/sh
# Show additional screen on VGA
xrandr --output DP-1 --mode 1024x768 --left-of eDP-1
# Start presentation with length of 15 minutes and make the last 2 minutes alarming
pdfpc -d 15 -l 2 06_PrimenaMasinskogUcenjaUStatickojVerifikacijiSoftveraMicovicRankovicStegic.pdf
| uros-stegic/msnr-projekat | prezentacija/start.sh | Shell | gpl-3.0 | 281 |
tests_path="`pwd`/tests"
# get all test cpp files
compile_list=`ls -l $tests_path | grep ^- | awk '{split($0,arr," "); print arr[9];}'`
for x in $compile_list; do
# check test-shell source files
if [ "$x" != "test_shell.cpp" ]; then
is_source_file=`echo $x | grep -E "(cpp|c)$"`
if test -n "$is_source_file"... | IWillFindYou/SecurityBootManager | .travis.sh | Shell | gpl-3.0 | 1,608 |
#!/bin/sh
# Create a virtualenv for working with plainbox.
#
# This ensures that 'plainbox' command exists and is in PATH and that the
# plainbox module is correctly located can be imported.
#
# This is how Zygmunt Krynicki works, feel free to use or adjust to your needs
VENV_PATH=
install_missing=0
# Parse arguments:... | jds2001/ocp-checkbox | plainbox/mk-venv.sh | Shell | gpl-3.0 | 6,491 |
#!/bin/bash
# 2016.08.20 by M.Tyler
# Create a bunch of partial files
create_part()
{
FILENAME="part_$1_$2"
echo Creating $FILENAME
dd if=$2 of=$FILENAME bs=$1 count=1
}
rm part_*
> empty
ls _*.bmp _*.gif _*.png _*.jpg |
while read line
do
create_part "20" "$line"
create_part "400" "$line"
done
ls -l
| matyler/mtCellEdit | test/mtpixyutils/input/get_part.sh | Shell | gpl-3.0 | 318 |
#!/bin/bash
# Script to backup a PostgreSQL database running in a Docker container (spawned
# via Docker Compose) using "postgres" image (https://hub.docker.com/_/postgres/).
#
# Usage: backup_dockerized_postgresql_database.sh dockercompose_filepath database_service_name_in_dockercompose_file backup_destination_dirpat... | C-Duv/sysadmin-scripts | backup-tools/docker/backup_dockerized_postgresql.sh | Shell | gpl-3.0 | 4,497 |
#!/bin/bash
# for development
# ruby ~/NetBeansProjects/muxie-maker/lib/main.rb "$@"
ruby /usr/share/muxie-maker/lib/main.rb "$@" | mad3linux/muxie-maker | bin/muxie-maker.sh | Shell | gpl-3.0 | 130 |
#!/usr/bin/env bash
# Run from directory ABOVE scripts
OUT_FILE="data/poker_var_stay_user.out"
IN_FILE="scripts/poker_var_stay_user.json"
SCRIPT=scripts/meansd.py
RND=$RANDOM
TMPJSONFILE="/tmp/poker_var_stay_$RND.json"
TMPCOSTFILE="/tmp/poker_var_stay_cost_$RND.out"
TMPDAYFILE="/tmp/poker_var_stay_day_$RND.out"
TMPSES... | richardclegg/multiuservideostream | streamsim/scripts/poker_var_stay_user.sh | Shell | mpl-2.0 | 1,062 |
#!/usr/bin/env bash
set -e
if [ -z "$OS_PASSWORD" ] || [ -z "$OS_TENANT_ID" ]; then
if [ -s $HOME/.openrc ]; then
printf "Loading OpenStack credentials from $HOME/.openrc...\n"
source $HOME/.openrc
fi
fi
if [ -z "$OS_PASSWORD" ] || [ -z "$OS_TENANT_ID" ]; then
printf "Please load your OpenStack credent... | BNETDocs/bnetdocs-web | bin/upload-backup-databases.sh | Shell | agpl-3.0 | 787 |
#!/bin/bash
# Create config file using environment variables
sed -e s,MONGODB_SERVER_URL,$MONGODB_SERVER_URL, $CATALINA_HOME/conf/tomee.xml.template >$CATALINA_HOME/conf/tomee.xml
echo ====================================================================
echo Using environment:
echo -----------------------------------... | mminke/pv-datalogger | pvdatavisualizer/src/main/docker/scripts/start.sh | Shell | agpl-3.0 | 760 |
F=$1
# 64 results in distances of up to 6
# 128 results in distances of up to 4
for SIZE in 64 128 256 512 1024 1536 2048
do
echo $SIZE
convert -resize $SIZE "$F" "`basename "$F" .jpg`-resize${SIZE}.jpg"
done
| CreativeCommons-Seneca/registry | searcher/benchmarks/resize.sh | Shell | agpl-3.0 | 218 |
#!/bin/sh
# Set IDEAL_VERSION to the commitish we want to check out; typically
# this is the version tag. Since this may not exist before release,
# fall back to the master branch:
VERSIONS="origin/install-script 0.15 origin/master"
PARENT_SCRIPT_URL=https://github.com/mysociety/commonlib/blob/master/bin/install-sit... | 4bic/alaveteli | script/site-specific-install.sh | Shell | agpl-3.0 | 7,495 |
#!/bin/sh
if [ ! -f virtualenv/bin/activate ];then
virtualenv --no-site-packages virtualenv/
fi
source virtualenv/bin/activate
pip -q install -r pip-requirements
pip -q install coverage
coverage erase
if [ ! -f spiff/local_settings.py ];then
echo "SECRET_KEY='foo'" > spiff/local_settings.py
fi
coverage run ./manage... | SYNHAK/spiff | run_unit_tests.sh | Shell | agpl-3.0 | 506 |
#!/bin/bash -ue
# Copyright (C) 2013 Percona Inc
#
# 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; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
#... | allfs/mariadb | scripts/wsrep_sst_xtrabackup.sh | Shell | lgpl-2.1 | 21,464 |
#!/bin/bash
# set PYTHONPATH to OpenTURNS if needed
PYOT=$(echo $HOME/ot/trunk/build/install/lib/python2.7/site-packages)
PYOT=$(echo $PWD/../../../build/install/lib/python2.7/site-packages):$PYOT
export PYTHONPATH=$PYOT:$PYTHONPATH
# start the script
python ot_script.py
| openturns/otdistfunc | python/test/wrapper_python_distributed/start_it.sh | Shell | lgpl-3.0 | 274 |
#/bin/sh
# @(#) $Id: get_disk_data.sh,v 6.10.1.1 2013-09-12 16:13:15 ralph Exp $
# -------------------------------------------------------------------------
TMP_PREFIX=/var/tmp/get_disk_data-$$-
TMP_DEV_LUN=${TMP_PREFIX}DEV_LUN
TMP_DEV_VG=${TMP_PREFIX}DEV_VG
function exit_message
{
rm -f ${TMP_PREFIX}*
echo $*
exit
... | rossonet/templateAr4k | cfg2html-master/hpux/plugins/get_disk_data.sh | Shell | lgpl-3.0 | 1,566 |
#!/bin/bash
find ../ -name 'mysqli.php' -exec sh -c './checkPostgreSQLOfMySQLi.sh $0' {} \;
| Devoter/rtQuery | translator/createPostgreSQLClassesFromMySQLi.sh | Shell | lgpl-3.0 | 92 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.