Skip to content

Instantly share code, notes, and snippets.

View rdok's full-sized avatar

Rizart Dokollari rdok

View GitHub Profile
@rdok
rdok / .clang-format
Created November 6, 2021 19:35 — forked from intinig/.clang-format
.clang-format for UE4
---
Language: Cpp
AccessModifierOffset: -4
AlignAfterOpenBracket: DontAlign
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Left
AlignOperands: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
@rdok
rdok / .bash_aliases
Last active July 22, 2020 15:55
Docker terraform
terraform() {
docker run --rm -it \
-w /workbench/app \
-v ${HOME}/.aws:/workbench/.aws \
-v ${HOME}/.terraform.d/:/workbench/.terraform.d/ \
-v ${PWD}:/workbench/app \
-u $(id -u):$(id -g) \
-e HOME=/workbench \
hashicorp/terraform:light "$@"
}
@rdok
rdok / codecept
Created June 30, 2019 19:57
docker based codeception alias
function codecept() {
docker run --rm \
-w /app \
-u $(id -u):$(id -g) \
-v `pwd`:/app \
--network=host \
codeception/codeception $@
}
@rdok
rdok / composer.json
Last active June 28, 2018 04:09
Composer: handle deployment for queues.
{
"scripts": {
"pre-install-cmd": [
"php artisan down",
"php artisan queue:restart",
],
"post-install-cmd": [
"php artisan up"
],
},
@rdok
rdok / .vimrc
Last active September 4, 2019 15:41
Install ctrlpvim/ctrlp.vim plugin.
"|----------------------------------------------------------------------------|
"| Plugins - Vundle |
"|----------------------------------------------------------------------------|
" Behave more Vi-compatible, or a more useful way.
set nocompatible
" Don't detect filetypes.
filetype off
#!/bin/bash
#------------------------------------------------------------------------------
# Set up development machine. Vim, bashrc, and bash_aliases.
# Execute twice, if schema is missing.
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# Script configuration
#------------------------------------------------------------------------------
@rdok
rdok / delete_multi_remote_branches.sh
Created March 12, 2016 16:11
Delete all remote remote git branches, except 'master', and 'stage'. Run usinb bash instead of sh.
#!/bin/bash
declare -a skip_branches=("master" "stage")
# Credits due http://stackoverflow.com/a/10312587/2790481
for remote in `git branch -r`; do git branch --track ${remote#origin/} $remote; done
branches=$(git branch)
function branch_should_not_be_skipped {
#!/bin/bash
scripts=$(ls *.py)
for script in $scripts; do
script_directory="${script::-3}"
mkdir -p $script_directory
@rdok
rdok / gist:6da9eb14cf865181b481
Last active October 21, 2015 01:20
Default (Windows).sublime-keymap
[
{ "keys": ["alt+1"], "command": "toggle_side_bar" },
{ "keys": ["ctrl+shift+n"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
{ "keys": ["j", "j"], "command": "exit_insert_mode",
"context":
[
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operand": false }
]
},
#!/usr/bin/env bash
boldBlue="\[\e[1;34m\]"
yellow="\[\e[0;33m\]"
green="\[\e[0;32m\]"
resetColor="\[\e[0m\]"
username="\u"
hostname="\h"
git="\h"
currentDir="\w"