This article aims to be a portal to installation and configuration of Cassandra. It is self-contained in the first place. It also provides links to the original articles.
Warning: This article is still under written.
| #!/bin/bash | |
| # A simple test script to demonstrate how to find the | |
| # "absolute path" at which a script is running. Used | |
| # to avoid some of the pitfals of using 'pwd' or hard- | |
| # coded paths when running scripts from cron or another | |
| # directory. | |
| # | |
| # Try it out: | |
| # run the script from the current directory, then |
| # How to perform a release with git & maven following the git flow conventions | |
| # ---------------------------------------------------------------------------- | |
| # Finding the next version: you can see the next version by looking at the | |
| # version element in "pom.xml" and lopping off "-SNAPSHOT". To illustrate, | |
| # if the pom's version read "0.0.2-SNAPSHOT", the following instructions would | |
| # perform the release for version "0.0.2" and increment the development version | |
| # of each project to "0.0.3-SNAPSHOT". | |
| # branch from develop to a new release branch | |
| git checkout develop |
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| ) | |
| // Suggestions from golang-nuts | |
| // http://play.golang.org/p/Ctg3_AQisl |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <!-- Your stuff here... --> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.tomcat.maven</groupId> | |
| <artifactId>tomcat7-maven-plugin</artifactId> |
| # | |
| # How to install automatically Oracle Java 7 under Salt Stack | |
| # | |
| # Thanks Oracle for complicating things :( | |
| # | |
| # 1. Create a java/ folder in your salt master | |
| # 2. Paste this file in init.sls | |
| # 3. salt '*' state.sls java | |
| # | |
| # Source: |
| #! /bin/bash | |
| # | |
| # Diffusion youtube avec ffmpeg | |
| # Configurer youtube avec une résolution 720p. La vidéo n'est pas scalée. | |
| VBR="2500k" # Bitrate de la vidéo en sortie | |
| FPS="30" # FPS de la vidéo en sortie | |
| QUAL="medium" # Preset de qualité FFMPEG | |
| YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL de base RTMP youtube |
| service salt-minion stop | |
| rm -f /etc/salt/pki/minion/minion_master.pub | |
| echo "master: salt" > /etc/salt/minion | |
| service salt-minion start |
| -- Find more at http://iterm.sourceforge.net/scripting.shtml | |
| launch "iTerm" | |
| tell application "iTerm" | |
| activate | |
| -- ssh in split panes to my varnish stack | |
| set myterm to (make new terminal) | |
| tell myterm |