Skip to content

Instantly share code, notes, and snippets.

Enis Özgen enisozgen

Block or report user

Report or block enisozgen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@enisozgen
enisozgen / stackoverflow-colors.css
Created Feb 25, 2020
A little snippet which changes stackoverflow UI by looking tags for more http://en.enisozgen.com/do-not-display-unnecessary-stackoverflow-tags
View stackoverflow-colors.css
.tagged-ignored {
display: none;
}
.tagged-interesting {
background-color: #ff76508c;
}
View smart-shift-hydra.el
;; https://github.com/hbin/smart-shift
;; Another text moving package which works well.
;; Easily you can shift region or current line.
;; Usage 1: Go to line call the function move it with h,j,k,l
;; Usage 2: Select the region than move them via h,j,k,l
;; Known bug If you select via V command it behaves so weird.
View create_pr_from_cli.sh
# Create pull request from your branch to target branch
# USAGE
# Switch for branch you want to make Pull request
# bash create_pr_from_cli.sh <target_branch> <OPTIONAL_pr_message>
# Limitation one script allows you to make PR for one repository.
# You can change this easily.
# TODO
PROJECTNAME="ProjectName"
View ansible-surround.el
;; For more check my blog http://en.enisozgen.com/ansible-surround/
;; Put quotes and curly brackets
;; evil-surround-edit:
;; h converts: item --> {{ item }}
;; H converts: item --> "{{ item }}"
(add-hook 'yaml-mode-hook (lambda ()
View just-one-space-region.el
# Works as famous command which is exist in simple.el
# https://github.com/emacs-mirror/emacs/blob/cbc10ec71e9f189e8d6fd5c6927aec4872e0fd96/lisp/simple.el#L957
# + Feature that I implement for function is you can select text as region than it will delete spaces if it's more than 1.
# - Feature: Base function allows you leave (n)Space I don't need this, so it is not exist.
(defun just-one-space-region (begin end)
"Deletes whitespaces for selected region if they more than one"
(interactive "r")
(if (use-region-p)
(save-excursion
View just-one-space-region.el
# Works as famous command which is exist in simple.el
# https://github.com/emacs-mirror/emacs/blob/cbc10ec71e9f189e8d6fd5c6927aec4872e0fd96/lisp/simple.el#L957
# + Feature that I implement for function is you can select text as region than it will delete spaces if it's more than 1.
# - Feature: Base function allows you leave (n)Space I don't need this, so it is not exist.
(defun just-one-space-region (begin end)
"Deletes whitespaces for selected region if they more than one"
(interactive "r")
(if (use-region-p)
(save-excursion
View findf-file-in-git-project.sh
# https://github.com/jhawthorn/fzy
# I have just discovered what is fzy. I created helpful functions that helps to edit or navigte directories at the light of speed
# I'm agree with you that function could be more simple :)
# Use the force wisely
alias git-root='cd $(git rev-parse --show-toplevel)'
# Change directory and don't show hidden directories like .git in the git repository
function cdinproject() {
@enisozgen
enisozgen / auto-upper-case-aws-acronyms.el
Last active Jan 28, 2019
Emacs lisp code that automaticaly uppercase acronyms
View auto-upper-case-aws-acronyms.el
;; Auto upper case or camel case AWS related acronyms and words
;; stop asking whether to save newly added abbrev when quitting emacs
(setq save-abbrevs nil)
;; org-hook
(add-hook 'org-mode-hook (lambda () (abbrev-mode 1)))
@enisozgen
enisozgen / fast-highlight.el
Created Oct 21, 2017
Fast highlight options that I use
View fast-highlight.el
(setq enis-highlight-symbol-packages
'(
highlight-symbol
))
(defun enis-highlight-symbol/init-highlight-symbol ()
(use-package highlight-symbol
:config
(setq highlight-symbol-idle-delay 0.01)
@enisozgen
enisozgen / ansible-nested-variable.yml
Last active Mar 20, 2020
Ansible example which shows how to reach nested variable with dynamic elements
View ansible-nested-variable.yml
# Example which shows how to reach nested ansible variable which is partially different.
# Run that plabook with ansible-playbook -e "env=test" ansible-nested-variable.yml
---
#
- hosts: localhost
connection : ssh
gather_facts: no
vars:
cidr_blocks:
vpc_production_cidr_block: "10.10.0.0/28"
You can’t perform that action at this time.