Skip to content

Instantly share code, notes, and snippets.

Basic
=====
[Shift]+[Mod]+[Enter] - launch terminal.
[Mod]+[b] - show/hide bar.
[Mod]+[p] - dmenu for running programs like the x-www-browser.
[Mod]+[Enter] - push acive window from stack to master, or pulls last used window from stack onto master.
[Mod] + [j / k] - focus on next/previous window in current tag.
@hernan604
hernan604 / README.md
Created March 17, 2017 00:59 — forked from dbiesecke/README.md
FUSE Tips & Tricks

Basic

Example invocation using sshfs:

`afuse -o mount_template="sshfs %r:/ %m" \
        -o unmount_template="fusermount -u -z %m" \
           mountpoint/`

Now try ls mountpoint/user@host/.

@hernan604
hernan604 / xterm_colors.sh
Created January 17, 2016 03:14
xterm adjust colors (without close xterm)
echo -e '\e]11;rgb:00/00/00\a' #set xterm bg
echo -e '\e]10;rgb:ff/ff/ff\a' #set xterm fg
for i in {0 1 2 3 4 5 6 7 8 9 a c b d e f 0} ; do echo -e "\e]11;rgb:${i}${i}/${i}${i}/${i}${i}\a" ; done;
@hernan604
hernan604 / multiple_ssh_setting.md
Created January 7, 2016 22:14 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@hernan604
hernan604 / gist:3eb5e7891941bc79383b
Created October 1, 2015 15:12
angular routes example
<!DOCTYPE html>
<html>
<head>
<title>Welcome to the Mojolicious real-time web framework!</title>
</head>
<!--
<body>
<h2>Welcome to the Mojolicious real-time web framework!</h2>
This is the static document "public/index.html",
<a href="/">click here</a> to get back to the start.
PROVECMD="prove -lrswj$VCPU_USE xt t"
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl -L https://npmjs.org/install.sh | sh
@hernan604
hernan604 / chat.pl
Last active August 29, 2015 14:15 — forked from jberger/chat.pl
#!/usr/bin/env perl
use Mojolicious::Lite;
use Mojo::Redis2;
use experimental 'signatures';
helper redis => sub { state $r = Mojo::Redis2->new };
get '/' => 'chat';
use Mojo::Base -strict;
use Devel::Cycle;
use Mojo::UserAgent;
use Promises 'deferred';
my $ua = Mojo::UserAgent->new;
sub fetch_it {
my $url = shift;
my $d = deferred();
@hernan604
hernan604 / player.pl
Last active August 29, 2015 14:08 — forked from jberger/player.pl
# MY MODIFIED PLAYER
# ** * * DOESNT WORK ON FIREFOX * * * ONLY ON CHROME * * *
# must install AudioFile::Plugins in order to work: cpanm AudioFile::Info::MP3::Info
#!/usr/bin/env perl
use strict;
use warnings;
use Mojolicious::Lite;
use AudioFile::Find;
use AudioFile::Info;
use File::Spec;