Skip to content

Instantly share code, notes, and snippets.

View petrzpav's full-sized avatar
💭
I may be slow to respond.

Pavel Petržela petrzpav

💭
I may be slow to respond.
View GitHub Profile
@petrzpav
petrzpav / git_aliases
Created March 22, 2017 08:30
Usefull git aliases
#!/bin/bash
# Usage:
# 1) Download file (e.g. to your $HOME)
# 2) Place the following in your shell configuration file (e.g. ~/.bash_aliases, ~/.bashrc or ~/.zshrc):
# source '$HOME/git_aliases'
# 3) Reload shell configuration
# 4) Enjoy new aliases :-)
function git_diff_inclusive {
@alces
alces / ansible_local_playbooks.md
Last active June 5, 2024 17:36
How to run an Ansible playbook locally
  • using Ansible command line:
ansible-playbook --connection=local 127.0.0.1 playbook.yml
  • using inventory:
127.0.0.1 ansible_connection=local
@u0d7i
u0d7i / disable_vim_auto_visual_on_mouse.txt
Last active February 27, 2024 14:08
Disable vim automatic visual mode on mouse select
Disable vim automatic visual mode on mouse select
issue: :set mouse-=a
add to ~/.vimrc: set mouse-=a
my ~/.vimrc for preserving global defaults and only changing one option:
source $VIMRUNTIME/defaults.vim
set mouse-=a
@rxaviers
rxaviers / gist:7360908
Last active June 10, 2024 09:19
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@plentz
plentz / nginx.conf
Last active June 9, 2024 13:18
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048