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
version: "3" | |
services: | |
docker: | |
container_name: jenkins-docker | |
image: docker:dind | |
privileged: true | |
networks: | |
jenkins: | |
aliases: | |
- docker |
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
def str2bool(val): | |
"""Converts string to boolean value""" | |
if isinstance(val, bool): | |
return val | |
if val.lower() in ("yes", "y", "true", "t", "1"): | |
return True | |
if val.lower() in ("no", "n", "false", "f", "0"): | |
return False | |
raise argparse.ArgumentTypeError("Boolean value expected.") |
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 bash | |
# Verifies that a hosts.txt file exists | |
# This file should contain a list of IP to pinged | |
if [[ ! -e ./hosts.txt ]]; then | |
echo "Error: The file hosts.txt doesn't exists in this directory." >&2 | |
exit 1 | |
fi | |
TIMESTAMP=$(date -u +%FT%T) |
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 PhpCsFixer\Config::create() | |
->setRules([ | |
'@PSR2' => true, | |
'array_syntax' => ['syntax' => 'short'], | |
'no_unused_imports' => true, | |
'ordered_imports' => [ | |
'imports_order' => null, | |
'sort_algorithm' => 'length', |
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 has("gui_running") | |
" Add a little space to the line number column | |
set foldcolumn=2 | |
" Set the background of the line number to match the theme background | |
hi LineNr guibg=bg | |
" Set the background color for the foldcolumn to match the theme background | |
hi foldcolumn guibg=bg | |
" Remove splits separators | |
hi VertSplit guifg=bg guibg=bg | |
" Use the tallest window as possible |
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
Show hidden characters
{ | |
"always_show_minimap_viewport": true, | |
"bold_folder_labels": true, | |
"caret_style": "solid", | |
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme", | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
".hg", |
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 laramagic { | |
PROJECT=$1 | |
echo "Creating a new Laravel project: $PROJECT..." | |
cd ~/code | |
composer create-project laravel/laravel $PROJECT | |
cd $PROJECT | |
git init | |
git add . | |
git commit -m "Install Laravel" | |
mysql -u root -e "CREATE DATABASE $PROJECT" |