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
import sys, os | |
try: | |
if not (sys.stderr.isatty() and sys.stdout.isatty()): | |
raise ValueError('not a tty') | |
from ctypes import * | |
class COORD(Structure): | |
_fields_ = [("X", c_short), ("Y", c_short)] |
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
#!/usr/bin/env python | |
class MyClass(): | |
def alpha(self): | |
pass | |
def beta(self): | |
pass | |
def getProxy(self): | |
"""This is description... |
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/sh -e | |
# JIRA startup script | |
#chkconfig: 2345 80 05 | |
#description: JIRA | |
# Define some variables | |
# Name of app ( JIRA, Confluence, etc ) | |
APP=jira | |
# Name of the user to run as |
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
-- Function: remove_last_directory() | |
-- DROP FUNCTION remove_last_directory(); | |
CREATE OR REPLACE FUNCTION remove_last_directory() | |
RETURNS integer AS | |
$BODY$/* | |
author: Sorin Sbarnea | |
version: 1.0 | |
homepage: https://gist.github.com/2352885 |
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
DECLARE vdir integer; | |
BEGIN | |
-- BEGIN; | |
-- ^not needed for stored procedure | |
CREATE TABLE IF NOT EXISTS usermigration | |
( | |
oldusername character varying(255) NOT NULL, |
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 | |
# install: | |
# * rename the original script to script.original | |
# * rename the wrapper.sh to script | |
# * DONE! all calls are going to be logged now | |
TIMESTAMP=`date -u +"%Y-%m-%dT%H:%M:%SZ"` | |
ME=`basename $0` | |
WRAPPED_COMMAND=$ME.original |
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
<?xml version='1.0' encoding='UTF-8'?> | |
<hudson> | |
<disabledAdministrativeMonitors> | |
<string>OldData</string> | |
<string>jenkins.security.RekeySecretAdminMonitor</string> | |
</disabledAdministrativeMonitors> | |
<version>1.522</version> | |
<numExecutors>2</numExecutors> | |
<mode>EXCLUSIVE</mode> | |
<useSecurity>true</useSecurity> |
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 | |
REMHOST=$1 | |
REMPORT=${2:-443} | |
KEYSTORE_PASS=changeit | |
KEYTOOL=keytool | |
# FYI: the default keystore is located in ~/.keystore | |
if [ -z "$REMHOST" ] |
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
import com.atlassian.jira.ComponentManager | |
import com.atlassian.jira.bc.projectroles.ProjectRoleService | |
import com.atlassian.jira.security.GlobalPermissionManager | |
import com.atlassian.jira.security.Permissions | |
import com.atlassian.jira.security.roles.actor.UserRoleActorFactory | |
import com.atlassian.jira.user.util.UserUtil | |
import com.atlassian.jira.util.SimpleErrorCollection | |
import com.atlassian.crowd.embedded.api.Group | |
import com.atlassian.crowd.embedded.api.User | |
import com.atlassian.jira.user.util.UserManager |
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-3.2$ brew --config | |
HOMEBREW_VERSION: 0.9.2 | |
HEAD: eddfda112cb1e961dc5cbd0c77e2fd6e20e1a8b8 | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_CELLAR: /usr/local/Cellar | |
CPU: 8-core 64-bit sandybridge | |
OS X: 10.8-x86_64 | |
Xcode: 4.4.1 | |
CLT: 4.4.0.0.1.1249367152 | |
GCC-4.0: N/A |