Skip to content

Instantly share code, notes, and snippets.

@rholak
rholak / transfer.sh
Last active May 16, 2018 18:47 — forked from Prajjwal/transfer.sh
Bash and zsh alias for transfer.sh. Transfers files and directories to transfer.sh.
#!/usr/bin/env zsh
# Defines transfer alias and provides easy command line file.
#
# Authors:
# Remco Verhoef <remco@dutchcoders.io>
# Prajjwal Singh <sin@prajjwal.com>
#
# Dependencies:
# * curl
@rholak
rholak / convert-aliases.fish
Last active April 19, 2018 15:25
Convert bash/sh/zsh style aliases to Fish abbreviations. Useful if you maintain a set of aliases for other shells and want to also use Fish.
cat $HOME/.aliases \
| perl -pe 's/alias /abbr /' \
| perl -pe 's/\&\&/; and/' \
| perl -pe 's/\$\{(.*?)\}/\{\$$1\}/' \
| perl -pe 's/\$\((.*?)\)/\($1\)/g' \
| source

Keybase proof

I hereby claim:

  • I am rholak on github.
  • I am robertholak (https://keybase.io/robertholak) on keybase.
  • I have a public key whose fingerprint is E854 A683 DF9A EC02 F1F2 182A 5B9C E3EC 3401 7DEE

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am rholak on github.
  • I am holak (https://keybase.io/holak) on keybase.
  • I have a public key whose fingerprint is E854 A683 DF9A EC02 F1F2 182A 5B9C E3EC 3401 7DEE

To claim this, I am signing this object:

tags[1] = awful.tag(
{ "☣", "🐱", "⚡", "☃", " " }
, 1
, tags.layout)
-- Monitor 2
tags[2] = awful.tag(
{ "☷", "❁", "♳", "♴", " " }
, 2
, tags.layout)
mywibox[s].widgets = {
{
mylauncher,
mytaglist[s],
mypromptbox[s],
layout = awful.widget.layout.horizontal.leftright
},
mylayoutbox[s],
mytextclock,
s == 1 and mysystray or nil,