# fluent.conf
<source>
type dummydata_producer
tag dummy.data
rate 500
dummydata0 {\"type\":\"sample\",\"code\":50,\"format\":\"json string allowed\"}
dummydata1 {\"message\":\"other format needed?\"}
dummydata2 {\"comment\":\"N of dummydataN is number and not limited\"}
@label @raw
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## FORSTWOOF UBUNTU PRESEED :: BUILD SCRIPT | |
# Quit on first error | |
set -e | |
# Temporary directory for the build | |
TMP="/var/tmp/ubuntu-build" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Unfortunately, we are not able to set the server {} due to hosting limitations. | |
# So we don't care that if is evil. We love if. Hooray for if! | |
# We want to redirect HTTP traffic to HTTPS, but only for two of our domains (the other domains still only use HTTP) | |
# set a var to 0 so when after a redirect, the existing connection is still used, | |
# the flag is set back to 0 instead of remembering its previosly set value | |
set $http 0; | |
# give the var a random value (in this case 1) when the if statement is true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"code.google.com/p/go.crypto/openpgp" | |
"encoding/base64" | |
"io/ioutil" | |
"log" | |
"os" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
To remove a submodule you need to:
- Delete the relevant section from the .gitmodules file.
- Stage the .gitmodules changes git add .gitmodules
- Delete the relevant section from .git/config.
- Run git rm --cached path_to_submodule (no trailing slash).
- Run rm -rf .git/modules/path_to_submodule (no trailing slash).
- Commit git commit -m "Removed submodule "
- Delete the now untracked submodule files rm -rf path_to_submodule
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sleep 3 | |
IP_ADDRESS=$(hostname -I | cut -f1 -d' ') | |
GRAYLOG2_URL="http://admin:admin@${IP_ADDRESS}:12900" | |
GRAYLOG2_INPUT_GELF_TCP=' | |
{ | |
"global": "true", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl pkcs7 -print_certs -in old.p7b -out new.crt | |
# openssl pkcs7 -print_certs -in old.p7b -out new.cer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
// for the ST3 users who don't have the Default.sublime-theme file (which is actually the default configuration), | |
// the simplest procedure is: | |
// 1- Navigate to Sublime Text -> Preferences -> Browse Packages | |
// 2- Open the User directory | |
// 3- Create a file named Default.sublime-theme with the following content (modify font.size as required): | |
[ | |
{ | |
"class": "sidebar_label", | |
"color": [0, 0, 0], | |
"font.size": 16 |