Attention: if you attempt to fork this gist, github will think that you are a spammer and you will have to confirm that you are human with them. Apparantly there are too many links in this list. Also I update it rather frequently (see revisions on the left), so it's probably wise to not fork it anyway.
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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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
GroovyShell groovyShell = new GroovyShell(getClass().getClassLoader()); | |
Script groovyScript = null; | |
if (paramsImport.getGroovyScript() == null ) { | |
String groovyScriptName = "defaultUserMapping.groovy"; | |
groovyScript = groovyShell.parse(new InputStreamReader(this.getClass().getResourceAsStream("/" + groovyScriptName))); | |
} else { | |
try { | |
groovyScript = groovyShell.parse(new File(paramsImport.getGroovyScript())); | |
} catch (IOException exception) { |
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
@BeforeClass() | |
public void setUp() throws LDAPException { | |
InMemoryDirectoryServerConfig config = new InMemoryDirectoryServerConfig("dc=example,dc=com"); | |
config.addAdditionalBindCredentials("cn=Directory Manager", "password"); | |
directoryServer = new InMemoryDirectoryServer(config); | |
directoryServer.importFromLDIF(true, getClass().getResource("/00-initial.ldif").getPath()); | |
directoryServer.startListening(); | |
ldapConnection = directoryServer.getConnection(); | |
} |
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
[Unit] | |
Description=carbon-cache instance %i (graphite) | |
[Service] | |
User=graphite | |
Group=graphite | |
ExecStartPre=/bin/rm -f /opt/graphite/storage/carbon-cache-%i.pid | |
ExecStart=/opt/graphite/bin/carbon-cache.py --instance=%i start | |
Type=forking | |
PIDFile=/opt/graphite/storage/carbon-cache-%i.pid |
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
local dt = require "date_time" | |
local ip = require "ip_address" | |
local l = require 'lpeg' | |
local syslog = require "syslog" | |
l.locale(l) | |
local msg = { | |
Timestamp = nil, | |
Hostname = nil, | |
Payload = nil, |
This is a local copy of the commands from:
- http://www.jmknoble.net/keys/#master-key
- http://www.macfreek.nl/mindmaster/Convert_GPG_keys_to_subkeys
- http://wiki.fsfe.org/Card_howtos/Card_with_subkeys_using_backups/
This guide serves as a reference of collected information necessary for strict management of PGP keys. This includes keeping a master key that always remains
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
#!/usr/bin/env python | |
import sys | |
from PyQt4.QtCore import * | |
from PyQt4.QtGui import * | |
from PyQt4.uic import * | |
import random | |
class App(QMainWindow): |
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
#!/usr/bin/env python | |
# encoding: utf-8: | |
import sys | |
from PyQt4.QtCore import * | |
from PyQt4.QtGui import * | |
from PyQt4.uic import * | |
import random | |
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 | |
function build() { | |
mvn clean install | |
if [ $? -ne 0 ] ; then | |
exit 1; | |
fi | |
} | |
mkdir commons |
OlderNewer