Skip to content

Instantly share code, notes, and snippets.

View whohe's full-sized avatar

Wilson whohe

View GitHub Profile
@whohe
whohe / config.fish
Created December 23, 2024 15:53
~/.config/fish/config.fish
set -Ux EDITOR vim
set -Ux VISUAL vim
@whohe
whohe / screen.rc
Last active April 8, 2024 15:36 — forked from devvesa/screen.rc
GNU Screen configuration file
# disable startup message
startup_message off
# autodetach screen sessions
autodetach on
altscreen on
# set status line always in last line
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}]'
@whohe
whohe / rifle.conf
Last active March 20, 2025 19:38
~/.config/ranger/rifle.conf
# vim: ft=cfg
#
# This is the configuration file of "rifle", ranger's file executor/opener.
# Each line consists of conditions and a command. For each line the conditions
# are checked and if they are met, the respective command is run.
#
# Syntax:
# <condition1> , <condition2> , ... = command
#
# The command can contain these environment variables:
@whohe
whohe / hw.py
Created October 14, 2019 06:11
print("hello world")
diff -qr dir1 dir2
@whohe
whohe / extractDataTable.sh
Created September 6, 2017 15:39
Extraer datos de tabla como inserts
pg_dump -h localhost -U postgres -d orfeo_db -t autg_grupos -f /tmp/grupos.sql --column-inserts -a
<?php
error_reporting(E_ERROR);
exec('sh ls.sh > files.list');
$avalible_extensions=array(
//'pdf',
//'xsl',
'xslx',
//'mp3',
//'jpg',
//'jpeg',
#!/bin/sh
for f in *.gz; do
gzip -d $f
done
@whohe
whohe / .gitconfig
Last active August 24, 2024 17:03
my own .gitconfig
[https]
sslverify = false
[user]
name = who
email = [email protected]
[diff]
tool = vimdiff
[difftool]
prompt = false
[alias]