Skip to content

Instantly share code, notes, and snippets.

View lopezator's full-sized avatar
🐐
you have goat to be kidding me

David Lobe lopezator

🐐
you have goat to be kidding me
View GitHub Profile
* Use English International with dead keys
Make both super keys work:
nano /usr/share/X11/xkb/symbols/pc
Change:
key <RWIN> { [ Super_R ] };
@lopezator
lopezator / PostgreSQL_index_naming.rst
Last active November 18, 2019 12:20 — forked from popravich/PostgreSQL_index_naming.rst
PostgreSQL index naming convention to remember

The standard names for indexes in PostgreSQL are:

{tablename}_{columnname(s)}_{suffix}

where the suffix is one of the following:

  • pkey for a Primary Key constraint;
  • uq for a Unique constraint;
  • excl for an Exclusion constraint;
  • idx for any other kind of index;

Keybase proof

I hereby claim:

  • I am lopezator on github.
  • I am lopezator (https://keybase.io/lopezator) on keybase.
  • I have a public key ASBknpL2bm1ODZFb1VELKQvdFwxtqW-9FY8bwWnPqz0qZAo

To claim this, I am signing this object:

@lopezator
lopezator / .tmux.conf
Created April 11, 2018 11:37
Tmux config, mouse integration
# move this to ~/.tmux.conf and restart session to apply changes
set -g mouse on
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
bind -n WheelDownPane select-pane -t= \; send-keys -M
bind -n C-WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M
bind -T copy-mode-vi C-WheelUpPane send-keys -X halfpage-up
bind -T copy-mode-vi C-WheelDownPane send-keys -X halfpage-down
bind -T copy-mode-emacs C-WheelUpPane send-keys -X halfpage-up
bind -T copy-mode-emacs C-WheelDownPane send-keys -X halfpage-down
@lopezator
lopezator / debug_wsod.php
Created April 11, 2018 08:25
Debug WSOD PHP
<?php
// ----------------------------------------------------------------------------------------------------
// - Display Errors
// ----------------------------------------------------------------------------------------------------
ini_set('display_errors', 'On');
ini_set('html_errors', 0);
// ----------------------------------------------------------------------------------------------------
// - Error Reporting
#################################################
# Sample OpenVPN 2.0 config file for #
# multi-client server. #
# #
# This file is for the server side #
# of a many-clients <-> one-server #
# OpenVPN configuration. #
# #
# OpenVPN also supports #
# single-machine <-> single-machine #
IMPORTANT:
The below code will break plugin functionality except for the specific inline case, if you use it
in other places you will need to improve/change this code.
1.- Add the pickadate.js plugin as usual, using an input.
<input type="text" class="datepicker" />
2.- Set your pickadate.js to use the "classic" theme (load the corresponding classic theme files).
3.- Load the plugin like this (in document.ready or whatever):