code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#! /bin/sh
#
# link.sh -- try linking Vim with different sets of libraries, finding the
# minimal set for fastest startup. The problem is that configure adds a few
# libraries when they exist, but this doesn't mean they are needed for Vim.
#
# Author: Bram Moolenaar
# Last change: 2010 Nov 03
# License: Publi... | Shell |
#! /bin/sh
# Start Vim on a copy of the tutor file.
# Usage: vimtutor [-g] [xx]
# Where optional argument -g starts vimtutor in gvim (GUI) instead of vim.
# and xx is a language code like "es" or "nl".
# When an argument is given, it tries loading that tutor.
# When this fails or no argument was given, it tries using... | Shell |
#! /bin/sh
# installman.sh --- install or uninstall manpages for Vim
#
# arguments:
# 1 what: "install", "uninstall" or "xxd"
# 2 target directory e.g., "/usr/local/man/it/man1"
# 3 language addition e.g., "" or "-it"
# 4 vim location as used in manual pages e.g., "/usr/local/share/vim"
# 5 runtime dir ... | Shell |
#!/bin/sh
# Start GUI Vim on a copy of the tutor file.
# Usage: gvimtutor [xx]
# See vimtutor for usage.
exec `dirname $0`/vimtutor -g "$@"
| Shell |
#! /bin/sh
# installml.sh --- install or uninstall manpage links for Vim
#
# arguments:
# 1 what: "install" or "uninstall"
# 2 also do GUI pages: "yes" or ""
# 3 target directory e.g., "/usr/local/man/it/man1"
# 4 vim exe name e.g., "vim"
# 5 vimdiff exe name e.g., "vimdiff"
# 6 evim exe name ... | Shell |
#!/bin/sh
# toolcheck -- check for tools that have severe bugs. Good that all the buggy
# tools identify by version numbers. This is the spirit of GNU :-)
#
# 24.7.95 jw.
retval=0
reply="`sh -version -c exit 2>&1 < /dev/null`"
case "$reply" in
GNU*1.14.3*)
echo "- sh is '$reply'";
echo " CAUTION: This she... | Shell |
#! /bin/sh
#
# pathdef.sh: adjust pathdef.c for auto/link.sed, if it exists
#
if test -s auto/link.sed; then
cp auto/pathdef.c auto/pathdef.tmp
sed -f auto/link.sed <auto/pathdef.tmp >auto/pathdef.c
rm -f auto/pathdef.tmp
fi
# vim:set sw=2 et:
| Shell |
#! /bin/sh
#
# osdef.sh -- copy osdef.h.in to osdef.h while removing declarations
# found in the system header files. Caution: weird sed magic going on here.
# Warnings are printed if sed did not survive.
#
# (C) Michael Schroeder, Juergen Weigert
#
# osdef.h.in has been split into osdef1.h.in and osdef2.h.in, because ... | Shell |
#! /bin/sh
#
# which.sh -- find where an executable is located. It's here because the
# "which" command is not supported everywhere. Used by Makefile.
IFS=":"
for ac_dir in $PATH; do
if test -f "$ac_dir/$1"; then
echo "$ac_dir/$1"
break
fi
done
| Shell |
#!/bin/sh
#
# ref - Check spelling of the arguments
#
# Usage: ref word ..
#
# can be used for the K command of Vim
#
spell <<EOF
$*
EOF
| Shell |
#!/bin/sh
# enable DEC locator input model on remote terminal
printf "\033[1;2'z\033[1;3'{\c"
vim "$@"
# disable DEC locator input model on remote terminal
printf "\033[2;4'{\033[0'z\c"
| Shell |
#!/bin/sh
# Shell script to start Vim with less.vim.
# Read stdin if no arguments were given.
if test -t 1; then
if test $# = 0; then
vim --cmd 'let no_plugin_maps = 1' -c 'runtime! macros/less.vim' -
else
vim --cmd 'let no_plugin_maps = 1' -c 'runtime! macros/less.vim' "$@"
fi
else
# Output is not a term... | Shell |
#! /bin/sh
prefix=stock_
list=
for file in "$@"
do
name=`echo "$file" | sed 's|-|_|g; s|^.*/||; s|\..*$||'`
list="$list $prefix$name $file"
done
gdk-pixbuf-csource --raw --static --build-list $list
| Shell |
#!/sbin/runscript
USER="nginx"
GROUP="nginx"
INTERPRETER="/usr/bin/python"
PORT="8888"
HOME="/home/${USER}" # Edit to your own username
PYTHON="/var/calculate/www"
#PYTHONPATH="${HOME}/lib/python"
#export PYTHONPATH
PROJECT_NAME="dj"
PROJECT_DIR="$PYTHON/$PROJECT_NAME"
PID_FILE="/var/run/dj/${PROJECT_N... | Shell |
#!/sbin/runscript
USER="nginx"
GROUP="nginx"
INTERPRETER="/usr/bin/python"
PORT="8888"
HOME="/home/${USER}" # Edit to your own username
PYTHON="/var/calculate/www"
PROJECT_NAME="dj"
PROJECT_DIR="$PYTHON/$PROJECT_NAME"
PID_FILE="/var/run/dj/$PROJECT_NAME.pid"
SOCKET_FILE="/tmp/$PROJECT_NAME.socket"
MANA... | Shell |
#!/bin/sh
# jvmtop - java monitoring for the command-line
# launch script
#
# author: Markus Kolb
#
DIR="$(cd "$(dirname "$(readlink -f "$0")")" && pwd)"
if [ -z "$JAVA_HOME" ] ; then
JAVA_HOME=`readlink -f \`which java 2>/dev/null\` 2>/dev/null | \
sed 's/\/bin\/java//'`
fi
TOOLSJAR="$JAVA_HOME/lib... | Shell |
#!/usr/bin/env zsh
# desc:
#
# Output an org compatible structure representing the filesystem from
# the point passed on the command line (or . by default).
#
# options:
# none
#
# usage:
# dir2org.zsh [DIR]...
#
# author:
# Phil Jackson (phil@shellarchive.co.uk)
set -e
function headline {
local dept... | Shell |
#!/usr/bin/env zsh
# desc:
#
# Output an org compatible structure representing the filesystem from
# the point passed on the command line (or . by default).
#
# options:
# none
#
# usage:
# dir2org.zsh [DIR]...
#
# author:
# Phil Jackson (phil@shellarchive.co.uk)
set -e
function headline {
local dept... | Shell |
#!/bin/bash
#
# This script gives all users permission to use Aardvark devices.
# If more security is desired, modify the chown and chmod lines below.
#
if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]; then
chown root.root "${DEVICE}"
chmod 0666 "${DEVICE}"
fi
| Shell |
#!/bin/bash
#
# This script gives all users permission to use Beagle devices.
# If more security is desired, modify the chown and chmod lines below.
#
if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]; then
chown root.root "${DEVICE}"
chmod 0666 "${DEVICE}"
fi
| Shell |
#!/bin/bash
#
# This script gives all users permission to use Beagle devices.
# If more security is desired, modify the chown and chmod lines below.
#
if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]; then
chown root.root "${DEVICE}"
chmod 0666 "${DEVICE}"
fi
| Shell |
#!/bin/bash
#
# This script gives all users permission to use Cheetah devices.
# If more security is desired, modify the chown and chmod lines below.
#
if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]; then
chown root.root "${DEVICE}"
chmod 0666 "${DEVICE}"
fi
| Shell |
#!/bin/bash
echo ""
echo -n 'Install compiler tools? (y/n) '
read res
if [ "$res" == "y" ]; then
sudo apt-get update && sudo apt-get install build-essential python-yaml cmake subversion wget
# wget --no-check-certificate http://ros.org/rosinstall -O ~/rosinstall
# chmod 755 ~/rosinstall
fi
echo "----------"
echo ... | Shell |
#!/bin/bash
while true
do
DEV=`ls /dev/seabee | grep imu`
DRV=`rostopic list | grep xsens`
if [ -z "$DEV"] || [ -z "$DRV"]; then
echo "imu not found"
roslaunch xsens_driver xsens_driver.launch &
else
echo "imu found"
fi
sleep 3s
done | Shell |
#!/bin/bash
# Android Screenshot Library #
##############################
# Startup script #
echo "Android Screenshot Library -- initializing..."
#
if [ -z $ANDROID ]; then
echo "*** Android SDK not found ***"
echo "Make sure the ANDROID variable is pointing to Android SDK root directory"
else
adb="$AN... | Shell |
#!/usr/bin/env bash
success=true
for i
do
printf "%-40s" $i
if sh -c "$i >$i.log 2>&1" 2>/dev/null
then
echo PASS
else
echo FAIL';' output in $i.log
success=false
fi
done
if $success; then
echo 'ALL TESTS PASSED.'
exit 0
fi
echo 'TESTS FAILED.'
exit 1
| Shell |
#!/bin/sh
set -e
out=$GOROOT/src/pkg/regexp/syntax/doc.go
cp syntax.txt $out
sam -d $out <<'!'
,x g/NOT SUPPORTED/d
/^Unicode character class/,$d
,s/[«»]//g
,x g/^Possessive repetitions:/d
,x g/\\C/d
,x g/Flag syntax/d
,s/.=(true|false)/flag &/g
,s/^Flags:/ Flag syntax is xyz (set) or -xyz (clear) or xy-z (set xy, cl... | Shell |
#!/bin/sh
cp syntax.txt syntax.html
sam -d syntax.html <<'!'
,s/\&/\&/g
,s/</\</g
,s/>/\>/g
,s!== (([^()]|\([^()]*\))*)!≡ <code>\1</code>!g
,s!«!<code>!g
,s!»!</code>!g
,s! vim$! <font size=-2>VIM</font>!g
,s! pcre$! <font size=-2>PCRE</font>!g
,s! perl$! <font size=-2>PERL</font>!g
,x g/NOT SUPPORTED/ s!^[^... | Shell |
#!/bin/sh
cp syntax.txt syntax.wiki
sam -d syntax.wiki <<'!'
,s!`!`````!g
,s!== (([^()]|\([^()]*\))*)!≡ `\1`!g
,s!«!`!g
,s!»!`!g
,s! vim$! <font size="1">VIM</font>!g
,s! pcre$! <font size="1">PCRE</font>!g
,s! perl$! <font size="1">PERL</font>!g
,s!(^[^ ]+) (.*)\n!`\1` \2\n!g
,x g/NOT SUPPORTED/ s!^[^ ]+!<font color=... | Shell |
#!/bin/bash
##
## BlogEngine.NET Mono Setup Script
##
## This script will prepare a Mono installation of BlogEngine.NET. See the
## ReadMe.txt file in the same directory for instructions on how to use it and
## what it does.
##
## Usage:
## ./mono_setup.sh [group_name]
##
## Step 1 - Create the symlink
echo "Creati... | Shell |
#!/bin/bash
##
## BlogEngine.NET Mono Setup Script
##
## This script will prepare a Mono installation of BlogEngine.NET. See the
## ReadMe.txt file in the same directory for instructions on how to use it and
## what it does.
##
## Usage:
## ./mono_setup.sh [group_name]
##
## Step 1 - Create the symlink
echo "Creati... | Shell |
#!/bin/sh
ruby webrick.rb
| Shell |
#!/bin/sh
ruby webrick.rb
| Shell |
#!/bin/bash
# Copyright 2010 Google Inc.
#
# 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 t... | Shell |
#!/bin/sh
# Copyright 2014 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 applica... | Shell |
#!/bin/sh
#
# Detects OS we're compiling on and outputs a file specified by the first
# argument, which in turn gets read while processing Makefile.
#
# The output will set the following variables:
# CC C Compiler path
# CXX C++ Compiler path
# PLATFORM_LDFLAGS ... | Shell |
uniform mat4 uMVPMatrix;
attribute vec4 vPosition;
attribute vec2 aTextureCoord;
varying vec2 vTextureCoord;
void main() {
//the matrix must be included as a modifier of gl_Position
gl_Position = vPosition * uMVPMatrix;
vTextureCoord = aTextureCoord;
} | Shell |
precision mediump float;
varying vec2 vTextureCoord;
uniform sampler2D sTexture;
void main() {
gl_FragColor = texture2D(sTexture, vTextureCoord);
} | Shell |
#!/bin/sh
# The location of python install
python_home=C:/Python_2.5.1
python_cmd=$python_home/python.exe
for arg in $*
do
python_cmd+=" $arg"
done
##############################################################################
# add -s to the end of the line to show items marked private
echo $python_cmd
$python_cmd | Shell |
#!/bin/sh
# The location of python install
python_home=C:/Python_2.5.1
python_cmd=$python_home/python.exe
for arg in $*
do
python_cmd+=" $arg"
done
##############################################################################
# add -s to the end of the line to show items marked private
echo $python_cmd
$python_cmd | Shell |
#!/bin/sh
rm -rf ./lib
mkdir ./lib
make -f sdk.makefile
| Shell |
#!/usr/bin/env bash
success=true
for i
do
printf "%-40s" $i
if sh -c "$i >$i.log 2>&1" 2>/dev/null
then
echo PASS
else
echo FAIL';' output in $i.log
success=false
fi
done
if $success; then
echo 'ALL TESTS PASSED.'
exit 0
fi
echo 'TESTS FAILED.'
exit 1
| Shell |
#!/bin/sh
cp syntax.txt syntax.html
sam -d syntax.html <<'!'
,s/\&/\&/g
,s/</\</g
,s/>/\>/g
,s!== (([^()]|\([^()]*\))*)!≡ <code>\1</code>!g
,s!«!<code>!g
,s!»!</code>!g
,s! vim$! <font size=-2>VIM</font>!g
,s! pcre$! <font size=-2>PCRE</font>!g
,s! perl$! <font size=-2>PERL</font>!g
,x g/NOT SUPPORTED/ s!^[^... | Shell |
#!/bin/sh
cp syntax.txt syntax.wiki
sam -d syntax.wiki <<'!'
,s!`!`````!g
,s!== (([^()]|\([^()]*\))*)!≡ `\1`!g
,s!«!`!g
,s!»!`!g
,s! vim$! <font size="1">VIM</font>!g
,s! pcre$! <font size="1">PCRE</font>!g
,s! perl$! <font size="1">PERL</font>!g
,s!(^[^ ]+) (.*)\n!`\1` \2\n!g
,x g/NOT SUPPORTED/ s!^[^ ]+!<font color=... | Shell |
#!/bin/sh
arch=x86
archdir=Win32
clean_build=true
for opt in "$@"
do
case "$opt" in
x86)
;;
x64 | amd64)
arch=x86_64
archdir=x64
;;
quick)
clean_build=false
;;
*)
echo "Unknown Option $opt"
exit 1
e... | Shell |
#!/bin/sh
arch=x86
archdir=Win32
clean_build=true
for opt in "$@"
do
case "$opt" in
x86)
;;
x64 | amd64)
arch=x86_64
archdir=x64
;;
quick)
clean_build=false
;;
*)
echo "Unknown Option $opt"
exit 1
e... | Shell |
#!/bin/bash
#
# This script checks the java version and bails if it's less
# than Java6 (because we use @Override annotations on interface
# overriding methods. It then proceeds to do a maven build that
# first cleans, then builds the normal lifecycle through compilation
# unit testing (if available) up to packaging. ... | Shell |
echo " Fetching data for host111.ru"
NAME=""
PASSWORD=""
wget --keep-session-cookies \
--save-cookies ~/.graph_cookies \
--post-data='came_from=http%3A%2F%2Fmonitor.ceopen.cn%3A8080%2Fzport%2Fdmd%2F&submitted=true&__ac_name=NAME&__ac_password=PASSWORD&submitbutton=' \
http://monitor.ceopen.cn:8080/zport/acl_users... | Shell |
./x < in.txt
| Shell |
g++ main.cpp -o x
| Shell |
make clean
make distclean
| Shell |
cmake ./
make
| Shell |
cmake ./
make
| Shell |
make clean
make distclean
| Shell |
cmake ./
make
| Shell |
make clean
make distclean
| Shell |
cmake ./
make
| Shell |
make clean
make distclean
| Shell |
cmake ./
make
| Shell |
make clean
make distclean
| Shell |
cmake ./
make
| Shell |
make clean
make distclean
| Shell |
cmake ./
make
| Shell |
make clean
make distclean
| Shell |
cmake ./
make
| Shell |
make clean
make distclean
| Shell |
cmake ./
make
| Shell |
make clean
make distclean
| Shell |
cmake ./
make
| Shell |
make clean
make distclean
| Shell |
cmake ./
make
| Shell |
make clean
make distclean
| Shell |
cmake ./
make
| Shell |
make clean
make distclean
| Shell |
cmake ./
make
| Shell |
make clean
make distclean
| Shell |
./x < in.txt
| Shell |
cmake ./
make
| Shell |
make clean
make distclean
| Shell |
cmake ./
make
| Shell |
make clean
make distclean
| Shell |
cmake ./
make
| Shell |
./x < in.txt
| Shell |
g++ conv.cpp -o ./x
| Shell |
make clean
make distclean
| Shell |
cmake ./
make
| Shell |
g++ a.cpp -o x
| Shell |
./x < in.txt > out.txt
| Shell |
g++ c.cpp -o x
| Shell |
make clean
make distclean
| Shell |
cmake ./
make
| Shell |
./x < in.txt
| Shell |
g++ main.cpp -Wall -pedantic -o x
| Shell |
dbuser=root
dbpasswd=soooner.com
dbserver=127.0.0.1
port=3306
dbopt=--opt
dbname=minicms
dumpfilename=`date +%F`.sql
tarfile=/mnt/disk-2/minicms$fileprefix-`date +%F`.tar.gz
mysqldump -u $dbuser -p$dbpasswd -h $dbserver -P$port $dbopt $dbname >$dbname$dumpfilename
tar -czvf $tarfile $dbname$dumpfilename
rm -f $dbname$d... | Shell |
dbuser=root
dbpasswd=soooner.com
dbserver=127.0.0.1
port=3306
dbopt=--opt
dbname=minicms
dumpfilename=`date +%F`.sql
tarfile=/mnt/disk-2/minicms$fileprefix-`date +%F`.tar.gz
mysqldump -u $dbuser -p$dbpasswd -h $dbserver -P$port $dbopt $dbname >$dbname$dumpfilename
tar -czvf $tarfile $dbname$dumpfilename
rm -f $dbname$d... | Shell |
cd /home/soooner/data/webroot/userbiz/application/controllers
find . -name "*Controller.php"|xargs grep function| grep Action\(|sed s#./##|sed s#Controller.php##|sed s#public##|sed s#function##|sed s#Action\(\)##|sed s/\{//|awk '{print $1 $2}'>/tmp/mvcresource.txt
| Shell |
#!/bin/sh
nohup php /home/yuecl/www/smartchem/library/Common/Command/tools/mkindex/mkindex.php >/dev/null
| Shell |
#!/bin/sh
nohup php /home/yuecl/www/smartchem/library/Common/Command/tools/mkindex/mkindex.php >/dev/null
| Shell |
dbuser=root
dbpasswd=soooner.com
dbserver=127.0.0.1
port=3306
dbopt=--opt
dbname=minicms
dumpfilename=`date +%F`.sql
tarfile=/mnt/disk-2/minicms$fileprefix-`date +%F`.tar.gz
mysqldump -u $dbuser -p$dbpasswd -h $dbserver -P$port $dbopt $dbname >$dbname$dumpfilename
tar -czvf $tarfile $dbname$dumpfilename
rm -f $dbname$d... | Shell |
cd /home/soooner/data/webroot/userbiz/application/controllers
find . -name "*Controller.php"|xargs grep function| grep Action\(|sed s#./##|sed s#Controller.php##|sed s#public##|sed s#function##|sed s#Action\(\)##|sed s/\{//|awk '{print $1 $2}'>/tmp/mvcresource.txt
| Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.