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 sublime, sublime_plugin, re, os | |
class GeneratorCommand(sublime_plugin.TextCommand): | |
def fixup(self, string): | |
return re.sub(r'\r\n|\r', '\n', string.decode('utf-8')) | |
def formalName(self, rawName): | |
return u"%s" % "".join([part.title() for part in rawName.split("_")]) |
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
--- | |
deployer_user: deploy | |
deployer_group: deploy | |
deployer_groups: ['admin'] | |
deployer_user_ssh_key_file: .ssh/id_rsa | |
deployer_gitlab_api: https://[gitlab-domain]/api/v3/ | |
deployer_gitlab_token: [gitlab-token-for-specific-user] | |
deployer_gitlab_key_title: "{{ ansible_hostname }}_deployer" |
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
# ------------------------------------ | |
# Docker alias and function | |
# ------------------------------------ | |
# Get latest container ID | |
alias dl="docker ps -l -q" | |
# Get container process | |
alias dps="docker ps" |
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 | |
name=beta | |
disk=4096 | |
swap=1024 | |
mem=4096 | |
suite=precise | |
ip="192.168.199.199" | |
cpu=8 |
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 | |
# | |
# Run the hook command. | |
# Note: this will be replaced by the real command during copy. | |
# | |
CONTAINER="php" | |
ROOT_DIR="/var/www/app" | |
GIT_USER=$(git config user.name) | |
GIT_EMAIL=$(git config user.email) |
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 | |
# GITLAB | |
# Maintainer: @joeri | |
### BEGIN INIT INFO | |
# Provides: gitlab | |
# Required-Start: $local_fs $remote_fs $network $syslog redis-server | |
# Required-Stop: $local_fs $remote_fs $network $syslog | |
# Default-Start: 2 3 4 5 |
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 | |
namespace XXX\; | |
use Behat\Behat\Context\BehatContext, | |
Behat\Gherkin\Node\TableNode; | |
class FakerContext extends BehatContext | |
{ | |
const GENERATE_TEST_DATA_REGEX = '~\[([$a-zA-Z0-9]+)=([a-zA-Z]+)(\(([0-9]+)\))?\]~'; |
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
CREATE TABLE `cities` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`zip` smallint(4) unsigned NOT NULL, | |
`name` varchar(100) NOT NULL DEFAULT '', | |
`name_upper` varchar(100) NOT NULL DEFAULT '', | |
`province` varchar(200) NOT NULL DEFAULT '', | |
`country` varchar(11) DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
KEY `zip` (`zip`), | |
KEY `name` (`name`) |
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 | |
return Symfony\CS\Config\Config::create() | |
->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL) | |
->fixers([ | |
'concat_with_spaces', | |
'multiline_spaces_before_semicolon', | |
'short_array_syntax', | |
'newline_after_open_tag', | |
'single_quote', |
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
root = true | |
[*] | |
end_of_line = LF | |
insert_final_newline = true | |
trim_trailing_whitespace = true | |
charset = utf-8 | |
[*.{php,yml,sh,feature}] | |
indent_style = space |
NewerOlder