One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
#!/bin/bash | |
REGION="ap-southeast-2" | |
EFS="fs-a75dbd9e.efs.$REGION.amazonaws.com" | |
CMIS_ENV=cmis-uat | |
# Adapted from https://github.com/collectiveaccess/providence/blob/develop/Vagrantfile | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" | |
exit | |
fi | |
set -e |
#!/bin/bash | |
# Configuration de base: datestamp e.g. YYYYMMDD | |
DATE=$(date +"%Y%m%d") | |
# Dossier où sauvegarder les backups (créez le d'abord!) | |
BACKUP_DIR="/backup/mysql" |
#!/usr/bin/env ruby | |
toc = "# Table of Contents\n" | |
newmd = "" | |
ARGF.each_line do |line| | |
newmd << line | |
next if !line.start_with?("#") | |
heading = line.gsub("#", "").strip |
function transfer | |
if test (count $argv) -eq 0 | |
echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md" | |
return 1 | |
end | |
## get temporarily filename, output is written to this file show progress can be showed | |
set tmpfile ( mktemp -t transferXXX ) | |
## upload stdin or file |
<!doctype html> | |
<html> | |
<head> | |
<title>Exemple de Leaflet sans Browserify</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" /> | |
<style type="text/css"> | |
#map { height: 380px; } | |
</style> |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install yaz
yaz-client will then be available and you can use it like this:
run the program and you get a Z> prompt.
-- This creates a mysql table which contains the values of | |
-- datamodel.conf so that we can use the values in constructing | |
-- queries | |
DROP TABLE IF EXISTS cmis_table_numbers; | |
CREATE TABLE cmis_table_numbers ( | |
table_name VARCHAR(64) NOT NULL UNIQUE, | |
table_num INT(11) PRIMARY KEY, |
# http://stackoverflow.com/questions/5735666/execute-bash-script-from-url | |
bash <(curl -s http://mywebsite.com/myscript.txt) | |
# http://stackoverflow.com/questions/4642915/passing-parameters-to-bash-when-executing-a-script-fetched-by-curl | |
curl http://foo.com/script.sh | bash -s arg1 arg2 |