Skip to content

Instantly share code, notes, and snippets.

View xrepzm's full-sized avatar

Nandor Dudas xrepzm

  • Debrecen, Hungary
View GitHub Profile
@xrepzm
xrepzm / chain.py
Created May 3, 2017 16:41
Very simple plugin for sublime
import sublime, sublime_plugin
class ChainCommand(sublime_plugin.WindowCommand):
def run(self, commands):
for command in commands:
self.window.run_command(command[0], *command[1:])
@xrepzm
xrepzm / .bashrc
Last active April 30, 2017 16:57
Bash aliases
alias ll='ls -gohlat --show-control-chars -F --color $*'
alias rmall='rm -rf ..?* .[!.]* *'
alias lan='laravel new $*'
alias art='php artisan $*'
alias gst='git status'
alias gad='git add .'
alias gco='git commit -m $*'
alias gch='git checkout $*'
alias gdi='git diff $*'
@xrepzm
xrepzm / .gitconfig
Created April 17, 2017 18:20
Git config
[user]
name = Nandor Dudas
email = x.rep.zm@gmail.com
[core]
autocrlf = true
safecrlf = false
@xrepzm
xrepzm / .bash_profile
Created April 17, 2017 18:20
Bash profile
# generated by Git for Windows
test -f ~/.profile && . ~/.profile
test -f ~/.bashrc && . ~/.bashrc
@xrepzm
xrepzm / example.sublime-project
Created April 17, 2017 15:46
Sublime Text project example
{
"folders":
[
{
"path": "C:/...",
"name": "Example Project",
"follow_symlinks": true
}
],
"settings":
@xrepzm
xrepzm / Preferences.sublime-settings
Created April 17, 2017 14:38
Sublime Text settings
{
"always_show_minimap_viewport": true,
"caret_extra_bottom": 1,
"caret_extra_top": 1,
"ensure_newline_at_eof_on_save": true,
"font_options":
[
"gray_antialias",
"subpixel_antialias"
],
@xrepzm
xrepzm / Default (Windows).sublime-keymap
Last active May 3, 2017 16:40
Sublime Text key bindings
// sublime.log_commands(True)
[
{ "keys": ["ctrl+k", "ctrl+m"], "command": "toggle_menu" },
{ "keys": ["ctrl+k", "ctrl+s"], "command": "toggle_status_bar" },
{ "keys": ["ctrl+alt+l"], "command": "toggle_setting", "args": { "setting": "line_numbers" } },
// Use chain.py plugin
{ "keys": ["ctrl+alt+z"], "command": "chain", "args": { "commands": [["toggle_tabs"], ["toggle_show_open_files"]] } },
{ "keys": ["ctrl+keypad_divide"],"command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+shift+keypad_divide"],"command": "toggle_comment", "args": { "block": true } },
// PHPCompanion settings