Skip to content

Instantly share code, notes, and snippets.

@hectorh30
hectorh30 / gist:28db8466a99048dd12828674699ef20f
Created July 16, 2018 03:42
Windows 10 Virtual desktop enhancer settings.init
[General]
DefaultDesktop=1
TaskbarScrollSwitching=1
UseNativePrevNextDesktopSwitchingIfConflicting=0
DesktopWrapping=1
[Tooltips]
Enabled=0
; One of LEFT, CENTER, RIGHT
PositionX=LEFT
# For Linux machines
[user]
email = hectorh30@gmail.com
name = Hector Hurtarte
[diff]
external = git-diff-meld
[credential]
@hectorh30
hectorh30 / .eslintrc
Last active July 2, 2016 17:23
Current prefered eslint (v3) settings for frontend (emberjs) dev
{
"extends": "eslint:recommended",
"env": {
"es6": true,
"node": true,
"browser": true,
"embertest": true
},
"parserOptions": {
"sourceType": "module"
# Alternate mappings for "page up" and "page down" to search the history
"\e[5~": history-search-backward
"\e[6~": history-search-forward
"\e[1;5C": forward-word # ctrl + right
"\e[1;5D": backward-word # ctrl + left
@hectorh30
hectorh30 / svn-diff-meld.bat
Created May 6, 2016 01:08
Bat to use Meld with SVN over Windows
@ECHO OFF
REM Configure your favorite diff program here.
SET DIFF="C:\Program Files (x86)\Meld\Meld.exe"
REM Subversion provides the paths we need as the last two parameters.
REM These are parameters 6 and 7 (unless you use svn diff -x, in
REM which case, all bets are off).
SET LEFT=%6
SET RIGHT=%7
REM Call the diff command (change the following line to make sense for
REM your diff program).
unbind % # Remove default binding
# Cygwin stuff
# Make ctrl + left and ctrl + right move through next and previous word (requires some .inputrc stuff)
# set-window-option -g xterm-keys on
# See http://stackoverflow.com/questions/26435333/cygwin-tmux-on-windows-7-why-wont-tmux-use-the-current-path
# set-environment -g CHERE_INVOKING 1
# Window opening and closing
bind-key -n C-t new-window -c "#{pane_current_path}"
@hectorh30
hectorh30 / xdebug.ini
Last active June 19, 2017 13:55
Dev Xdebug config file
zend_extension=xdebug.so
# Default: 0
# When this setting is set to 1, Xdebug will always attempt to start a remote debugging session
# and try to connect to a client, even if the GET/POST/COOKIE variable is not present
xdebug.remote_autostart = 1
xdebug.remote_enable = 1
xdebug.remote_host = localhost
xdebug.remote_port = 9000
@hectorh30
hectorh30 / config
Last active May 22, 2020 20:55
My terminator config file
[global_config]
title_transmit_bg_color = "#242424"
focus = system
title_transmit_fg_color = "#D4D4D4"
[keybindings]
close_window = <Ctrl>Q
split_horiz = <Alt>2
full_screen = <Ctrl><Shift>F11
close_term = <Ctrl>W
split_vert = <Alt>3
@hectorh30
hectorh30 / P1.py
Created July 26, 2012 23:12
Problema 1 - Proyecto 1 - Métodos numéricos - Ciclo 2 2012 - UVG: Definición de los 2 métodos cerrados y los 2 abiertos, y código driver para resolución del problema planteado
# -*- coding: utf-8 -*-
"""
Created on Wed Jul 18 15:56:11 2012
@author: hectorh30
"""
def punto_fijo(f,g,x_init,max_error=0.01,max_iterations=100):
"""
INPUT