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
| ############################################################# | |
| ################### OFFICIAL UBUNTU REPOS ################### | |
| ############################################################# | |
| ###### Ubuntu Main Repos | |
| deb http://de.archive.ubuntu.com/ubuntu/ quantal main restricted universe multiverse | |
| deb-src http://de.archive.ubuntu.com/ubuntu/ quantal main restricted universe multiverse | |
| ###### Ubuntu Update Repos | |
| deb http://de.archive.ubuntu.com/ubuntu/ quantal-security main restricted universe multiverse |
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
| # A simple PowerShell script for retrieving the RAID status of volumes with help of diskpart. | |
| # The nicer solution would be using WMI (which does not contain the RAID status in the Status field of Win32_DiskDrive, Win32_LogicalDisk or Win32_Volume for unknown reason) | |
| # or using the new PowerShell API introduced with Windows 8 (wrong target system as our customer uses a Windows 7 architecture). | |
| # | |
| # diskpart requires administrative privileges so this script must be executed under an administrative account if it is executed standalone. | |
| # check_mk has this privileges and therefore this script must only be copied to your check_mk/plugins directory and you are done. | |
| # | |
| # Christopher Klein <ckl[at]neos-it[dot]de> | |
| # This script is distributed under the GPL v2 license. |
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
| # von http://vagubunt.wordpress.com | |
| # | |
| ##### ENVIRONMENT | |
| export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin | |
| export EDITOR=vim | |
| export PAGER=less | |
| export BROWSER=links | |
| export LESS=-cex3M |
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
| # Gitorious config/authentication.yml with Active Directory support | |
| # This is based on https://gitorious.org/gitorious/mainline/merge_requests/181 | |
| production: | |
| # Disable database authentication altogether | |
| #disable_default: true | |
| # additional methods, an array of hashes | |
| methods: | |
| - adapter: Gitorious::Authentication::LDAPAuthentication |
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 | |
| PATH_svn2git=~/svn2git/svn-all-fast-export | |
| # path to account mapping. Must be in format "$svn-username $git-fullname <$git-email>" | |
| PATH_account_map=~/svn2git/account-map | |
| # layout template | |
| PATH_template=~svn2git/standardlayout.rules |
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
| // Doing AES-256-CBC (salted) decryption with node.js. | |
| // This code is based on http://php.net/manual/de/function.openssl-decrypt.php and works with PHP sqAES. | |
| // | |
| // Create your encrypted data with | |
| // echo -n 'Hello world' | openssl aes-256-cbc -a -e | |
| var crypto = require('crypto'); | |
| var password = 'password'; | |
| var edata = 'U2FsdGVkX18M7K+pELP06c4d5gz7kLM1CcqJBbubW/Q='; |
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
| var cp = require('child_process'), | |
| dns = require('dns'); | |
| /** server.js */ | |
| // *does* work | |
| dns.resolve4('www.google.com', function(err, addresses) { | |
| console.log("Resolved from service.js"); | |
| console.log(addresses); | |
| }); |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project name="db-worklflow" default="update"> | |
| <property name="db.server">remote_db_server</property> | |
| <property name="db.database"></property> | |
| <property name="db.username">root</property> | |
| <property name="db.password">root</property> | |
| <taskdef resource="net/sf/antcontrib/antlib.xml" /> | |
| <target name="sql_execute_command" description="Executes exactly one SQL command and returns it output as 'latest_sql_result'"> | |
| <if> |
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
| <db-workflow> | |
| <defaults> | |
| <var key="server">test</var> | |
| <var key="test">${server}_name</var> | |
| </default> | |
| <workflows> | |
| <workflow name="update"> | |
| <vars> | |
| <ask_for var="server" /> | |
| <ask_for var="user" /> |
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
| grammar de.ckl.Mydsl with org.eclipse.xtext.common.Terminals | |
| generate mydsl "http://www.ckl.de/Mydsl | |
| Model: | |
| (domains+=Domain)*; | |
| Operation: | |
| (OperationContainer | OperationCreate | OperationList | OperationEdit | OperationDelete) | |
| ; |