This file contains 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
search("users", "*:*").each do |user_data| | |
user user_data['id'] do | |
comment user_data['comment'] | |
uid user_data['uid'] | |
gid user_data['gid'] | |
home user_data['home'] | |
shell user_data['shell'] | |
end | |
end |
This file contains 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 | |
INTERFACE="en0" | |
MACCMD="ifconfig $INTERFACE ether" | |
MACREAL="aa:aa:aa:aa:aa:aa" | |
MACFAKE="bb:bb:bb:bb:bb:bb" | |
function usage { | |
echo "Usage:" | |
echo " mac fake" |
This file contains 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
export PS1='$( RET=$?; if [ $RET == 0 ]; then echo "😃 "; else echo "😡 "; fi )\n\h:\W \u\$ ' |
This file contains 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
# Description: | |
# Log all the things to ElasticSearch then lets you ask hubot what you missed | |
# | |
# Dependencies: | |
# None | |
# | |
# Configuration: | |
# ELASTICSEARCH_HOSTNAME - E.G. elasticsearch.example.com:9200, where to send the put requests | |
# ELASTICSEARCH_USERNAME - OPTIONAL basic auth username | |
# ELASTICSEARCH_PASSWORD - OPTIONAL basic auth password |
This file contains 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
#!bash | |
# | |
# bash/zsh completion support for core Git. | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org> | |
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# The contained completion routines provide support for completing: | |
# |
This file contains 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
if (Input.GetKeyDown(this.KeyRight) || Input.GetKeyUp(this.KeyLeft)) | |
{ | |
this.Turning++; | |
} | |
if (Input.GetKeyUp(this.KeyRight) || Input.GetKeyDown(this.KeyLeft)) | |
{ | |
this.Turning--; | |
} | |
if (this.Turning != 0) |
This file contains 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
[12:59am] PhpNut: So you are basically competing against the CSF to offer training? | |
[01:00am] PhpNut: thanks Graham... | |
[01:00am] Predominant: No, training for the company to make the devels here more experienced | |
[01:00am] PhpNut: The fact that you are working with another company doing cakephp development is even agiainst the agreement you had with cakedc | |
[01:00am] Predominant: information sharing in the group | |
[01:01am] PhpNut: why would they ask that? | |
[01:01am] Predominant: I am not doing CakePHP development, I am building a PaaS solution | |
[01:01am] PhpNut: I could care less if it is something interally for the company | |
[01:01am] Predominant: Like EngineYard / Orchestra / PHPFog | |
[01:01am] PhpNut: the more people that use it the better |
This file contains 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
<?php | |
// Github Details | |
$github_org = 'predominant'; | |
$github_repo = 'TwigView'; | |
$github_user = 'user'; | |
$github_password = 'pass'; | |
// Get from Github | |
$issues_url = "https://api.github.com/repos/$github_org/$github_repo/issues?state=open"; |
This file contains 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
DROP TABLE IF EXISTS `categories`; | |
CREATE TABLE `categories` ( | |
`id` char(36) NOT NULL, | |
`name` varchar(100) NOT NULL, | |
`description` text NOT NULL, | |
`created` datetime NOT NULL, | |
`modified` datetime NOT NULL, | |
PRIMARY KEY (`id`) |
This file contains 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
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
[color "diff"] | |
meta = yellow | |
frag = magenta bold |