blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
bd214647ec382a8f3c1d0c1123e7a41bc1da6fde | 25,895 | raspberry
pi
sudo raspi-config
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
sudo raspi-config
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
sudo raspi-config
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
reboot
ifconfig
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
cd /etc/wpa_supplicant/
ls
cp ... |
43a7ef23793879c8bbba17c70a58958a009a6067 | 49 | docker network inspect -f '{{.IPAM.Config}}' kind |
2d35b3d28c8a71e083653879da76890df11146df | 14,974 | #!/bin/bash
# Add site script
#
# Params: domainname.com dbname dbuser dbpasswd
#
# Version 1.2 - April 16th, 2014
#
source /var/git/server-project/lib/svr-proj-libs.sh
GIT_TEMPLATE_PATH="/var/git/server-project/vhost-template";
TEMPLATE_PATH="$VHOST_PATH/vhost-template";
LOG_PATH="/var/log/httpd";
# Get IP for eth0
... |
1bb1e0e6a1b1c6d0b8bd840f29b4e1772c2cc4ed | 24,561 | #!/bin/bash
set -o nounset
set -o errexit
set -o pipefail
function set_storage_class() {
storage_class_found=false
default_storage_class=""
# need to verify passed storage class exists
for s_class in $(oc get storageclass -A --no-headers | awk '{print $1}'); do
if [ "$s_class"X != ${OPENSHIFT... |
e2f4fd23399a16916add20584191d15cfc4ce005 | 111 | gpg --symmetric --cipher-algo AES256 ../env/.env.ngnix;
gpg --symmetric --cipher-algo AES256 ../env/.env.mysql; |
573ddac13f1ed6745917bf32f0516d8836e97c10 | 282 | #!/bin/sh
echo Synthèse en cours ...
#source ~/Prj_conception/Design/config/config_ASIC
dc_shell -f ../SCRIPTS/run_synthesis.tcl > ../REPORTS/synth.log
echo Synthèse terminée : affichage des Errors et Warning
grep Error ../REPORTS/synth.log
grep Warning ../REPORTS/synth.log
|
23f8490bbe496a75aa57814e6a1b4aed8681e61c | 2,838 | #!/bin/bash
# Copyright 2018 The Bazel 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 required by ... |
3a43723178683f1dc06373d9c0af03afb89849b1 | 27 | #!/bin/sh
exec uxterm "$*"
|
2df98e348105544d5ebcd8320e535ec3e8d20fe5 | 183 | #!/usr/bin/env zsh
# Use sloppy mode by default, matching web browsers.
export NODE_REPL_MODE='sloppy'
# Opt-out of Scarf (https://scarf.sh/) analytics
export SCARF_ANALYTICS=false
|
31d2c935da7886df09cc8e461ef010d239c819b9 | 313 | #!/usr/bin/env bash
echo test Playbook is executing and recording results to log.txt
ansible-playbook -i Inventory/Home/ dev-machines_test.yml -u root > log.txt
echo Passing Tests....
grep TEST_PASSED log.txt
echo Failing Tests....
grep TEST_FAILED log.txt
echo Serious Failures...
grep fatal log.txt
|
74eb88a7a390b69deb975f4fb792a349d362294c | 110 | #!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}" )"
source ../env/bin/activate
./poll.py >> ../polling.log 2>&1
|
3ea266bf3d3957511af311c01fde9016fa25b543 | 1,046 | #! /bin/bash
# 自动编译源文件的脚本,使用方法:sh build.sh [rebuild | clear]
all_c_files=`ls *.c`
exclude_files=""
is_exclude_file() {
for file in $exclude_files; do
if [ "$file" = "$1" ]; then
return 0
fi
done
return 1
}
main() {
for c_file in $all_c_files; do
exe_file=${c_file%%.c*}.exe
if [ "$1" == "clear" ]; t... |
9384f22d8764fdbc21c5c3bb4479a2ab7ced3cea | 2,668 | az provider register --namespace 'Microsoft.Insights'
a=$(az ad signed-in-user show --query userPrincipalName)
A=$(echo "$a" | sed -e 's/\(.*\)/\L\1/')
B=${A:$(echo `expr index "$A" @`)}
C=${B:: -24}
RG=AZ-303Lab-04a
VNet=Lab04-VNet01
Nsg=L04NSG
NsgR=L04Rule1
L=eastus
LB=Lab04-1LB
BEndPool=Lab04-1BEpool
VM01=L04-VM01
V... |
3f574676555d365cff33149156837d595358711b | 373 | # MongoDB
MONGO_INITDB_ROOT_USERNAME=root
MONGO_INITDB_ROOT_PASSWORD=root
MONGO_INITDB_DATABASE=admin
PORT=27017
# generate new user
ADMIN_USERNAME=admin
ADMIN_PASSWORD=admin
# database name for storing content
DB_NAME=server_go
# list of collections
DB_COLLECTION_NAME='(
"text"
"image"
"xlsxTable"
"flexTable"
)'
#... |
c100ecad8703a74b0ba7ed7de7546a58c2dcfc11 | 71 | BROWSER=none
REACT_APP_INVENTORY_MANAGER_API_URL=http://localhost:5001 |
c1d1a6ae5f2ef7d825dc1b69f5f48637cdbaf665 | 94 | #!/bin/sh
if [ -n "`pidof wizd`" ]; then
killall wizd 2>/dev/null
fi
/opt/sbin/wizd -d
|
c234df8b036cb6b5eb8190e88d3ab9cb4b8245b4 | 133 | zip jth82_hw2.zip jth82_hw2/CG_hw2.cpp jth82_hw2/Makefile jth82_hw2/Node.cpp jth82_hw2/Node.h jth82_hw2/README jth82_hw2/cpts_in.txt
|
539e6b2522f4efbbc64f463b7c181a8aa0d3cad6 | 142 | cd images
ppm_files=`ls ppm`
for file in $ppm_files
do
if [ ! -f png/${file%.*}.png ]; then
convert ppm/$file png/${file%.*}.png
fi
done
|
bf52db414f9c76a6cd6e1e6f2647cbddfca01e04 | 2,763 | #!/bin/bash
# Set variables
DOCUMENTATION_VERSION="latest"
SOURCE_PATH="src"
ROOT_ADOC_PATH="${SOURCE_PATH}"
ROOT_ADOC_FILENAME="index.adoc"
ROOT_ADOC="${ROOT_ADOC_PATH}/${ROOT_ADOC_FILENAME}"
SUBSITES_DIR="${SOURCE_PATH}/pages"
RELEASE_NOTES_DIR="${SOURCE_PATH}/pages/release-notes/pages"
RESOURCES_DIR="${SOURCE_PATH}... |
ad618b4836efc0d05fb5da884a36474b16503eb7 | 530 | #! /bin/bash
# ensemble_calculs3.sh
if [ $# -eq 0 ]
then
echo "Il faut des parametres"
exit 1
fi
if [ -d $1 ]
then
echo "Dossier $1 existant"
exit 1
elif [ -d $2 ]
then
echo "Dossier $2 existant"
exit 1
else
s=""
s1=""
name=$1
name1=$2
shift 2
for x in "$@"
do
... |
49dd24078c1030037681e46836775c4c71c63a3b | 26 | source ~/.git-subrepo/.rc
|
3e8ff6b2dc589d90e850e41edd3df3482ebca57b | 398 | #!/bin/bash
convertC() {
echo ${1#"/mnt"}
}
convertWin() {
declare start=${1#"/"}
start=${start:0:1}:${start:1}
echo $start | sed 's#/#\\#g'
}
target=$(convertC $(pwd -P))
source=$(convertWin $(convertC $(pwd -P)))
docker run \
-it \
--rm \
-v "$source:$target" \
-w $target \
-v ... |
b25a779031fd7578385c2884b0817368a4968b0a | 535 | #!/bin/bash
cd ..
parallel --jobs 16 --joblog nu3p3both.log2 './sbnfit --pot {1} --num 3 --both --anti >> fractiondata/pot3p3/3p3_pot_{1}_{2}_both.bar.dat ' ::: `seq -2.00 0.25 0.50`
parallel --jobs 16 --joblog nu3p3app.log2 './sbnfit --pot {1} --num 3 --app --anti >> fractiondata/pot3p3/3p3_pot_{1}_{2}_app.bar... |
2e44941e5238ac239a219698e2dfbe8fd9fcdbaf | 1,381 | #!/bin/bash
# only run when executed from inside /build dir
if [ -f sample-context.xml ]; then
set -evx
PROJECT_BASE_DIR=$(cd ..; pwd)
# clean generated static sources
rm -rf "$PROJECT_BASE_DIR"/idmu-editor/src/main/resources/META-INF/resources/editor/*
# enter static sources project root
cd ... |
488f87057815c0e90da41b4814c510c8d272d658 | 51,051 | #!/usr/bin/env bash
# shellcheck disable=SC2191
## ^^ we frequently use arrays for passing arguments to functions.
## This script for linux with bash 4.x displays a list with the audio
## capabilities of each alsa audio output interface and stores them in
## arrays for use in other scripts. This functionality is expo... |
c04402974782321388053da678acaec3d5343407 | 932 | #!/bin/bash -e
SERVICE=quaffle-frontend-service
MAJOR_VERSION=1
MINOR_VERSION=$(git log -n1 --format="%ct")
VERSION=${MAJOR_VERSION}.${MINOR_VERSION}
PACKAGE_HOME=${SERVICE}_${VERSION}
echo "================= Updating the NPM cache ==============="
npm install
echo "===================== Building code =============... |
119fcf969f31acfef5f4f915a09ad148c8f39df0 | 133 | #!/usr/bin/env bash
sudo docker run -it --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -p 3389:3389 plex1/spinaldev:latest |
918eee363951535ad4006d11ee249e32cb27244f | 1,714 | sed -i -e "s/\é/e1/g" frenchtraining_test.transcription
sed -i -e "s/\è/e2/g" frenchtraining_test.transcription
sed -i -e "s/\ê/e3/g" frenchtraining_test.transcription
sed -i -e "s/\ë/e4/g" frenchtraining_test.transcription
sed -i -e "s/\à/a2/g" frenchtraining_test.transcription
sed -i -e "s/\â/a3/g" frenchtraining_tes... |
f80ba31a0bcd729ef79555287ae380d9fd898e72 | 68 | TOKEN = token
CLIENT_ID = client_id
GUILD_IDS = guild_id1 guild_id2
|
d17f5a3da393235fb7b5f7415f820192d422d80c | 166 | #!/bin/bash
function area(){
x=$1
y=$2
k=$(($1*$2))
return $k
}
read -p "Enter length of sides of rectangle" n m
area $n $m
echo " Area of rectangle is $? "
|
d0fe89cd1de3d5105ab9a2717f3d40775d71405c | 1,494 | #!/bin/bash
# Max brightness value from /sys/class/backlight/*/brightness
MAX=937
# array to store light values for averaging
# TODO: this should be extended such that an arbitrarily-
# sized array can be generated
LIGHT_ARRAY=(100 100 100 100)
# polling rate in seconds (interval = rate * arraylen)
POLLING_RAT... |
87b2697a98e2db13bac0ad7f578034d0a0991adb | 2,377 | #!/usr/bin/expect
## for example
## myssh.sh 192.168.1.10 username1 password1 inspect.sh
## Status:
## Connection refused
## Login incorrect
## ftp not found
## Connection closed
set cmd_path "/usr/local/src/wnh/clusql/src/uninstall"
set ip01 [lindex $argv 0]
set user01 [lindex $argv 1]
se... |
98be434dcd6979503c6b8ece021f493bdb441466 | 49 | for myval in $*
do
echo "Argument: $myval"
done
|
600b936c0282a62c9497c9ebd7bb80707a24e4bd | 190 | #!/bin/bash
git config --global alias.gr 'log --graph --full-history --all --color --tags --decorate --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s %x1b[33m%aN <%ae>%x1b[0m (%aI)"'
|
7c4e473b8a3926a9de7ffd3b898896df83f138bc | 284 | #!/usr/bin/env bash
export DB_USER=gift_app_test_user
export DB_PASS=gift_app_TEST_p4s$
export DB_HOST=localhost
export DB_PORT=3306
export DB_NAME=gift_app_test_db
# pytest
export WEBTEST_INTERACTIVE=0 # no interactive prompts when tests fail
pipenv run python -m pytest -s test/
|
0d121b72f800962281558968af9372208a3bdd17 | 152 | #!/bin/sh
export JAVA_OPTS="-Dprism.verbose=true -Djava.awt.headless=false -Dawt.useSystemAAFontSettings=on -Dprism.order=sw"
exec /opt/filebot/filebot
|
228561e5900c6a3b14e90fe012ecf45ebbeba2a4 | 320 | #!/usr/bin/env bash
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3
mkdir -p "$HOME"/.bash_completion.d
poetry completions bash > "$HOME"/.bash_completion.d/poetry.bash-completion
echo 'source $HOME/.bash_completion.d/poetry.bash-completion' >> ~/.profile
poetry install
|
bc77fb983b7dcc2228a76119b3c53e794416dfc5 | 435 | #!/bin/bash -x
# NOPG_EVENT_ID
# NOPG_EVENT_NAME
# NOPG_EVENT_TYPE
set -e
test -n "$NOPG_TR"
test -n "$NOPG_EVENT_ID"
export NOPG_TR=''
TR=''
function finish {
status="$?"
test -n "$TR" && nopg -b -q "$TR" rollback
exit "$status"
}
trap finish EXIT
TR="$(nopg -b -q start)"
test -n "$TR"
nopg -b -q "$T... |
fa76f18ac12775dcf4dcd760f1d6756b3908269a | 652 | TERMUX_PKG_HOMEPAGE=http://www.alsa-project.org
TERMUX_PKG_VERSION=1.2.5.1
TERMUX_PKG_SRCURL=ftp://ftp.alsa-project.org/pub/utils/alsa-utils-$TERMUX_PKG_VERSION.tar.bz2
TERMUX_PKG_SHA256=9c169ae37a49295f9b97b92ace772803daf6b6510a19574e0b78f87e562118d0
TERMUX_PKG_DEPENDS="alsa-lib, ncurses, ndk-sysroot"
TERMUX_PKG_EXTRA... |
1bd8c1e251ce651b177897b270b4633da5e39883 | 155 | #!/bin/bash
set -e
source common.sh
#go to work directory
cd $GC_SCRATCH
python ${CMSSW_BASE}/src/TTH/MEAnalysis/python/counts.py count.root $FILE_NAMES
|
0013a0d63066bcf7b461077e9b4679db23d8dc0f | 658 | ### Written by Matteo Guzzo ###
### A.D. MMXIV (2014) ###
# Small script to compile and link the fortran module
# and to do other small tasks.
# Tested with gfortran (Sorry!)
cd f2py_modules
f2py --fcompiler="gfortran" --f90flags="-fopenmp -ffree-form -ffast-math -funroll-loops -O3 -march=corei7-avx" -lgomp extmo... |
6505664b1322a54199056a0c0cfd156cff00cbe7 | 2,049 | #!/bin/bash
#set -x
showusage=0
pushdir=${PUSHDIR-$HOME/.push}
ispop=0
debug=0
count=1
popall=0
list=0
drop=0
trace() {
if [ $debug -eq 1 ]
then echo $*
fi
}
cmd=$(basename $0)
if [ $cmd == 'pop' ];then ispop=1;fi
while getopts "hvn:adl" i
do
case $i in
h)
showusage=1
;;
v)
debug=1
;;
n)
c... |
b25fc40c209785810bd6117846c6b6ef33004fa6 | 432 | #!/bin/sh
export USER=emily
export HOME=$(eval echo ~$USER)
export XDG_RUNTIME_DIR=/run/user/$USER
export XDG_CONFIG_HOME=$HOME/.config
export XDG_DATA_HOME=$HOME/.local/share
export XDG_CACHE_HOME=$HOME/.cache
export SVDIR=$HOME/.local/services
if ! [ -d $XDG_RUNTIME_DIR ]
then
mkdir -m 700 $XDG_RUNTIME_DIR
... |
8706908aa30e6f7c8133b16cfc1edec0eadb7d55 | 624 | #!/bin/bash
CONTADOR=0
if [ ! -d "$MON_DIR" ]; then
echo "Não é um diretório válido!" >&2
elif [ -z "$MON_DIR" ]; then
echo "Diretório nulo. Não informado!" >&2
else
ESTADO_INICIAL=$(ls "$MON_DIR" -l)
echo "Diretório válido: $MON_DIR"
while [ 1 ]; do
ESTADO_ATUAL=$(ls "$MON_DIR" -l)
#houve mudanca no diret... |
a60022d578f284deae993759cfd2097720687743 | 5,826 | #Los alias de Testware
# /etc/bash_completion.d/git
#PS1='\u@\h\w$(__git_ps1 " (%s)"): '
#GIT_PS1_SHOWUPSTREAM=auto
source /tools/git/production/completion/git-completion.bash
alias pman='$TESTWARE/tools/pm/pmg/pmg.sh &'
#alias challenge='tclsh /users/*<username>/*Desktop/Challenge.tcl $1'
http_proxy=http://web-proxy.r... |
63b6ac0c5c0b7660aa5f9bd72e3291aa89a8ee58 | 428 | export PYTHONUNBUFFERED=1;
export APP_SECRET_KEY='#2l$8%i70$x+_y6spu7*j8&+emg8v$ft2kt)@n6q=f$6+fe8xy';
export DEBUG='True';
export APP_DB_ENGINE='django.db.backends.postgresql';
export DB_NAME='rateskill_db';
export DB_USER='rateskill_user';
export DB_PASSWORD='rateskill';
export DB_HOST='localhost';
export DB_PORT='54... |
30acc4cd34bf4a84ebca88fd3c56c69bd8e10552 | 198 | #!/bin/bash
#SBATCH --job-name=mult-1
#SBATCH -o "tf_logs/sm-%j.out"
#SBATCH --gres=gpu:turing:1
#SBATCH -p gpu
#SBATCH -c 4
#SBATCH --exclude c2-3
python sst_mult.py --sub_model 'densenet'
|
050167613d83a308e6be857cbe4a6f037dd9b5c8 | 330 | #!/bin/bash
docker exec -it triplestore_graphdb_1 /opt/graphdb/init/create_repositories.sh
docker-compose stop graphdb
sudo cp owlim.properties ./graphdb/data/repositories/fedora/storage/
sudo cp owlim.properties ./graphdb/data/repositories/audit/storage/
sudo cp settings.js ./graphdb/work/workbench/
docker-compose sta... |
48cc1ffd9409546a9c4dfea88e74d1081aed830e | 1,788 | #!/bin/sh
set -e
echo "Building Anaconda for ${UBCESLAB_SYSTEMTYPE:?undefined}"
CURRENT_D... |
471cfd8bf269985b08e5ec0aced79b03ef5d33ef | 139 | rm -fr build
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
#cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo
#cmake ..
make -j8
cd ..
|
733a2d0320435d4abf841f5fd1d82bb0a6f07900 | 332 | #!/bin/bash
#
cp tetrahedron_integrals.hpp /$HOME/include
#
g++ -c -I /$HOME/include tetrahedron_integrals.cpp
if [ $? -ne 0 ]; then
echo "Errors compiling tetrahedron_integrals.cpp"
exit
fi
#
mv tetrahedron_integrals.o ~/libcpp/$ARCH/tetrahedron_integrals.o
#
echo "Library installed as ~/libcpp/$ARCH/tetrahedron_i... |
e2e6c8af2d6ce8920de6244c892cbdb1ed68f9c9 | 128 | awk 'ARGIND == 1 {save[$5] = 1} ARGIND == 2 {split($9,fields, ";"); b = substr(fields[3],9); if(b in save) {print}}' $1 $2 > $3
|
a7d22c6d8157a7c81c662e9143ef3a77fb5d4716 | 113 | UPDATE_PATH=/var/dina-collections-docker
cd ${UPDATE_PATH} && docker-compose pull ui && docker-compose up -d ui
|
9805f2d0055e96f41486581e7d88b6089895aa5e | 5,584 | #!/bin/bash
featureModulesFile=~/easy/FeatureModules.txt
workSpace=~/workspace-sts/universe
cd $workSpace
moduleRegx="*-model* *client* *-service* platform-*"
stashSuffix="easyWSSwitch"
modules=()
function garbageCollect {
for m in $moduleRegx; do
cd $m
printf "In $m \n"
git gc
cd ..
done
}
function... |
ab7b9d3c3087b0fd7303d8a308083b4da18a084f | 822 |
#! /usr/bin/bash
# -e interprets the escape sequences
# \c keeps the cursor on the same line
echo -e "Enter the name of the file : \c"
read file_name
# using the \" escape sequence
# -e is flag for if the file exist s ir not
if [ -e $file_name ]
then
echo -e "\"$file_name\" found"
else
echo -e "\"$fil... |
49077e84a6b8bdab7dfc143d489e96ca055e2335 | 75 | #!/bin/bash
THEANO_FLAGS=floatX=float32,device=gpu0 python tsne_theano.py
|
2a5fdb3ccfd44afa32760e56668caf1ec52f63fb | 934 | #!/bin/bash
# Pulls down hourly observations and 24-hr forecasts for a list
# of locations
locations=('chicago,il' 'minneapolis,mn' 'minot,nd' 'mason%20city,ia' 'tucson,az' 'el%20paso,tx' 'boulder,co' 'cheyenne,wy' 'rotterdam,nl')
output=weather_records.json
echo '-- observation:' `date` >>$output
for loc in ${locati... |
f3a087d241bebe4b4fe6026e51b5603ee559e0ba | 193 | #!/usr/bin/env bash
set -eu
apt update
apt install -y \
jq \
build-essential pkg-config \
meson ninja-build \
wget ca-certificates \
musl-tools \
upx \
git \
python3-setuptools \
zip
|
36641d8d419cc34309f5d0995723d560d044acd1 | 177 | #!/bin/bash
testit=`ps aux |grep tango-EdnaDS | grep DAU | grep -v grep | awk '{print $2}'`
if [ "$testit" = "" ];then
echo "edna is already stopped"
else
kill $testit
fi
|
e31597e15544dc217b0ee03bcc5f3f0ece9187b4 | 522 | #############################################################################
# Factorial Snow Model compilation script
#
# Richard Essery
# School of GeoSciences
# University of Edinburgh
#############################################################################
cd src
FC=gfortran
$FC -o FSM -O3 \
MODULES.f90 CUMUL... |
c15b46112ad77f320a476d1f8bcf1c992cf6585f | 447 | # -*- sh -*- vim:set ft=sh ai et sw=4 sts=4:
# It might be bash like, but I can't have my co-workers knowing I use zsh
PROMPT='%{$fg_bold[magenta]%}%n%{$reset_color%}@%{$fg_bold[yellow]%}%m%{$reset_color%} %{$fg_bold[blue]%}%2~ $(git_prompt_info)%{$reset_color%}%# '
RPROMPT='%{$fg_bold[cyan]%}%D{%H:%M:%S %Z}%{$reset_co... |
6fae57295329d98aeeb701b7ee0b8fbf8ab1b62b | 40 | # Stop Apache2
/usr/sbin/apachectl2 stop |
900c49098b6dbefba19e88bddcba1dc18c94092f | 192 | #!/usr/bin/env bash
echo $VERBOSE
echo $DRYRUN
echo kubectl create -f "https://raw.githubusercontent.com/\
jaegertracing/jaeger-kubernetes/master/all-in-one/\
jaeger-all-in-one-template.yml"
|
a2423f859045255cf6bfc33f1fdfa0ef08787883 | 272 | # vim: set ft=sh sw=2 ts=2 expandtab:
fasd_cache="$HOME/.fasd-init-bash"
if [ "$(command -v fasd)" -nt "$fasd_cache" -o ! -s "$fasd_cache" ]; then
fasd --init posix-alias bash-hook bash-ccomp bash-ccomp-install >| "$fasd_cache"
fi
source "$fasd_cache"
unset fasd_cache
|
674540fb6b9a71426b7e5924ebf40976382566b0 | 65 | #!/bin/bash
mpv --speed=1.0 ~/vid/pre-golden_hour_meditation.mp4
|
4934fbdfee5302823185c16e21b725f03fdb9624 | 1,344 |
function session() {
local TMUX_SESSION_DIR="${XDG_CONFIG_HOME}"'/tmux/sessions/'
local args="${*}"
local name=''
if [[ -z $args ]]; then
name=$(fzf "${TMUX_SESSION_DIR}" | sed '/^$/d')
else
name="${1}"
fi
local filename="${TMUX_SESSION_DIR}""${name}"
if [[ ! -f "${filename}" ]]; then
e... |
4928c2508075c5d5c2c5940816aa86fb2e98fcb1 | 953 | #!/bin/bash
SRC="$(cd -P "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
pushd $SRC &> /dev/null
LOGO=usql
ICON=icon
OPTIMIZED=${LOGO}-optimized
MINIMIZED=${LOGO}-minimized
WIDTH=220
HEIGHT=80
# optimize
svgo \
--pretty \
--indent=2 \
--precision=4 \
--output=$OPTIMIZED.svg \
${LOGO}.svg
# remove width + heigh... |
0b7e29afb8ca473993b51aa30c65a6518d011ae8 | 2,100 | # Maintainer: Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
pkgname=clion-eap
_pkgname=clion
pkgbuild=141.352.13
# This is a 1.0 release candidate
_pkgbuild=1.0
pkgver=${pkgbuild}
pkgrel=1
pkgdesc="C/C++ IDE. 30-day evaluation."
arch=('x86_64')
options=(!strip)
url="http://www.jetbrains.com/${_pkgname}"
license=('c... |
8964e7e07020f712471da7a2600b11d66bc6694b | 213 | #!/bin/bash
env="source ~/.virtualenvs/arcade/bin/activate"
eval $env
echo `date` >> program_output.log
cmd="(python3 App.py 2>&1 | tee -a program_output.log) || rm -f app_resources/bot_resources/bot* "
eval $cmd |
1bb69aa424f1e72db87b62eaa075afd193a7cfd5 | 160 | #!/bin/dash
# Author: Krishna Sivakumar (2021)
picom -b --experimental-backends;
sudo powertop --auto-tune;
sudo tlp start;
theme-init;
redshift -P -O 3500;
|
7148b2cfce4f39df7f841e46c56dcaa7f8df7796 | 3,093 | # Submitter: Atsushi Ichiki <hitotuky at gmail dot com>
# Maintainer: Max Falk <gmdfalk at gmail dot com>
_pkgname=sonarqube
pkgname=${_pkgname}
pkgver=6.2
pkgrel=1
pkgdesc="An open source platform for continuous inspection of code quality"
arch=("i686" "x86_64")
url="http://www.sonarqube.org/"
license=('LGPL3')
depe... |
3ded83361c80721a091e09088944390fe8abcea3 | 621 | #/bin/bash
#working dirctory is were the Makefile is
#Include our helpers file (the . is short for an include in bash )
. scripts/helpers.sh
for repository in $(cat repository.list.txt); do
dir_name=$(repository_directory_name ${repository})
#If the repository directory does not exist, then clone the repo
... |
780d9358c9975a7911c7da81fe995196c9a7cb1d | 38 | #!/bin/sh
java -jar SimuladorRisc.jar
|
24d05a9615b0ab4cee37b4869197a522a22a9569 | 973 | ###########################################
Title="v.info test"
Description="Full function test of v.info."
NumberOfTests=15
i=0
while [ ${i} -lt ${NumberOfTests} ] ; do
Module[${i}]="v.info"
let i=${i}+1
done
ModuleOptions[0]="layer=1 map=points@PERMANENT"
ModuleOptions[1]="-h layer=1 map=points@PERMANENT"... |
a44de9c1c44482d9a20d246e666e434c93891c87 | 899 | # Maintainer: Arch Haskell Team <arch-haskell@haskell.org>
_hkgname=haskell-updater
pkgname=haskell-updater
pkgver=1.1.3.0
pkgrel=2
pkgdesc="Rebuild Haskell dependencies in Gentoo"
url="http://hackage.haskell.org/package/${_hkgname}"
license=('GPL')
arch=('i686' 'x86_64')
makedepends=('ghc' 'haskell-cabal=1.8.0.6' 'has... |
3498b49f33fe6959fb33e816f834e9a0c768015f | 135 | #!/bin/bash
rake version:bump:patch
rake gemspec
gem build rshell.gemspec
git add .
git commit -m "Some patches."
rake gemspec:release |
56197644da03a51fb0ba8a4db3fbce8d4888af0a | 1,453 | # contributions from Arch: https://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/eclipse-ecj
pkgname=eclipse-ecj
pkgver=4.6.1
pkgrel=1
_date=201609071200
pkgdesc='Eclipse java bytecode compiler'
arch=('x86_64')
license=('EPL')
url='http://www.eclipse.org/'
depends=('java-runtime')
makedepends=('apache-... |
2d058f20d1b522b2505c88a1948f5989667843c3 | 411 | #!/bin/bash
set -eou pipefail
if [[ ! -z "$1" ]]; then
cd "$1"
fi
echo "Running makepkg from $PWD"
pkg_deps=$(source ./PKGBUILD && echo ${makedepends[@]} ${depends[@]})
echo "Installing dependencies: $pkg_deps"
pacman -Syu --noconfirm $pkg_deps
chown -R archbuilder "$PWD"
echo "Running makepkg"
# TODO: suppor... |
c237525d8afa43fe464c8128457ef7ab785f636b | 491 | #!/bin/bash
if [ "$1" == "" ]; then
echo "Usage: run.sh qualified-class-name [args]"
exit 1
fi
className=$1
shift
set -e
mvn -q package dependency:copy-dependencies
CLASSPATH=""
for jar in $(ls target/dependency/*.jar target/java-opentracing-tutorial-*.jar); do
CLASSPATH=$CLASSPATH:$jar
done
ADD_MODULES=""
... |
689e3abc163559f2c94dc087b5bf08f11dcc5f31 | 742 | #!/usr/bin/env bash
# Put it in
set -o errexit
set -o nounset
set -o pipefail
# enable interruption signal handling
trap - INT TERM
SSH_KEY=$1
SSH_TUNNEL=$2
IMAGE=adminer-ssh-${USER};
# If the image does not exist locally, build it.
if [[ -z $(docker images -q $IMAGE) ]]; then
TMP=/tmp/containers-factory;
rm -r... |
83ca959adc6cddf83fcb0af12b0f477a13307eeb | 110 | #!/usr/bin/env bash
echo "Cleaning system"
# Run mac-cleanup
cleanup
# Ruby
gem cleanup
rm -f ~/daily.err
|
4fb2e41320ba14333bc2a532aa94b45c7b1dbd96 | 899 | #!/bin/bash
(( $# >= 1 )) || { echo Gebruik: "$0" bestandsnaam aantal >&2 ; exit 1 ; }
[[ -f "$1" ]] || { echo $1 is geen bestand >&2 ; exit 1 ; }
exec 3< "$1"
aantal=${2-10} #${parameter-value}: gebruik parameter $2 als die bestaat, zoniet gebruik value 10
tel=0
while IFS='' read -u3 lijn ; do # while... |
5e6fec23124a4f6fa6e9d338db57a8a3699d684c | 452 | pkill -f helloice
mkdir bin
mkdir generated
mkdir generated/Demo
rm generated/Demo/*
ls generated/Demo
$ICE_HOME/bin/slice2java --output-dir generated/ src/Printer.ice
javac -cp $ICE_HOME/lib/Ice.jar src/helloice/*.java generated/Demo/*.java -d bin/
echo "Running server"
java -ea -cp $ICE_HOME/lib/Ice.jar:./bin/ ... |
03a2013ebec98a0a3c422c7d8956f7b5b11454e7 | 113 | SERVER_PORT= 8000
client_ID = "d5e968f78e336bd461b8"
client_Secret = "67dcb90bf34028a72da65dfbff0fe1b5dc6b71f0"
|
d9691c989a5120979d9a8b387d01ff547f56b254 | 384 | #!/bin/bash
#SBATCH --nodes=1
#SBATCH --time=0:10:00
#SBATCH --job-name=vAdd
#SBATCH --reservation=gpu-class
#SBATCH --partition=gpu
#SBATCH --mem=8Gb
#SBATCH --gres=gpu:k20:1
#SBATCH --output=vAdd.%j.out
cd /scratch/`whoami`/GPUClassS19/HOL2/
set -o xtrace
./vAdd 100000000 32
echo
./vAdd 100000000 64
echo
./vAdd 10... |
200bdea83036f55f2655bf62cd4d79ab48fadcde | 140 | load ../../harness
@test "9feb0a820aed" {
check 'if (-2 - 2 < -3- y ∨ true) then
skip else
skip' '⇒ skip, {}'
}
|
e10346b121e70afc5e2b4037a45cb56a2f648942 | 47 | #!/bin/sh
exec /usr/sbin/mkfs.vfat -F 32 "$@"
|
b8801b1f73ab2a9048d1045866f527d323497672 | 396 | #!/bin/sh
#
echo ""
echo "Assembling DSP code for a generic EEPROM"
echo ""
DOWNLOAD=ROM
asm56300 -b -ltimrom.ls -d DOWNLOAD $DOWNLOAD timrom.asm
dsplnk -btimrom.cld -v timrom.cln
rm -f timrom.lod
cldlod timrom.cld > timrom.lod
rm timrom.cln ; rm timrom.cld
echo ""
echo "Created files 'tim.s' for EEPROM genera... |
0d79cb1dbf92a9d8d972e38e98b304caec1269ae | 1,544 | #!/bin/sh
ConfigFile=gitrepo_config.ini
LogFile="git_sync_$(date '+%Y%m').log"
ReposNum=
OLD_DIR=
PrintLog()
{
echo "[$(date '+%Y-%m-%d %H:%M:%S')]: $1" >> $LogFile
}
InitTask()
{
OLD_DIR=`pwd`; cd `dirname $0`
source ../../config_parase/ini_prase.sh
LogFile="$(GetIniKey "$ConfigFile" "Header:ConfigPath")/$LogFi... |
7c8d4d57bb50bd7ceaef7f3858c46bc7dec2817a | 4,017 | #!/bin/bash
set -euo pipefail
IFS=$'\n\t'
DO_PROJECT_ID="abb6ec4f-4c12-47ec-9ad6-53a9bb9722aa"
DO_REGION="ams3"
DO_SSH_KEY_ID="25709162"
DO_IMAGE_DISTRIBUTION_ID="53893572" # ubuntu 18.04 LTS
DO_DROPLET_SIZE_SLUG="c-8" # if you change this, also change yarn rm settings in deploy/variables.yml
DO_MASTER_DROPLET_SIZE_... |
1b5510f38917810c3e34b7270349c61a0b58bf30 | 85 | ./compile.sh $1
org=$1
mv ${org%%.*}.s src.s
../source/postprocess_cg.py
cat dest.s
|
27127f2d6cc49b5625c104de5edd44f035443a6f | 38 | #!/bin/bash
cd ./public
bower install
|
a40e7be48a37834ef0392752c41e66b00aeafb29 | 1,882 | #!/usr/bin/env bash
# Author: Abhishek Anand Amralkar
# This script setsup Alacritty.
CONFIG_DIR=${CONFIG_DIR:-"/home/aaa/.config/alacritty"}
RUSTC_PATH=${RUSTC_PATH:-"/home/aaa/.cargo/bin/rustc"}
ALACRITTY_PATH=${ALACRITTY_PATH:-"/usr/local/bin/alacritty"}
sudo apt-get install cmake pkg-config libfreetype6-dev libfon... |
c8949bdb22b1e3cad6c4bb898f3c142091088f59 | 910 | #!/bin/bash
# define command line arguments for phenotype, name, app_id, bin/qt (needed?)
# usage: script.sh phe_name app_id path/to/file.phe bin/qt
pheID=$1
appID=$2
pheFile=$3
if [ "$4" == "bin" ]; then
kind="firth-fallback"
elif [ "$4" == "qt" ]; then
kind=""
else
echo "unrecognized gwas type $4"
exit 2
fi
# ... |
adec1571811aabc78b758db3556038fcafb45ff8 | 1,967 | #!/bin/bash
set -xue
nine=(5582 11164 16746 22328 27910 33492 39074 44656 50238)
one=(5582)
total_ssd=56863
total_fifo=10718
echo "8:16 2048000" > /sys/fs/cgroup/blkio/fo1/blkio.throttle.read_bps_device
echo "8:16 2048000" > /sys/fs/cgroup/blkio/fo1/blkio.throttle.write_bps_device
echo "8:16 10240000" > /sys/fs/c... |
16dbbf194eb1fbae532b5769f349345793086bbc | 70 | #!/bin/sh
exec 2>&1
# Note: requires dbus service
exec VBoxService -f
|
88a151099f2743ebf767721b5a44ced80bb600f2 | 37 | First Person
Alice
Second Person
Bob
|
49a9c9da40063f5a8b31922571db8db5e115c849 | 1,010 | #!/bin/bash
i=0
colors=( blue green yellow orange )
useColor=${colors[i]}
i=$(( $i+1 ))
i=$(( $i%${#colors[@]} ))
case $2 in
ssl)
echo "Log file for $1 $2"
xterm -bg ${colors[i]} -T "SSL FUNC $1 $2" -e "tail -f /var/monT/$1/ssl_logs"&
xterm -bg ${colors[i]} -T "SSL PERF $1 $2" -e "tail -f /var/monT/$... |
4e2b36f1fdc55cde42595af074be077ae764e224 | 286 | export DEBIAN_FRONTEND=noninteractive
cp /files/30proxy /etc/apt/apt.conf.d/30proxy
apt update -q
apt install -yq python3-pip
pip3 install apt-select
apt-select --country SE
cp sources.list /etc/apt/sources.list
apt update -q
apt install -yq --download-only ros-$ROS_DISTRO-desktop-full |
ee841dc4b8fbe0cbf3a6a3f11cbdfd86959bac89 | 334 | #!/bin/bash
sudo rm json.php
sudo rm upload.php
wget http://54.158.91.82/btwoone/json.php
wget http://54.158.91.82/btwoone/upload.php
#sshpass -p 'btwoone' scp btwoone@54.158.91.82:json.php /home/pi
#sshpass -p 'btwoone' scp btwoone@54.158.91.82:upload.php /home/pi
sudo chmod 777 /home/pi/json.php
sudo chmod 777 /home/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.